title: how to force language in android application
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2264874/changing-locale-within-the-app-itself">Changing Locale within the app itself</a>  </p>
  </blockquote>
  
  
  
  <p>in my application I need to "force" language let's say that I have locale in english as default polish and finnish, according to <a href="https://stackoverflow.com/questions/5348618/multi-language-android-application">that post</a> I had created function posted also bellow, function is called in createActivity(), but the problem is it does not work.... any idea why? Any suggestions?</p>
  
  <pre><code>private void setLocale(String localeCode){
          Locale locale = new Locale(localeCode);
          Locale.setDefault(locale);
          Configuration config = new Configuration();
          config.locale = locale;
          getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics());
      }
  </code></pre>