Build 1.0_r1(from source)

android.provider
Class Telephony.Threads

java.lang.Object
  extended by android.provider.Telephony.Threads
All Implemented Interfaces:
BaseColumns, Telephony.ThreadsColumns
Enclosing class:
Telephony

public static final class Telephony.Threads
extends Object
implements Telephony.ThreadsColumns

Helper functions for the "threads" table used by MMS and SMS.


Field Summary
static int BROADCAST_THREAD
           
static int COMMON_THREAD
           
static Uri CONTENT_URI
           
static Uri OBSOLETE_THREADS_URI
           
 
Fields inherited from interface android.provider.Telephony.ThreadsColumns
DATE, ERROR, MESSAGE_COUNT, READ, RECIPIENT_IDS, SNIPPET, SNIPPET_CHARSET, TYPE
 
Fields inherited from interface android.provider.BaseColumns
_COUNT, _ID
 
Method Summary
static long getOrCreateThreadId(Context context, Set<String> recipients)
          Given the recipients list and subject of an unsaved message, return its thread ID.
static long getOrCreateThreadId(Context context, String recipient)
          This is a single-recipient version of getOrCreateThreadId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_URI

public static final Uri CONTENT_URI

OBSOLETE_THREADS_URI

public static final Uri OBSOLETE_THREADS_URI

COMMON_THREAD

public static final int COMMON_THREAD
See Also:
Constant Field Values

BROADCAST_THREAD

public static final int BROADCAST_THREAD
See Also:
Constant Field Values
Method Detail

getOrCreateThreadId

public static long getOrCreateThreadId(Context context,
                                       String recipient)
This is a single-recipient version of getOrCreateThreadId. It's convenient for use with SMS messages.


getOrCreateThreadId

public static long getOrCreateThreadId(Context context,
                                       Set<String> recipients)
Given the recipients list and subject of an unsaved message, return its thread ID. If the message starts a new thread, allocate a new thread ID. Otherwise, use the appropriate existing thread ID. Find the thread ID of the same set of recipients (in any order, without any additions). If one is found, return it. Otherwise, return a unique thread ID.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature