1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

SQLite Database Exception

Last Updated:

  1. bobv

    bobv New Member This Topic's Starter

    Nov 27, 2012
    Likes Received:
    I was successful in transferring data (one table has about 1300 records) from a mysql database into SQLite. I then used instructions from various threads, on various sites to successfully load that database into my Android application from the assets folder in Eclipse, which is a work in progress that I run on an the Nexus 7 emulator. It runs just fine on the emulator :D, but when I use adb to install the app onto my Nexus 7, I get an sqlitecantopendatabaseexception when I try to run the thing :confused:.

    Any words of wisdom out there? I'm a very experienced application/web/database programmer, but a newbie when it comes to Android apps, which I am coming to dread.

  2. mills2533

    mills2533 Well-Known Member

    Dec 21, 2010
    Likes Received:
    This will probably get moved to the developer forum.

    It can be quite a few things. Can you post the code you're using to open the database? Are you sure you have the path and the name correct? Did you declare the database?

    To verify the path, use adb shell to navigate to where the database should be. Then use sqlite3 to open it.


Share This Page