4

を使用して、WebからAndroidデバイスにファイルをダウンロードしていますDownloadManager。私はこのファイルをSDカードに保存しています:

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 に答える