Android Question Get list of last sms message from all conversations

Juan Marrero

Active Member
Licensed User
Longtime User
Is there an easy and faster way to retrieve the last message from each sms conversation? I'm developing a SMS app and i found a way to get what i need but it takes like a minute to load. What i did was to retrieve all messages and run through all messages in a loop an detect the last message of a thread based on date and time of the messages and place them in buttons created on the fly based on number of sms conversations. It takes a while to load if you have a lot of sms stored.
 
Top