I need to know if it is possible to select a specific resource locale for my language.
Instead of changing my phone's language setting, can I in code make use of it depending upon some conditions?
Here's a piece of code I wrote: A user should be able to change language and see its effect inside the app itself.
String appLocale = LanguageManager.getCurrentUserSelectedLanguage();
if (appLocale.equals("en" /*or "de" or "es" etc */)) {
ResourceBundle _resources = ResourceBundle.getBundle(BUNDLE_ID, BUNDLE_NAME);
localizedString = _resources.getString(key);
} ...
return localizedString;