Saturday, April 12, 2014

After serving in the thread to stop sleep Andrews screen problem


After the screen sleep, even if there is a background service is running, but the service will automatically stop the thread, how to make a thread has been running non-stop?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Try to keep a wakelock lock it
Reply:
Under the proposed research wakelock, but a good android program must consider the power consumption problem, so it is still possible to use less wakelock, use alarm manager
Reply:
Service thread screen I tested did not stop after locking Yeah, right where I did not set up?
Reply:
reference to the third floor appleibm reply: Service screen
thread I tested did not stop after locking Yeah, it is wrong not where I set up?

This is not restricted to their mobile phone manufacturers each phone will have this problem. . .

Proposed landlord with alarm clock radio ~
Reply:
After hibernation, but still have some broadcast event, you can achieve some background operation broadcast open
Reply:
Could I have not encountered because it is a system app so it can continue to run?
Reply:
Listeners about the sleep screen and see if you are still running thread is not running, you will then restart it. Or you set up a service, start-up of the service, that would have been running

No comments:

Post a Comment