android how to add items dynamically to a listview like in chat application
I am trying to do a chat application. In my activity I have a `ListView` and at bottom `EditText` with a `Button` "Send"

Like in chat after writing in `EditText` and press the `Send Button` the text will appear in `ListView`. Two users are there.  If the last user is same then that text should add to the previous list.

How can i do that ?
here is my code below,


http://pastebin.com/hghj1fBJ
android how to add items dynamically to a listview like in chat application
===

I am trying to do a chat application. In my activity I have a `ListView` and at bottom `EditText` with a `Button` "Send"

Like in chat after writing in `EditText` and press the `Send Button` the text will appear in `ListView`. Two users are there.  If the last user is same then that text should add to the previous list.

How can i do that ?
here is my code below,


http://pastebin.com/hghj1fBJ