android-calculatorpp/calculatorpp/misc/aux/wait_device.py
Sergey Solovyev 36772dea1f Screenshots
2012-11-23 01:19:14 +04:00

11 lines
234 B
Python

from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
print 'Waiting for device...'
device = MonkeyRunner.waitForConnection(100, 'emulator-5554')
print 'Finished'
if device :
print 'Success'
else :
print 'Failure'