change intent to intentMain2Activity
Intent intentMain2Activity = new Intent(MainActivity.this,Main2Activity.class);
startActivity(intentMain2Activity);
5
solved Opening a new activity from a button [closed]
change intent to intentMain2Activity
Intent intentMain2Activity = new Intent(MainActivity.this,Main2Activity.class);
startActivity(intentMain2Activity);
5
solved Opening a new activity from a button [closed]