[英]How to perform tap hold on android?
I'm trying to script a tap and hold on an Android device and I haven't worked out how. 我正在尝试在Android设备上编写轻按并按住的脚本,但还没有弄清楚该如何做。
I tried playing with the input
command options but couldn't find anything relating to holding. 我尝试使用
input
命令选项,但找不到与保持有关的任何内容。
I've also looked at MonkeyRunner and could succesfully get the desired effect from a computer with the Android device connected, but couldn't run monkeyrunner
on the device itself, without a computer. 我还研究了MonkeyRunner ,它可以从连接了Android设备的计算机成功获得所需的效果,但是如果没有计算机,就无法在设备本身上运行
monkeyrunner
。
Is there a way to script a tap and hold/tap down only/long tap on an Android device (I'm just using the shell for now) ? 有没有一种方法可以在Android设备上编写点击并按住/仅按下/长按的脚本(我现在仅使用外壳程序)? If so how ?
如果可以,怎么办?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.