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.


> Do you know of some project that has implemented a this in some way.


I do not.


> Or do I need to subclass Preference myself?


Not unless you really want to get fancy.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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