Send only one click to monkeyrunner at specified position

346 Views Asked by At

Here is a more typical command line, which will launch your application and send 500 pseudo-random events to it:

$ adb shell monkey -p your.package.name -v 500

but I am wondering how can I send only one click to my app at position 50,50

1

There are 1 best solutions below

0
On BEST ANSWER

I found the answer

device.press('KEYCODE_MENU', MonkeyDevice.DOWN_AND_UP)