-1

enter image description here

when i click on button show the volume setting same the given pic.

AskNilesh
  • 67,701
  • 16
  • 123
  • 163

1 Answers1

0

You can get the current volume of the device using the following:

AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
int volume = am.getStreamVolume(AudioManager.STREAM_MUSIC);
Muhammad Ashraf
  • 1,252
  • 1
  • 14
  • 32