I want to start a dialog from a service that hangs over what the user is currently looking for. The dialog starts as follows: the service receives a trigger to open a dialog> start transparent activity> a transparent dialog shows activity.
My problem is that the user opens the application, launches in the main menu, and then presses HOME to exit. By pressing HOME, it pauses the main menu in pause mode, but does not crash, and when the service starts a dialog, the main menu is displayed under transparent activity; causing the dialog to lose its effect on hovering over what the user is watching.
How to do this so that transparent activity opens independently of any other actions in the application? The only way to prevent this at this time is to complete all actions when they are paused; but it’s impractical.
source
share