示例#1
0
 private void handleRemoteException(RemoteException e) {
   final IDroneApi droneApi = droneApiRef.get();
   if (droneApi != null && !droneApi.asBinder().pingBinder()) {
     final String errorMsg = e.getMessage();
     Log.e(TAG, errorMsg, e);
     notifyDroneServiceInterrupted(errorMsg);
   }
 }
示例#2
0
 @Override
 public void binderDied() {
   notifyDroneServiceInterrupted("Lost access to the drone api.");
 }