0
How to make two activity in android
hello , how to make two activity in android and button to go to second activity
1 Antwort
+ 1
First you create a new activity for your project (your app). Then in the onClick() method for your button in the first activity make an Intent object and start the new Activity (I will call it ActivityB in the following code).
onClick(View view) {
Intent intent = new Intent(this, ActivityB.class);
startActivity(intent);
}