Jai Android
Jai Android

Reputation: 2171

What method to be used to retrieve data from SQLite in android?

Hello Everyone I am new bee in ANDROID so am getting problem in retrieving data from SQLite ,can anyone HELP me to know what method to be used to do so. Thanks

Upvotes: 0

Views: 1154

Answers (1)

Dinash
Dinash

Reputation: 3047

The best database example for Android that I found and used is available on devx.com

After going through that tutorial you will get some better idea. Steps to retrieve data are as follows:

  1. open database connection using the open method in the example.
  2. execute the query using db.query method. that will return a cursor to the returned records and then iterate the cursor to get through the returned records.

Hope it helps.

Upvotes: 1

Related Questions