什么是在Android&QUOT值的含义,内容//短信/"内容提供商? [英] What are the meanings of the values in the Android "content//sms/" content provider?

查看:163
本文介绍了什么是在Android&QUOT值的含义,内容//短信/"内容提供商?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我问的内容//短信/我不知道是什么的一些字段的含义。他们是 -

I queried "content//sms/" and I don't know what some fields mean. They are -

  1. 线程ID
  2. 协议
  3. 状态
  4. Reply_Path_ present
  5. Service_Center

我检查他们LogCat中发现的值是这些:

I checked them in LogCat and found the values to be these:

  • 线程ID:1〜6等。
  • 协议:空/ 0
  • 状态:-1
  • Reply_Path_ present:空/ 0
  • Service_Center:空

请告诉我,这些值的含义。

Please tell me what the meanings of those values are.

推荐答案

您可以使用<一个href="http://developer.android.com/reference/android/database/Cursor.html#getColumnNames%28%29"><$c$c>Cursor.getColumnNames()检索任何内容提供商的列名,如:

You can use Cursor.getColumnNames() to retrieve the column names of any content provider, e.g.

ContentResolver contentResolver = getContentResolver();
Cursor cursor = contentResolver.query(
    Uri.parse("content://sms/inbox"), null, null, null, null);

String[] columnNames = cursor.getColumnNames();

有关内容://短信/收件箱这会产生_id,thread_id单,地址,人员,日期,协议,阅读,状态,类型,reply_path_ present,主题,正文,service_center,锁定了我的电话。

For content://sms/inbox this yields _id, thread_id, address, person, date, protocol, read, status, type, reply_path_present, subject, body, service_center, locked on my phone.

您也可以看看的<一个href="http://android.git.kernel.org/?p=platform/packages/providers/TelephonyProvider.git;a=blob_plain;f=src/com/android/providers/telephony/SmsProvider.java;hb=HEAD"><$c$c>SmsProvider但它不是公共API的一部分。

You can also have a look at the SmsProvider but it is not part of the public API.

这篇关于什么是在Android&QUOT值的含义,内容//短信/&QUOT;内容提供商?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆