1

我正在尝试读取通话记录并保存到外部存储中。我用过

 cursor = this.getContentResolver().query(Uri.parse("content://call_log/calls"),    projection, selection, selectionArgs,sortOrder);

通过这种方法,我成功读取所有通话记录并将其保存到外部存储中。现在,如果收到或拨打新电话或未接来电,那么我如何跟踪它并将其保存到我的存储中,而不保存从光标读取的所有呼叫。我知道在这种情况下广播接收器或服务将是最好的,但无法弄清楚我怎样才能让它工作。任何工作示例或代码片段都会对您有所帮助。

4

0 回答 0