Android:获取所有发送的短信?(发件箱) [英] Android: Get all sent sms? (outbox)

查看:37
本文介绍了Android:获取所有发送的短信?(发件箱)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个应用程序来备份所有短信.已经研究了一段时间,我刚刚意识到我用来检索短信的方法只能获取我收到的短信(收件箱).

I'm writing an app to backup all text messages. Been working on it for a while and i just realized the method i'm using to retrieve sms' only gets the ones i got (the inbox).

是否有可能以任何方式获得发件箱?

Is it possible, in any way, to get the outbox?

如果它不在 Android API 中,是否可以从默认 SMS 应用程序中以某种方式获取它?即使不是每个人都使用它,它现在也能用,这有点紧急.

If it's not in the Android API, is it possible to get it from the default SMS app somehow? Even if not everybody uses it it will work for now, it's kind of urgent.

推荐答案

要获取发送的消息需要阅读sent-directory

to get the sent messages you need to read sent-directory

使用这个 Uri 查询

Use this Uri query

Uri.parse("content://sms/sent");

这篇关于Android:获取所有发送的短信?(发件箱)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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