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); } }
@Override public void binderDied() { notifyDroneServiceInterrupted("Lost access to the drone api."); }