code: public void addOnVehicleInterfaceConnectedListener(
              ViConnectionListener listener) throws VehicleServiceException {
          if(mRemoteService != null) {
              try {
                  mRemoteService.addViConnectionListener(listener);
              } catch(RemoteException e) {
                  throw new VehicleServiceException(
                          "Unable to add connection status listener", e);
              }
          }
      }
docs: Register a listener to receive a callback when the selected VI is
  connected.
  
  @param listener The listener that should receive the callback.