+ e.getLocalizedMessage()); if (getActivity() != null) { GoogleApiAvailability.getInstance().showErrorDialogFragment(getActivity(), e.getConnectionStatusCode(), REQUEST_CODE_PLAY_SERVICES_ERROR);
} else if (api.isUserResolvableError(code) && api.showErrorDialogFragment(this, code, REQUEST_GOOGLE_PLAY_SERVICES)) {