Tech tip of this week

How to create an Intent that opens the Call Log Activity?

Below code will launch the call log history screen.

Intent showCallLog = new Intent();
showCallLog.setAction(Intent.ACTION_VIEW);

showCallLog.setType(CallLog.Calls.CONTENT_TYPE);
context.startActivity(showCallLog);

No comments:

Post a Comment