Hello Hackborn, >>You just need to handle this case correctly, as it will happen even without a >>task killer
I used intent in starting service and checking that extra in myService:StartupHandler() to identify if service recovered from crash(if intent is null). If that is the case i do gracefull shutdown of my service by calling stopSelf(),(which calls myService::onDestroy()). Thanks JRC On Feb 8, 11:11 am, Dianne Hackborn <[email protected]> wrote: > As of 2.2 all a task manager can to is kill a process while it is in the > background, which could also happen to it from the OOM killer. You just > need to handle this case correctly, as it will happen even without a task > killer > > I don't know what you are actually trying to do in order to say what "handle > correctly" means. > > > > > > On Mon, Feb 7, 2011 at 8:09 PM, JC <[email protected]> wrote: > > Thanks Hackbon, > > > I am running on 2.2, task killer is able to kill the process and new > > process/service is restarted. > > > Have i used correct flags in service while binding and starting > > service ? > > > Mainly my notification icon is not cleared my icon. > > > Thanks, > > JRC > > > On Feb 7, 11:04 pm, Dianne Hackborn <[email protected]> wrote: > > > Yes if another process is bound, the service will be restarted. > > > > As of 2.2 a task killer simply can't do what you are asking. The "force > > > stop" button in Manage Applications will do this. > > > > On Mon, Feb 7, 2011 at 2:00 AM, JC <[email protected]> wrote: > > > > Hello All, > > > > > I have service running in background and notification is shown in GUI. > > > > > When i do force close from application=>manage application, my > > > > service, application and icon in notification bar goes off. > > > > > But when i kill my application via TaskKiller application, my service > > > > stopped and then Android OS restarts service(i can see from logcat) > > > > and icon in my notification area remains. while my background work (of > > > > downloading image) is closed. > > > > > I return START_STICKY (also tried with STArT_NOT_STICKY flag) from > > > > OnStartCommand(), but no luck. My GUI activity, binds to service via > > > > Context.BIND_AUTO_CREATE, is it because of that flag? > > > > > What should i do if i want my application,service and notification > > > > area icon to go off, when application is killed by task killer. > > > > > I have searched through > > > > > Thanks in advance. > > > > JRC > > > > > -- > > > > 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 > > > > -- > > > Dianne Hackborn > > > Android framework engineer > > > [email protected] > > > > Note: please don't send private questions to me, as I don't have time to > > > provide private support, and so won't reply to such e-mails. All such > > > questions should be posted on public forums, where I and others can see > > and > > > answer them. > > > -- > > 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 > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. -- 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

