我正在寻找代码来获取 android 手机中发送的短信总数。如果我content://sms/sent/
用于查询数据库,我会得到手机中可用发送短信的短信计数,但我想要购买手机发送的总短信。
问问题
1373 次
2 回答
0
检索 Android 中的所有 SMS 消息
URI(content://sms/)
将用于检索所有 SMS 消息,我们也可以按消息类型进行拆分。
Uri allMessage = Uri.parse("content://sms/");
ContentResolver cr = getContentResolver();
Cursor c = cr.query(allMessage, null, null, null, null);
while (c.moveToNext()) {
String row = c.getString(1);
}
您可以在此处获取所有收件箱/发件箱
于 2012-12-27T09:25:24.970 回答
-1
改变你的 URI
使用这个: content://sms/
于 2012-12-27T09:17:06.823 回答