I\'m looking for a way to quit my android app by code.
Yes, I know, I shouldn\'t be doing this cause android handles it when you press the back button, but I have a customiz
You can keep a list of all started activities in List (use WeakReference to avoid memory leak). To exit the app, first invoke finish method on each items and then invoke android.os.Process.killProcess(android.os.Process.myPid());