roscopeco / ormdroid

ORMDroid is a simple ORM persistence framework for your Android applications.
http://roscopeco.github.io/ormdroid/
Apache License 2.0
86 stars 24 forks source link

Failed to open database exception, yet the database works #28

Closed ghost closed 10 years ago

ghost commented 10 years ago

On my HTC One I get "Failed to open database" exception all the time. Yet it seems that everything is working fine. How can I get rid of the exception?

roscopeco commented 10 years ago

Can you provide more detail? E.g. is there an exception trace?

Thanks, Ross

ghost commented 10 years ago

Hi Ross, unfortunately there is just a few lines output on this error:

07-02 09:53:00.180    1512-1512/com.unitedinternet.presents.app I/Database﹕ sqlite returned: error code = 14, msg = cannot open file at source line 25467
07-02 09:53:00.180    1512-1512/com.unitedinternet.presents.app E/Database﹕ sqlite3_open_v2("presents.db", &handle, 2, NULL) failed
roscopeco commented 10 years ago

Fixed by #30 - please test if you can.

ChristopheCVB commented 10 years ago

I already tested it on my project while fixing, but let me know ;)

ghost commented 10 years ago

Seems to work well, thanks for the fix!