Search code examples
androidandroid-intentandroidviewclient

How to Answer incoming call through adb shell or keyevent


I am trying to answer an incoming call using Intent as below :

device.shell("am start -n com.android.phone/.InCallScreen -a android.intent.action.ANSWER")        

can anyone please tell where am i going wrong ... please help .


Solution

  • device.press("KEYCODE_CALL","DOWN")