I dont know how to end outgoing call
If ingoing call i use
But outgoing call in java only use
I dont know use Refector to run method setResultData(null)
Any body can help me?
If ingoing call i use
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
But outgoing call in java only use
B4X:
Logger.d("PhoneStateReceiver **Outgoing call " + outgoingNumber); setResultData(null); // Kills the outgoing call
I dont know use Refector to run method setResultData(null)
Any body can help me?