how to retrieve particular records from SQLite in android
问题 I need to get data from DB & displayed it as list with pagination. i.e. If i retrieved 4 items..i need to display first 2 items in first page. When i click next button.,remaining 2 items should be displayed which replaces old 2. How could i restrict data from DB as 2 like that? My code.. db.open(); // db.insertTitle("Money"); //db.insertTitle("make"); //db.insertTitle("make"); //db.insertTitle("make"); Cursor c = db.getAllTitles(); if (c.moveToFirst()) { do { String firstName = c.getString(c