From: Reimar Döffinger Date: Tue, 15 Dec 2015 20:45:25 +0000 (+0100) Subject: Download to path accessible without special permission. X-Git-Url: http://gitweb.fperrin.net/?p=Dictionary.git;a=commitdiff_plain;h=4b7de90bf608a1508e7bf2ab072a10cfd8d8d5c2 Download to path accessible without special permission. --- diff --git a/src/com/hughes/android/dictionary/DictionaryManagerActivity.java b/src/com/hughes/android/dictionary/DictionaryManagerActivity.java index 523a410..06ed3db 100644 --- a/src/com/hughes/android/dictionary/DictionaryManagerActivity.java +++ b/src/com/hughes/android/dictionary/DictionaryManagerActivity.java @@ -620,8 +620,7 @@ public class DictionaryManagerActivity extends ActionBarActivity { .getName(); Log.d(LOG, "Downloading to: " + destFile); - request.setDestinationUri(Uri.fromFile(new File(Environment - .getExternalStorageDirectory(), destFile))); + request.setDestinationInExternalFilesDir(getApplicationContext(), null, destFile); } catch (MalformedURLException e) { throw new RuntimeException(e); }