AFAICT, there isn't any way exposed to the SDK to be notified when stopService is called. However, there is an onDestroy() method that you can implement that Android calls when it is about to get rid of the service, but I don't think that is necessarily what you are looking for.
---------------------------------------------------------------------- There are only 10 types of people in the world... Those who know binary and those who don't. ---------------------------------------------------------------------- On Fri, Jan 29, 2010 at 6:15 PM, Eric <[email protected]> wrote: > Hi, > > When clients calls "startService", the service object could catch it > by "onStart" method. However when "stopService" is called, how does > the service object get notified? > > Thanks, > > -Eric > > -- > 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/questions/tagged/android > > To unsubscribe from this group, send email to > [email protected]<android-beginners%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > -- 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/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

