I am trying to set the speaker volume to max. So I set the Media volume down and run the app. The Media volume doesn't change when I open the volume settings. It almost sounds like it is at max but shouldn't the Media volume level be changed to max?
p.SetVolume(p.VOLUME_MUSIC, p.GetMaxVolume(p.VOLUME_MUSIC), False)
I have this in the Manifest:
AddPermission(android.permission.MODIFY_AUDIO_SETTINGS)
The code I posted is the relevant code. There isn't much to it. When I had that line of code in the activity it seemed like that if the volume level was low that after the code ran the volume level would be at the max after. When it runs in the service it sounds the same but when you go to the volume level settings it is still low not at the max. So maybe it is playing the sound at the max level but not setting the meter to the max.
Thanks Erel. So I am using this code to play the audio. sounds.Play(bounceId, 1, 1, 1, 0, 2) How do you determine or know which channel the audio uses?
VOLUME_ALARM
VOLUME_MUSIC
VOLUME_NOTIFICATION
VOLUME_RING
VOLUME_SYSTEM
VOLUME_VOICECALL