[Android] libvlc: add functions to query API level 4.2 and 4.3.
Felix Abecassis
git at videolan.org
Fri Jan 17 14:05:08 CET 2014
vlc-ports/android | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Thu Jan 16 12:28:20 2014 +0100| [a31a43db0637277f4b0749cc813c14f7c6de7bbd] | committer: Edward Wang
libvlc: add functions to query API level 4.2 and 4.3.
Signed-off-by: Edward Wang <edward.c.wang at compdigitec.com>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a31a43db0637277f4b0749cc813c14f7c6de7bbd
---
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() {
More information about the Android
mailing list