title: Android how to get specific preference?
body: <p>I have the following code in my application in res/xml/preferences.xml:</p>
  
  <hr>
  
  <pre><code>&lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;PreferenceCategory android:title="Wi-Fi settings"&gt;
  
  
     &lt;EditTextPreference
              android:key="pref_voice_threshold_top"
              android:title="@string/title_pref_voicetopthreshold"
              android:dialogTitle="@string/dialog_title_pref_voicetopthreshold" 
              android:defaultValue="20"
              android:inputType="number"/&gt;
  
  &lt;/PreferenceCategory&gt;
  
  &lt;/PreferenceScreen&gt;
  </code></pre>
  
  <hr>
  
  <p>And I was wondering is it possible for me to then use this preference in code so I can update it via downloading an xml file?</p>
  
  <p>So I currently display the above preference in a PreferenceActivity, which works fine, however I want to be able to update the setting by downloading a new setting every week from the internet.</p>
  
  <p>So my question is how do I open this preference in code and set its value to the new downloaded value?</p>