Skip to content Skip to sidebar Skip to footer

File.canwrite() Says "true" But I Can't Write On Removable Storage (kit Kat)

I recieve a intent from camera with a photo taken in this path: /storage/extSdCard/DCIM/Camera/photoCaptured.jpg And I want to resize (already does) of the image and overwrite in

Solution 1:

The reason from http://source.android.com/devices/tech/storage/index.html

The WRITE_EXTERNAL_STORAGE permission must only grant write access to the primary external storage on a device. Apps must not be allowed to write to secondary external storage devices, except in their package-specific directories as allowed by synthesized permissions. Restricting writes in this way ensures the system can clean up files when applications are uninstalled.

Post a Comment for "File.canwrite() Says "true" But I Can't Write On Removable Storage (kit Kat)"