I am new to android. Right now im working with some sample applications using database. My application goes like this :
Having some contact names and number in DB. And displaying 10 names per each page. And having a next button which used to display another 10 names while clicking on. While launching the application i can display the first 10 names properly. When i click the next button it showing the same first 10 names in list.
How to show the another 10 names and further names while clicking hre next button.?
Here is my Query :
return mDb.rawQuery("SELECT contact_name FROM contacts LIMIT 10", null);
Please help me guys.
Thanks in advance.