• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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.
 
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

 
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!