In some situations, we need to recall activity again from onCreate(). This example demonstrates how to reload activity in Android.
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/activity_main.xml.
For more info go through our : https://www.tutorialspoint.com/index.htm
No comments:
Post a Comment