1 of 1 people found this helpful
you can't write on the secondary storage, on a KitKat device (Android v4.4.x) outside of your own package folder (/<path to SDCard>/data/Android/<app package name>.
This is a change driven by Google in the Android 4.4 Compatibility Definition Document (CDD).
Because on the TC75 you've an internal 1GB partition available as storage, the SDCard you put into the device is a "Secondary Storage" and you can write only in your own package folder.
I don't know why you're getting a different result on the Samsung device. Maybe because you don't have an internal partition available as storage or because Samsung is mounting the external SDCard as the primary storage.
In this case the solution would be to write in the internal partition or write on the SDCard in your own package folder.
I understand and I should be able to access the data directory on removable storage,
But getExternalFilesDir() gives me data directory on emulated external storage , not removable storage.
Hardcoding the removable storage code and calling mkdirs() also doesn't create the data directory.
Is it that the data directory on removable storage will be accessible only after the emulated external is full ?