0

I am able to open the Call Log through the following lines:

Intent showCallLog = new Intent();
        showCallLog.setAction(Intent.ACTION_VIEW);
        showCallLog.setType(CallLog.Calls.CONTENT_TYPE);
        showCallLog.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(showCallLog);

However I would like to open only a single view of the CallLog (for example Missed Call)

I tried to add

showCallLog.putExtra(CallLog.Calls.TYPE,CallLog.Calls.MISSED_TYPE);

but it doesn't change anything!

tshepang
  • 12,111
  • 21
  • 91
  • 136
user2734408
  • 41
  • 2
  • 3

1 Answers1

0

I'm not sure if you can open it that way (at least, not on all devices), but you can get the call log like this (you have to show it to the user yourself. Check the link bellow). This is the save way, to make sure that the user is going to see exactly what you want, but you have to create it yourself. Check this thread for further help: How do I access call log for android? . Hope this helps.

Community
  • 1
  • 1
ya-ivanov
  • 516
  • 2
  • 11