Android Question SMS retrieval problems

redbeardrob

Member
Licensed User
Longtime User
I am making an sms app.
When I try to populate the history of each conversation I am using the SmsMessages object to get a list of Sms objects.
I can parse out the information in each sms from the list, but I haven't been able to reliably flag incoming vs outgoing messages.
So far I've noticed that some start with a "+" in the Address, and Type "1" vs "2" seem to mark some of them, but I still can't flag all of the outgoing messages in each conversation and am wondering if there's a way to get that information so that I can correctly handle incoming vs outgoing.
I also can't find anywhere on here what the sms types are if that would solve it.
Thank you so much for any help.
 

MicroDrie

Well-Known Member
Licensed User
Longtime User
Android is more and more restricted to protect the user information. You can try to find information in the SMSmanager documentation.
 
Upvote 0
Top