4

我正在使用DownloadManager. 我正在使用以下方法将此文件保存在 sdcard 上:

DownloadManager.Request req = new DownloadManager.Request(Uri.parse("file path"));
req.setTitle("file title").setDescription("Downloading ....") // download the package at the /sdcard/download path.
.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "file name"+ "file extension");

我想将其保存到内部存储中。怎么做?

4

1 回答 1

1

使用这条路径.setDestinationInExternalPublicDir(Environment.getExternalStorageDirectory() +"/Android/data/xxx.xxx.xxx/files/")

于 2012-07-05T08:54:46.090 回答