[android-beginners] Re: Unable to release partial wake lock in service

2010-07-25 Thread Bret Foreman
Calling the service's stopSelf from the onDestroy method of the parent activity worked fine. It's fixed. -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com

Re: [android-beginners] Re: Unable to release partial wake lock in service

2010-07-25 Thread Kostya Vasilyev
Wake locks have to do with CPU state, not with service lifecycle. If you don't need the service at some point, call stopself or stopservice. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 25.07.2010 19:52 пользователь "Bret Foreman" написал: Well, my understanding from the docs is that onc

[android-beginners] Re: Unable to release partial wake lock in service

2010-07-25 Thread Bret Foreman
Well, my understanding from the docs is that once a service has the wake lock cleared and no other services or activities are bound to it then it should be destroyed in a short time. But it's only a small change to my application logic to explicitly have the service call its stopSelf when the main