Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Download Manager handling File Not found

I am checking the documentation in http://developer.android.com/reference/android/app/DownloadManager.html

but did not find the answer i am looking for. my question is, in case download manager received a URL to download a file from a server, and the URL file destination does not exist, what type of error does the Download Manager gives. is it ERROR_UNKNOWN or ERROR_FILE_ERROR..did anyone face this? thank you for your help

like image 856
Rashad.Z Avatar asked Jan 26 '26 08:01

Rashad.Z


1 Answers

after testing this case, the Download Manager returns a STATUS_FAILED with DownloadManager.COLUMN_REASON 404.

like image 139
Rashad.Z Avatar answered Jan 28 '26 20:01

Rashad.Z