sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #51182
Re: [Question #679374]: ADBScreen: getDevices: not implemented/removed --- workaround
Question #679374 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/679374
Description changed to:
**************************** 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
---------------------------------------------------------------
Hi,
I am writing a PC application which allows to connect with multiple Android Emulator (I am using Nox player). Everything is just working well, except I cannot get the list of devices are connected to the PC. It is fine to get the first device by calling getDevice function from ADBScreen.
I saw that there is another function getDevices in this class but if it always return empty array. So my question is how can I get list of connected devices.
Thanks in advance,
Ngoc LE
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.