0

My environment consist of Ubuntu 13.04, Optimus Q2 with ics.

when I run the following code, it prints 0 but never 1

#! /usr/bin/env monkeyrunner

# Imports the monkeyrunner modules used by this program
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
print "0"
# Connects to the current device, returning a MonkeyDevice object
device = MonkeyRunner.waitForConnection()

print "1"

do I have to change my Ubuntu to Windows, install smartphone driver, and then try again?

kim taeyun
  • 1,837
  • 2
  • 24
  • 49

1 Answers1

0

That's probably because you try to run multiple scripts one inside another. It's sync issue I presume.

stdout
  • 2,471
  • 2
  • 31
  • 40