title: Change language programatically in Android not working for APK generated from App bundle format
body: <p>I have a feature in my app where user can select various language at runtime from inside the app and it was working fine till I was deploying app on play store in APK format but it stopped working since i started deplyoing my app in <a href="https://developer.android.com/guide/app-bundle/" rel="nofollow noreferrer">App Bundle format</a>. Default string resources are not being replaced with the one that user has selected <strong>but when I change whole device language from device's settings option, then my app gets updated with new configured resources from play store and everything works fine</strong>.
  Is there any way I can enforce all the strings resouces to pushed along with base apk or any other way I am unaware of? Please help. The code I am using to change language is -</p>
  
  <pre><code>        Locale locale = new Locale(langCode); //langCode is the code of the language user has selected
          Locale.setDefault(locale);
  
          Resources res = parentContext.getResources();
          Configuration config = res.getConfiguration();
          config.setLocale(locale); // = locale;
          res.updateConfiguration(config, parentContext.getResources().getDisplayMetrics());
  </code></pre>