0

in an android app, im using Android's builtin download manager for downloading files. but it need External storage permission. i cant set this permission right now. is there any way to download to device RAM instead of External Storage? my problem is Permissions...

i do like this:

DownloadManager manager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);
manager.enqueue(request);
Fcoder
  • 9,066
  • 17
  • 63
  • 100
  • just so you know -- The download manager uses system generated file names and saves all files in the shared download cache. You can also choose where to save the file. But, you can only save it in the external storage. – Tasos Feb 22 '16 at 03:36

1 Answers1

0

Yes- don't use DownloadManager. Just make a direct HTTP request for the item, and read the result from the response. You'll lose a lot of features that DownloadManager gives you (like automated restarts) unless you rewrite them yourself though.

Gabe Sechan
  • 90,003
  • 9
  • 87
  • 127