In my application, I have a download (image) function that is used to download a file from URLs. The download should be shown in the notification panel so that I use the Download Manager class to download the file. This works fine, but the downloaded image is not stored on the SD card.
I sent a url to the download manager.
My requirement is that I need to save the download image to an SD card with an indication of the notification bar. What you need to change to the code in order to get the image with saving to the SD card at the above link
I have some doubts about the code in the link above. Can I use the same code to upload audio or video files?
please help me.
Edited Question:
I tried
filepath = Environment.getExternalStorageDirectory().getPath()+"/download/cm.png"; Uri destinationUri = Uri.parse(filepath); request.setDestinationUri(destinationUri);
before pressing the preference button. but I could not get the file on the SD card.
source share