To download a file with Android and show the progress in a ProgressDialog, you can use the following steps:
To check for internet access on Android, you can use the isReachable() method of the InetAddress class.