title: Language not changing in app Android Studio
body: <p>So basically i have a spinner that chooses between three languages, here's the code, my language does change but it appears it is loading the language just not the resources i have set for it.</p>
  
  <p><strong>My Code</strong></p>
  
  <pre><code>private void setLocale(String localeName){
              if (localeName.equalsIgnoreCase(""))
                  return;
              Resources resources = getResources();
              Locale locale = new Locale(localeName);
              Locale.setDefault(locale);
              android.content.res.Configuration config = new
                      android.content.res.Configuration();
              config.locale = locale;
              resources.updateConfiguration(config, resources.getDisplayMetrics());
              //restart base activity
              this.finish();
              this.startActivity(this.getIntent());
          }
  </code></pre>
  
  <p>One of the languages strings.xml file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;string name="app_name"&gt;Tabibi&lt;/string&gt;
      &lt;string name="already_have_an_account"&gt;تمتلك حساب؟&lt;/string&gt;
      &lt;string name="join"&gt;إنشاء حساب&lt;/string&gt;
      &lt;string name="login"&gt;تسجيل الدخول&lt;/string&gt;
      &lt;string name="language"&gt;اللغة&lt;/string&gt;
  &lt;/resources&gt;
  </code></pre>