通话结束后,删除通话记录通话 [英] Delete call from call log after call end

查看:135
本文介绍了通话结束后,删除通话记录通话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的Andr​​oid开发。我想打电话给一个号码,但我不希望存储在我的通话记录的号码。我怎样才能删除呼叫记录中的号码通话结束后?

I am new to Android development. I want to make a call to a number but I don't want to store the number in my Call log. How can I delete the number from call log after the call ends?

推荐答案

首先,你必须建立一个广播接收器来检测手机状态。这里是完全一样的问题:#1 - 意图被解雇时,在通话结束?

First you have to set up a broadcast receiver to detect the phone state. Here's the exact same question: Stackoverflow - Intent to be fired when a call ends?

现在删除的呼叫记录条目,这里是谷歌的第一个链接:通话Android中记录删除
在这个例子中,他删除特定号码的所有来电进入,但你可以改变的查询,删除特定的呼叫记录标识的条目。

And now for deleting the call log entry, here is the first link on google: Call log deletion in Android
In the example he deletes all call entry for a specific number, but you can change the query to delete the entry for a specific call log id.

希望这有助于。 干杯

这篇关于通话结束后,删除通话记录通话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆