I have a Preference Activity setup for my app, and am having a problem
with the EditTextPreference type. Is there a way to set the text that
is displayed within the text field in the popup dialog? I am able to
set up to it's initial default value, but once a user changes it at
least once, it always remains the last value the user input. The
reason I want this functionality is that I have a "Reset to Defaults"
button in my settings, and even after the defaults are reset, the
value that's in the dialog is always the value the user last input.
I've tried both of these and they don't work:
myEditTextPreference.setText("value I want to reset it to");
myEditTextPreference.getEditText().setText("value I want to reset it
to");
Is there a way to do this?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en