Android:获取所有发送的短信?(发件箱)

编程入门 行业动态 更新时间:2024-10-20 20:36:26
本文介绍了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:获取所有发送的短信?(发件箱)

本文发布于:2023-11-12 12:05:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581458.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:短信   发件箱   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!