Thursday, January 31, 2019

How to prevent going back to the previous activity in Android?

There are so many situations, where we should not call back action when user click on back button.
This example demonstrates how to integrate Android Login and register form.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/actvity_main.xml.

For more info go through our  :  https://www.tutorialspoint.com/index.htm  

No comments:

Post a Comment