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
2010-05-25 13:51:14
+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
2010-05-25 14:32:00