public class HoneycombUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
getContactIdIndex(android.database.Cursor contactCursor)
Get the Data.CONTACT_ID index for PhoneNumberPicker.
|
static java.lang.String[] |
getContactProjection()
Get the CONTACT_PROJECTION for ContactPicker.
|
static android.net.Uri |
getContentUri()
Get the CONTENT_URI from ContactsContract to instantiate a ContactPicker.
|
static android.net.Uri |
getDataContentUri()
Get Data.CONTENT_URI for EmailAddressAdapter.
|
static android.database.Cursor |
getDataCursor(java.lang.String id,
android.app.Activity activityContext,
java.lang.String[] dataProjection)
Gets the dataCursor for ContactPicker and PhoneNumberPicker (used for Email and Phone).
|
static java.lang.String |
getDataMimeType()
Get Data.MIMETYPE for EmailAddressAdapter.
|
static java.lang.String[] |
getDataProjection()
Get the DATA_PROJECTION for ContactPicker and PhoneNumberPicker.
|
static java.lang.String |
getDisplayName()
Get Data.DISPLAY_NAME for EmailAddressAdapter.
|
static java.lang.String[] |
getEmailAdapterProjection()
Get the NEW_PROJECTION for EmailAddressAdapter.
|
static java.lang.String |
getEmailAddress()
Get Email.ADDRESS for EmailAddressAdapter.
|
static int |
getEmailIndex(android.database.Cursor dataCursor) |
static java.lang.String |
getEmailType()
Get Email.CONTENT_ITEM_TYPE.
|
static int |
getIdIndex(android.database.Cursor contactCursor)
Get the Contacts._ID index for ContactPicker.
|
static int |
getMimeIndex(android.database.Cursor dataCursor) |
static int |
getNameIndex(android.database.Cursor contactCursor)
Get the Contacts.DISPLAY_NAME index for ContactPicker.
|
static java.lang.String[] |
getNameProjection()
Get the NAME_PROJECTION for PhoneNumberPicker.
|
static android.net.Uri |
getPhoneContentUri()
Get the CONTENT_URI from Phone for PhoneNumberPicker.
|
static int |
getPhoneIndex(android.database.Cursor dataCursor) |
static java.lang.String |
getPhoneType()
Get Phone.CONTENT_ITEM_TYPE.
|
static int |
getPhotoIndex(android.database.Cursor contactCursor)
Get the Contacts.PHOTO_URI index for ContactPicker.
|
static int |
getThumbnailIndex(android.database.Cursor contactCursor)
Get the Contacts.PHOTO_THUMBNAIL_URI index for ContactPicker.
|
static java.lang.String |
getTimesContacted()
Get Data.TIMES_CONTACTED for EmailAddressAdapter.
|
static java.io.InputStream |
openContactPhotoInputStreamHelper(android.content.ContentResolver cr,
android.net.Uri contactUri)
Gets the contact photo InputStream for MediaUtil.
|
public static android.net.Uri getContentUri()
public static android.net.Uri getPhoneContentUri()
public static android.net.Uri getDataContentUri()
public static java.lang.String[] getContactProjection()
public static java.lang.String[] getNameProjection()
public static java.lang.String[] getDataProjection()
public static java.lang.String[] getEmailAdapterProjection()
public static int getIdIndex(android.database.Cursor contactCursor)
public static int getContactIdIndex(android.database.Cursor contactCursor)
public static int getNameIndex(android.database.Cursor contactCursor)
public static int getThumbnailIndex(android.database.Cursor contactCursor)
public static int getPhotoIndex(android.database.Cursor contactCursor)
public static int getPhoneIndex(android.database.Cursor dataCursor)
public static int getEmailIndex(android.database.Cursor dataCursor)
public static int getMimeIndex(android.database.Cursor dataCursor)
public static java.lang.String getPhoneType()
public static java.lang.String getEmailType()
public static java.lang.String getDisplayName()
public static java.lang.String getEmailAddress()
public static java.lang.String getDataMimeType()
public static android.database.Cursor getDataCursor(java.lang.String id, android.app.Activity activityContext, java.lang.String[] dataProjection)
public static java.io.InputStream openContactPhotoInputStreamHelper(android.content.ContentResolver cr, android.net.Uri contactUri)
public static java.lang.String getTimesContacted()