如何创建,打开通话记录活动的意图是什么?意图、通话记录

2023-09-06 02:50:52 作者:自古深情必自毙i

我要创建打开的窗口中显示当前设备的通话记录的意图是什么?

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?

推荐答案

Barmaley导致我,我做到了与类型设置为Calls.ContentType的正确路径。

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.