I'm trying to use the AnswerCall library but with my "HTC ONE S" not work, while the "endCall" method works perfectly
B4X:
Sub KillCall
Dim r As Reflector
r.Target = r.GetContext
Dim TelephonyManager, TelephonyInterface As Object
TelephonyManager = r.RunMethod2("getSystemService", "phone", "java.lang.String")
r.Target = TelephonyManager
TelephonyInterface = r.RunMethod("getITelephony")
r.Target = TelephonyInterface
r.RunMethod("endCall")
End Sub
Looking on the android sdk, i' ve found the answerCall method in the same section of endCall method.
The difference is that the answerCall method, needs 2 parameters
is possibile to call answerCall method with the same mode of endCall?