thanks.... but if thats the case, why does the sdk provide Process.killProcess(Process.myPid())??? & wat does android actually do when i call this method as above???
On Tue, May 26, 2009 at 7:51 PM, Mariano Kamp <[email protected]>wrote: > In short: Don't worry. > > A bit longer: Android manages the apps' states. > The user keeps on doing things, launching tasks, firing intents etc. and > when Android OS doesn't have enough memory left it kills of apps that are in > memory, but don't seem that important anymore, e.g. because the UI is not > visible anymore as the user navigated back to the home screen or to another > app/activity. If you app is needed again Android OS will resurrect you > app/activity. Just implement the proper call backs > (onCreate/onResume/onPause etc.) and your good to go. > > On Tue, May 26, 2009 at 4:16 PM, Sujay Krishna Suresh < > [email protected]> wrote: > >> Say i wanna do something like java's System.exit(0)... >> jus to make sure that my application is not running anymore... >> I wanna kill my own app... not other apps... this should be possible... >> >> On Tue, May 26, 2009 at 7:38 PM, Marco Nelissen <[email protected]>wrote: >> >>> On Tue, May 26, 2009 at 6:56 AM, Saurav Mukherjee < >>> [email protected]> wrote: >>> >>>> how do i kill an android application >>> >>> >>> Why would you want to do that? >>> >>> >>> >>> >> >> >> -- >> Regards, >> Sujay >> Mitch >> Hedberg<http://www.brainyquote.com/quotes/authors/m/mitch_hedberg.html> - >> "My fake plants died because I did not pretend to water them." >> >> > > > > -- Regards, Sujay Frank Lloyd Wright<http://www.brainyquote.com/quotes/authors/f/frank_lloyd_wright.html> - "TV is chewing gum for the eyes." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

