diff --git a/samples/ApiDemos/src/com/example/android/apis/content/ExternalStorage.java b/samples/ApiDemos/src/com/example/android/apis/content/ExternalStorage.java index 534a1c822..b76d1b42a 100644 --- a/samples/ApiDemos/src/com/example/android/apis/content/ExternalStorage.java +++ b/samples/ApiDemos/src/com/example/android/apis/content/ExternalStorage.java @@ -339,19 +339,14 @@ public class ExternalStorage extends Activity { // Get path for the file on external storage. If external // storage is not currently mounted this will fail. File file = new File(getExternalFilesDir(null), "DemoFile.jpg"); - if (file != null) { - file.delete(); - } + file.delete(); } boolean hasExternalStoragePrivateFile() { // Get path for the file on external storage. If external // storage is not currently mounted this will fail. File file = new File(getExternalFilesDir(null), "DemoFile.jpg"); - if (file != null) { - return file.exists(); - } - return false; + return file.exists(); } // END_INCLUDE(private_file) diff --git a/sdk/platform_source.prop_template b/sdk/platform_source.prop_template index 0093ab133..9dc99a0a1 100644 --- a/sdk/platform_source.prop_template +++ b/sdk/platform_source.prop_template @@ -2,7 +2,7 @@ Pkg.Desc=Android SDK Platform ${PLATFORM_VERSION} Pkg.UserSrc=false Platform.Version=${PLATFORM_VERSION} Platform.CodeName= -Pkg.Revision=2 +Pkg.Revision=3 AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION} AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME} Layoutlib.Api=15