I m using MonkeyRunner to play with simulation of user activity. All fine but I cannot press EndCall. To make call I use:
device.touch(190, 800, DOWN_AND_UP )
x,y coordinates of CALL button.
But when I trying to hangup I try :
device.touch(230, 700, DOWN_AND_UP )
x,y - accordingly coordinates of End Call button. Nothing happen.Trying press:
device.press( KEYCODE_ENDCALL , DOWN_AND_UP )
Same effect. Trying now to send intent but dont know which intent to use to EndCall. My device running on Android 2.2.1.
Thanks.