如何以编程方式接听电话
我知道之前已经问过这个问题,但此时的答案帖子不真实。 Vringo 和其他应用程序确实可以通过按下应用程序上的按钮来接听电话,因此必须有一种方法可以做到这一点。
有人有建议吗?
I know this has been asked before, but at this time the answer of the post is not true. Vringo and other apps does answer the phone by pressing a button on their app, so there must be a way to do it.
Anyone has a suggestion?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看此来源:
http://code.google.com/p/auto-answer/source/browse/trunk/src/com/everysoft/autoanswer/AutoAnswerIntentService.java
他们发送蓝牙“keydown”事件来接听电话!
Check out this source:
http://code.google.com/p/auto-answer/source/browse/trunk/src/com/everysoft/autoanswer/AutoAnswerIntentService.java
They send a Bluetooth "keydown" event to answer the call!
这个解决方案很“有趣”,
它“几乎”适用于我的 HUAWEI Y300 (4.1.1),但在我的 LG E410 Swift L1 (4.1.2) 上则不行。
在华为上,它与 KeyEvent.ACTION_UP 一起使用,在 LG 上,对 ACTION_UP 事件没有反应。
另一方面,在HUAWEI上ACTION_DOWN事件不接听电话,但在LG上它拒绝接听电话。
所以不同型号的设备有不同的反应。
有人对此问题有一些更新吗?是否有另一种可行的解决方案,其对所有手机的行为方式相同,并且不需要设备进行 root ?
This solution is 'funny',
it 'almost' works on my HUAWEI Y300 (4.1.1) but on my LG E410 Swift L1 (4.1.2) not.
On HUAWEI it works with KeyEvent.ACTION_UP, when on LG there is no reaction for ACTION_UP event.
From other side, on HUAWEI the ACTION_DOWN event does not answer a call, but on LG it rejects it.
So different models of a devices have different reactions.
Someone has some updates in this issue ? Is there an another working solution, which behaves in same way for all mobile phones, and does not require from a device to be rooted ?