Possible Duplicate:
How to ship an Android application with a database?
I'm trying to develop an app that needs to read data from a database and display it to the user. Perhaps in the future I could add an option for users to leave comments on various articles, for which I'll need a server instead of SQLite
right?
But for reading data is it better to have a local database with 3k to 5k records in each table?
Secondly I'm a total newbie when it comes to Android and databases. I've dealt with PHP+MySQL
but it's not quite the same. Since the records are a lot, I'd like to enter them from a back-end (sqlitebrowser
) and copy the file from assets folder (done this already). I've tried creating a database helper class using tutorials online but that didn't work at all for me. I also tried creating a connection profile in Eclipse which kinda works when I tried using the SQL Scrapbook view. It doesn't give errors, but select query doesn't show anything in SQL
Results
Remember I do not want to create a new database, just copy the existing one from Assets to data/data/my.package/databases/
and read from there.