Android API之Telephony.Sms
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; |
|
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; |
|
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的更多相关文章
- Android API之Telephony.Threads
1. Telephony.ThreadsColumns Columns for the "threads" table used by MMS and SMS. 在Telephon ...
- Android 4.4 (KitKat) SMS Apis Change——Android 4.4的一个重大变化
Android团队通过Android开发博客透漏今年会放出Android 4.4 (KitKat) ,同时更新了 SMS 的部分API.博客上讲只有default SMS app才能对短信数据库有写权 ...
- 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, ...
随机推荐
- Android 应用程序之间内容分享详解(二)
转载请注明出处:http://blog.csdn.net/xiaanming/article/details/9428613 Android 应用程序之间内容分享详解(一) 之前给大家分享了你开发的应 ...
- CSS-返回顶部代码
现在的网站基本上都是长页面,多的有四五屏,少的话也有两三屏,页面太长有的时候为了提升用户体验,会在页面右边出现一个回到顶部的按钮,这样能快速回到顶部,以免在滑动页面出现视觉屏幕,回到顶部一般有四种方式 ...
- VB.NET,C#.NET调用Web Service,利用visual studio 的实现方法
下面是一篇文章比较详细,其实具体操作很简单,把Web Service服务地址,利用工具(VS2010),通过添加引用的形式,添加到项目中来就可以应用了. 大家如果这个地方不会操场的话,可以问问我QQ: ...
- HDU 4548 美素数 素数题解
本题就是能够直接打表的,推断能否够打表也须要技巧的: 1 推断最大的数值为1000000.百万下面的数打表都是能够的 2 能够线性预处理好.使用素数筛子法是能够接近线性预处理的. 故此能够打表了. 须 ...
- Android模仿三星手机系统滑动条滑动时滑块变大的特效
使用三星手机的过程中发现三星手机系统自带的滑动条有一个特效.比方调节亮度的滑动条.在滑动滑块的过程中,滑块会变大.功能非常小可是体验却非常好,于是决定做一个这种效果出来.好了废话不多说了,以下開始实现 ...
- 数据挖掘中 决策树算法实现——Bash
数据挖掘中 决策树算法实现——Bash 博客分类: 数据挖掘 决策树 bash 非递归实现 标准信息熵 数据挖掘决策树bash非递归实现标准信息熵 一.决策树简介: 关于决策树,几乎是数据挖掘分类算法 ...
- IntelliJ - idea15.0.2 破解方法
由于idea 15版本更换了注册方式,只能通过联网激活,所以现在不能通过简单的通用注册码进行离线注册了, 虽然可以继续用14版本,但是有新版本却无法尝试让强迫症也是异常抓狂. 通过度娘我找到了一个破解 ...
- 使用jstl报http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar错误
今天创建了一个maven项目,想使用jstl报http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the ...
- OS 获取用户相册。保存图片。编辑图片为圆形
// // ViewController.m // YunPhoto // // Created by qingyun on 3/4/14. // Copyright (c) 2014 qingyun ...
- LintCode: Flatten Binary Tree to Linked List
C++ Traverse /** * Definition of TreeNode: * class TreeNode { * public: * int val; * TreeNode *left, ...