cursor = db.rawQuery("SELECT name FROM sqlite_master WHERE type='table'", null);
if (cursor.moveToFirst()) {
while ( !cursor.isAfterLast() ) {
Toast.makeText(Dbinput.this, "Table Name=> "+cursor.getString(0), Toast.LENGTH_LONG).show();
cursor.moveToNext();
}
}