Skip to content

Commit

Permalink
Fix download fail on some phones
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinea committed Jul 8, 2014
1 parent 6b15c9b commit 1273394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cn/trinea/android/demo/DownloadManagerDemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 1273394

Please sign in to comment.