Android: Get all sent sms? (outbox)
Asked Answered
F

1

5

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.

Fra answered 19/5, 2012 at 18:14 Comment(1)
how to read sent items failed messagesDelphiadelphic
J
12

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

Use this Uri query

Uri.parse("content://sms/sent");
Jacksmelt answered 19/5, 2012 at 18:20 Comment(3)
Thank you, i will give it a shot in 3 minutes.Fra
I got it working. Since i need both the inbox and outbox i just did "content://sms" and i got both, however, it took me 10 times a long to do. I have received more sms than i have sent, why do does it take so much longer?Fra
How to get sent message which is in pending state?Chaetopod

© 2022 - 2024 — McMap. All rights reserved.