I acquire WakeLock in onCreate() of ConnectService and release it only in onDestroy() of ConnectService.
On Wed, Feb 6, 2013 at 3:05 PM, skink <[email protected]> wrote: > > > Archana r wrote: > > Yes it is :) > > > > ConnectService runs HTTP server in the phone. Initially, when Start > button > > is pressed, the script is HTTP Posted to the client. To execute the > script, > > this service calls ExecuteScript. > > > > > > so how/when/where do you acquire 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. > > > -- Regards, Archana -- -- 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.

