http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon/2034238#2034238
On Fri, Sep 16, 2011 at 8:36 PM, melliti alaeddine <[email protected]> wrote: > I want to implement an exit() method on menu item but the problem was that i > don't know how to do this exactly when i try to execute finish() on exit() > called only the current activity will terminate but i want to terminate the > application it self i also tried > > - int pid = android.os.Process.myPid(); > - android.os.Process.killProcess(pid); > > but the result was an error message and the home application activity is > called ..... > > i don't know what to do :( > > -- > Cordially > Alaeddine Melliti > > > -- > 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

