I created a custom dialog on my android app. This dialog is an activity with Dialog theme. Now, assume that the app is showing this dialog, User press "Home" to back to Android Home view. Later, user press and hold button Home
then choose my app from recent apps. It's will show the dialog again.
What I want to do here is that the dialog shouldn't show. I want to show the activity which called this dialog.
How can I do this?