Why does my app terminate when the button is clicked on Android Studio?

Asked 28-Dec-2021
Viewed 405 times

1 Answer


0

  • In many different Android apps, the 'Back' button is used in a variety of ways. Some app developers use it to close their apps, while others use it to return to the prior action of the app.
  • To correctly close an app, many apps require the user to touch the 'Back' button two times within a short period of time, which is considered best practise.
  • As a result, exiting an app with a double-click of the back button is a good idea. Occasionally, a person may inadvertently hit the back button. As a result, we create this functionality to confirm that the user truly wishes to exit the programme.


Read More: Should I upgrade to Apple iOS 13.3.1?