From c2df8342039829c868b30ad3bc3f865e26a04b1c Mon Sep 17 00:00:00 2001 From: Vasu Nori Date: Sat, 18 Dec 2010 20:15:46 -0800 Subject: bug:3297328 set download destination dir to /sdcard/Download downlaoded files should go into /sdcard/Download, like they used to in GB and earlier. But a minor difference in the download dir name: it used to be /sdcard/download in before HC /sdcard/Download in HC how serious is this difference? Change-Id: Ib56d8ee6a1393fd781399281be98b8c52831ebe1 --- src/com/android/browser/DownloadHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/com/android/browser/DownloadHandler.java') diff --git a/src/com/android/browser/DownloadHandler.java b/src/com/android/browser/DownloadHandler.java index cbf26f40f..40278f480 100644 --- a/src/com/android/browser/DownloadHandler.java +++ b/src/com/android/browser/DownloadHandler.java @@ -183,7 +183,9 @@ public class DownloadHandler { Uri uri = Uri.parse(addressString); final DownloadManager.Request request = new DownloadManager.Request(uri); request.setMimeType(mimetype); - request.setDestinationInExternalFilesDir(activity, null, filename); + // set downloaded file destination to /sdcard/Download. + // or, should it be set to one of several Environment.DIRECTORY* dirs depending on mimetype? + request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename); // let this downloaded file be scanned by MediaScanner - so that it can // show up in Gallery app, for example. request.allowScanningByMediaScanner(); -- cgit v1.2.3