Hangup a Incoming Call?

abhishek007p

Active Member
Licensed User
Longtime User
Hi,

i am trying to make a Call Blocker for Android. how can i hangup a incoming call? and before that, how to detect if there is a incoming call.

thanks,
abhishek
 

abhishek007p

Active Member
Licensed User
Longtime User
Which library contains the Reflector object? i checked all libraries still it is showing in red.

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
 
Upvote 0
Top