public static final class

HtcContactsContract.ThumbnailsSequence

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

Class Overview

Definition for thumbnail sequence table. This is a (data_photo_id, thumbnail sequence) map (A file name tracking table for HTC contacts photo management utility)

Summary

Constants
String CONTACT_ID
String CONTENT_ITEM_TYPE The MIME type of a CONTENT_URI subdirectory of a single thumbnails_sequence.
String CONTENT_ITEM_TYPE_RAW The MIME type of a CONTENT_URI subdirectory of a single raw contact thumbials_sequence
String CONTENT_TYPE The MIME type of CONTENT_URI providing a directory of thumbnails_sequence.
int EMPTY
String FILE_PREFIX
String OVERLAY_ICON
int SIZE_HD
int SIZE_HVGA
int SIZE_QHD
int SIZE_QVGA
int SIZE_WVGA
String TABLE_NAME Table name
String THUMBNAIL_EXTENSION
Fields
public static final Uri CONTENT_URI The content:// style URI for this table
public static final int ICON_SIZE
Public Methods
static Cursor getContactThumbnailCursor(long contactId, ContentResolver cr)
@return
static Cursor getRawcontactThumbnailCursor(long rawContactId, ContentResolver cr)
static String getThumbnailName(long _id)
A utility help to generate thumbnail file name@return
static Bitmap loadContactThumbnail(long contactId, BitmapFactory.Options opts, ContentResolver cr)
@return
static Bitmap loadImageFromFile(String source, BitmapFactory.Options opts)
@return
static Bitmap loadRawContactThumbnail(long rawContactId, BitmapFactory.Options opts, ContentResolver cr)
static long loadRawContactThumbnailId(long rawContactId, ContentResolver cr)
static Bitmap loadThumbnail(long thumbnailId, BitmapFactory.Options opts)
@return
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String CONTACT_ID

Constant Value: "contact_id"

public static final String CONTENT_ITEM_TYPE

The MIME type of a CONTENT_URI subdirectory of a single thumbnails_sequence.

Constant Value: "vnd.android.cursor.item/thumbnails_sequence"

public static final String CONTENT_ITEM_TYPE_RAW

The MIME type of a CONTENT_URI subdirectory of a single raw contact thumbials_sequence

Constant Value: "vnd.android.cursor.item/thumbnails_sequence-raw_contact"

public static final String CONTENT_TYPE

The MIME type of CONTENT_URI providing a directory of thumbnails_sequence.

Constant Value: "vnd.android.cursor.dir/thumbnails_sequence"

public static final int EMPTY

Constant Value: 0 (0x00000000)

public static final String FILE_PREFIX

Constant Value: "/data/data/com.android.providers.contacts/files/thumbnail_photo_"

public static final String OVERLAY_ICON

Constant Value: "overlay_icon"

public static final int SIZE_HD

Constant Value: 90 (0x0000005a)

public static final int SIZE_HVGA

Constant Value: 48 (0x00000030)

public static final int SIZE_QHD

Constant Value: 72 (0x00000048)

public static final int SIZE_QVGA

Constant Value: 40 (0x00000028)

public static final int SIZE_WVGA

Constant Value: 72 (0x00000048)

public static final String TABLE_NAME

Table name

Constant Value: "thumbnails_sequence"

public static final String THUMBNAIL_EXTENSION

Constant Value: ".png"

Fields

public static final Uri CONTENT_URI

The content:// style URI for this table

public static final int ICON_SIZE

Public Methods

public static Cursor getContactThumbnailCursor (long contactId, ContentResolver cr)

@return

public static Cursor getRawcontactThumbnailCursor (long rawContactId, ContentResolver cr)

public static String getThumbnailName (long _id)

A utility help to generate thumbnail file name@return

Parameters
_id The _id of thumbnail

public static Bitmap loadContactThumbnail (long contactId, BitmapFactory.Options opts, ContentResolver cr)

@return

public static Bitmap loadImageFromFile (String source, BitmapFactory.Options opts)

@return

public static Bitmap loadRawContactThumbnail (long rawContactId, BitmapFactory.Options opts, ContentResolver cr)

public static long loadRawContactThumbnailId (long rawContactId, ContentResolver cr)

public static Bitmap loadThumbnail (long thumbnailId, BitmapFactory.Options opts)

@return