@@ -36,6 +36,7 @@ public class AVD {
3636 "found at http://android.processing.org and try again." ;
3737
3838 static final String DEFAULT_SKIN = "WVGA800" ;
39+ static final String DEFAULT_SDCARD_SIZE = "64M" ;
3940
4041 /** Name of this avd. */
4142 protected String name ;
@@ -45,10 +46,9 @@ public class AVD {
4546
4647 /** Default virtual device used by Processing. */
4748 static public final AVD defaultAVD =
48- new AVD (//"Processing-Android-" + AndroidBuild.sdkVersion,
49- "Processing-0" + Base .REVISION ,
50- "Google Inc.:Google APIs:" + AndroidBuild .sdkVersion );
51- //AndroidBuild.sdkTarget);
49+ new AVD ("Processing-0" + Base .REVISION ,
50+ "android-" + AndroidBuild .sdkVersion );
51+ // "Google Inc.:Google APIs:" + AndroidBuild.sdkVersion);
5252
5353 static ArrayList <String > avdList ;
5454 static ArrayList <String > badList ;
@@ -134,8 +134,9 @@ protected boolean create(final AndroidSDK sdk) throws IOException {
134134 final String [] params = {
135135 sdk .getAndroidToolPath (),
136136 "create" , "avd" ,
137- "-n" , name , "-t" , target ,
138- "-c" , "64M" ,
137+ "-n" , name ,
138+ "-t" , target ,
139+ "-c" , DEFAULT_SDCARD_SIZE ,
139140 "-s" , DEFAULT_SKIN
140141 };
141142
@@ -144,7 +145,10 @@ protected boolean create(final AndroidSDK sdk) throws IOException {
144145
145146 final ProcessHelper p = new ProcessHelper (params );
146147 try {
147- final ProcessResult createAvdResult = p .execute ();
148+ // Passes 'no' to "Do you wish to create a custom hardware profile [no]"
149+ // System.out.println("CREATE AVD STARTING");
150+ final ProcessResult createAvdResult = p .execute ("no" );
151+ // System.out.println("CREATE AVD HAS COMPLETED");
148152 if (createAvdResult .succeeded ()) {
149153 return true ;
150154 }
0 commit comments