[Android] LibVlcUtil: add a isKitKatOrLater test function

Adrien Maglo git at videolan.org
Fri Jun 13 16:08:35 CEST 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri Jun 13 16:02:02 2014 +0200| [f57a132c259aac3bd742385f5069ee484c35827c] | committer: Adrien Maglo

LibVlcUtil: add a isKitKatOrLater test function

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

 vlc-android/src/org/videolan/libvlc/LibVlcUtil.java |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java b/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
index 17b7b62..062e384 100644
--- a/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
+++ b/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
@@ -73,6 +73,11 @@ public class LibVlcUtil {
         return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR2;
     }
 
+    public static boolean isKitKatOrLater()
+    {
+        return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT;
+    }
+
     private static String errorMsg = null;
     private static boolean isCompatible = false;
     public static String getErrorMsg() {



More information about the Android mailing list