@Override public void onConnectButtonClick() { Log.d(TAG, "onConnectButtonClick"); // connect if possible. if we dont have account show account picker // todo handle errors boolean gotConnected = getSession().connectToService(); if (!gotConnected) { GoogleDataSession.showAccountPicker(this); } }
private GoogleDataSession getSession() { return GoogleDataSession.getInstance(App.getContext()); }