Skip to content Skip to sidebar Skip to footer

How To Close Whole Application In Android

Possible Duplicate: Android: How to kill an application with all it's activities? I tried with finish(). But it just close the present activity not whole application. as the ano

Solution 1:

Use this line of code:

System.exit(1);

The integer 1 is just a return code.

EDIT This was answered when I first started android development: Please do not use it. You could try Adding an Exit button to Android Application.

Post a Comment for "How To Close Whole Application In Android"