Use the standard directory for file downloads. Fixes #291 #292

Merged
Amab merged 2 commits from fix/download-files-android-11 into develop 2020-09-29 18:19:35 +02:00
Amab commented 2020-09-29 18:13:26 +02:00 (Migrated from github.com)

What changes were proposed in this pull request?

  • Use the standard directory for file downloads.
  • For applications targeting Build.VERSION_CODES.Q or above, WRITE_EXTERNAL_STORAGE permission is not needed and the dirType must be one of the known public directories like Environment#DIRECTORY_DOWNLOADS, Environment#DIRECTORY_PICTURES, Environment#DIRECTORY_MOVIES, etc.

How was this patch tested?

Manually. Tested on Android 11 (API 30) and Android 7 (API 24).

## What changes were proposed in this pull request? * Use the standard directory for file downloads. * For applications targeting `Build.VERSION_CODES.Q` or above, `WRITE_EXTERNAL_STORAGE` permission is not needed and the dirType must be one of the known public directories like `Environment#DIRECTORY_DOWNLOADS, Environment#DIRECTORY_PICTURES, Environment#DIRECTORY_MOVIES`, etc. ## How was this patch tested? Manually. Tested on Android 11 (API 30) and Android 7 (API 24).
Sign in to join this conversation.
No description provided.