Sometimes you really don’t want to your end users to accidently exit your app by urgent Back button. Since the Back button is good feature to undo points you have completed or exit from an Action, it can also enable you to exit from your whole as nicely. What you can do it to ask them to verify once more.

To do that, it is not so tough but to override onBackPressed() method and make a hold off press by utilizing Handler. Please love the video.

Comments

comments