Android Question Set volume level

anaylor01

Well-Known Member
Licensed User
Longtime User
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)
 
Last edited:

anaylor01

Well-Known Member
Licensed User
Longtime User
Let me ask you this. If my app was ready to go to the market could someone take it as their own? Not saying anyone would but is that possible?
 
Upvote 0

ronell

Well-Known Member
Licensed User
Longtime User
Let me ask you this. If my app was ready to go to the market could someone take it as their own? Not saying anyone would but is that possible?
you didnt mention it in your first post , but let me tell you this.. im(or we are) not going to steal your code and make money out of it

It almost sounds like it is at max but shouldn't the Media volume level be changed to max?
maybe when you open the app the volume is set to max then when you go to setting the app goes to resume sub and set back the volume to 0
 
Upvote 0

anaylor01

Well-Known Member
Licensed User
Longtime User
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.
 
Upvote 0

anaylor01

Well-Known Member
Licensed User
Longtime User
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
 
Upvote 0

anaylor01

Well-Known Member
Licensed User
Longtime User
Thanks Erel. So VOUME_MUSC = SoundPool What do the others use?
VOLUME_ALARM=
VOLUME_NOTIFICATION=
VOLUME_RING=
VOLUME_SYSTEM=
VOLUME_VOICECALL=
 
Upvote 0

anaylor01

Well-Known Member
Licensed User
Longtime User
What I am asking is if VOUME_MUSC = SoundPool do the others equal something else? Like VOLUME_ALARM = SoundAlarm?
 
Upvote 0

anaylor01

Well-Known Member
Licensed User
Longtime User
So if you are on the phone with someone is there anything that will play sound that the person on the other line can hear?
 
Upvote 0
Top