I currently working on my school assignment. I currently facing some issue on creating a SQLITE DB when debugging my app.
logcat:
E/SQLiteLog﹕ (14) os_unix.c:30046: (2) open(/data/data/com.asus.microfilm/databases/Sugar.db) -
E/SQLiteDatabase﹕ Failed to open database '/data/data/com.asus.microfilm/databases/Sugar.db'.
I wondering why it open up the other package DB. I have search some example online and I couldn't find any solution that's why I decided to post it here.
Besides, I have already used adb-shell and I found nothing in my package.
DatabaseHelper.java
public class DatabaseHelper extends SQLiteOpenHelper
{
public DatabaseHelper(Context context)
{
super(context, context.getExternalFilesDir(null).getAbsolutePath() + "/" + DATABASE_NAME, null, DATABASE_VERSION);
}
tab1.java
DatabaseHelper myDb;
myDb = new DatabaseHelper(getActivity());
my tab1.java is a fragment.
context.getExternalFilesDirI want to save it to my SDcard but when i open up mypackage>filesin DDMS still nothingdata>datafolder in my internal storage