I have an Activity named
To start activity as dialog I defined it like this in
<activity android:theme="@android:style/Theme.Dialog" />
Now when I call
startActivity() it displays as a dialog, with the previous activity shown when the user presses the back button.
Note that if you are using
ActionBarActivity (or AppCompat theme), you'll need to use