AudioManager am = (AudioManager)getSystemService(Context.AUDIO_SERVICE); switch (am.getRingerMode()) { case AudioManager.RINGER_MODE_SILENT: Log.i(\"MyA
Another solution is to add a receiver with an action in Manifest:
and your class RingerModeStateChangeReceiver should extend BroadcastReceiver.