I am new to android application development.
I developed one android application, in this application when the user presses back or exit buttons I call the finish() method. This method closes the current activity only.
My requirement is when i click on the exit button, it should close all activities and it show the menu page. Is this possible?
This subject has received some discussion, here is one that should contain most of the information you’re looking for.
Also, see Activity Lifecycle and Process Lifecycle in the Android Documentation on Activities to understand the hows and whys of closing apps.