Check if Exoplayer downloaded file is still available in storage
I am downloading my HLS audio file using exoplayer and would like to know if file is downloaded. Exoplayer has given a way to check if file downloaded or not -
Download download = downloadManager.getDownloadIndex().getDownload(id);
return download != null && download.state != Download.STATE_FAILED;
It works fine in every cases except one of it. It detects if file is downloaded properly unless we manually go to the filemanager app and delete the downloaded files externally.
Is there a way to...