I have simple program that does click menu only. But i cannot connect the view client. The paths are set to be correct.
ANDROID_VIEW_CLIENT_HOME = C:\android-sdk-win\AndroidViewClient-master\AndroidViewClient
ANDROID_HOME = C:\android-sdk-win
My program is something like this:
import os
import sys
try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
pass
from com.dtmilano.android.viewclient import ViewClient
It keeps giving me error that ADB server version is incorrect, when it goes to device, serialno = ViewClient.connectToDeviceOrExit(serialno='emulator-5556') in viewclient.py.
Hey,
I have simple program that does click menu only. But i cannot connect the view client. The paths are set to be correct. ANDROID_VIEW_CLIENT_HOME = C:\android-sdk-win\AndroidViewClient-master\AndroidViewClient ANDROID_HOME = C:\android-sdk-win
My program is something like this:
import os import sys
try: sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src')) except: pass from com.dtmilano.android.viewclient import ViewClient
device, serialno = ViewClient.connectToDeviceOrExit(serialno='emulator-5556') vc = ViewClient(device, serialno) print '>>> Pressing home' device.press('KEYCODE_MENU')
It keeps giving me error that ADB server version is incorrect, when it goes to device, serialno = ViewClient.connectToDeviceOrExit(serialno='emulator-5556') in viewclient.py.
Waiting for your reply