Hi
I have a photo app that writes files either to the sdcard or the phone internal storage. The app writes the files to the DCIM/Camera directory on each storage location. I was using a function getSDCardPath to return a string of the sdcard path that works over all the devices I have tried. I was then using this string path with File.Copy(sdpath, oldfilename, sdpath, newfilename) however this is failing on Android 4.4.2 with 'libcore.io.ErrnoException: open failed: EACCES (Permission denied)' error. But it works on the internal storage and earlier versions of the OS,
I have the following permission's in the Manifest File
AddPermission (android.permission.WRITE_EXTERNAL_STORAGE)
AddPermission (android.permission.READ_EXTERNAL_STORAGE)
But are still getting the error, any help would be appreciated.
I have a photo app that writes files either to the sdcard or the phone internal storage. The app writes the files to the DCIM/Camera directory on each storage location. I was using a function getSDCardPath to return a string of the sdcard path that works over all the devices I have tried. I was then using this string path with File.Copy(sdpath, oldfilename, sdpath, newfilename) however this is failing on Android 4.4.2 with 'libcore.io.ErrnoException: open failed: EACCES (Permission denied)' error. But it works on the internal storage and earlier versions of the OS,
I have the following permission's in the Manifest File
AddPermission (android.permission.WRITE_EXTERNAL_STORAGE)
AddPermission (android.permission.READ_EXTERNAL_STORAGE)
But are still getting the error, any help would be appreciated.