[Android] [PATCH 1/2] libvlc: add functions to query API level 4.2 and 4.3.
Felix Abecassis
felix.abecassis at gmail.com
Thu Jan 16 12:28:20 CET 2014
---
vlc-android/src/org/videolan/libvlc/LibVlcUtil.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java b/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
index e941ac8..17b7b62 100644
--- a/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
+++ b/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
@@ -63,6 +63,16 @@ public class LibVlcUtil {
return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN;
}
+ public static boolean isJellyBeanMR1OrLater()
+ {
+ return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR1;
+ }
+
+ public static boolean isJellyBeanMR2OrLater()
+ {
+ return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR2;
+ }
+
private static String errorMsg = null;
private static boolean isCompatible = false;
public static String getErrorMsg() {
--
1.8.3.2
More information about the Android
mailing list