Android Question How to mute phonespeaker ?

Magma

Expert
Licensed User
Longtime User
Hi there...

* I want to mute Speaker (the voice of contact not mine) - not the microphone of phone.. (that i don't know how to do it)
* I want to do that before calling a phone number (i know how to call by starting activity)

Is that possible ?

Thanks again ! :)

ps: by the way when having loud-speaker on - the microphone is louder/more dynamic ?
 

Magma

Expert
Licensed User
Longtime User
You didn't understand my question (my english are english of beach)...

I know that this is the lib... my question is if i set p.volume_music at 0 value... will set off the contact voice (not hearing him) or only the music of phone... ?

Thanks and sorry for the questions...

ps: by the way - how i can get the setting of volume (get the value) ?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

Magma

Expert
Licensed User
Longtime User
@Erel (me again...) ...What i want to do.:

1) A-phone auto call B-phone (B-phone not a smartphone/no app running)... (OK!)

2) When B-phone answer -> A-phone must auto 0 the speaker (not the mic) / not listening that the B-phone... i am trying to use that p.SetVolume(p.VOLUME_MUSIC, 0, false) - before A-phone call the B-phone.. (NOT OK!)

3) When close conversation set volume again to normal (seems to be ok - because 2nd step not working!)

Thanks
 
Upvote 0

Magma

Expert
Licensed User
Longtime User
found one that seems to be - is that - or this the microphone ?

11.png
VOLUME_VOICE_CALL AsInt

Voice calls channel.

------------------

@Erel no... it's not doing anything... :-(
 
Last edited:
Upvote 0
Top