Try *AndroidViewClient/culebra* 
<https://github.com/dtmilano/AndroidViewClient> that could connect to 
devices connected over the network (i.e. TV) with no problems.
If you want to just take screenshots `dump -f` (one of the tools included 
in the package) does just that.


On Wednesday, 17 February 2016 03:26:30 UTC-5, huang xin wrote:
>
> 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 android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
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/9b01921e-fa87-4994-beb7-8b7526607665%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to