I want to create and store a database for android. I am creating a football quiz game. I want to create a repository of questions and answers,and correct answer. I dont want it to be online but stored on the phone.My intention is to use math.random to create a random number to access the question. I have only got the UI up now. If i need to use mySQL or something what would be a good resource to learn that? TIA
Asked
Active
Viewed 128 times
-3
-
1Use SQLite for using database in mobile. – Vikas B L Feb 10 '14 at 05:31
-
You also can use db4o, because i think you will not have millions of questions. Its easy to use (but slower then sqllite). db4o is a object-relational-database. – Matthias H Feb 10 '14 at 05:39
-
2Or you could just google it before posting to stackoverflow – insomniac Feb 10 '14 at 05:41
2 Answers
0
You need to understand the Android SQLite Database.
http://developer.android.com/reference/android/database/package-summary.html
To create and maintain the database and more on the same:
http://www.vogella.com/tutorials/AndroidSQLite/article.html
http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/
The random number can be a primary id.

Pararth
- 8,114
- 4
- 34
- 51