Hi, Now, i'm studying how to use the MonkeyRunner to test android devices. There is an android tv set, enabled adbd, no usb debug port, but network is available. I can use a following commend to connect this device with adb
*adb connect 172.30.198.240.* List of devices attached 172.30.198.240:5555 device Then i checked this connection that was successful. i can use adb shell command to login the tv. i wrote a python script(called test.py) to test the MonkeyRunner. #########Script start########### *from com.android.monkeyrunner import MokeyRunner, MonkeyDevice* *device = MonkeyRunner.waitForConnection() # <---wait for ever* *if device is not None:* * device.takSnapshot()* ##########Script END########### after aboves done, i input the* monkeyrunner.bat test.py* in the dos terminal of win7. the codes blockedt the MonkeyRunner.waitForConnection() for ever, and adb server was killed. I also tried to use next method: *monkeyrunner.bat -s 172.30.198.240 test.py, *but failed again. Then i change a phone with a usb debug port to connect my pc. Above script ran ok. I don't know why, could you help me? thanks a lot -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/4c626856-65cf-4157-8e39-cdbf42c92b9a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

