diff --git a/app/src/processing/mode/android/AVD.java b/app/src/processing/mode/android/AVD.java
index a52e08d6a..e51d5b493 100644
--- a/app/src/processing/mode/android/AVD.java
+++ b/app/src/processing/mode/android/AVD.java
@@ -12,12 +12,12 @@ import processing.core.PApplet;
public class AVD {
static private final String AVD_CREATE_PRIMARY =
"An error occurred while running “android create avd”";
-
- static private final String AVD_CREATE_SECONDARY =
+
+ static private final String AVD_CREATE_SECONDARY =
"The default Android emulator could not be set up. Make sure
" +
"that the Android SDK is installed properly, and that the
" +
"Android and Google APIs are installed for level " + AndroidBuild.sdkVersion + ".
" +
- "(Between you and me, occasionally, this error is a red herring,
" +
+ "(Between you and me, occasionally, this error is a red herring,
" +
"and your sketch may be launching shortly.)";
static private final String AVD_LOAD_PRIMARY =
@@ -27,11 +27,11 @@ public class AVD {
"or that the Processing AVD should be deleted (it will
" +
"automatically re-created the next time you run Processing).
" +
"Open the Android SDK manager to check for any errors.";
-
- static private final String AVD_TARGET_PRIMARY =
+
+ static private final String AVD_TARGET_PRIMARY =
"The Google APIs are not installed properly";
static private final String AVD_TARGET_SECONDARY =
- "Please re-read the installation instructions for Processing
" +
+ "Please re-read the installation instructions for Processing
" +
"found at http://android.processing.org and try again.";
static final String DEFAULT_SKIN = "WVGA800";
@@ -48,7 +48,7 @@ public class AVD {
"Processing-0" + Base.REVISION,
"Google Inc.:Google APIs:" + AndroidBuild.sdkVersion);
//AndroidBuild.sdkTarget);
-
+
static ArrayList avdList;
static ArrayList badList;
// static ArrayList skinList;
@@ -112,7 +112,7 @@ public class AVD {
}
return false;
}
-
+
/** Return true if this AVD was on the bad list. */
protected boolean badness() {
@@ -133,10 +133,10 @@ public class AVD {
"-c", "64M",
"-s", DEFAULT_SKIN
};
-
+
// Set the list to null so that exists() will check again
avdList = null;
-
+
final ProcessHelper p = new ProcessHelper(params);
try {
final ProcessResult createAvdResult = p.execute();
@@ -156,7 +156,7 @@ public class AVD {
}
//System.err.println(createAvdResult);
} catch (final InterruptedException ie) { }
-
+
return false;
}
diff --git a/app/src/processing/mode/android/EmulatorController.java b/app/src/processing/mode/android/EmulatorController.java
index e50c899d4..25727b865 100644
--- a/app/src/processing/mode/android/EmulatorController.java
+++ b/app/src/processing/mode/android/EmulatorController.java
@@ -27,8 +27,8 @@ class EmulatorController {
private void setState(final State state) {
if (processing.app.Base.DEBUG) {
- System.out.println("Emulator state: " + state);
- new Exception().printStackTrace(System.out);
+ //System.out.println("Emulator state: " + state);
+ new Exception("setState(" + state + ") called").printStackTrace(System.out);
}
this.state = state;
}
@@ -105,16 +105,16 @@ class EmulatorController {
new Thread(new Runnable() {
public void run() {
try {
- // System.err.println("EmulatorController: Waiting for boot.");
+ //System.err.println("EmulatorController: Waiting for boot.");
while (state == State.WAITING_FOR_BOOT) {
if (processing.app.Base.DEBUG) {
System.out.println("sleeping for 2 seconds " + new java.util.Date().toString());
}
Thread.sleep(2000);
-// System.out.println("done sleeping");
+ //System.out.println("done sleeping");
for (final String device : Devices.list()) {
if (device.contains("emulator")) {
- // System.err.println("EmulatorController: Emulator booted.");
+ //System.err.println("EmulatorController: Emulator booted.");
setState(State.RUNNING);
return;
}