0

I am developing a Caller Screen App in which I have two buttons accept and reject the call. Button reject is working properly, but the accept button is not working in all android version

iTelephony= (ITelephony) context
                .getSystemService(Context.TELECOM_SERVICE);

        try {
            iTelephony.answerRingingCall();
        } catch (RemoteException e) {
            e.printStackTrace();
        }
Tanveer Munir
  • 1,956
  • 1
  • 12
  • 27
  • 1
    Possible duplicate of [How can incoming calls be answered programmatically in Android 5.0 (Lollipop)?](https://stackoverflow.com/questions/26924618/how-can-incoming-calls-be-answered-programmatically-in-android-5-0-lollipop) – Roshan Feb 08 '19 at 07:01
  • this is a "possible" duplicate of [How can incoming calls be answered programmatically in Android 5.0 (Lollipop)?](https://stackoverflow.com/questions/26924618/how-can-incoming-calls-be-answered-programmatically-in-android-5-0-lollipop) – sansa Feb 08 '19 at 07:02
  • Check this: https://stackoverflow.com/a/51872557/7746134 – Saurabh Thorat Feb 08 '19 at 07:03

0 Answers0