コード例 #1
0
 private void close() {
   if (searchTask != null) {
     searchTask.cancel(true);
     searchTask = null;
   }
   if (hotPlayTask != null) {
     hotPlayTask.cancel(true);
     hotPlayTask = null;
   }
   finish();
 }
コード例 #2
0
 private void getHotPlay() {
   if (hotPlayTask == null) {
     hotPlayTask = new HotPlayTaskNew(this);
     hotPlayTask.execute(this, new HotPlayRequest(), new HotPlayParser());
   }
 }