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