Search code examples
androidgetsmsinbox

Android: Get all sent sms? (outbox)


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.


Solution

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

    Use this Uri query

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