Another question, if a particular app has acquired the wifi-lock.
Another app goes and switches off the wifi.
 
What happens now?
Will the wifi-lock prevent the wifi from switching it off?
Or is the wifi lock ignored, and the wifi radio is still switched off.
 
 
 

On Friday, March 30, 2012 10:01:32 AM UTC+5:30, Put_tiMe wrote:

> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to