This is my current code for creating the table:
@Override
public void onCreate(SQLiteDatabase db) {
// TODO Auto-generated method stub
String CREATE_USER_TABLE = "CREATE TABLE " + TABLE_USERS + "(" + KEY_USERID + " INTEGER PRIMARY KEY,"
+ KEY_USERNAME + " TEXT," + KEY_PASSWORD
+ " TEXT" + ")";
Log.d("debug",CREATE_USER_TABLE);
db.execSQL(CREATE_USER_TABLE);
}
I want to add another column that adds data but my app crashes when I do that. I added score INT
, and I changed the methods so that along with adding a password and username to the user, I can add a score too, but it doesn't work. What is the best way of making that work?
Also, I wish to add another table that stores images and I want to link the images to each user in the other table. How do I go about that?