public static final class Telephony.Threads extends Object implements Telephony.ThreadsColumns
Modifier and Type | Field and Description |
---|---|
static int |
BROADCAST_THREAD
Thread type: broadcast thread.
|
static int |
COMMON_THREAD
Thread type: common thread.
|
static Uri |
CONTENT_URI
The
content:// style URL for this table, by conversation. |
static Uri |
OBSOLETE_THREADS_URI
The
content:// style URL for this table, for obsolete threads. |
ARCHIVED, DATE, ERROR, HAS_ATTACHMENT, MESSAGE_COUNT, READ, RECIPIENT_IDS, SNIPPET, SNIPPET_CHARSET, TYPE
_COUNT, _ID
Modifier and Type | Method and Description |
---|---|
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 . |
public static final Uri CONTENT_URI
content://
style URL for this table, by conversation.public static final Uri OBSOLETE_THREADS_URI
content://
style URL for this table, for obsolete threads.public static final int COMMON_THREAD
public static final int BROADCAST_THREAD
public static long getOrCreateThreadId(Context context, String recipient)
getOrCreateThreadId
.
It's convenient for use with SMS messages.context
- the context object to use.recipient
- the recipient to send to.public static long getOrCreateThreadId(Context context, Set<String> recipients)
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.