On Wednesday, February 16, 2011 10:04:09 AM UTC+1, Kostya Vasilyev wrote:
>
> Storing the value is your preference's responsibility.
>
> Typically, you have something like this in your preference:
>
>     public void setValue(int value) {
>         mValue = value;
>         persistInt(value);
>     }
>
> Where mValue is a type-specific member of your class, and persistInt() is a 
> helper method defined in Preference.
>
>
OK. I was exploring TreKing's initial suggestion. If I interpreted him 
correctly than I should be able to use a Preference instance, without 
subclassing it, and setting the on click handler on it to launch some 
activity and then handle the result of that activity in my 
PreferenceActivity. Handling the result would mean to me that I need to set 
that value in the Preference instance that was clicked. Perhaps that is not 
possible? Which would suggest that I need to sublclass Preference in order 
to create a contact picking preference.

:.:: mattias

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