如何挂机(断开,终止,..)进帐打电话? [英] How to hang up (disconnect, terminate,..) incomings call?

查看:127
本文介绍了如何挂机(断开,终止,..)进帐打电话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你怎么挂断来电(Android中当然)?

"How do you hang up incoming calls (in Android of course)?"

首先,我知道这个问题已经被问和回答了好几次,而且反应总是你不能。但是,如果我们看一下在市场上,我们得到了一些应用(所有的私有软件,源$ C ​​$ C用不上...... :-()是做这个动作,如的 CallFilter ,熊猫防火墙和其他...

First, I know this question has been asked and answered several times, and the response is always "you can't". But if we look in the market we get a few applications (all private software, no access to the source code... :-( ) that do this action, such as CallFilter, Panda firewall and others...

那么...是否有人知道如何将这些应用程序就挂断行动,(或终止,或者断开或者无论你怎么称呼它。)?

So... does somebody know how these apps do the hang up action, (or terminate, or disconnect or whatever you call it..)?

和其他问题,如果第一次没有得到回应..没有人知道如何将来电发送至语音信箱?

And other question, if the first don't get a response.. does somebody know how send an incoming call to the voice mail?

,所有的问题是关于如何做到这一点的编程。因此,与语音邮件的问题,我知道有在用于接触一个标志,但就像我说的,我想知道的程序化的方式。

Of course, all questions are about how to do it programmatically. So with the voicemail question I know there's a flag in contacts that is used for that, but like I said, I'd like to know the programmatical way.

谢谢大家!

修改1:

Edit 1:

我已经看到了LogCat中微量使用的应用程序CallFilter和一个跟踪似乎兴趣,当它接收到来电时,PHONE_STATE是CALL_STATE_RINGING和快速出现一条曲线:

I have been seeing the LogCat traces using the application CallFilter and one trace seems to be interest, when it receives an incoming call, the PHONE_STATE is CALL_STATE_RINGING and fast appears one trace:

05-03 19:32:34.416:信息/ UsageStats(78):有什么错在这里,没想到com.android.phone被暂停

当CallFilter做什么做新的跟踪05-03 19:32:34.486:

and when CallFilter have done whatever do new trace "05-03 19:32:34.486:

信息/ UsageStats(78):com.android.phone意外的简历时,如果已经恢复了com.android.phone

出现,所以我觉得CallFilter做一些在一个对象com.android.phone,但我不知道如何进入这个..任何想法??

appear, so i think CallFilter do something in one object com.android.phone, but i don't know how access to this.. any idea??

编辑2:

我在其他时间执行了,而我没有看到上面了日志跟踪,这样可以是上述可能,这并不意味着什么..我不知道.. 在CallFilter应用程序只显示一秒的来电,然后挂断电话。他们怎么办!???

I have performed at other times, and i don't see anymore the log traces above, so can be that the above may be that this does not mean anything.. i'm not sure.. the CallFilter application simply show one sec the incoming call, and then hang up.. how they do!!!???

推荐答案

您可以尝试使用此API:

You may try using this API:

http://www.androidjavadoc.com/0.9_beta/com/android/internal/telephony/ITelephony.html

这篇关于如何挂机(断开,终止,..)进帐打电话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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