Skip to content

Instantly share code, notes, and snippets.

@julian-klode
Last active October 24, 2016 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julian-klode/49ef0437e9850323983f99b6968de622 to your computer and use it in GitHub Desktop.
Save julian-klode/49ef0437e9850323983f99b6968de622 to your computer and use it in GitHub Desktop.
AndroidManifest: Request WRITE_EXTERNAL_STORAGE permission

The app crashes on Lollipop when trying to download files, but
it seems to work fine on Marshmallow. Officially, setDestinationUri()
is documented to require that permission but the other methods like
setDestinationInExternalFilesDir() are not - and since Marshmallow
they are intended to work without the permission, compare

See android@ed30deae5fe5b9de142b44933001c9b098c47712

test jlord@a5c3785ed8d6a35868bc169f07e40e889087fd2e

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