I'm total beginner and I don't know how sql works inside android.
I'm having simple app game which needs database. During the game, app is displaying some records from database to users.
I have these questions:
1) does database and records still exists when user closes the app, and will the database and records still be available to the users?
2) code which creates database if it doesn't exists:
SQLiteDatabase mydatabase = openOrCreateDatabase("tabu",MODE_PRIVATE,null);
mydatabase.execSQL("CREATE TABLE IF NOT EXISTS rijeci(id INT, rijec VARCHAR, rijec1 VARCHAR, rijec2 VARCHAR, rijec3 VARCHAR, rijec4 VARCHAR);");
I put in the mail activity.java?
3) I want to insert some records into database which will be available o the users during the game (records will always be the same). My only idea is to insert values in database in main acitivty.java if they don't exist. But this does not seem like best solution because that code will be executed on every app start. Especially this will be bad solution if I need to insert large amount of data (something like 10000 records). What is better solution to insert records in database for once, before user even starts the app and never again?