I want retrieve database from Android Device Monitor as described here, but this time can not enter into /data folder. Why? Do you know any workaround?
Deleted, reinstalled app, restarted Android Studio etc.
I want retrieve database from Android Device Monitor as described here, but this time can not enter into /data folder. Why? Do you know any workaround?
Deleted, reinstalled app, restarted Android Studio etc.
For ease of access you can create your database in mobile phone sd card or external storage also. By this way you can easily access database file.
You can do it like this
public DatabaseHelper(final Context context) {
//super(context, DATABASE_NAME , null, 1); //for default location
super(context, Environment.getExternalStorageDirectory()
+ File.separator + FILE_DIR
+ File.separator + DATABASE_NAME, null, DATABASE_VERSION);
}