Friday, 23 October 2015

How to start a new Activity?



In android manifest.xml add this following code
<activity
android:name=".NameOfActivity" />

In your activity add this code

Intent intentSecondActivity = new Intent(this, NameOfActivity.class);
startActivity(intentSecondActivity);



No comments:

Post a Comment