简体   繁体   中英

how to start activity from background service in android Q os, without click 'Allow background activity starts' from settings of developer option?

i want to start activity from background service in Android Q OS But it will give me message 'Background activity start from com.test.testandroidapp blocked.See g.co/dev/bgblock'.

According following link: https://developer.android.com/preview/privacy/background-activity-starts . Disable restrictions by turning on the Allow background activity starts developer option.But what is the alternate option of 'Allow background activity' without enable this option from settings of 'Developer Option'.

Please try this -

android.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_COARSE_LOCATION
android.permission.SYSTEM_ALERT_WINDOW

First, two take-ups run time permission for android 10.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM