|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.provider.Contacts.People
public static final class Contacts.People
This table contains people.
| Nested Class Summary | |
|---|---|
static class |
Contacts.People.ContactMethods
A subdirectory of a single person that contains all of their ContactMethods. |
static class |
Contacts.People.Extensions
The extensions for a person |
static class |
Contacts.People.Phones
A sub directory of a single person that contains all of their Phones. |
| Field Summary | |
|---|---|
static Uri |
CONTENT_FILTER_URI
The content:// style URL for filtering people by name. |
static String |
CONTENT_ITEM_TYPE
The MIME type of a CONTENT_URI subdirectory of a single
person. |
static String |
CONTENT_TYPE
The MIME type of CONTENT_URI providing a directory of
people. |
static Uri |
CONTENT_URI
The content:// style URL for this table |
static String |
DEFAULT_SORT_ORDER
The default sort order for this table |
static Uri |
DELETED_CONTENT_URI
The content:// style URL for the table that holds the deleted contacts. |
static String |
PRIMARY_EMAIL_ID
The ID of the persons preferred email. |
static String |
PRIMARY_ORGANIZATION_ID
The ID of the persons preferred organization. |
static String |
PRIMARY_PHONE_ID
The ID of the persons preferred phone number. |
| Fields inherited from interface android.provider.BaseColumns |
|---|
_COUNT, _ID |
| Fields inherited from interface android.provider.SyncConstValue |
|---|
_SYNC_ACCOUNT, _SYNC_DIRTY, _SYNC_ID, _SYNC_LOCAL_ID, _SYNC_MARK, _SYNC_TIME, _SYNC_VERSION, NON_SYNCABLE_ACCOUNT |
| Fields inherited from interface android.provider.Contacts.PeopleColumns |
|---|
CUSTOM_RINGTONE, DISPLAY_NAME, LAST_TIME_CONTACTED, NAME, NOTES, PHOTO_VERSION, SEND_TO_VOICEMAIL, STARRED, TIMES_CONTACTED |
| Fields inherited from interface android.provider.Contacts.PhonesColumns |
|---|
ISPRIMARY, LABEL, NUMBER, NUMBER_KEY, TYPE, TYPE_CUSTOM, TYPE_FAX_HOME, TYPE_FAX_WORK, TYPE_HOME, TYPE_MOBILE, TYPE_OTHER, TYPE_PAGER, TYPE_WORK |
| Fields inherited from interface android.provider.Contacts.PresenceColumns |
|---|
IM_ACCOUNT, IM_HANDLE, IM_PROTOCOL |
| Fields inherited from interface android.provider.Im.CommonPresenceColumns |
|---|
AVAILABLE, AWAY, DO_NOT_DISTURB, IDLE, INVISIBLE, OFFLINE, PRESENCE_CUSTOM_STATUS, PRESENCE_STATUS, PRIORITY |
| Method Summary | |
|---|---|
static Uri |
addToGroup(ContentResolver resolver,
long personId,
long groupId)
Adds a person to a group. |
static Uri |
addToGroup(ContentResolver resolver,
long personId,
String groupName)
Adds a person to a group referred to by name. |
static Uri |
addToMyContactsGroup(ContentResolver resolver,
long personId)
Adds a person to the My Contacts group. |
static Uri |
createPersonInMyContactsGroup(ContentResolver resolver,
ContentValues values)
Creates a new contacts and adds it to the "My Contacts" group. |
static Bitmap |
loadContactPhoto(Context context,
Uri person,
int placeholderImageResource,
BitmapFactory.Options options)
Opens an InputStream for the person's photo and returns the photo as a Bitmap. |
static void |
markAsContacted(ContentResolver resolver,
long personId)
Mark a person as having been contacted. |
static InputStream |
openContactPhotoInputStream(ContentResolver cr,
Uri person)
Opens an InputStream for the person's photo and returns the photo as a Bitmap. |
static Cursor |
queryGroups(ContentResolver resolver,
long person)
|
static void |
setPhotoData(ContentResolver cr,
Uri person,
byte[] data)
Set the photo for this person. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Uri CONTENT_URI
public static final Uri CONTENT_FILTER_URI
public static final Uri DELETED_CONTENT_URI
public static final String CONTENT_TYPE
CONTENT_URI providing a directory of
people.
public static final String CONTENT_ITEM_TYPE
CONTENT_URI subdirectory of a single
person.
public static final String DEFAULT_SORT_ORDER
public static final String PRIMARY_PHONE_ID
Type: INTEGER (foreign key to phones table on the _ID field)
public static final String PRIMARY_EMAIL_ID
Type: INTEGER (foreign key to contact_methods table on the _ID field)
public static final String PRIMARY_ORGANIZATION_ID
Type: INTEGER (foreign key to organizations table on the _ID field)
| Method Detail |
|---|
public static void markAsContacted(ContentResolver resolver,
long personId)
resolver - the ContentResolver to usepersonId - the person who was contacted
public static Uri addToMyContactsGroup(ContentResolver resolver,
long personId)
resolver - the resolver to usepersonId - the person to add to the group
IllegalStateException - if the My Contacts group can't be found
public static Uri addToGroup(ContentResolver resolver,
long personId,
String groupName)
resolver - the resolver to usepersonId - the person to add to the groupgroupName - the name of the group to add the contact to
IllegalStateException - if the group can't be found
public static Uri addToGroup(ContentResolver resolver,
long personId,
long groupId)
resolver - the resolver to usepersonId - the person to add to the groupgroupId - the group to add the person to
public static Uri createPersonInMyContactsGroup(ContentResolver resolver,
ContentValues values)
resolver - the ContentResolver to usevalues - the values to use when creating the contact
public static Cursor queryGroups(ContentResolver resolver,
long person)
public static void setPhotoData(ContentResolver cr,
Uri person,
byte[] data)
cr - the ContentResolver to useperson - the Uri of the person whose photo is to be updateddata - the byte[] that represents the photo
public static InputStream openContactPhotoInputStream(ContentResolver cr,
Uri person)
person - the person whose photo should be used
public static Bitmap loadContactPhoto(Context context,
Uri person,
int placeholderImageResource,
BitmapFactory.Options options)
context - the Contextperson - the person whose photo should be usedplaceholderImageResource - the image resource to use if the person doesn't
have a photooptions - the decoding options, can be set to null
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||