Re: [android-developers] Wake-lock instance.

2012-04-02 Thread Mark Murphy
On Mon, Apr 2, 2012 at 12:40 AM, Put_tiMe wrote: > The PowerManager.newWakeLock() will return a new instance of a wake lock > every time. Yes. > If I have an intent service or an alarm manager service, then I won't have > an "instance" to store this wake lock. Yes. > Whereas I want to work

[android-developers] Wake-lock instance.

2012-04-01 Thread Put_tiMe
The PowerManager.newWakeLock() will return a new instance of a wake lock every time. If I have an intent service or an alarm manager service, then I won't have an "instance" to store this wake lock. Whereas I want to work on one instance of the wake-lock object. How do I handle this sit