Hi
Has anyone got this working ? I have tried all existing methods, but none seem to work on 9.
This is the code being executed in an Activity
Unfiltered logs reports an error
Regards
John.
Has anyone got this working ? I have tried all existing methods, but none seem to work on 9.
This is the code being executed in an Activity
B4X:
Dim rr As Reflector
rr.Target = rr.GetContext
rr.Target = rr.RunMethod2("getSystemService", "audio", "java.lang.String")
rr.RunMethod2("setSpeakerphoneOn", True, "java.lang.boolean")
Unfiltered logs reports an error
B4X:
n setSpeakerphoneOn(), on: true, calling application: com.is.vitllinkSOS
setSpeakerphoneOn true java.lang.Throwable
at android.media.AudioManager.setSpeakerphoneOn(AudioManager.java:1358)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.agraham.reflection.Reflection.runmethod(Reflection.java:216)
at anywheresoftware.b4a.agraham.reflection.Reflection.RunMethod2(Reflection.java:817)
at com.is.vitllinkSOS.main._tmrclock_tick(main.java:8581)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at anywheresoftware.b4a.objects.Timer$TickTack.run(Timer.java:105)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6863)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
com.is.vitllinkSOSdo not have using speaker authority in call
Regards
John.
Last edited: