我可以以编程方式将一个匿名电话? [英] Can I programmatically place an anonymous phone call?

查看:643
本文介绍了我可以以编程方式将一个匿名电话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用户可以调用另一个用户提供一个按钮,单击应用程序。

I have an application from which a user can call another user with the click of a button.

我想知道是否有办法把这个调用匿名,隐藏从用户的电话号码,而不是将其保存在呼叫历史记录。

I was wondering whether there was a way to place this call anonymously, hiding the phone number from the user and not saving it in the call history.

推荐答案

据该平台源 - code没有办法发出呼叫,而用户的知识。你能做的最好的事情是自动进行呼叫,但用户将看到一个对话框,俗话说:调用XXXXXXXX,他将有机会取消

According to the platform source-code there is NO WAY to place a call without the knowledge of the user. The best thing you can do is to make the call automatically but the user will see a dialog saying: "Calling XXXXXXXX" and he will have the chance to cancel it.

即使你让你自己的拨号器应用程序,你必须与系统密钥签名,并将其放置在系统/应用服务,以获得所需的权限之类的东西文件夹。

Even if you make your own dialer application you will have to sign it with the system key and place it in the system/apps folder in order to get the required permissions for that kind of things.

至于通话记录,我不知道你能不能拨打电话未出现在它摆在首位,但我认为(不知道虽然),你可以找到它,并随后被删除。 Android的通知呼叫操作其他应用程序通过意图,因此是相对容易结束呼叫时检测,然后查询通话记录。

As for the call log, I don't know if you can make the call not to appear in it in the first place but I think (not sure though) that you can find it and deleted afterwards. Android informs other applications of call actions via Intents so it is relative easy to detect when a call ended and then query the call log.

希望这有助于...

这篇关于我可以以编程方式将一个匿名电话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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