I've done a procedure to backup/restore user's DB into an external SD card. Theoretically it works fine, the file is being copied and restored every time I launch it.
What I don't understand is WHERE that file is copied. According to the message I receive when I do my backup, the archive is put inside "\storage\emulated\0" folder.
But .. Where is that folder? According to the documentation that should be my SD folder but actually, watching on my phone, that directory is INSIDE my phone's internal memory and that file is not present inside my SD card.
I even tried this path to understand where Android sees my SD :
String state = Environment.getExternalStorageState();
File sdPath = Enviroment.getExternalStorageDirectory();
*** The results are:***
- state : Mounted (so the SD can be read and written)
- sdPath: \storage\emulated\0
So, once again, the SD seems ok, can be written... but why It keeps writing on my internal phone's memory?