Skip to content Skip to sidebar Skip to footer

Showing Data In Gridview From Database

Does anyone know how to put the database entries into a gridview in android? Or is there a tutorial out there which explains how to do that.plz help me by giving complete example.

Solution 1:

You will need to use a CursorAdapter.

Solution 2:

  1. You need SQLiteOpenHelper for works (create, delete) with DB.

  2. You need ContentProvider for get data from DB and return it to adapter.

  3. You need CursorAdapter or SimpleCursorAdapter for fill cells of GridView.

Post a Comment for "Showing Data In Gridview From Database"