[android-developers] How to gracefully terminate a remote service process?

2011-01-07 Thread Moto
Currently I believe I'm doing a ok job managing my application's remote service. When I'm done using it I can see the onDestroy() called, perfect... Now the issue is I can see the remote process still hanging around, via DDMS or via phone's running processes. Users see this and think I'm doing

Re: [android-developers] How to gracefully terminate a remote service process?

2011-01-07 Thread Dianne Hackborn
That is working as intended. The process is kept around with nothing running in it if there is enough memory, to reduce the work if it is needed again in the future. On Fri, Jan 7, 2011 at 11:59 AM, Moto medicalsou...@gmail.com wrote: Currently I believe I'm doing a ok job managing my

Re: [android-developers] How to gracefully terminate a remote service process?

2011-01-07 Thread Frank Weiss
This is a problem that the Google engineers have acknowledged. As you probably know, the issue is that the Android OS does delayed garbage collection of - and possibly reuses - dead porcesses, however the process name remains that of the last app it hosted, as reported via DDMS or via phone's

Re: [android-developers] How to gracefully terminate a remote service process?

2011-01-07 Thread Dianne Hackborn
On Fri, Jan 7, 2011 at 12:23 PM, Frank Weiss fewe...@gmail.com wrote: This is a problem that the Google engineers have acknowledged. As you probably know, the issue is that the Android OS does delayed garbage collection of - and possibly reuses - dead porcesses, however the process name

Re: [android-developers] How to gracefully terminate a remote service process?

2011-01-07 Thread Moto
I guess my knowledge on the subject was not far off... I guess I was being mislead by all these task killers and users complaining... They just assume a visible process is hogging CPU and memory. Well it could on applications that aren't managing things properly. Thanks for your reply --

Re: [android-developers] How to gracefully terminate a remote service process?

2011-01-07 Thread Moto
I kept telling my users I don't want to place an exit button cause it's pointless! If you program the application properly there is no need for an exit button on many type of applications such as mine, a media playback application. I explain users and some understand while other don't... --

Re: [android-developers] How to gracefully terminate a remote service process?

2011-01-07 Thread Frank Weiss
I want to say thank you to Dianne Hackborn for correcting my mistaken assumption that an Android process could serially host different apps. I'll have to take some time to study how the Android OS manages processes and the DVK someday. -- You received this message because you are subscribed to

Re: [android-developers] How to gracefully terminate a remote service process?

2011-01-07 Thread Dianne Hackborn
On Fri, Jan 7, 2011 at 2:29 PM, Moto medicalsou...@gmail.com wrote: I guess my knowledge on the subject was not far off... I guess I was being mislead by all these task killers and users complaining... They just assume a visible process is hogging CPU and memory. Well it could on