How To Start An Activity From Background in Android 10?

前端 未结 4 1129
暗喜
暗喜 2020-12-31 01:22

I am building an android app where I need to start an activity from background. I am using a ForegroundStarter which extends Service for accomplishing this. I have an activi

4条回答
  •  臣服心动
    2020-12-31 01:32

    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:

    
    
    

    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:

提交回复
热议问题