diff --git a/src/cn/trinea/android/demo/DownloadManagerDemo.java b/src/cn/trinea/android/demo/DownloadManagerDemo.java index ea32f69..43332cf 100644 --- a/src/cn/trinea/android/demo/DownloadManagerDemo.java +++ b/src/cn/trinea/android/demo/DownloadManagerDemo.java @@ -124,7 +124,7 @@ private void initData() { @Override public void onClick(View v) { - File folder = new File(DOWNLOAD_FOLDER_NAME); + File folder = Environment.getExternalStoragePublicDirectory(DOWNLOAD_FOLDER_NAME); if (!folder.exists() || !folder.isDirectory()) { folder.mkdirs(); }