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