Android Question lock-screen notifications - detect user's setting?

Dave O

Well-Known Member
Licensed User
Longtime User
Hi there,

For lock-screen notifications (introduced in Android 5.0), the user must go to Settings > Notifications and enable them (choice of all, hide content, or none).

Is there a way to detect this user setting programmatically?

Even better, a way to set it? (Although I could see that disallowed for a non-system app.)

I've skimmed the B4A forums and the Android docs, but couldn't find anything.

Thanks!
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

Dave O

Well-Known Member
Licensed User
Longtime User
Yep, that worked great. I only needed the second flag (because my app works well for both "show all" and "hide content").

And it's good to know that the default is the setting the app prefers, so most users won't have to change it.

Thanks @Erel !
 
Upvote 0
Top