In SharedPReferences I have some ListPreference with the array of values.
Example:
<ListPreference
android:entries="@array/list_of_languages"
android:entryValues="@array/list_of_languages_values"
android:key="list_of_languages"
android:summary="@string/desc_language_specified"
android:title="@string/title_language_specified"
android:defaultValue="en_US" />
if i choose language “China” which is not supported can I write some message to display that this language is not supported? Or even better add text to SharedPreference preference.xml file?
You could always register a preference change listener for
ListPreferenceand in the callback you could set it back to default if it is not supported.