I am having problems uploading files to a ftp server from an Android phone. I am using Intents from inside my own application, as described elsewhere on this forum.
Most of the time, things work nicely. Sometimes the transfer fails, for whatever reason (slow connection etc). After a failed transfer, all following transfers also fails, even after stopping and restarting my application. The only way to recover is to manually start AndFTP and to manually cycle connect/disconnect one or two times.
The error messages displayed are "SocketErrorException in net.java.com" (or something like that), "Broken pipe" and of course the laconic "Transfer failed". Same problem using different phones, different connections and different servers.
It seems as if AndFTP has difficulty in recovering from a fail state in the connection state sequence. I have tried various combinations of the "Active/Passive" and "Resume" flags with essentially no difference in this behaviour.
Any ideas?
Lars
Recovery from "Broken pipe" when using Intent
|