I have an app that writes files to the shared storage via getExternalStorageDirectory()
. My problem is accessing and copying the files to a computer:
I can access these files from the computer if the phone has an SD card (tested on a Galaxy S5). However, I cannot access these files if the phone does not have an SD card (tested on a Nexus 5X). Strangely, I can view my app's files from the phone in both cases.
Am I using the wrong method to get the base directory? Or is it the phone? All I need is for the files to be copied from the phone to the computer. Any help is appreciated.
Note: Both running Android 6.0.1 if that helps.