Я хочу изменить язык приложения из настроек.Как изменить языковой стандарт приложения в настройках?
public boolean onPreferenceChange(Preference preference, Object value) {
String stringValue = value.toString();
if (preference instanceof ListPreference) {
// For list preferences, look up the correct display value in
// the preference's 'entries' list.
ListPreference listPreference = (ListPreference) preference;
int index = listPreference.findIndexOfValue(stringValue);
// Set the summary to reflect the new value.
preference.setSummary(index >= 0 ? listPreference.getEntries()[index]: null);
.............
Здесь, в разделе настроек, как мы можем получить доступ к конфигурациям и языку приложения, чтобы изменить его язык.
FYI, я перевел строки в значениях.
Является ли это дубликат http://stackoverflow.com/questions/13181847/change-the-locale-at-runtime? – k3b