Skip to content
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
Closed

Comments

@SimonSimCity
Copy link
Owner

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
Copy link
Owner Author

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
Copy link
Owner Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant