android 获取当前系统的语言

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)