title: Android: How to get string in specific locale WITHOUT changing the current locale
body: <p>Use Case: Logging error messages as displayed to the user.</p>
  
  <p>However you don't want to have messages in your log that depend on the locale of the user's device.
  On the other hand you don't want to change the locale of the user's device just for your (technical) logging.
  Can this be achieved?
  I found a couple of potential solutions here on stackoverflow: </p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/9475589/how-to-get-string-from-different-locales-in-android">how to get string from different locales in Android?</a></li>
  <li><a href="https://stackoverflow.com/questions/10874589/can-i-access-to-resources-from-different-locale-android">Can I access to resources from different locale android?</a></li>
  <li><a href="https://stackoverflow.com/questions/6526201/get-string-from-default-locale-using-string-in-specific-locale">android - Get string from default locale using string in specific locale</a></li>
  <li>maybe even <a href="https://stackoverflow.com/questions/2264874/changing-locale-within-the-app-itself">android - Changing Locale within the app itself</a></li>
  </ul>
  
  <p>However, they all result in changing the locale of my device (until the next configuration change).</p>
  
  <p>Anyway, my current workaround is like so:</p>
  
  <pre><code>public String getStringInDefaultLocale(int resId) {
      Resources currentResources = getResources();
      AssetManager assets = currentResources.getAssets();
      DisplayMetrics metrics = currentResources.getDisplayMetrics();
      Configuration config = new Configuration(
              currentResources.getConfiguration());
      config.locale = DEFAULT_LOCALE;
      /*
       * Note: This (temporiarily) changes the devices locale! TODO find a
       * better way to get the string in the specific locale
       */
      Resources defaultLocaleResources = new Resources(assets, metrics,
              config);
      String string = defaultLocaleResources.getString(resId);
      // Restore device-specific locale
      new Resources(assets, metrics, currentResources.getConfiguration());
      return string;
  }
  </code></pre>
  
  <p>To be honest, I don't like this approach at all. It's not efficient and - thinking about concurrency and all that - it might result in some view in the "wrong" locale.</p>
  
  <p>So - Any ideas? Maybe this could be achieved using <a href="http://developer.android.com/reference/java/util/ResourceBundle.html" rel="noreferrer">ResourceBundle</a>s, just like in standard Java?</p>