jitendra
jitendra

Reputation: 31

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.

Upvotes: 3

Views: 1451

Answers (2)

mysuperass
mysuperass

Reputation: 1199

  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.

Upvotes: 1

Macarse
Macarse

Reputation: 93183

You will need to use a CursorAdapter.

Upvotes: 1

Related Questions