On Wednesday, February 16, 2011 2:18:35 AM UTC+1, TreKing wrote:
>
> On Mon, Feb 14, 2011 at 2:50 AM, Mattias Svala <[email protected]> wrote:
>
>> I'm looking for a way to select a contact from the phones list of contacts 
>> in a PreferenceActivity. What is the best way to approach this?
>
>
> "Best" is always arguable. One way is to launch a "contact chooser" 
> activity on clicking the specified preference with startActivityForResult, 
> then handling the result in onActivityResult in the PreferenceActivity 
> itself.
>

OK. I think that is the way to go too. I have made some attempts at 
implementing this but has so far not found a way to set the actual 
preference value when I get hold of the picked contact. Preference does not 
have a setValue method. How did you envision this to be done?
 
:.:: mattias

>
>

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

Reply via email to