DownloadManager.Request.setNotificationVisibility fails with SecurityException: invalid value for visibility: 2

前端 未结 2 1912
予麋鹿
予麋鹿 2020-12-15 15:24

I\'m trying to use DownloadManager in a Service class of mine:

    DownloadManager downloadManager = (DownloadManager) getSystemSer         


        
2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 15:41

    You need the following permission in the manifest as per documentation:

    
    

提交回复
热议问题