标签:
#include <cutils/properties.h>
// ...
int myfunction() {
char sdk_ver_str[PROPERTY_VALUE_MAX] = "0";
property_get("ro.build.version.sdk", sdk_ver_str, "0");
sdk_ver = atoi(sdk_ver_str);
// ...
}
Getting OS version with NDK in C
标签:
原文地址:http://www.cnblogs.com/wanqieddy/p/4377544.html