Skip to content Skip to sidebar Skip to footer

Android Reject Incoming Call

In my android project(with target sdk version 23), I want reject incoming call. I know that there are a lot of question about this, in particular 1 How to import com.android.inte

Solution 1:

I found the answer myself. For others interested, here here it is:

create aidl folder in main folder.

create package com.android.internal.telephony in aidl folder

create a aidl file in package:

interfaceITelephony {      

    boolean endCall(); 
    voidanswerRingingCall();      

}

for the code about end call see the answer in the link.

and it's not necessary add the permission

android.permission.MODIFY_PHONE_STATE

Post a Comment for "Android Reject Incoming Call"