예제 #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());
 }