I need to work with the database on SD card, if it's possible. If I use the code below, then the database is created on the internal storage (/storage/emulated/0):
private MyDBHelper(Context context) {
super(context, Environment.getExternalStorageDirectory()
+ File.separator + "xAPP"
+ File.separator + DATABASE_NAME, null, DATABASE_VERSION);
}
How can I create a database on an SD card?