记得餐前要加读写权限
DownloadManager systemService=(DownloadManager) getSystemService(DOWNLOAD_SERVICE);
DownloadManager.Request request=new DownloadManager.Request(Uri.parse("https://wx2.sinaimg.cn/mw2000/007huv9Mgy1gtytlif297j60u01ab46502.jpg" ));
/**
* 通知标题和内容
*/
request.setTitle("下载");
request.setDescription("正在下载");
request.setDestinationInExternalPublicDir("/storage/emulated/0/Pictures", "好看.jpg");
systemService.enqueue(request);