a wrote: > 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).. > >
hmmm, what is ConnectService? it seems to me that your code flow is overcomplicated... 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.

