Пример #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.");
 }