Is there any way to programmatically check whether armeabi, armeabi-v7a etc lib will be used by the device?
I'm guessing some combination of Build.CPU_ABI
and Build.CPU_ABI2
?
What is the most reliable way to check?
Is there any way to programmatically check whether armeabi, armeabi-v7a etc lib will be used by the device?
I'm guessing some combination of Build.CPU_ABI
and Build.CPU_ABI2
?
What is the most reliable way to check?
Just do the equivalent on native code of this Java call:
String arch = System.getProperty("os.arch");
Something like this, example here:
jclass jc_system = (* env)->FindClass(env, "java/lang/System");
jmethodID jmid_get_property = (*env)->GetStaticMethodID(env, jc_system, "getProperty", "(java/lang/String)java/lang/String");
jstring js_arch_property = (jstring) (* env)->CallStaticObjectMethod(env, jc_system, jmid_get_property, "os.arch");
// Have fun!
Update 1
Ups I forgot to convert "os.arch" (const char*) to jstring, here is how.