Question

I use DownloadManager, which in available since Android 2.3, to download FTP. But it does not work.

I do not know how to make it work? I did not find proper examples. Does DownloadManager support FTP?

Was it helpful?

Solution

Unfortunatelly, FTP won't work.

DownloadManager supports HTTP. And HTTPS is supported since ICS. If you try downloading from FTP you receive one of these exceptions:

java.lang.IllegalArgumentException: Can only download HTTP URIs

or

java.lang.IllegalArgumentException: Can only download HTTP/HTTPS URIs

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top