Hi I have acquired WakeLock like given in the link:

http://stackoverflow.com/questions/11274196/releasing-wakelock-in-different-activity-to-where-it-was-acquired
 
(having a class separately and acquired globally)..  

My application flow is like: MainActivity->starts a Service when I click a 
Start button(ConnectService) -> ExecuteScript-> 
ScriptActivity->ScriptService-> ExecuteScript in onActivityResult() sends a 
broadcast to ConnectService() where I have defined onReceive() method.. 

The Wakelock is released in onDestroy() of ConnectService(basically when I 
close my app using a Stop button)..

On Wednesday, February 6, 2013 2:14:04 PM UTC+2, skink wrote:
>
>
>
> Archana r wrote: 
> > Hi, 
> > 
> > I have integrated the code(ScriptActivity and ScriptService from SL4A 
> into 
> > my project to execute PythonScripts in Android).. So I have 
> ExecuteScript-> 
> > ScriptActivity->ScriptService ... 
> > 
> > 
>
> how/when do you acquire/release the wake lock? 
>
> pskink 
>

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to