How to start a activity from a broadcast receiver when the screen is locked in Android Q
问题 I am trying to implement an alarm based application in Android Q using a broadcast receiver. I am running a foreground service using notification for triggering the alarm broadcast receiver. The service is working fine and it is also triggering the broadcast receiver. If we close the application or lock the screen after setting an alarm, the service will be running in the foreground with a notification. When the alarm broadcast is called I am trying to open a new activity when the screen is