When I save a preference in the preferences screen, it gets applied to other settings
<p>When I choose a city(@+id/prefs_city) it also gets applied to the distance(@+id/prefs_radius)</p>

<p>so it says New York in the radius settings.</p>

<p>What am I doing wrong?</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" &gt;

    &lt;PreferenceCategory android:title="Location Settings" &gt;
        &lt;ListPreference
            android:entries="@array/cities"
            android:entryValues="@array/cities_id"
            android:key="@+id/prefs_city"
            android:summary="This is used for deciding which stations to show"
            android:title="Your City" /&gt;
    &lt;/PreferenceCategory&gt;
    &lt;PreferenceCategory android:title="Distance" &gt;
        &lt;EditTextPreference
            android:defaultValue="500"
            android:key="@+id/prefs_radius"
            android:summary="Distance (in meters) within which to return Place results. The max is 50 000 meters"
            android:title="Search Radius" /&gt;
    &lt;/PreferenceCategory&gt;

&lt;/PreferenceScreen&gt;

public class MyPrefs extends PreferenceActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.prefs_screen);
    }
}
</code></pre>
