New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Droid] SecurityException: Destination must be on external storage #10

Closed
SimonSimCity opened this Issue May 27, 2016 · 2 comments

Comments

1 participant
@SimonSimCity
Owner

SimonSimCity commented May 27, 2016

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?

@SimonSimCity

This comment has been minimized.

Owner

SimonSimCity commented May 27, 2016

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

@SimonSimCity

This comment has been minimized.

Owner

SimonSimCity commented Jun 14, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment