Hi. i would like to get a code snippet that will silence the ringer in incoming call in Samsung S2. The naive approuch of
setStreamVolume(AudioManager.STREAM_RING, 0,AudioManager.FLAG_REMOVE_SOUND_AND_VIBRATE); does not seem to work reliably on Samsung and i am looking for alternative.
PLEASE DO NOT APPLY IF YOU ARE NOT AN EXPERT IN ANDROID.