I am looking for ringer mode change event in B4A (I have checked the phone library), but can't seem to find any way of detecting if the ringer mode is changed.
Ringer modes are Normal, Vibrate and Silent.
Just to be clear, I am not looking to change the ringer mode. I am looking for detecting (in a service) when the user has changed the ringer mode.
You should create an intent filter and listen to this action:
android.media.RINGER_MODE_CHANGED
It should contain can extra value mapped to: android.media.EXTRA_RINGER_MODE with the new mode.
The value should match the constant values listed here: AudioManager | Android Developers