[android-developers] Keeping IntentService alive even if app is killed
I have an app that occassionally starts an IntentService (bundled in the same app) in which to process some backrgound work. Its not unusual for the user to exit the app (ie move on to somethign else) and the backrgound work should continue until it is complete, which the IntentService handles nicely. But if the user decides to explicilty kill my app using ManageApps then it kills not only the remnants of my application but also the IntentService. And that's not so great. If they had specifically targetted the running service I could live with it. Is there a way that I can configure the IntentService (without bundling it in its own app) so that killing the app does not kill the IntentService too? I tried setting a different Process for the Activity, the IntentService, the application. But it didn't have a positive effect. Anyone know how I can manage it? -- 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
Re: [android-developers] Keeping IntentService alive even if app is killed
No there is nothing you can do about that. You just have to tell your users to stop breaking your app with their $#^!! task killers. (Starting with Froyo task killers will not be able to do this.) On Thu, Oct 7, 2010 at 7:37 PM, William Ferguson wrote: > I have an app that occassionally starts an IntentService (bundled in > the same app) in which to process some backrgound work. > > Its not unusual for the user to exit the app (ie move on to somethign > else) and the backrgound work should continue until it is complete, > which the IntentService handles nicely. > > But if the user decides to explicilty kill my app using ManageApps > then it kills not only the remnants of my application but also the > IntentService. And that's not so great. If they had specifically > targetted the running service I could live with it. > > Is there a way that I can configure the IntentService (without > bundling it in its own app) so that killing the app does not kill the > IntentService too? > > I tried setting a different Process for the Activity, the > IntentService, the application. But it didn't have a positive effect. > > Anyone know how I can manage it? > > -- > 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 > -- Dianne Hackborn Android framework engineer hack...@android.com 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 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
Re: [android-developers] Keeping IntentService alive even if app is killed
Oh sorry, I see that you are specifically talking about manage apps. In that case... the whole point of the "force stop" in manage apps is for a user to stop an app that they really want to make stop. As such, there is nothing you can do about it. The next version of the platform will include an interstitial dialog warning the user that the force stop could break the app they are stopping. On Thu, Oct 7, 2010 at 11:02 PM, Dianne Hackborn wrote: > No there is nothing you can do about that. You just have to tell your > users to stop breaking your app with their $#^!! task killers. (Starting > with Froyo task killers will not be able to do this.) > > > On Thu, Oct 7, 2010 at 7:37 PM, William Ferguson gmail.com> wrote: > >> I have an app that occassionally starts an IntentService (bundled in >> the same app) in which to process some backrgound work. >> >> Its not unusual for the user to exit the app (ie move on to somethign >> else) and the backrgound work should continue until it is complete, >> which the IntentService handles nicely. >> >> But if the user decides to explicilty kill my app using ManageApps >> then it kills not only the remnants of my application but also the >> IntentService. And that's not so great. If they had specifically >> targetted the running service I could live with it. >> >> Is there a way that I can configure the IntentService (without >> bundling it in its own app) so that killing the app does not kill the >> IntentService too? >> >> I tried setting a different Process for the Activity, the >> IntentService, the application. But it didn't have a positive effect. >> >> Anyone know how I can manage it? >> >> -- >> 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 >> > > > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > 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. > > -- Dianne Hackborn Android framework engineer hack...@android.com 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 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