@Override public void onErrorReported(CalibreService.ErrorType e) { ConnectionFragment frag = (ConnectionFragment) tab_connection.getFragment(); if (frag != null) frag.setErrorMessage(e); }