Пример #1
0
 @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);
   }
 }
Пример #2
0
 private GoogleDataSession getSession() {
   return GoogleDataSession.getInstance(App.getContext());
 }