Hi,

I am developing an application where a service S1 has a method that starts 
an intent I. The intent I inturn calls service S2 using 

startActivityForResult()

and onActivityResult() defined in intent I returns a value. I want my app 
to be executed even when the device is sleeping. Currently, I acquire the 
wakelock and wifilock (as I have Wi-fi and sockets for communication) in 
S1's onCreate() and release them in S1's onDestroy(). However, if intent I 
is called, the execution stops till the screen is locked. Can anybody guide 
where I have to acquire and release the locks? Or if I have to acquire a 
global wake-lock for my app as specified in the link : 
http://mobilecoder.wordpress.com/2010/02/15/global-wakelocks-for-dummies-like-me/

Please let me know if you need more details.

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