mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
IDE now can launch apk on Android Virtual Devices
git-svn-id: svn://ultimatepp.org/upp/trunk@9576 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ca839d7efd
commit
791de64074
5 changed files with 50 additions and 27 deletions
|
|
@ -101,20 +101,21 @@ Vector<AndroidDevice> AndroidSDK::FindDevices() const
|
|||
|
||||
Vector<String> elements = Split(lines[i], " ");
|
||||
for(int j = 0; j < elements.GetCount(); j++) {
|
||||
if(j == 0) {
|
||||
if(j == 0)
|
||||
device.SetSerial(elements[j]);
|
||||
continue;
|
||||
}
|
||||
|
||||
Vector<String> element = Split(elements[j], ":");
|
||||
if(element.GetCount() == 2) {
|
||||
String tag = element[0];
|
||||
String data = element[1];
|
||||
if(tag == "usb")
|
||||
device.SetUsb(data);
|
||||
else
|
||||
if(tag == "model")
|
||||
device.SetModel(data);
|
||||
else if(j == 1)
|
||||
device.SetState(elements[j]);
|
||||
else {
|
||||
Vector<String> element = Split(elements[j], ":");
|
||||
if(element.GetCount() == 2) {
|
||||
String tag = element[0];
|
||||
String data = element[1];
|
||||
if(tag == "usb")
|
||||
device.SetUsb(data);
|
||||
else
|
||||
if(tag == "model")
|
||||
device.SetModel(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
devices.Add(device);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue