I have the following code in my application in res/xml/
preferences.xml:

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/
android">
<PreferenceCategory android:title="Wi-Fi settings">


   <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"/>

</PreferenceCategory>

</PreferenceScreen>

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?

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.

So my question is how do I open this preference in code and set its
value to the new downloaded value?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to