Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open new Screen in Android?

Tags:

android

Hi I am new to android. In my application if user selects the button in the alertDialog I need to open a new screen and I have to display some message on that screen. How to open a new screen?

like image 813
Karthick Avatar asked Dec 17 '22 00:12

Karthick


1 Answers

You open a new activity (i.e screen) by creating and firing off a new intent:

Intent intent = new Intent(this, YourNewActivity.class)
startActivity(intent)
like image 106
Erich Douglass Avatar answered Dec 28 '22 02:12

Erich Douglass