0

In android version 28 we used TelecomManager.endCall for cut the call and version 29 above we used callRedirection service and callScreeningService for cut the call. Then Which API is used for end the call or cut the call in android version 23 to 27?

1 Answers1

0

use ITelephony interface concept.

Must use this format: file name: ITelephony.java file:

package com.android.internal.telephony; //must use this package only

public interface ITelephony {
    boolean endCall();
    void answerRingingCall();
    void silenceRinger();
}