I have an Activity named whereActity
which has child dialogs as well. Now, I want to display this activity as a dialog for another activity.
How can I do that?
I have an Activity named whereActity
which has child dialogs as well. Now, I want to display this activity as a dialog for another activity.
How can I do that?
Use this code so that the dialog activity won't be closed when the user touches outside the dialog box:
requires API level 11
If your activity is being rendered as a dialog, simply add a button to your activity's xml,
Then attach a click listener in your Activity's Java code. In the listener, simply call
finish()
That should dismiss your dialog, returning you to the calling activity.