Ken H wrote:
> If I call stopSelf() in a service, does it call onDestroy?

It triggers onDestroy().

> I want to
> clean up after myself, but I'm a little vague on this process and the
> docs don't help much.

stopSelf() would be used in the case where something else called
startService() to start up the service, and the service is the one who
knows when it is time to stop.

For example, IntentService calls stopSelf() when there is no more work
to be done by the background thread.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training in US: 26-30 April 2010: http://onlc.com

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

Reply via email to