Thursday, March 29, 2012

[android-developers] Wifi lock question

I want to know if I can do this:
 
I have two alarm managers, to trigger once every X minutes.
 
Alarm A: every 10 minutes
Alarm B: every 12 minutes.
 
I start both of them at once. So "A" should hit every 10 mins, and "B" should hit every 12 mins.
 
Now in "A", I create a wifi lock, and acquire it.
Because intents raised by alarm-manager won't have a concept of instance, I can't save this wifi-lock object anywhere.
 
In "B", How can I use the same wifi lock object to release the wifi lock?
 
Is it possible?
 
 
 

--
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