Handling screen dim/screen lock in android wear -
I have a thread running on one activity. And the thread is stopped when the screen is closed (in the emulsifier when you click on the power button and lock the screen). How to handle this scenario? Will 'Wakelock' help? If so, how to deal with it?
This is your problem that you have an activity UI thread running in the Java thread It is not good for me either I will start the thread and it will be linked to using the daemon thread, and it will have to be referenced in a custom application class or have to make the service instead.
Burning the thread with something like this:
Enhances the public class main applications application {Private thread of your thread; @ Override Public Empty on Create () {Super. Connet (); this. Thread = new thread (this); This.thread.setDaemon (true); This.thread.start (); }}
Comments
Post a Comment