How to open new activity when click a button in android?! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to open new activity when click a button in android?!

when click on a button open an other activity

16th Jan 2017, 6:02 PM
Alireza
1 Answer
+ 3
Intent intent = new Intent(this, nextActivityClass.class); startActivity(intent);
16th Jan 2017, 6:20 PM
Uran Kajtazaj
Uran Kajtazaj - avatar