Re: [android-developers] Android service killed immediately after start, despite calling startForeground()

2011-11-07 Thread Mark Murphy
On Mon, Nov 7, 2011 at 1:07 PM, Chris wrote: > I'm having a problem with my IntentService. Every time I start my > service, the onDestroy() method is called as soon as the service > becomes idle. That is largely the definition of an IntentService. Once onHandleIntent() completes its work on the b

[android-developers] Android service killed immediately after start, despite calling startForeground()

2011-11-07 Thread Chris
Hi, I'm having a problem with my IntentService. Every time I start my service, the onDestroy() method is called as soon as the service becomes idle. I set up my service to run in the foreground, and despite this the service is still being killed right away. I have only one other activity in my app