Question

I have an Android application where I create a dialog. If I lock the phone and unlock it the dialog is gone probably because I have paused the activity. Is there a way i can keep the dialog open after I unlock the phone or unpause the previously paused activity?

Was it helpful?

Solution

Yes, use a DialogFragment instead of a simple Dialog. Some details here and the internet is full of DialogFragments :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top