Code for Seek bar Sound up-down
Set these codes in the "On Activity Create":
audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); seekbar1.setMax(audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC));}
AudioManager audioManager;
private void nothing() {
Set these codes on the Seek Bar On Progress Changed:
textview1.setText("Music Volume : " + _progressValue);
audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, _progressValue, 0);
Thank you.....
Comments
Post a Comment