@@ -133,15 +133,28 @@ class AndroidSDK {
133
133
134
134
private static final String PROCESSING_FOR_ANDROID_URL =
135
135
"http://android.processing.org/" ;
136
-
136
+
137
+ private static final String WHATS_NEW_URL =
138
+ "http://android.processing.org/whatsnew.html" ;
139
+
137
140
private static final String DRIVER_INSTALL_URL =
138
141
"https://developer.android.com/studio/run/oem-usb.html#InstallingDriver" ;
139
142
140
143
private static final String SDK_INSTALL_MESSAGE =
141
144
"Processing just downloaded and installed the Android SDK succesfully. " +
142
145
"The Android mode is now ready to use!<br><br>" +
143
- "For more information (reference, examples, and tutorials) " +
144
- "visit the <a href=\" " + PROCESSING_FOR_ANDROID_URL + "\" >Processing for Android website</a>" ;
146
+ "For documentation, examples, and tutorials, " +
147
+ "visit the <a href=\" " + PROCESSING_FOR_ANDROID_URL + "\" >Processing for Android website</a>, and " +
148
+ "if you updated from version 3 of the mode, check the <a href=\" " + WHATS_NEW_URL + "\" >what's new page</a>." ;
149
+
150
+ private static final String SDK_EXISTS_TITLE = "SDK configured!" ;
151
+
152
+ private static final String SDK_EXISTS_MESSAGE =
153
+ "Processing will use the existing Android SDK. " +
154
+ "The Android mode is now ready to use!<br><br>" +
155
+ "For documentation, examples, and tutorials, " +
156
+ "visit the <a href=\" " + PROCESSING_FOR_ANDROID_URL + "\" >Processing for Android website</a>, and " +
157
+ "if you updated from version 3 of the mode, check the <a href=\" " + WHATS_NEW_URL + "\" >what's new page</a>." ;
145
158
146
159
private static final String DRIVER_INSTALL_MESSAGE = "<br><br>" +
147
160
"If you are planning to use Google Nexus devices, then you need the " +
@@ -414,6 +427,13 @@ public static AndroidSDK load(boolean checkEnvSDK, Frame editor) throws IOExcept
414
427
// gets knocked out later. For instance, by that pesky Eclipse,
415
428
// which nukes all env variables when launching from the IDE.
416
429
Preferences .set ("android.sdk.path" , sdkEnvPath );
430
+
431
+ // If we are here, it means that there was no SDK path in the preferences
432
+ // and the user wants to use the SDK found in the environment. This
433
+ // means we just installed the mode for the first time, so we show a
434
+ // welcome message with some useful info.
435
+ AndroidUtil .showMessage (SDK_EXISTS_TITLE , SDK_EXISTS_MESSAGE );
436
+
417
437
return androidSDK ;
418
438
} catch (final BadSDKException badEnv ) {
419
439
Preferences .unset ("android.sdk.path" );
0 commit comments