end outgoing call

tuhatinhvn

Active Member
Licensed User
Longtime User
I dont know how to end outgoing call

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?
 

bsnqt

Active Member
Licensed User
Longtime User
I have same question, but by searching the forum you can see that there is no conclusion / final solution yet unfortunately. I even have made a library for that purpose but without successs...
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…