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 .
Code:
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")
from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/24Jx6p5
via IFTTT
Aucun commentaire:
Enregistrer un commentaire