Yes, use a DialogFragment
instead of a simple Dialog
. Some details here and the internet is full of DialogFragments :)
Prevent Dialog from closing when locking the phone
-
12-06-2023 - |
Pergunta
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?
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow