Sunday, April 1, 2012

[android-developers] Wake-lock instance.

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 situation in an intent-service or an alarm manager service?
 
 

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate