title: How Can I Add One More Language Programmatically
body: <p>I want to add one more language to my app. I created 2nd string file, my Values file like that:</p>
  
  <pre><code>..
  values
    -strings
       -strings.xml
       -strings.xml(fr)
  </code></pre>
  
  <p>If phone's local language is English, my app's display language is English or
  If phone's local language is French, my app's display language is French. That's okay. But I want to add 2 button like English-French and I want to user sets app's language. How can I do that?</p>
  
  <p>I tried this code but I must recreate the Activity and I can't get display language code for control user selection on Login Activity.</p>
  
  <pre><code>Locale locale = new Locale("fr");
  Locale.setDefault(locale);
  Configuration config = new Configuration();
  config.locale = locale;
  getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics());
  finish();
  startActivity(getIntent());
  </code></pre>