Home > Mobile >  AndroidQ is there a way to start the Activity in the background?
AndroidQ is there a way to start the Activity in the background?

Time:09-21

Looked at the source code, is to get the data in the system process to determine whether show, nothing can change the app end, in addition to the official of the nine can start the Activity in the background scene, are there any other way? (2), but now I can think of is using AccessibilityService requires users to open access, his hand

CodePudding user response:

Use full Intent (full - screen Intent), create a notice from the notification bar, both to join full - screen Intent Settings

CodePudding user response:

The activity is used to and user interaction, you start an activity background what is the point?

CodePudding user response:

Android cannot be started in the background Activity
Official is to create a notification bar notification to join full - screen intent, for the sake of good user experience, avoid to use other function is interrupted, or apply to the user SYSTEM_ALERT_WINDOW permissions, system will not start to intercept the program background Activity,
  • Related