androidstoragescoped

Does DownloadManager will work on targetapi 30?


Cant find correct information about DownloadManager and scoped storage in API30. How to test it? I tried to change target api from 29 to 30, and all works fine, does this mean that I do not need to change my code to MediaStore?

P.S. I haven't in my manifest android:requestLegacyExternalStorage="true"


Solution

  • DownloadManager is still be working as normal in API30. only 2 methods are deprecated in API29. refer to https://developer.android.com/reference/android/app/DownloadManager

    enter image description here

    also take note of the API30 change in DownloadManager.Request.

    https://developer.android.com/reference/android/app/DownloadManager.Request enter image description here