I have an app that each time it starts checks whether there is a WiFi or Mobile Data connection, if so, t=it then downloads the latest file via FTP. If there is no internet connection then it simply uses the files already on the device.
However, if there IS internet bit the FTP site is inaccessible, is there a way of checking before waiting for a timeout. Would it work if I ...
Check for internet connection
Ping ftp site
Then download
or is it, because this FTP runs as a separate process that we can't interrupt it?
Cheers
Penfound
However, if there IS internet bit the FTP site is inaccessible, is there a way of checking before waiting for a timeout. Would it work if I ...
Check for internet connection
Ping ftp site
Then download
or is it, because this FTP runs as a separate process that we can't interrupt it?
Cheers
Penfound