1

Android Application change language when waking from sleep

view story
linux-howto

http://stackoverflow.com – I have problem, with my application. I'm giving users an option to change language. That works great using the following code: public void jezik_slo(View view) { Locale locale = new Locale("SI_sl"); Locale.setDefault(locale); Configuration config = new Configuration(); config.locale = locale; this.getApplicationContext().getResources().updateConfiguration(config, null); } public void jezik_ang(View view) { Locale locale = new Locale("en_US"); Locale.setDefault(locale); Configuration config = new Configuration(); config.locale = locale; this.g (HowTos)