From 5b9a6d1123a9f34ca5f4a6da6e92f5e32b9d7f6a Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 19 Apr 2011 10:54:37 +0200 Subject: [PATCH] detect when processor doesn't have ARM NEON instructions and disable video then --- Version.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Version.java b/Version.java index 8064cb176..9701b75c3 100644 --- a/Version.java +++ b/Version.java @@ -25,7 +25,7 @@ import android.os.Build; * @author Guillaume Beraudo */ public class Version { - + private static native boolean nativeHasNeon(); private static final int buildVersion = Integer.parseInt(Build.VERSION.SDK); // 8; // 2.2 @@ -50,6 +50,8 @@ public class Version { } catch (Throwable e) {} return false; } + public static boolean hasNeon(){ + return nativeHasNeon(); + } - -} \ No newline at end of file +}