Just changed my data that are hard-code into database to using SQLite Database Browser. Before I changed all my query works fine but errors occurs when I changed. I can\'t do th
You need to make a writable database if you want to insert values in database need to add these lines in constructor
DBHelper helper = new DBHelper (mCtx);
this.db = helper.getWritableDatabase();
public Restaurant(Context c)
{
myContext = c;
DBHelper helper = new DBHelper (mCtx);
this.db = helper.getWritableDatabase();
}