Android Question Clear back history

ambg

Member
Licensed User
is there any way to completely clean the history open activities and the back key to close the application?

For example

3 Activities (Main, 1,2)

Start Main Activity

In Main
StartActivity(1)

In 1
StartActvity(2)

In 2
Activity.Finish
StartActivity(Main)

If the user then click back key go back to 1 and i want that close the application.
 
Top