tags:

views:

148

answers:

2

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?

+4  A: 

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)
Erich Douglass
+1  A: 

comment to Erich Douglass post: and don't forget to describe it into AndroidManifest.xml like

<activity android:name=".YourNewActivity" android:label="@string/app_name" />
davs