0

How to get a group of data stored in database and view them in custom list-view?

For example, I have stored 48 item in my database and want to retrieve only 12 of them each time. Can anybody tell me how to do that?

Jason Evans
  • 28,906
  • 14
  • 90
  • 154
Tolen
  • 111
  • 9
  • Which database are you going to use – Mohsin Shaikh Aug 06 '13 at 11:58
  • 2
    `costume list-view`? What is that? – gunar Aug 06 '13 at 11:59
  • @ :Mohsin Shaikh : I am using a database using sqllite I have created. – Tolen Aug 06 '13 at 12:07
  • @gunar: the costume list view in android which is extends from base adapter. – Tolen Aug 06 '13 at 12:08
  • Is that a public API? Or it belongs to your project? ... Looks like it was a typo ... – gunar Aug 06 '13 at 12:10
  • The original list-view displays only a text view . If anybody want to display more than that say an image or two text view ,his list view called costume list view and it is differ depends on the purpose of the list. – Tolen Aug 06 '13 at 12:16
  • Custom is different than Costume; stop using that, you're hilarious! If you want to customize your ListView, then there are a dozen of articles on how to do that. But you need to consider that you asked a specific question and we're trying to provide an answer for that, nothing else included :) – gunar Aug 06 '13 at 12:52
  • Sorry I meant to use Custom but the editor correct it to Costume – Tolen Aug 06 '13 at 13:05

1 Answers1

3

You may use the SQLite LIMIT. Here is related topic that discusses that.

Community
  • 1
  • 1
gunar
  • 14,660
  • 7
  • 56
  • 87