error  and need help for making dictionary for andoird

KETTANEH
KETTANEH used Ask the Experts™
on
Hello all,

I am trying to make a simple offline dictionary for Android. I have a problem when copying my database TestData.db from android asset folder into /data/data/package name/databases/ in emulator. When I use java io to copy file there is some error in LogCat here is the error:
error1.jpg is attached
error1


Here is the error in emulator:
error2
When I check the File Explorer in eclipse in /data/data/package name/databases/ the TestData.db has copy but the size is 0 bytes. Shouldly the file size is 3,257,344 bytes.
 
QamoosActivity.java
DataBaseHelper.java
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
according to this

http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html#getReadableDatabase()

you get your db open and then you're trying to copy over it from assets - which I reckon fails with IOException

Author

Commented:
That for helping me, but it is still not working
what does it do now? could you comment out all the code and leave only copying part?

Author

Commented:
thanks for try

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial