Yes, you can use System.exit(0) in your own app. I applied this myself
for some time when I could not track down a bug in my app that ate
memory by creating new threads without killing old ones upon app
restart, and System.exit(0) then provided a temporary workaround to
start fresh until I later found out that my problems indeed came from
those threads piling up - visible in DDMS once you look for them, but
I thought at the time that I was having memory problems due to my
bitmaps or array variables still floating around after restart.

On May 26, 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...

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to