I need help to change my phone language to English United States, using only code in an application.
Asked
Active
Viewed 617 times
-1
-
http://stackoverflow.com/a/12954037/3377857 – Klemens Morbe Mar 27 '14 at 13:01
-
You cannot change the language for the entire device. At best, using tricks like in the answers, you can have your own application use a different language. – CommonsWare Mar 27 '14 at 13:09
-
Are you sure that you can't change the device language using java code in an application – user3468609 Mar 27 '14 at 13:23
1 Answers
0
String languageToLoad = "de"; // your language
Locale locale = new Locale(languageToLoad);
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getBaseContext().getResources().updateConfiguration(config,
getBaseContext().getResources().getDisplayMetrics());

Lucian Novac
- 1,255
- 12
- 18