← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #679374]: ADBScreen getDevices function always return empty

 

Question #679374 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/679374

RaiMan proposed the following answer:
I just had a look into the code:
- I have removed the getDevices() method (makes no sense in the SikuliX context)
- for now (other priorities) there will not be a feature to list the attached devices

workaround:
devices = []
scr = ADBScreen()
while scr.isValid():
    devices.append(scr)
    scr = ADBScreen(len(devices))

print "attached devices:", len(devices)
n = 0
for scr in devices:
    print "%d = %s" % (n, scr)
    n += 1

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.