I am making a chat window there are two method one for sending message and one for receiving message.I want when i click on send button the method call and send message to server and a background thread create if there is any response message then add that message to the list.how can i do this?
I want if there is any response message then response message call a thread that check if there is any message receive then add this to listview if not then add nothing to the list.
can anyone help me?
1 Answer