我们怎样可以隐藏在Android的特定联系人的通话记录? [英] How can we hide call logs of specific contact in android?
问题描述
我试图隐藏特定联系人的通话记录。为此,我创建了广播接收器,用于接收呼入/呼出/未接来电/通话挂断的事件。
但我怎样才能得到致电电话挂断事件的详细信息?
我知道我们可以得到以下2个信息时输入的事件发生:
1)国家
2)电话号码
现在的隐藏的接触,我需要删除它位于 defalut通话记录数据库条目的内容:// call_log /呼叫,然后在我的SQLite数据库插入。 P>
有没有谁之前,面临这种问题的人?任何帮助将AP preciated。
感谢。
也许是一个更好的办法是注册一个 ContentOberver 上的通话记录表。看到这一问题:<一href="http://stackoverflow.com/questions/4422410/how-to-implement-a-contentobserver-for-call-logs">How实施ContentObserver的通话记录
每当更新由表,你可以查询有问题的电话号码,删除记录。
I am trying to hide call logs from particular contact. For this I have created broadcast receiver for receive event of incoming / outgoing / missed call / call hangup.
But how can I get call details on call hangup event ?
I know we can get following 2 informations when incoming event occurs :
1) State
2) Phone Number
Now for hide contact, I need to delete entry from defalut call log database which is located in "content://call_log/calls"., and insert it inside my sqlite database.
Is there anybody who faced this kind of issue before ? Any help will be appreciated.
Thanks.
Perhaps a better approach would be to register a ContentOberver on the call log table. See this question: How to implement a ContentObserver for call logs
Whenever an update is made to the table, you could query for the phone number in question and delete the record.
这篇关于我们怎样可以隐藏在Android的特定联系人的通话记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!