android-calculatorpp/calculatorpp/misc/other/wait_device.py

11 lines
234 B
Python
Raw Normal View History

2012-11-22 16:19:14 -05:00
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
print 'Waiting for device...'
device = MonkeyRunner.waitForConnection(100, 'emulator-5580')
2012-11-22 16:19:14 -05:00
print 'Finished'
if device :
print 'Success'
else :
print 'Failure'