How to Stop Asyn Task at onPreExecute?

Viewed 478

I'm checking for internet connection status in onPreExecute() and If there is no internet connection, it should not execute the doInBackground() and onPostExecute()

new getStatus().execute();

private class getStatus extends AsyncTask<Void, Void, Void> {
3 Answers
Related