I’ m developing an Android app wich requires me to use a Database.
After reading a while, i’ ve decided to use an SQLite database, i started reading how do i should work with it, but every book/tutorial/etc… develop an Updatable database by allowing the user to add information to it. (like a diary or a running time record app style).
I just need to create (i mean, like hardcoding) my database and query it. My database will not be updatable by user side.
I’ m pretty sure it should be an easy/dummy way to do it but i’m not finding it yet.
So, if anyone can help me, it would be awesome. 😉
Thanks.
Amet.
Please check the following link:
SQLite database tutorial with DAO and Content Provider.
You need only 2 classes:
public class MySQLiteHelper extends SQLiteOpenHelper {
}
public class CommentsDataSource {
}