Skip to content Skip to sidebar Skip to footer

Android Oreo (api26) And Android.app.downloadmanager

Folks! This code doesn't work on Android Oreo (but ok on older versions, I can see notifications and the DownloadManager.ACTION_DOWNLOAD_COMPLETE broadcast message). Kotlin testBut

Solution 1:

I found that the API 26 emulators simulate network requests over mobile data, so the simplest workaround is adding the NETWORK_MOBILE flag (at least for debugging the DownloadManager):

request.setAllowedNetworkTypes(DownloadManager.Request.NETWO‌​RK_WIFI | DownloadManager.Request.NETWORK_MOBILE) 

Post a Comment for "Android Oreo (api26) And Android.app.downloadmanager"