+ 2

Double Tap on Android ADB

I was looking for reproducing douple tap on an android emulator via adb, but I've found nothing. I tried this (using python): for i in range(2): os.system("adb shell input tap x y") but It doesn't work because It's too slow giving the input: when the first command is finished, It gives the second one, but the emulator takes them as single taps. I also had a change with Thread and It's worked, but in a limited test file only , such as: def click(): os.system("adb shell input tap x y") Thread(target=click).start() click() When I put this script in my complete (and tardy) code, It takes his time so... I doesn't work propely... Any suggestions? Does exist a built-in double tap command in adb?

11th Oct 2019, 5:33 PM
Giordano Fratti
Giordano Fratti - avatar
2 Answers
+ 2
I'll try to ask on stackoverflow because nothing fits propely my question. Thanks any way :)))
25th Nov 2019, 8:23 PM
Giordano Fratti
Giordano Fratti - avatar
0
Giordano Fratti Hello I have the same problem Did you found a sollution ?
29th Mar 2020, 12:51 PM
iren yeger
iren yeger - avatar