For example, in whatsApp, when you listen to voice messages and the volume of multimedia is low, the message "Increase the volume" is displayed.
How to get the current multimedia volume?
For example, in whatsApp, when you listen to voice messages and the volume of multimedia is low, the message "Increase the volume" is displayed.
How to get the current multimedia volume?
Via AudioManager like this:
AudioManager audioManager = (AudioManager) getSystemService(AUDIO_SERVICE); int music_volume_level = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); // получить громкость музыки Also, to obtain a specific volume (ring tone, multimedia, alarm clock, etc.), use the following constants:
Source: https://ru.stackoverflow.com/questions/628034/
All Articles