android.provider
Class Telephony.Threads
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.
Please submit a feedback, bug or feature