]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
Download to path accessible without special permission.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 15 Dec 2015 20:45:25 +0000 (21:45 +0100)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 15 Dec 2015 20:45:25 +0000 (21:45 +0100)
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);
         }