0

Below code is working fine in pre-marshmallow versions (Tested on LG G3) but its not working for Marshmallow (S7 Edge)

 Intent i = new Intent(Intent.ACTION_CALL_BUTTON);
 i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 startActivity(i);

I need to open ongoing call screen if it is minimized.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
AndDev
  • 41
  • 1
  • 9

1 Answers1

0

Can you try with i.setFlags instead of i.addFlags

Binil Jacob
  • 501
  • 6
  • 9
  • When you minimize the active call screen, android adds a call control view in the drop down notification bar. when we click on that view it opens the active call screen. I want to achieve this. I want to open ongoing call screen – AndDev Nov 05 '16 at 08:31
  • I guess there could be a limitation. But try this – Binil Jacob Nov 05 '16 at 09:06