首页 > 学院 > 开发设计 > 正文

setDestinationInExternalPublicDir方法

2019-11-08 00:29:02
字体:
来源:转载
供稿:网友

download manager的setDestinationInExternalPublicDir(“Trinea”, “MeiLiShuo.apk”);

表示设置下载地址为sd卡的Trinea文件夹,文件名为MeiLiShuo.apk。

设置下载路径接口为setDestinationUri,setDestinationInExternalFilesDir,setDestinationToSystemCache。其中setDestinationToSystemCache仅限系统app使用。这几个方法其实都是下载单个的不能下载目录,这几个方法是说我们保存下载的路径不一样而已要整个目录下载只能去遍历下一个一个的下载
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表