Android Question App show alert and makes sound until user accepts or declines the alert, no matter if the phone is blocked or app is not active

marius_c

New Member
My app needs to show to alert a user and continue to show the alert and make a sound until the user accepts or declines it. This will need to happen even if the phone is locked, asleep, or the app is not active (it would be nice to have this functionality even if the application is killed, but it is not mandatory).

The use case is similar to an incoming phone call or an alarm. How can I achieve this? (I do not normally do android development, this is a personal project of mine)
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

marius_c

New Member
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I guess he means LOCKED (device is sleeping (monitor off)).
 
Upvote 0
Top