detect when processor doesn't have ARM NEON instructions and disable video then

This commit is contained in:
Simon Morlat 2011-04-19 10:54:37 +02:00
parent 857dd1503e
commit 5b9a6d1123

View file

@ -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();
}
}
}