如何从broadcastreceiver打开通话记录

时间:2013-01-28 13:02:58

标签: broadcastreceiver calllog

如何从broadcastreceiver打开通话记录

am using a broadcast receiver to monitor call is coming from which number...

and for that i need to open calllog to show to the user

how to open call log from broadcastreceiver?

1 个答案:

答案 0 :(得分:0)

在stackoverflow.com上长时间搜索后

现在我可以使用

打开来自广播接收器的通话记录
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("content://call_log/calls"));
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(i);