I am trying to enable the ringer normal mode and increase the volume programmatically.
AudioManager mobilemode = (AudioManager)mContext.getSystemService(Cont
Replace the line
mobilemode.setStreamVolume (AudioManager.STREAM_MUSIC,mobilemode.getStreamMaxVolume(AudioManager.STREAM_MUSIC),0);
with below line
mobilemode.setStreamVolume(AudioManager.STREAM_RING,audioManager.getStreamMaxVolume(AudioManager.STREAM_RING),0);