Android API之Telephony.Threads
1. Telephony.ThreadsColumns
Columns for the "threads" table used by MMS and SMS.
在Telephony.ThreadsColumns接口中定义了一些字符串常量,每个常量的值都是数据库表threads的一个字段。
|
_ID |
"_id" |
INTEGER (long) |
The unique ID for a row. |
|
DATE |
"date" |
INTEGER (long) |
The date at which the thread was created. |
|
RECIPIENT_IDS |
"recipient_ids" |
TEXT |
A string encoding of the recipient IDs of the recipients of the message, in numerical order and separated by spaces. |
|
MESSAGE_COUNT |
"message_count" |
INTEGER |
The message count of the thread. |
|
READ |
"read" |
INTEGER |
Indicates whether all messages of the thread have been read. |
|
SNIPPET |
"snippet" |
TEXT |
The snippet of the latest message in the thread. |
|
SNIPPET_CHARSET |
"snippet_cs" |
INTEGER |
The charset of the snippet. |
|
TYPE |
"type" |
INTEGER |
Type of the thread, either Threads.COMMON_THREAD or Threads.BROADCAST_THREAD. |
|
ERROR |
"error" |
INTEGER |
Indicates whether there is a transmission error in the thread. |
|
HAS_ATTACHMENT |
"has_attachment" |
INTEGER |
Indicates whether this thread contains any attachments. |
2. 在Telephony.Threads类中定义threads.type的两个可选值。
public static final int COMMON_THREAD = 0;
public static final int BROADCAST_THREAD = 1;
3. 在Telephony.Threads中定义了一些常量。
private static final Uri THREAD_ID_CONTENT_URI = Uri.parse(
"content://mms-sms/threadID");
public static final Uri CONTENT_URI = Uri.withAppendedPath(
MmsSms.CONTENT_URI, "conversations");
public static final Uri OBSOLETE_THREADS_URI = Uri.withAppendedPath(
CONTENT_URI, "obsolete");
4. 定义Telephony.MmsSms类。
Contains all MMS and SMS messages.
5. 在Telephony.MmsSms中定义了一些URI常量。
public static final Uri CONTENT_URI = Uri.parse("content://mms-sms/");
public static final Uri CONTENT_CONVERSATIONS_URI = Uri.parse(
"content://mms-sms/conversations");
public static final Uri CONTENT_FILTER_BYPHONE_URI = Uri.parse(
"content://mms-sms/messages/byphone");
public static final Uri CONTENT_UNDELIVERED_URI = Uri.parse(
"content://mms-sms/undelivered");
public static final Uri CONTENT_DRAFT_URI = Uri.parse(
"content://mms-sms/draft");
public static final Uri CONTENT_LOCKED_URI = Uri.parse(
"content://mms-sms/locked");
public static final Uri SEARCH_URI = Uri.parse(
"content://mms-sms/search");
6. 在Telephony.Threads中定义了两个方法来获取或者创建ThreadId。
public static long getOrCreateThreadId(Context context, String recipient)
public static long getOrCreateThreadId(Context context, Set<String> recipients)
Android API之Telephony.Threads的更多相关文章
- Android API之Telephony.Sms
Telephony.Sms Contains all text based SMS messages. 包含基于SMS消息的所有文本. 1.sms表结构. _ID _id INTEGER(long) ...
- Android API 指南
原文链接:http://android.eoe.cn/topic/android_sdk Android API 指南 - Android API Guides 应用的组成部分 - Applicati ...
- Android中的Telephony学习笔记(2)
上一篇文章中学习了android.provider中Telephony类. 这一篇文章学习android.telephony包中的类,这些类是android提供给上层调用的API. 为监測基本电话信息 ...
- Android 如何在Eclipse中查看Android API源码 及 support包源码
当我们阅读android API开发文档时候,上面的每个类,以及类的各个方法都是已经写好的方法和控件,可是我们只是在搬来使用,不知道它的原理,它是如何被实现的.android系统是开源的,所以谷歌官方 ...
- 搜索 录音功能 Android api
搜索 录音功能 Android api http://www.oschina.net/android/47/ http://m.blog.csdn.net/blog/u011309801/406523 ...
- Android API Guides 学习笔记---Application Fundamentals(一)
今天开始学习google官网上的API guides ,主要读了Application Fundamentals这一章节,此章节介绍了一个App的基本组成,共包括四大部分内容. 1. App ...
- Instant Buy Android API Tutorial
转自:https://developers.google.com/wallet/instant-buy/android/tutorial This tutorial guides you throug ...
- 【Android Api 翻译3】android api 完整翻译之Application Fundamentals (学习android必须知道的)
Android应用程序是用Java编程语言编写的.Android SDK工具把应用程序的代码.数据和资源文件一起编译到一个Android程序包中(这个程序包是以.apk为后缀的归档文件),一个Andr ...
- 【Android Api 翻译1】Android Texting(2)Testing Fundamentals 测试基础篇
Testing Fundamentals The Android testing framework, an integral part of the development environment, ...
随机推荐
- 第二章 微服务网关基础组件 - zuul入门
一.zuul简介 1.作用 zuul使用一系列的filter实现以下功能 认证和安全 - 对每一个resource进行身份认证 追踪和监控 - 实时观察后端微服务的TPS.响应时间,失败数量等准确的信 ...
- 2、Python特征
Python特征 Python编程语言中的定位 脚本语言 高阶动态编程语言 简单易学 Python是一种代表简单主义思想的语言.Python的这种伪代码本质是它最大的优点之一.它使你能够专注于解决问题 ...
- [leetcode]Gray Code @ Python
原题地址:https://oj.leetcode.com/problems/gray-code/ 题意: The gray code is a binary numeral system where ...
- Search Insert Position leetcode java
Given a sorted array and a target value, return the index if the target is found. If not, return the ...
- js中各种跨域问题实战小结
什么是跨域?为什么要实现跨域呢? 这是因为JavaScript出于安全方面的考虑,不允许跨域调用其他页面的对象.也就是说只能访问同一个域中的资源.我觉得这就有必要了解下javascript中的同源 ...
- 技能|三次简化一张图:一招理解LSTM/GRU门控机制
作者 | 张皓 引言 RNN是深度学习中用于处理时序数据的关键技术, 目前已在自然语言处理, 语音识别, 视频识别等领域取得重要突破, 然而梯度消失现象制约着RNN的实际应用.LSTM和GRU是两种目 ...
- 转:UFLDL_Tutorial 笔记(deep learning绝佳的入门资料 )
http://blog.csdn.net/dinosoft/article/details/50103503 推荐一个deep learning绝佳的入门资料 * UFLDL(Unsupervised ...
- Docker实战之创建一个tomcat容器
一.Docker与虚拟机的区别 二.Docker学习步骤 2.1:安装宿主操作系统 在VMVare中安装了Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-62-generic ...
- linux 添加elasticsearch 开机重启(自启动)
在 /etc/init.d 文件夹下建立脚本 eg:data.sh #chkconfig: 2345 80 90#description:auto_run#!bin/bashexport JAVA_H ...
- mysql 批量数据循环插入
双重循环插入 DELIMITER ;; CREATE PROCEDURE test_insert() BEGIN DECLARE a INT DEFAULT 1; DECLARE b TINYINT ...