android - Change Preference value from non-PreferenceActivity/Fragment -
so alter value programatically findpreference("my_key") , preference's reference alter value.
what doing programatically not in preferenceactivity or preferencefragment on simple activity or fragment?
is possible preference reference (if so, how)? or should old school way getting sharedpreference reference, , using editor?
so alter value programatically findpreference("my_key") , preference's reference alter value.
that solely changing value represented in preference ui. fact happens perhaps update persisted value side effect, not purpose.
is possible preference reference
no.
or should old school way getting sharedpreference reference, , using editor?
yes.
android android-preferences
No comments:
Post a Comment