I am developing a SMS application. I am able to send and receive SMS.
I have a tab named “Inbox”. When clicking on it, I show all conversations using URI content://mms-sms/conversations/.
When clicking any conversation, I want to show all SMS conversations between that person and me.
I have fetched all messages of that person from URI content://sms/inbox,
and my messages to that person from URI content://sms/sent.
Now,how can I show these messages in a custom list view so that My messages have prefix “me” and the other person’s messages have prefix “< name/number >” and are arranged according to date and time?
I’m trying to do something similar. Did you solve it? I think I should do it manually!
I think use the phone number as login (not all companies store the number on the phone) and then compare the message number with logged number.
On layout you can have something like this:
Whit logged number you can known if the number if from your number or from the other side number, so in code you can inflate the layout and with an “if” you can write your name or the contact name.
Something similar to this:
I don’t known if this is the best solution, but hope it helps.