Android Question How to block the top notification bar in Android 11 and above?

Pure Game

Member
Licensed User
Ok, I will explain because it could be weird, but I code an Application to help paperboy to be track on a map, so the manager can find him to restock and find easily at the end of the day.
So we install the app on our phone with a ID and at the beginning of the day, we give a phone to every paperboy. But, we don't want him to go in the status bar and remove the network or the positioning. In the passed I used this:

You will need to add those permissions into your Manifest:
AddPermission(android.permission.SYSTEM_OVERLAY_WINDOW)
AddPermission(android.permission.SYSTEM_ALERT_WINDOW)

in the Activity:

But in Android 11 it is not working anymore. what I can do now?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…