Note that there are some explanatory texts on larger screens.

plurals
  1. POMonkeyrunner.sleep() always Error sending press event
    text
    copied!<p>i using android MonkeyRunner do some test</p> <p>every time run Monkeyruuner.sleep() will FAIL</p> <p>like this</p> <pre><code>from com.android.monkeyrunner import MonkeyRunner device = MonkeyRunner.waitForConnection() device.press('KEYCODE_ENTER', 'DOWN_AND_UP') MonkeyRunner.sleep(10) device.press('KEYCODE_ENTER', 'DOWN_AND_UP') </code></pre> <p>in the second </p> <pre><code>device.press('KEYCODE_ENTER', 'DOWN_AND_UP') </code></pre> <p>always fail</p> <pre><code>[main] [com.android.chimpchat.adb.AdbChimpDevice] Error sending press event: KEYCODE_ENTER DOWN_AND_UP </code></pre> <p>please help thank ' Thanks all reply!</p> <p>but even using time.sleep() or MonkeyDevice.DOWN_AND_UP always have wrong</p> <p>my scores code</p> <pre><code>from com.android.monkeyrunner import MonkeyRunner import time device = MonkeyRunner.waitForConnection() device.press('KEYCODE_DPAD_RIGHT', device.DOWN) device.press('KEYCODE_DPAD_RIGHT', device.UP) time.sleep(2) device.press('KEYCODE_DPAD_RIGHT', device.DOWN) device.press('KEYCODE_DPAD_RIGHT', device.UP) time.sleep(2) device.press('KEYCODE_DPAD_RIGHT', device.DOWN) device.press('KEYCODE_DPAD_RIGHT', device.UP) time.sleep(2) </code></pre> <p>in the three time down , up always wrong</p> <p>log</p> <pre><code>120718 09:50:51.744:S [main] [com.android.chimpchat.adb.AdbChimpDevice] Error sending press event: KEYCODE_DPAD_RIGHT DOWN 120718 09:50:51.744:S [main][com.android.chimpchat.adb.AdbChimpDevice]java.net.SocketException: Software caused connection abort: recv failed 120718 09:50:51.744:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at java.net.SocketInputStream.socketRead0(Native Method) 120718 09:50:51.744:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at java.net.SocketInputStream.read(Unknown Source) 120718 09:50:51.744:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at </code></pre> <p>THANKS!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload