Android Question Clear back history

ambg

Member
Licensed User
Longtime 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.
 

sorex

Expert
Licensed User
Longtime User
you can intercept the back event and do your own thing there.
 
Upvote 0

ambg

Member
Licensed User
Longtime User

Works fine. Thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…