1. Download our Official Android App: Forums for Android!

SQLite Database Exception

Discussion in 'Android Apps & Games' started by bobv, Nov 30, 2012.

  1. bobv

    bobv Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Nov 27, 2012

    Nov 27, 2012
    1
    0
    5
    Male
    Web development, application development
    California desert
    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 :thinking:.

    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.
     

    Advertisement

  2. mills2533

    mills2533 Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    150
    Joined:
    Dec 21, 2010

    Dec 21, 2010
    150
    22
    38
    Colorado (USA)
    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

Loading...