0

I have created an sqlite databse and put it into the assets folder. How can I access it? I have created a database helper class also, but my data is "not taking the path".

Plz help me

Thanks

jsalonen
  • 29,593
  • 15
  • 91
  • 109
user1061793
  • 1,047
  • 8
  • 19
  • 27
  • Please double-check your spelling before submitting a question. Also what do you mean your "data is not taking the path"? What path? Provide specifics! – jsalonen Dec 08 '11 at 12:50

1 Answers1

1

Copy your database file from /asset to internal databases directory /data/data/<package_name>/databases/, then use that database file.

Look at this SO question How to ship an Android application with a database?.

Also this tutorial Using your own SQLite database in Android applications

Community
  • 1
  • 1
user370305
  • 108,599
  • 23
  • 164
  • 151