In a previous tutorial, we were able to fetch and display chat conversations between verified users. We implemented this feature by querying the messages table from the MySQL database and returning the unique usernames that sent or received at least one message from the user that logged into the Android app. The conversations were listed in a ListView.
This tutorial continues the development of our Android chat application. Here, we’ll allow the receiving of text messages within conversations.
We’ll do this by binding an OnItemClickListener to each of the items in the ListView. When the user clicks a specific conversation, the messages sent or received within this conversation will be fetched and displayed.
Continue reading “Receiving Conversation Text Messages for an Android Chat Application”