وقتی برنامه رو اجرا میکنم این اخطار میده هر کاری کردم درست نشد.
"Can't upgrade read-only database from version 0 to 1"
کد:
public List<ListView1> getAll(){
SQLiteDatabase db = getReadableDatabase();
List<ListView1> list = new ArrayList<>();
Cursor cursor = db.rawQuery("SELECT * FROM tbl1",null);
Log.e("???","khande shod");
if(cursor.moveToFirst()){
do{
ListView1 listView = ListView1.cursorToListView1(cursor);
list.add(listView);
}while(cursor.moveToNext());
}