Android Question Resume black screen activity on service event

ecastelli201

Member
Licensed User
Longtime User
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

Thank you
enrico
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You need to request the special "draw over apps" permission. This will allow you to call StartActivity(Main) from the service.

 
Upvote 0
Top