Capture - connect code
Posted by matthew.green on 2012-04-28 23:26
public void connect() throws ApplicationConnectException {
try {
do {
System.out.println("==> Waiting until the emulator prepared");
WaitForDevice();
System.out.println("==> Starting AUT");
adbCommand = "am startservice -n edu.umd.cs.guitar/.Server -e AUT " + MAIN_CLASS;
RunADBCommand();
} while (!isConnedcted());
} catch (Exception e) {
e.printStackTrace();
System.out.println("Couldn't connect to ADR server");
}
}
If you wanna set the main class without Hardcoding too much you can use:
public void setMainClass(String S){
MAIN_CLASS = S;
}
try {
do {
System.out.println("==> Waiting until the emulator prepared");
WaitForDevice();
System.out.println("==> Starting AUT");
adbCommand = "am startservice -n edu.umd.cs.guitar/.Server -e AUT " + MAIN_CLASS;
RunADBCommand();
} while (!isConnedcted());
} catch (Exception e) {
e.printStackTrace();
System.out.println("Couldn't connect to ADR server");
}
}
If you wanna set the main class without Hardcoding too much you can use:
public void setMainClass(String S){
MAIN_CLASS = S;
}
Home / Developer API / Tour / Get a Project - Solutions for Bug & Issue Tracking, Collaboration Tools, Subversion Hosting, Git Hosting
Androidguitar is powered by Assembla.
7 Comments
By highvoltage81 on 2012-04-28 23:32
By highvoltage81 on 2012-04-29 00:18
By highvoltage81 on 2012-04-29 00:50
By highvoltage81 on 2012-04-29 01:16
By matthew.green on 2012-04-29 02:39
By highvoltage81 on 2012-04-29 02:52
By highvoltage81 on 2012-04-29 03:11