Re: [android-developers] Re: How to close an application?

2010-01-24 Thread Kevin Duffey
Frank, yes.. in short, badly behaved (coded?) applications that are not shut down can drain battery life. I agree with Streets tho.. don't use System.exit, just call finish() on the activity, and make sure to implement the onPause and onDestroy correctly, cleaning up all threads, etc. Try teaching

[android-developers] Re: How to close an application?

2010-01-21 Thread pink 444
Thanks for your replay. And i went through the link , which you specified. As i understood process will be killed by android only. But my question is Why does user has to wait till android closes particular application, Instead why doesn't user do this? Instead of waiting till android system

Re: [android-developers] Re: How to close an application?

2010-01-21 Thread Mark Murphy
As i understood process will be killed by android only. Correct. But my question is Why does user has to wait till android closes particular application, Instead why doesn't user do this? Does the user close each Web page in their Web browser when navigating a Web site? Or do they just

[android-developers] Re: How to close an application?

2010-01-21 Thread Vladimir
But my question is Why does user has to wait till android closes particular application, Instead why doesn't user do this? Because this is how it is done in Android. If you change it, users will get confused and eventually annoyed. On Jan 21, 3:58 pm, pink 444 pnk...@gmail.com wrote: Thanks for

Re: [android-developers] Re: How to close an application?

2010-01-21 Thread Kevin Duffey
I don't know if I like this model. :D I'll give you one reason that I don't know if it comes up or exists often, but I think it's one of the most confusing issues for non-techie (and even techie peeps that don't know about programming and threads and such) users for android devices. The problem to

Re: [android-developers] Re: How to close an application?

2010-01-21 Thread Frank Weiss
Your main thrust is about battery drain. Is your assumption that an application that is not shut down will drain the battery really valid? On Thu, Jan 21, 2010 at 2:27 PM, Kevin Duffey andjar...@gmail.com wrote: I don't know if I like this model. :D I'll give you one reason that I don't know

[android-developers] Re: How to close an application?

2010-01-21 Thread Streets Of Boston
If you want to make sure that your app shuts down completely: - Implement onPause to pause any threads running in the background (if you have any) - Implement onDestroy to clean up any other resources (stop threads, if any, for example) Short of the user pulling the battery, the onPause is