Can you turn the loudspeaker on this adroid version ?
For previous versions the code below works perfect :
I use it together with phone events to rise the following code .
Thank you .
For previous versions the code below works perfect :
I use it together with phone events to rise the following code .
B4X:
Dim rr As Reflector
rr.Target = rr.GetContext
rr.Target = rr.RunMethod2("getSystemService", "audio", "java.lang.String")
rr.RunMethod2("setMode", "2", "java.lang.int")
rr.RunMethod2("setSpeakerphoneOn", True, "java.lang.boolean")
Thank you .