I\'m using a service. In that service my code should get executed when the user changes to silent mode, i.e. as soon as the user changes to silent mode, my code needs to get exe
You can register to listen to the BroadcastAudioManager.RINGER_MODE_CHANGED_ACTION.
AudioManager.RINGER_MODE_CHANGED_ACTION