Download Files Using download manager

后端 未结 1 1774
抹茶落季
抹茶落季 2021-01-05 12:31

I am downloading files from server using DownloadManager class

Here is what i am doing

public void downloadPdf(String url, String sem, String title         


        
相关标签:
1条回答
  • 2021-01-05 12:47

    Finally fixed this by just 2 lines

     request.allowScanningByMediaScanner();
    request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
    
    0 讨论(0)
提交回复
热议问题