hi
I tried to reject the call with the following program in Android 11, but it does not work and gives the following error.( r.RunMethod("endCall"))
java.lang.NoSuchMethodException: java.lang.Object.endCall []
I just need a piece of code that can reject the call.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			I tried to reject the call with the following program in Android 11, but it does not work and gives the following error.( r.RunMethod("endCall"))
java.lang.NoSuchMethodException: java.lang.Object.endCall []
I just need a piece of code that can reject the call.
			
				example:
			
		
		
		Sub PE_PhoneStateChanged (State As String, IncomingNumber As String, Intent1 As Intent)
        
    If State="RINGING" Then
        'Squillo
        if IncomingNumber ="0039333xxxx" then KillCall   
    Else If State="OFFHOOK" Then
        ' OFF Hook
    else If State="IDLE" Then
        'IDEL
        
    End If
End Sub
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 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		