How to trigger a launch Activity intent when my app is closed on Android 10/Q?
As of Android 10 (API level 29), you cannot start activities from the background anymore.
There are a number of exceptions to this rule that may or may not apply to your given scenario.
If none of the exceptions apply, you might want to consider displaying a high-priority notification, possibly with a full-screen Intent.
How to open activity from background service's full screen intent notification Android
You can open activity from the background by adding "SYSTEM_ALERT_WINDOW"
permission to the manifest and ask for user permission once when the app opened the first time by calling startActivity(new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION));
somewhere in your app and granting permission to your app.
Related Topics
Android Fastboot Waiting for Devices
How to Measure Distance to Object With Camera
Scrollview Not Scrolling in Android Bottomsheet
Convert File: Uri to File in Android
Android Scrollview Not Scrolling Down After Keyboard Opens
Flutter:Renderbox Was Not Laid Out: Renderrepaintboundary#58C65 Relayoutboundary=Up1 Needs-Paint
How to Display a Loading Spinner While Getting Data from Firestore
Concatenate Multiple Strings in Xml
How to Automatically Open App When Receive Push Notification
When Does Sqliteopenhelper Oncreate()/Onupgrade() Run
How to Set Align (Right or Left) of Text in Textview, Programmatically
How to Start an Activity from Background in Android 10
Could Not Resolve All Dependencies for Configuration ':Classpath'
How to Hide Action Bar for Fragment
Alarm Manager Won't Work When the App Is Killed in the Background and Device Is Locked
How to Show List of String in Textview on Android
How to Open Fragment from Recyclerview Adapter
How to Show Only Specific Part of Website in Android Webview