androidandroid-activityandroid-framework

Does creating a system alert window using a service send top activity onPause


I am debugging some code where A service adds a system alert window on top of an activity as a result of a key event.

The window has input fields, for which the keyboard gets displayed which clears the fullscreen flags which the top activity had set when it was created.

This can only happen if the top activity wasn't sent to the background when the service added the system_alert_window on top of the activity.

Thus i wanted to confirm whether, an activity goes to background or onPause() when a system_alert_window is added on top of it, like would happen if an another activity starts on top of it.


Solution

  • I did more research as part of an ongoing bug to modify AOSP.

    In the process, i learnt that