public static class

HtcContactsContract.Contacts

extends Object
java.lang.Object
   ↳ android.provider.HtcContactsContract.Contacts

Class Overview

Extension for the contacts table operation in ContactsContract, which contains additional account merge information

Summary

Constants
String ACCOUNT_AGGREGATED The raw contact id that this account has been merged from, id will be seperated by ','.
String ACCOUNT_COUNT The number of source account that this contact has been merged from.
String ACCOUNT_NAME Account name this contact belongs to.
String ACCOUNT_TYPE Account type this contact belongs to.
String DEFAULT_ACTION Hide from SDK
String EXT_ACCOUNT_TYPE Hide from SDK
String EXT_PHOTO_URL Hide from SDK
String INCLUDE_SIM_CONTACT_PARAMETER Hide from SDK
String INCLUDE_SIM_CONTACT_VALUE Hide from SDK
String SOURCE_ID Source ID this contact belongs to.
String STATUS_UPDATE_ID Hide from SDK
String VIP The extra field for the VIP column

Type: Integer/P>

Fields
public static final Uri CONTENT_URI The content:// style URI for this table.
public static final Uri GRUOP_FAVORITE_URI Hide from SDK
public static final Uri SIMPLE_CONTENT_URI
Public Methods
final static String addClauseOnlyPhones(String whereClause)
Build a where clause for CONTENT_URI to show only contacts those with at least one phone number.
final static String addClauseOnlyVisible(String whereClause)
Build a where clause for CONTENT_URI to show only visible contacts, which only includes those marking "display" in the display option.
static Intent getViewContactCardIntent(ContentResolver resolver, long contactId, boolean isSIM)
Create a view content intent by given uri@return
final static String includeMyContactClause(String whereClause)
Build a where clause for CONTENT_URI to include "My contact card" contact.
final static boolean setRingtoneToContact(ContentResolver resolver, Uri contactUri, String ringtone)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String ACCOUNT_AGGREGATED

The raw contact id that this account has been merged from, id will be seperated by ','. For example, a contact that's merged of raw contact 2 and 4. This column will contain string value of 2,4

Constant Value: "account_aggregated"

public static final String ACCOUNT_COUNT

The number of source account that this contact has been merged from.

Constant Value: "account_count"

public static final String ACCOUNT_NAME

Account name this contact belongs to. This is only true if this account has not been merged.

Constant Value: "account_name"

public static final String ACCOUNT_TYPE

Account type this contact belongs to. This is only true if this account has not been merged. (should say it only makes sense if this account has not been marged)

Constant Value: "account_type"

public static final String DEFAULT_ACTION

Hide from SDK

Constant Value: "default_action"

public static final String EXT_ACCOUNT_TYPE

Hide from SDK

Constant Value: "ext_account_Type"

public static final String EXT_PHOTO_URL

Hide from SDK

Constant Value: "ext_photo_url"

public static final String INCLUDE_SIM_CONTACT_PARAMETER

Hide from SDK

Constant Value: "IncludeSIM"

public static final String INCLUDE_SIM_CONTACT_VALUE

Hide from SDK

Constant Value: "true"

public static final String SOURCE_ID

Source ID this contact belongs to. This is only true if this account has not been merged. (should say it only makes sense if this account has not been marged)

Constant Value: "sourceid"

public static final String STATUS_UPDATE_ID

Hide from SDK

Constant Value: "status_update_id"

public static final String VIP

The extra field for the VIP column

Type: Integer/P>

Constant Value: "vip"

Fields

public static final Uri CONTENT_URI

The content:// style URI for this table. Unlike the one in ContactsContract, this one provide returns more fields on query.

public static final Uri GRUOP_FAVORITE_URI

Hide from SDK

public static final Uri SIMPLE_CONTENT_URI

Public Methods

public static final String addClauseOnlyPhones (String whereClause)

Build a where clause for CONTENT_URI to show only contacts those with at least one phone number.

Parameters
whereClause input where clause to be appended
Returns
  • the new where clause

public static final String addClauseOnlyVisible (String whereClause)

Build a where clause for CONTENT_URI to show only visible contacts, which only includes those marking "display" in the display option.

Parameters
whereClause input where clause to be appended
Returns
  • the new where clause

public static Intent getViewContactCardIntent (ContentResolver resolver, long contactId, boolean isSIM)

Create a view content intent by given uri@return

Parameters
resolver The content resolver
contactId the contact is
isSIM It is a sim contact or not

public static final String includeMyContactClause (String whereClause)

Build a where clause for CONTENT_URI to include "My contact card" contact.

Parameters
whereClause input where clause to be appended
Returns
  • the where clause that includes the "My contact card" filter

public static final boolean setRingtoneToContact (ContentResolver resolver, Uri contactUri, String ringtone)