Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create an Intent that opens the Call Log Activity?

I want to create an Intent that opens the screen showing the call logs of the current device?

How would I specify such an Intent?

like image 435
Janusz Avatar asked Dec 29 '10 17:12

Janusz


2 Answers

Barmaley lead me to the correct path I did it with setting the type to Calls.ContentType.

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

This intent should do the trick.

like image 182
Janusz Avatar answered Sep 20 '22 11:09

Janusz


Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("content://call_log/calls")); 
like image 45
Barmaley Avatar answered Sep 20 '22 11:09

Barmaley