0

I am creating app in which I am downloading file from URl. I have already tried AsyncTask to download the file. Now I am using DownloadManager. I am able to download the file in targeted folder. Need help with following issues:

  1. It is downloading the file even-if it is already downloaded. How to solve this?
  2. how to open the downloaded file?

Do I need to first learn about cursors for this or I can do it without cursors?

  • 1
    You can refer to this link : https://www.androhub.com/android-download-files-save/ – Karan Mehta Mar 17 '21 at 08:52
  • Thank you @KaranMehta . I am able to do this with AsyncTask. I am recently learning concepts like default downloadManager, broadcast receivers, cursors, etc. Could you please guide me in this regards. – ruhi viroja Mar 17 '21 at 10:03
  • 1
    You can obtain an uri from the DownloadManager for the downloaded file. Use that uri to read the file. – blackapps Mar 17 '21 at 15:52

0 Answers0