I am currently creating a chat application. I tried different solutions and I could not get them to work. Here is my current code:
public void callListView() {
// GET USER LIST
setListAdapter (new SimpleAdapter(
Messages.this, ListOfMsg,
R.layout.messages_list_item, new String[] {
"name",
"message"
},
new int[] {
R.id.sname,
R.id.message
}
));
}
How do I limit the data I get up to 25 items only? And what will I do to retrieve more data when I am scrolling up?
Thanks in advance.