call AsyncTask from Broadcast receiver android
问题 SO currently i have an AsyncTask class that runs and POST's data to my server when I click a button(which works great). What im trying to do now is handle what happens when the user is not connected to the internet. so i have set up these classes to notify the app when internet has connected so that the data can be sent automatically to the server. AsyncTask class(inner class) private class HttpAsyncTask extends AsyncTask<String, Void, String> { ProgressDialog dialog = new ProgressDialog