I have an Activity that will display Alert Dialog in seconds. Before displaying the dialog box, immediately click the Home button. Again, if I go back to my application, the interface will disappear, but the warning dialog is not displayed (apparently). If I click the Back button and cancel the popup, my Activity will be active again. The question is, why does the dialog appear but not appear? How can I avoid this situation?
source share