]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/DictionaryManagerActivity.java
Download to path accessible without special permission.
[Dictionary.git] / src / com / hughes / android / dictionary / DictionaryManagerActivity.java
index 523a4109cb147db9ee5c03a8370a11c2feb8b90b..06ed3db9baf8b534be92ebaee396adda8ee1c4c6 100644 (file)
@@ -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);
         }