0

I've read quite a lot on forums, and from that it seems that contacts and their phone numbers are stored on separate databases on android.

Could someone explain how data from these databases are linked to the ContactsContract.RawContact class, and how it is organized in ContactsContract.Contacts and ContactsContract.CommonDataKinds ? Also what is the difference between these two classes, when they represent a lot of similar information of a contact.

4

1 に答える 1

1

ContactsContractは1つのデータベースです。ただし、さまざまなテーブルをクエリできます。また、一部のテーブルには、結合によって他の情報が追加されています。したがって、ContactsContract.Dataテーブルにクエリを実行すると、 ContactsContract.RawContactsテーブルとContactsContract.Contactsテーブルにアクセスできます。

リンクを掘り下げると、たくさんの情報が見つかります。基本的に、データを持つRawContactで構成される連絡先があります。

于 2013-02-06T19:02:09.890 に答える