How-to init a ListPreference to one of its values
<p>I'm trying to set a defaultValue to a ListPreference item.</p>

<p>Here is an sample of my preference.xml file:</p>

<pre><code>&lt;ListPreference android:key="notification_delay"
    android:title="@string/settings_push_delay"
    android:entries="@array/settings_push_delay_human_value"
    android:entryValues="@array/settings_push_delay_phone_value"
    android:defaultValue="????"&gt;
&lt;/ListPreference&gt;
</code></pre>

<p>The two arrays:</p>

<pre><code>&lt;string-array name="settings_push_delay_human_value"&gt;
    &lt;item&gt;every 5 minutes&lt;/item&gt;
    &lt;item&gt;every 10 minutes&lt;/item&gt;
    &lt;item&gt;every 15 minutes&lt;/item&gt;
&lt;/string-array&gt;
&lt;string-array
    name="settings_push_delay_phone_value"&gt;
    &lt;item&gt;300&lt;/item&gt;
    &lt;item&gt;600&lt;/item&gt;
    &lt;item&gt;900&lt;/item&gt;
&lt;/string-array&gt;
</code></pre>

<p>When i go into the preference activity, no item of the ListPreference is selected. I've tried to set an int value like 1 in the "android:defaultValue" fied to select "10 minutes" but it does not work.</p>

<pre><code>&lt;ListPreference android:key="notification_delay"
    android:title="@string/settings_push_delay"
    android:entries="@array/settings_push_delay_human_value"
    android:entryValues="@array/settings_push_delay_phone_value"
    android:defaultValue="1"&gt;
&lt;/ListPreference&gt;
</code></pre>

<p>Any Idea?</p>
