[Droid] SecurityException: Destination must be on external storage
SimonSimCity opened this issue · comments
When downloading the data to Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
, I get the following SecurityException: Destination must be on external storage: file:///data/data/org.example.app/files/testfile.bin
.
Why can't I store stuff at the path I decided?
Seems not to be possible to store data in the private storage using the DownloadManager. See: http://www.codeproject.com/Questions/1010781/Downloading-file-to-data-data-packagename-files-In
Here's some additional hint if you have dificulties if you are deciding where to store the stuff: http://stackoverflow.com/questions/28427267/how-to-get-the-external-storages-path
Update: There's now a way to download files without providing a location. By that, you can copy the file to your private storage after the download is completed. See 14b6769