Android: Get all sent sms? (outbox)

我是研究僧i 提交于 2021-02-04 15:44:06

问题


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?

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.


回答1:


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

Use this Uri query

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


来源:https://stackoverflow.com/questions/10667718/android-get-all-sent-sms-outbox

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!