小编NSK*_*NSK的帖子

Locale未在Android 5.0 Lollipop中以编程方式设置

我的应用程序根据应用程序中的选定语言设置区域设置 到Kitkat我的代码工作正常.更新到Lollipop后,未设置区域设置.在这里,我粘贴我的代码来设置区域设置..

Locale locale = new Locale("de_DE");
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getBaseContext().getResources().updateConfiguration(config, null);
Run Code Online (Sandbox Code Playgroud)

android android-5.0-lollipop

3
推荐指数
1
解决办法
2510
查看次数

标签 统计

android ×1

android-5.0-lollipop ×1