My application uses differents activities to do what I want it to do. The behaviour I am looking for is the complete closure of the application, with each and every activity present in the task being closed, when the back key is pressed.
Is this possible? If yes, how can I do?
Thanks in advance for the time you will spend trying to help me.
If you want this behavior in every activity, then when each activity starts another (by calling
startActivity()), have it then callfinish(). That will remove it from the back stack. That way, there is only one activity for your app at any time, and when when the user presses the back key, it will finish and your app will exit.