android sms 协议,Android“content // sms /”内容提供商中的值的含义是什么?

我查询“内容//短信/”,我不知道某些字段是什么意思.他们是 –

>线程ID

>协议

>状态

> Reply_Path_Present

> Service_Center

我在LogCat中检查了它们,发现这些值是:

>线程ID:1到6等.

>协议:null / 0

>状态:-1

> Reply_Path_Present:null / 0

> Service_Center:null

请告诉我这些价值观的含义是什么.

最佳答案:

ContentResolver contentResolver = getContentResolver();

Cursor cursor = contentResolver.query(

Uri.parse("content://sms/inbox"), null, null, null, null);

String[] columnNames = cursor.getColumnNames();

对于content:// sms / inbox,这会产生_id,thread_id,地址,人物,日期,协议,读取,状态,类型,reply_path_present,subject,body,service_center,锁定在我的手机上.

您也可以查看SmsProvider,但它不是公共API的一部分.

标签:android,sms,android-contentprovider

来源: https://codeday.me/bug/20190515/1111006.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值