Telephony.Sms

Contains all text based SMS messages. 包含基于SMS消息的所有文本。

1.sms表结构。

_ID

_id

INTEGER(long)

The unique ID for a row.

TYPE

type

INTEGER

消息的类型。有7个可选值。

int MESSAGE_TYPE_ALL    = 0;
int MESSAGE_TYPE_INBOX  = 1;
int MESSAGE_TYPE_SENT   = 2;
int MESSAGE_TYPE_DRAFT  = 3;
int MESSAGE_TYPE_OUTBOX = 4;
int MESSAGE_TYPE_FAILED = 5;
int MESSAGE_TYPE_QUEUED = 6;

THREAD_ID

thread_id

INTEGER

The thread ID of the message

ADDRESS

address

TEXT

The address of the other party

PERSON_ID

person

INTEGER(long)

The person ID of the sender

DATE

date

INTEGER(long)

The date the message was received

DATE_SENT

date_sent

INTEGER(long)

The date the message was sent

READ

read

INTEGER(boolean)

Has the message been read

SEEN

seen

INTEGER

Indicates whether this message has been seen by the user. The "seen" flag will be used to figure out whether we need to throw up a statusbar notification or not.

STATUS

status

INTEGER

The TP-Status value for the message, or -1 if no status has been received.

有4个可选值。

STATUS_NONE = -1;
STATUS_COMPLETE = 0;
STATUS_PENDING = 32;
STATUS_FAILED = 64;

SUBJECT

subject

TEXT

The subject of the message, if present

BODY

body

TEXT

The body of the message

PERSON

person

INTEGER(long)

The id of the sender of the conversation, if present

PROTOCOL

protocol

INTEGER

The protocol identifier code

REPLY_PATH_PRESENT

reply_path_present

INTEGER(boolean)

Whether the TP-Reply-Path bit was set on this message

SERVICE_CENTER

service_center

TEXT

The service center (SC) through which to send the message, if present

LOCKED

locked

INTEGER(boolean)

Has the message been locked?

ERROR_CODE

error_code

INTEGER

Error code associated with sending or receiving this message

META_DATA

meta_data

TEXT

Meta data used externally

2. 在Sms类中定义了CONTENT_URI。

public static final Uri CONTENT_URI = Uri.parse("content://sms");

3. 在Sms类中定义了DEFAULT_SORT_ORDER。

public static final String DEFAULT_SORT_ORDER = "date DESC";

Android API之Telephony.Sms的更多相关文章

  1. Android API之Telephony.Threads

    1. Telephony.ThreadsColumns Columns for the "threads" table used by MMS and SMS. 在Telephon ...

  2. Android 4.4 (KitKat) SMS Apis Change——Android 4.4的一个重大变化

    Android团队通过Android开发博客透漏今年会放出Android 4.4 (KitKat) ,同时更新了 SMS 的部分API.博客上讲只有default SMS app才能对短信数据库有写权 ...

  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. [leetcode]Anagrams @ Python

    原题地址:https://oj.leetcode.com/problems/anagrams/ 题意: Given an array of strings, return all groups of ...

  2. 10款CSS3按钮 - 程序员再也不用为按钮设计而发愁了...

    这次主要给大家分享10款风格各异的CSS3按钮,如果你希望你的页面也能有很炫的样式,那么我相信这10款CSS3按钮就非常适合你,而且每一款都整理了源代码供参考,一起来看看吧. 1.绚丽的CSS3发光按 ...

  3. 【Spark】开发Spark选择Java还是Scala?

    Spark-Java-Scala-哪种语言 spark java 支持_百度搜索 (1 封私信)Spark 中用 Scala 和 java 开发有什么区别? - 知乎 (1 封私信)Spark平台下, ...

  4. 强化Linux安全的10个技能

    1.找出不必要的服务 很明显,服务器上跑的服务,并不是每个都有用的.强烈建议检查并关掉不需要的服务,从而减少风险(多跑一个服务,就可能多几个漏洞). 查询运行在runlevel 3的服务列表: [af ...

  5. Linux源码包安装过程及注意事项

    众做周知RedHat Linux使用RPM包管理器安装rpm包,但是RPM包是由红帽编译打包的,通常相对于最新版落后了很多,甚至可能缺少我们所要使用的功能.如果你需要定制想要的软件功能.自定义安装路径 ...

  6. 解决THINKCMF后台文章的相册图集只能上传一个图片的问题

    遇到的问题: 最近使用了THINKCMF给客户开发了一个企业网站,客户在使用了一段时间后打电话说后台文章编辑页面有问题 经过沟通过知道,在后台文章编辑和添加页面相册图集每次只能上传一张图片   在跟客 ...

  7. 从头来之【iOS及历史版本特性介绍】

    iOS是apple公司的移动操作系统,在iPhone,iPad,iPod中应用,该名最初为Cisco的网络设备操作系统,后授权于Apple公司使用.下面介绍历史版本的特性. iOS1 最大特性是具有其 ...

  8. 【Python】使用geopy由经纬度找地理信息

    from geopy.geocoders import Nominatim geolocator = Nominatim() location = geolocator.reverse("3 ...

  9. iOS开发技巧 - 使用UIPickerView来选择值

    (Swift) import UIKit class ViewController: UIViewController, UIPickerViewDataSource { var picker: UI ...

  10. Android Webservices 返回多行多列数据(Dataset)

    对于之前从事.net或者java开发人员,习惯了从后台获取网格数据(多行多列DataTable),但转行从事android开发,难免会不习惯 Android调用Webservice时,如果返回值是一个 ...