Curser cursor = db.rawQuery ("SELECT name FROM sqlite_master WHERE type='table' AND name = 'table name'", null);
cursor.moveToFirst();
if(cursor.getCount()>0){
return true;
}else{
return false;
}
Do it like this.
© 2024 OneMinuteCode. All rights reserved.