@Override protected void onStart() { super.onStart(); if (connectionSupportAsyncTask != null) { if (!connectionSupportAsyncTask.getStatus().toString().equals("RUNNING")) { connectionSupportAsyncTask.execute(); } } }
@Override protected void onStop() { super.onStop(); if (connectionSupportAsyncTask != null) { connectionSupportAsyncTask.cancel(false); } }