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的更多相关文章

  1. Android API之Telephony.Sms

    Telephony.Sms Contains all text based SMS messages. 包含基于SMS消息的所有文本. 1.sms表结构. _ID _id INTEGER(long) ...

  2. Android API 指南

    原文链接:http://android.eoe.cn/topic/android_sdk Android API 指南 - Android API Guides 应用的组成部分 - Applicati ...

  3. Android中的Telephony学习笔记(2)

    上一篇文章中学习了android.provider中Telephony类. 这一篇文章学习android.telephony包中的类,这些类是android提供给上层调用的API. 为监測基本电话信息 ...

  4. Android 如何在Eclipse中查看Android API源码 及 support包源码

    当我们阅读android API开发文档时候,上面的每个类,以及类的各个方法都是已经写好的方法和控件,可是我们只是在搬来使用,不知道它的原理,它是如何被实现的.android系统是开源的,所以谷歌官方 ...

  5. 搜索 录音功能 Android api

    搜索 录音功能 Android api http://www.oschina.net/android/47/ http://m.blog.csdn.net/blog/u011309801/406523 ...

  6. Android API Guides 学习笔记---Application Fundamentals(一)

    今天开始学习google官网上的API guides ,主要读了Application Fundamentals这一章节,此章节介绍了一个App的基本组成,共包括四大部分内容. 1.      App ...

  7. Instant Buy Android API Tutorial

    转自:https://developers.google.com/wallet/instant-buy/android/tutorial This tutorial guides you throug ...

  8. 【Android Api 翻译3】android api 完整翻译之Application Fundamentals (学习android必须知道的)

    Android应用程序是用Java编程语言编写的.Android SDK工具把应用程序的代码.数据和资源文件一起编译到一个Android程序包中(这个程序包是以.apk为后缀的归档文件),一个Andr ...

  9. 【Android Api 翻译1】Android Texting(2)Testing Fundamentals 测试基础篇

    Testing Fundamentals The Android testing framework, an integral part of the development environment, ...

随机推荐

  1. 阿里jstorm和storm区别

    转自:https://www.cnblogs.com/cn-leodream/p/6497277.html 看介绍文档貌似挺好:https://github.com/alibaba/jstorm   ...

  2. 7.4 服务远程暴露 - 创建Exporter与启动netty服务端

    为了安全:服务启动的ip全部使用10.10.10.10 远程服务的暴露总体步骤: 将ref封装为invoker 将invoker转换为exporter 启动netty 注册服务到zookeeper 订 ...

  3. sgd学习率选择问题

    关于使用SGD时如何选择初始的学习率(这里SGD是指带动量的SGD,momentum=0.9): 训练一个epoch,把学习率从一个较小的值(10-8)上升到一个较大的值(10),画出学习率(取log ...

  4. Js计算指定日期加上多少天,加多少月,加多少年的日期

    function DateAdd(interval,number,date) { /* * 功能:实现VBScript的DateAdd功能. * 参数:interval,字符串表达式,表示要添加的时间 ...

  5. CSS的50个代码片段

    1.css全局 html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a ...

  6. Lucene学习——IKAnalyzer中文分词

    一.环境 1.平台:MyEclipse8.5/JDK1.5 2.开源框架:Lucene3.6.1/IKAnalyzer2012 3.目的:测试IKAnalyzer的分词效果 二.开发调试 1.下载框架 ...

  7. js闭包的使用

    js闭包的使用 学习了:https://www.cnblogs.com/ZinCode/p/5551907.html 终于用上了闭包,还是有些生涩:好像柿子还没熟: function createLi ...

  8. Cognos11中报XQE-JDB-0004查找驱动程序类错误

    1:问题描述,在cognos11中创建了一个数据源连接TestData, 类型为Microsoft SQL Server (OLE DB) 操作如下: 同时配置了jdbc的连接方式,如下图所示 测试数 ...

  9. Android基础(五) Service全解析----看不见的Activity

    一.服务的介绍: 作为Android四大组件之中的一个,Service(服务)也常常运用于我们的日常使用中,它与Activity的差别在于:Service一直在后台执行.没实用户界面.所以绝不会到前台 ...

  10. “图片+标签”的社交玩法已经被验证?nice 宣布获得新一轮3600万美元融资【转载+整理】

    原文地址 有次上班做公交,期间听到一个老太太说:"我加你微信啊--",还有一次去看老中医,并交换了电话,可当我回去后发现这个大夫竟然加了我微信--这些都令我有点吃惊,连60.70岁 ...