AudioManager mgr=null
mgr = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE);
mgr.setStreamVolume(AudioManager.STREAM_MUSIC, 100,
AudioManager.FLAG_SHOW_UI + AudioManager.FLAG_REMOVE_SOUND_AND_VIBRATE);
Asked
Active
Viewed 205 times
-1

ρяσѕρєя K
- 132,198
- 53
- 198
- 213

Yuneeb Arshad
- 1
- 2
1 Answers
1
try this.
audioManager.setStreamVolume(AudioManager.STREAM_MUSIC,audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC),0);`

chetan
- 681
- 4
- 21
-
its works but basically i want to get values from device i m new in android and making volume booster app so when ever the user decrease the volume it increase it – Yuneeb Arshad Jan 25 '17 at 12:03