Created
December 22, 2011 19:09
-
-
Save elyezer/1511455 to your computer and use it in GitHub Desktop.
Updating a preference value without reloading PreferenceActivity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get the preference | |
EditTextPreference textPreference = (EditTextPreference) super.findPreference("text_preference_key"); | |
// Change its value | |
textPreference.setText("Default Value"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment