File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
src/processing/mode/android Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ public class AndroidPreprocessor extends PdePreprocessor {
4646 public static final String SMOOTH_REGEX =
4747 "(?:^|\\ s|;)smooth\\ s*\\ (\\ s*([^\\ s,]+)\\ s*\\ )\\ s*\\ ;" ;
4848
49+
50+ public AndroidPreprocessor (final String sketchName ) {
51+ super (sketchName );
52+ }
53+
54+
4955 public AndroidPreprocessor (final Sketch sketch ,
5056 final String packageName ) throws IOException {
5157 super (sketch .getName ());
@@ -278,4 +284,21 @@ public String[] getDefaultImports() {
278284 return androidImports;
279285 }
280286 */
287+
288+ public String [] getDefaultImports () {
289+ // String[] defs = super.getDefaultImports();
290+ // return defs;
291+ return new String [] {
292+ "java.util.HashMap" ,
293+ "java.util.ArrayList" ,
294+ "java.io.File" ,
295+ "java.io.BufferedReader" ,
296+ "java.io.PrintWriter" ,
297+ "java.io.InputStream" ,
298+ "java.io.OutputStream" ,
299+ "java.io.IOException" ,
300+ "android.app.Activity" ,
301+ "android.app.Fragment"
302+ };
303+ }
281304}
You can’t perform that action at this time.
0 commit comments