i have a .db file with 2MB of size. i put it in assets folder in my project. And wrote the code as follow.but i got exception no table exits.please help me How to access .db file without copying into /databases.
db = openOrCreateDatabase("assets\\TDP.db", SQLiteDatabase.CREATE_IF_NECESSARY, null);
db.setVersion(1);
db.setLocale(Locale.getDefault());
db.setLockingEnabled(true);
// db.execSQL("create table TD_ASSEMBLY(name Text,password Text);");
Cursor cur = db.query("TD_ASSEMBLY",
null, null, null, null, null, null);
cur.moveToFirst();
while (cur.isAfterLast() == false) {
String first= cur.getString(0);
String second=cur.getString(1);
tx.append(first+" "+second);
cur.moveToNext();
}