| java.lang.Object | |
| ↳ | android.provider.ContactsContract.RawContactsEntity |
Constants for the raw contacts entities table, which can be thought of as an outer join of the raw_contacts table with the data table. It is a strictly read-only table.
If a raw contact has data rows, the RawContactsEntity cursor will contain a one row for each data row. If the raw contact has no data rows, the cursor will still contain one row with the raw contact-level information and nulls for data columns.
Uri entityUri = ContentUris.withAppendedId(RawContactsEntity.CONTENT_URI, rawContactId);
Cursor c = getContentResolver().query(entityUri,
new String[]{
RawContactsEntity.SOURCE_ID,
RawContactsEntity.DATA_ID,
RawContactsEntity.MIMETYPE,
RawContactsEntity.DATA1
}, null, null, null);
try {
while (c.moveToNext()) {
String sourceId = c.getString(0);
if (!c.isNull(1)) {
String mimeType = c.getString(2);
String data = c.getString(3);
...
}
}
} finally {
c.close();
}
| RawContacts | |||
|---|---|---|---|
| long | _ID |
read-only | Raw contact row ID. See ContactsContract.RawContacts. |
| long | CONTACT_ID |
read-only | See ContactsContract.RawContacts. |
| int | AGGREGATION_MODE |
read-only | See ContactsContract.RawContacts. |
| int | DELETED |
read-only | See ContactsContract.RawContacts. |
| Data | |||
|---|---|---|---|
| long | DATA_ID |
read-only | Data row ID. It will be null if the raw contact has no data rows. |
| String | MIMETYPE |
read-only | See ContactsContract.Data. |
| int | IS_PRIMARY |
read-only | See ContactsContract.Data. |
| int | IS_SUPER_PRIMARY |
read-only | See ContactsContract.Data. |
| int | DATA_VERSION |
read-only | See ContactsContract.Data. |
| Any type |
DATA1DATA2DATA3DATA4DATA5DATA6DATA7DATA8DATA9DATA10DATA11DATA12DATA13DATA14DATA15
|
read-only | See ContactsContract.Data. |
| Any type |
SYNC1SYNC2SYNC3SYNC4
|
read-only | See ContactsContract.Data. |
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | CONTENT_TYPE | The MIME type of CONTENT_URI providing a directory of raw contact entities. |
|||||||||
| Uri | CONTENT_URI | The content:// style URI for this table | |||||||||
| String | DATA_ID | The ID of the data column. | |||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.provider.BaseColumns
| |||||||||||
From interface
android.provider.ContactsContract.DataColumns
| |||||||||||
From interface
android.provider.ContactsContract.RawContactsColumns
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
The MIME type of CONTENT_URI providing a directory of raw contact entities.
The ID of the data column. The value will be null if this raw contact has no data rows.
Type: INTEGER