Error inserting in SQLite database

前端 未结 5 1127
失恋的感觉
失恋的感觉 2021-01-28 11:30

I\'m trying to create the following database:

public static final String KEY_NAME = \"nombre\";
public static final String KEY_ROWID = \"_id\";
public static fin         


        
5条回答
  •  遥遥无期
    2021-01-28 11:44

    Hm...try this idea:

    Have you tried to allow writing to the database before you do the writing? SQLiteDatabase.OPEN_READWRITE?

    Like

    mDb=SQLiteDatabase.openDatabase(PATH, null, SQLiteDatabase.OPEN_READWRITE);?

提交回复
热议问题