I have to agree that the documentation on ContactsContract isn't bad,
but it's a lot to understand, and it's not "simple."  It's pretty
unclear about the distinction between the _ID and whatever the other
specific user thing is.  It's not something that takes more than a day
or so to figure out, but it's heavily based on the content provider
interface rather than a simpler API.  Throw in contact joining, the
whole multiple tables thing, and a few other things and it ends up
being a somewhat complicated interface if you "just want to get the
names of some people."

In general, the actual ContactsContract documentation doesn't seem too
bad, it's actually a pretty okay place to look.

There are three levels, "data" is just the 'raw stuff' which might
correspond to the case where a single business man had given you a few
pieces of paper, each telling you a little about himself, maybe his
business card, and then a little piece of notebook paper with his home
phone number -- both pieces of paper give some information about that
person, but they're not literally the same card.  Imagine a file
cabinet where you took each individual person and associated them with
a little tab (or a Rolodex or something), and then after each tab put
all the pieces of paper associated with one person, so you saw the
aggregate information all at once, this is what the "contacts" table
lets you do, if I remember correctly.  I think there's another in
there too, and there are a host of other entries relating to status
updates, favorites, etc..

If you do find a super good comprehensive introduction (which I
suspect wouldn't be hard to find with a bit of googling) I'd like to
see the link.

kris

On Thu, Jan 12, 2012 at 1:46 PM, TreKing <[email protected]> wrote:
> On Wed, Jan 11, 2012 at 6:48 PM, Brad Kinnard <[email protected]> wrote:
>>
>> I have found a few posts here in the general area, but would really love
>> someone just to break it down as to how I can retrieve the contact name,
>> email and phone number, and store those in variables.
>
>
> Getting those values and saving them in variables appears fairly
> straightforward on the surface.
>
> You should break down what posts you found, why they're incomplete, what you
> don't understand, what you've tried, and where specifically you need help.
>
> -------------------------------------------------------------------------------------------------
> 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

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