1

Android database error (android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file)

view story
linux-howto

http://stackoverflow.com – I am trying to open file from the pre-build database. The database is around 40-50 MB. I already write the code to copy the database from the asset into the external file. But the database cannot be load. My Database class package com.example.foodmed3; import android.annotation.SuppressLint; import android.app.Application; import android.content.Context; import android.content.res.AssetManager; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.database.sqlite.SQLiteOpenHelper; import java.io.FileOut (HowTos)