I'm wrote localization for ui texts using
String languageToLoad = "en_EN";
Locale locale = new Locale(languageToLoad);
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
context.getResources().updateConfiguration(config,context.getResources().getDisplayMetrics());
This good working for UI views, but my toasts don't have this. How fix it? Strings was created in strings.xml with Locale qualifier.
This is quite easy:
String string = getString(R.string.your_string_name);
If the string is saved in the right language folder it will be localised automatically.