我有一个下载链接,如" www.abcd.com/id=778"。我可能有pdf,图片或docs.I想下载该数据,下载完成后我想打开它。 我尝试使用下载管理器,但只获取.bin文件
String servicestring = Context.DOWNLOAD_SERVICE;
DownloadManager downloadmanager;
downloadmanager = (DownloadManager) getSystemService(servicestring);
Uri uri = Uri
.parse(input);
DownloadManager.Request request = new DownloadManager.Request(uri);
Long reference = downloadmanager.enqueue(request);