0

I have a sqlite file. I want to use it in my application. Can anyone share proper example as how I can do that.

I was not sure if .sqlite file can be used so I have also made .db file.

Gaurav
  • 1,700
  • 4
  • 22
  • 38

4 Answers4

0

Android databases are sqlite files, so you can just use the standard Android database API. http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html

http://www.screaming-penguin.com/node/7742

mah
  • 39,056
  • 9
  • 76
  • 93
0

I think you need this.. http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/

Sujit
  • 10,512
  • 9
  • 40
  • 45
0

Check the answer on this links for sample code:

SQLite Database "context" passed to adapter

Database not copying from assets

adding your own SQLite database to an android application

Community
  • 1
  • 1
Jaydeep Khamar
  • 5,975
  • 3
  • 32
  • 30