Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to query the database and display the result set in listview or gridview?

 
kushal dalal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a project in which i have to create a database and then add some items,that i have done.
Now i want to query the database and display the result set to some kind of listview or gridview.
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your Adapter will have to extend a cursor class like ResourceCursorAdapter. For starters, take a look at the following example which use Cursor Adapters:
Sharkey's List
Binding data from database to a checkbox

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic