InCall volume

margret

Well-Known Member
Licensed User
Longtime User
Volumes on Device

Is it possible to programatically set the in call volume? If so, how?

You can use the Phone library and then you use:

B4X:
Dim p As Phone
p.VOLUME_VOICE_CALL()
p.VOLUME_ALARM()
p.VOLUME_MUSIC()
p.VOLUME_NOTIFICATION()
p.VOLUME_RING()
p.VOLUME_SYSTEM()

Thanks,

Margret
 
Upvote 0

cammel8

Member
Licensed User
Longtime User
You can use the Phone library and then you use:

B4X:
Dim p As Phone
p.VOLUME_VOICE_CALL()
p.VOLUME_ALARM()
p.VOLUME_MUSIC()
p.VOLUME_NOTIFICATION()
p.VOLUME_RING()
p.VOLUME_SYSTEM()

Thanks,

Margret

Thank you. That helped a lot, however even setting VOLUME_VICE_CALL to 0 it only turns it almost all the way down.

It still doesn't mute it. But it will work if it is all I can do.

Thank you so much
George
 
Upvote 0

cammel8

Member
Licensed User
Longtime User
Hello,

Did you try:

B4X:
p.SetMute(p.VOLUME_VICE_CALL, True)    'turns it off

p.SetMute(p.VOLUME_VICE_CALL, False)    'turns it back on

Thanks,

Margret
Yes i tried that. It just turns it down to 1 it wont turn it to 0 or mute it.
 
Upvote 0

cammel8

Member
Licensed User
Longtime User
I would mute all channels one at a time and see if any will fully mute the channel. Some forked versions work differently. I have found this on two devices.

Margret

Yeah I tried that too and still wouldn't mute completely. It goes to 1 then stays there. I think it is a limitation of the os and not of b4a. Think about it, you could turn phone in call to 0 then think no one was saying anything every time you got a call. I think they designed it to only go down so far.
 
Upvote 0
Top