- 1

Please. Explain about this code

Intent intent = new Intent(this,MainActivity.class); startActivity(intent);

18th Feb 2022, 2:33 PM
Abhishek
Abhishek - avatar
1 Respuesta
+ 1
That is used to move from current activity to the MainActivity. think of activities as pages, to go from one to another, you use Intent.
18th Feb 2022, 6:34 PM
Bahhaⵣ
Bahhaⵣ - avatar