How to programmatically answer a call

后端 未结 2 1287
鱼传尺愫
鱼传尺愫 2020-11-30 22:50

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 the

相关标签:
2条回答
  • 2020-11-30 23:20

    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!

    0 讨论(0)
  • 2020-11-30 23:23

    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 ?

    0 讨论(0)
提交回复
热议问题