Skip to content

Instantly share code, notes, and snippets.

@elyezer
Created December 22, 2011 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elyezer/1511455 to your computer and use it in GitHub Desktop.
Save elyezer/1511455 to your computer and use it in GitHub Desktop.
Updating a preference value without reloading PreferenceActivity
// 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