diff --git a/android/todo.txt b/android/todo.txt index 524d67a2f..854ce9832 100644 --- a/android/todo.txt +++ b/android/todo.txt @@ -1,5 +1,5 @@ 0187 android - +X don't kill adb server each time that run is hit done with 0186 X move to Android 2.1 as the minimum requirement? diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index aac009722..d0db139ff 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -272,12 +272,12 @@ public class PApplet extends Applet * of your screen once the the applet is running. *
* This variable is not static because in the desktop version of Processing, - * not all instances of PApplet will necessarily be started on a screen of - * the same size. + * not all instances of PApplet will necessarily be started on a screen of + * the same size. */ public int screenWidth, screenHeight; - /** + /** * Use screenW and screenH instead. * @deprecated */ @@ -1509,7 +1509,11 @@ public class PApplet extends Applet // http://java.sun.com/j2se/1.4.2/docs/api/java/awt/doc-files/FocusSpec.html // Disabling for 0185, because it causes an assertion failure on OS X // http://code.google.com/p/processing/issues/detail?id=258 -// requestFocus(); + // requestFocus(); + + // Changing to this version for 0187 + // http://code.google.com/p/processing/issues/detail?id=279 + requestFocusInWindow(); } // wait for update & paint to happen before drawing next frame @@ -4093,8 +4097,8 @@ public class PApplet extends Applet // println("ps: " + f.getPSName()); return createFont("SansSerif", size, true, null); } - - + + public PFont createFont(String name, float size) { return createFont(name, size, true, null); } @@ -4110,7 +4114,7 @@ public class PApplet extends Applet * installed on the system, or from a .ttf or .otf that's inside * the data folder of this sketch. *
- * Many .otf fonts don't seem to be supported by Java, perhaps because + * Many .otf fonts don't seem to be supported by Java, perhaps because * they're CFF based? * * Font names are inconsistent across platforms and Java versions. @@ -4145,7 +4149,7 @@ public class PApplet extends Applet } else { baseFont = PFont.findFont(name); } - return new PFont(baseFont.deriveFont(size), smooth, charset, + return new PFont(baseFont.deriveFont(size), smooth, charset, stream != null); } catch (Exception e) { @@ -4883,7 +4887,7 @@ public class PApplet extends Applet return false; } return true; - + } catch (IOException e) { if (tempFile != null) { tempFile.delete(); @@ -5933,7 +5937,7 @@ public class PApplet extends Applet static protected HashMap