Example #1
0
 private void stopConnectionTask() {
   if (connectionTask != null) {
     connectionTask.cancel(true);
     connectionTask = null;
   }
 }
Example #2
0
 private void startConnectionTask(RemoteDevice remoteDevice) {
   stopConnectionTask();
   connectionTask = new ConnectionTask(this);
   connectionTask.execute(remoteDevice);
 }