Locale locale = context.getResources().getConfiguration().locale;
String language = locale.getLanguage();
if (language.contains("en")){
inputStream = context.getResources().openRawResource(R.raw.dlt645_97dataitem_en);
}else {
inputStream = context.getResources().openRawResource(R.raw.dlt645_97dataitem);
}
android 获取当前系统的语言
最新推荐文章于 2023-05-25 16:02:42 发布