skip to Main Content

Android Studio – Why don't we need storage permission to download a file through DownloadManager

I'm downloading a file through android DownloadManager with de function below. private fun downloadFile() { val downloadManager: DownloadManager = getSystemService(Context.DOWNLOAD_SERVICE) as DownloadManager val request = DownloadManager.Request(Uri. parse("https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf")) downloadManager.enqueue(request) } } The download occurs normally without any storage permissions. Does the…

VIEW QUESTION
Back To Top
Search