title: How to set/update values of my preferences (PreferencesAcitivity)?Android
body: <p>I have a SettingsActivity ( extends PreferenceActivity ) , which is loaded from a preferences.xml file(res-->xml-->preferences.xml).</p>
  
  <p>The preferences.xml is this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;PreferenceCategory android:title="Patient&amp;apos;s Settings" &gt;
      &lt;EditTextPreference
          android:defaultValue="Not Set"
          android:key="patientMobile"
          android:title="mobile number" /&gt;
  &lt;/PreferenceCategory&gt;
  &lt;PreferenceCategory android:title="Doctor&amp;apos;s Settings" &gt;
      &lt;EditTextPreference
          android:defaultValue="Not Set"
          android:key="docEmail"
          android:title="e-mail" /&gt;
      &lt;EditTextPreference
          android:defaultValue="Not Set"
          android:key="docMobile"
          android:title="mobile number" /&gt;
  &lt;/PreferenceCategory&gt;
  &lt;PreferenceCategory android:title="Application Settings" &gt;
      &lt;SwitchPreference
          android:disableDependentsState="false"
          android:enabled="true"
          android:key="lang"
          android:summaryOff="English"
          android:summaryOn="Greek"
          android:switchTextOff="EN"
          android:switchTextOn="GR" /&gt;
  &lt;/PreferenceCategory&gt;
  </code></pre>
  
  <p></p>
  
  <p>How i can set/update/overwrite these values from another activity?</p>
  
  <p>I retreive information from a webservice and then i want to save these values and then to be seen from SettingsActivity:</p>
  
  <pre><code>1.patientMobile (string)
  2.docEmail      (string)
  3.docMobile     (string)
  </code></pre>