0

My problem is that while using the app, the incoming call UI/Intent is shown minimized on the status bar.

enter image description here

Instead, I want to show it like this -

enter image description here

I'm calling the intent ACTION_ANSWER but it seems to be not working.

Intent i=new Intent(Intent.ACTION_ANSWER);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);

or is there any way I can maximize the Incoming call UI?

Mark Ben
  • 177
  • 1
  • 1
  • 14

1 Answers1

0

public static final String ACTION_ANSWER

Added in API level 1 Activity Action: Handle an incoming phone call.

Input: nothing.

Output: nothing.

Constant Value: "android.intent.action.ANSWER"

Please check below link for demo case

  1. CustomIncomingCallScreen
IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198
  • http://stackoverflow.com/questions/26924618/how-can-incoming-calls-be-answered-programmatically-in-android-5-0-lollipop – IntelliJ Amiya Oct 19 '15 at 11:11
  • http://stackoverflow.com/questions/15481524/how-to-programatically-answer-end-a-call-in-android-4-1 – IntelliJ Amiya Oct 19 '15 at 11:12
  • 1
    The link you provided is trying to replace the default screen with custom built intent but what I want is to bring the default UI of incoming call to the front. I don't want to build my own, just want to show the default UI when it is minimized. – Mark Ben Oct 19 '15 at 14:12