Actually the question, I bring all this to ListPreferences like this: prefs.xml
<ListPreference android:title="@string/Title" android:summary="@string/Summary" android:key="PreferenceKey" android:defaultValue="VALUE_2" android:entries="@array/Entries" android:entryValues="@array/Values" />
array.xml:
<string-array name="Entries"> <item>@string/Value1</item> <item>@string/Value2</item> <item>@string/Value2</item> </string-array> <string-array name="Values"> <item>VALUE_1</item> <item>VALUE_2</item> <item>VALUE_3</item> </string-array>
How do I set the selected example from Entries value1? I searched the Internet, found nothing and decided to contact you.