In fact when the system (kernel) decides to kill a service to make
space, the service *is* killed outright, no onDestroy().

JBQ

On Thu, Dec 11, 2008 at 3:44 PM, Mark Murphy <mmur...@commonsware.com> wrote:
>
> code_android_festival_way wrote:
>> Ok so all I can do is set some last Toast in the onDestroy message in
>> order to notify the user of the killed service right?
>
> 1. I don't think services can raise Toasts, if they don't happen to be
> called on the UI thread. You should be able to post a
> Notification...though I'm not sure if that will survive the service
> closing down.
>
> 2. You can't even be assured onDestroy() is called -- the process might
> just be terminated outright in extreme cases.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.9 Published!
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to