Android get sms from inbox, optimized way to read all messages and group them

view full story

http://stackoverflow.com – Hi am implementing a SMS App, now am able to retrieve all messages with their respective contact info like display name, photo uri.. and am displaying them in a custom list where on item click takes you to respective discussion. Here my issues is the time taking to sync all these messages, I need to optimize this time. Each time i send a new message in the discussion view and go back to recent chats i need to only update the particular item, not the whole list. Here's my code: ReadSMS.java: public class ReadSMS { ArrayList<HashMap<Contact, ArrayList<OneComment>>> (HowTos)