我正在使用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");
我想将其保存到内部存储中。怎么做?