I need to show Main activity, paused to reduce battery consumption (display settings 5 minutes), when an event fires on a service running (AUTOMATIC_FOREGROUND_ALWAYS)
Is it possible ?
Samsung Galaxy Tab Active3
Android 13
Starting from Android 6 a special permission is required if you want to use the SYSTEM_ALERT_WINDOW permission. This permission is not related to the runtime permissions. You can put this code in a class to check whether your app has permission and open the settings page if needed: Sub...