我想创建一个 Intent 来打开显示当前设备通话记录的屏幕?
我将如何指定这样的意图?
Barmaley 引导我找到正确的路径,我将类型设置为 Calls.ContentType。
Intent showCallLog = new Intent();
showCallLog.setAction(Intent.ACTION_VIEW);
showCallLog.setType(CallLog.Calls.CONTENT_TYPE);
context.startActivity(showCallLog);
这个意图应该可以解决问题。
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("content://call_log/calls"));