How To Start An Activity From Background in Android 10?

Not sure if it’s right to do it this way, but I did not have enough time (app is only for company internal use).

I used permissions:

<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

and then every user has to go to setting -> permissions of the app and then check box in advanced settings for function “show the app over others”

Sorry for my English or not exactly the right solution, but it worked, so good hotfix for me.

On Pixel 4 it will be looking like this:
enter image description here

Leave a Comment