[Android] Kill an error about the wrong targetAPI

Jean-Baptiste Kempf git at videolan.org
Mon Oct 15 14:16:17 CEST 2012


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Oct 15 14:10:38 2012 +0200| [123a08c453a7d2aa9311ef3c5ddbd90f820e89dd] | committer: Jean-Baptiste Kempf

Kill an error about the wrong targetAPI

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=123a08c453a7d2aa9311ef3c5ddbd90f820e89dd
---

 vlc-android/src/org/videolan/vlc/Util.java |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/Util.java b/vlc-android/src/org/videolan/vlc/Util.java
index 017a217..8cc05e9 100644
--- a/vlc-android/src/org/videolan/vlc/Util.java
+++ b/vlc-android/src/org/videolan/vlc/Util.java
@@ -33,6 +33,7 @@ import java.util.HashSet;
 import java.util.Locale;
 import java.util.Properties;
 
+import android.annotation.TargetApi;
 import android.content.Context;
 import android.graphics.Bitmap;
 import android.net.Uri;
@@ -239,6 +240,7 @@ public class Util {
         return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN;
     }
 
+    @TargetApi(9)
     public static boolean hasExternalStorage() {
         return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED) ||
                 !Util.isGingerbreadOrLater() ||



More information about the Android mailing list