Jan*_*usz 8 android calllog android-intent
我想创建一个Intent,打开屏幕显示当前设备的通话记录?
我如何指定这样的意图?
Jan*_*usz 27
Barmaley通过将类型设置为Calls.ContentType将我引导到正确的路径.
Intent showCallLog = new Intent();
showCallLog.setAction(Intent.ACTION_VIEW);
showCallLog.setType(CallLog.Calls.CONTENT_TYPE);
context.startActivity(showCallLog);
Run Code Online (Sandbox Code Playgroud)
这个意图应该成功.
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("content://call_log/calls"));
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8417 次 |
| 最近记录: |