public static String getAbi() {
String[] supportedAbis = Build.SUPPORTED_ABIS;
/* The most preferred ABIs (Application Binary Interfaces)
is the first element in the list.*/
switch (supportedAbis[0]) {
case "armeabi": {
return "arm";
}
case "x86": {
return "x86";
}
case "mips": {
return "mips";
}
default: {
return "arm";
}
}
}
This could be useful when you include native libraries or binaries with your app to determine what CPU architecture device is.
#android #cpu #architecture #java #arm #intel
#android #cpu #architecture #java #arm #intel
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.