How to read data from the assets folder sqlite database file with .sqlite extension in my Android application?
views:
729answers:
3
+1
A:
You will need to copy the database someplace else, such as to your project's databases directory. This example shows copying two files -- in your case, rather than a file as your source, it would be an InputStream
pointing to the asset.
CommonsWare
2010-04-09 11:31:14
Thanks a lot...i solved it..
Ashish Mishra
2010-04-14 09:41:05
A:
If you like more details (like I did), here is a good tutorial.
Ivo van der Wijk
2010-09-20 11:41:19
A:
If you are planning to create a new SQLite database then over ride and implement the onCreate() Method as shown in the tutorial.
But if you are using a SQLite database that is created by another external source and you are going to pull it down, then leave the onCreate() method empty.
franklins
2010-10-12 16:58:18