Pregunta

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?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top