I am currently working with android and sqlite database. I have attached the database to eclipse like File explorer/data/data/mypackage/database.. This is working fine. But when i am attaching the database to data/sdcard to run the app on mobile.
I got the null pointer exception. No tableName Abc is found. Can anybody tell me?? Why this is happening and how can i resolve this problem???
If you want to ship your application with prebuilt
database, you put it in yourassetsdirectory and on first run you copy it to/data/data/your.package/databasesdirectory.See https://stackoverflow.com/a/11601770/1300995 how to copy
databasefromassetsdirectory.