public String getAndroidpnProperties(String key, String defaultValue) {
if (loadProperties() == null) {
return defaultValue;
}
return loadProperties().getProperty(key, defaultValue);
}
protected Properties loadProperties() {
Properties props = new Properties();
try {
int id = getApplicationContext().getResources().getIdentifier("androidpn", "raw", getApplicationContext().getPackageName());
props.load(getApplicationContext().getResources().openRawResource(id));
} catch (Exception e) {
}
return props;
}
android获取raw文件内容
最新推荐文章于 2024-07-07 03:21:44 发布