Access the internal phonebook

Posted by L0rdAli3n on Stack Overflow See other posts from Stack Overflow or by L0rdAli3n
Published on 2010-12-27T19:12:12Z Indexed on 2010/12/27 19:54 UTC
Read the original article Hit count: 248

Filed under:
|

For more than two days now, I'm trying to grab a list of all contacts, from the internal phonebook (no facebook-, gmail- or twittercontacts) with their family- and givenname.

I managed to get a list with all contacts, socialcontacts included. So I looked at the account_type and saw that on my HTC Desire they were all "com.htc.android.pcsc" and I was like "Great, I just have to filter the whole list". But then all people with non-htc android cellphones would be unable to use my app, if I would hardcode this filter.

Next idea was to let the user choose which account he wants to use, but unfortunately the "com.htc.android.pcsc" didn't appear in the list I got from the AccountManager?!?

So my question is: Is there any standardized way to access the internal phonebook? I'm really stuck with that and any hint is highly appreciated!

© Stack Overflow or respective owner

Related posts about android

Related posts about contactscontract