Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是一个更典型的命令行,它将启动您的应用程序并向其发送 500 个伪随机事件:
$ adb shell monkey -p your.package.name -v 500
但我想知道如何在 50,50 位置只向我的应用发送一次点击
我找到了答案
device.press('KEYCODE_MENU', MonkeyDevice.DOWN_AND_UP)