In a long-running operation, I'm showing a popup dialog (created from ProgressDialog
to prevent other operations from happening).
I have made it non-cancellable with setCancelable(false)
, so I can't close it using the back button, but surprisingly, the Search hardware button dismisses the dialog!
More exactly, the global search application is displayed, and when I come back to my app, the dialog has been dismissed.
Any idea how to prevent the dialog from being dismissed?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…