I have database called test.sqlite and i have copied the database file in to data/data/packagename/databases folder using DDMS.
When i am trying read the database i am getting the error as table does not exist
What is the solution to access the table.
Below is my code to access database.
SQLiteDatabase myDB = this.openOrCreateDatabase("test.sqlite",
SQLiteDatabase.OPEN_READWRITE, null);
Cursor c = myDB.rawQuery("select a, b from abc", null);
Thanks for the replies finally it is working. i did a mistake actually i copied the database file in data/data/packagename so it is caused the error.
What i did was again copied the database in data/data/packagename/databases folder.
This is working fine for me.