Add AsyncTask support to check connectivity