-3

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

2 Answers2

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
0

You can use SQLite database which is inbuilt in android. For storing bulk data this post will help. Get the random number.

Community
  • 1
  • 1
Vikas B L
  • 397
  • 1
  • 10