问题
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