Hi.
I'm trying to write files on a removable SD Card on a TC8000 w/ KitKat. The folder is getting created, but the files are still stored on the Internal-External partition. I have tried many different access methods and this one is closest, but still does not work. Here is my current code:
File sdCardDirectory = getExternalFilesDir("/storage/sdcard1");
File f = new File(sdCardDirectory, "test7.txt");
This creates a /storage/sdcard1 directory on the external card, but test7.txt is created on the internal sd card.
Can someone point me in the right direction?
Thanks.
Hello Tony,
On KitKat, developers are only permitted to write files to your apps data folder on the sdcard.
For instance, [external storage]/Android/data/your.apps.package.name
Points: 0
You voted ‘up’
Log in to post comments