Esempio n. 1
0
 @Override
 protected Boolean doInBackground(Void... params) {
   try {
     events = Parser.retreiveAllEvents(searchObject.getEmail(), searchObject.getPassword());
     return true ? events.getSuccess() == 1 : false;
   } catch (IllegalAccessException illegalException) {
     illegalException.printStackTrace();
   } catch (InvocationTargetException exception) {
     exception.printStackTrace();
   }
   return Boolean.FALSE;
 }
Esempio n. 2
0
    @Override
    protected Boolean doInBackground(Void... params) {
      try {
        // System.out.println("CreateMobileEventsTask: creating creating Google event
        // "+event.getName());
        ConfirmObject confirmObject = Parser.createEvent(event);

        // System.out.println("Status of creating Google event "+event.getName()+" is
        // "+confirmObject.getSuccess());
        return true ? confirmObject.getSuccess() == 1 : false;
      } catch (IllegalAccessException illegalException) {
        illegalException.printStackTrace();
      } catch (InvocationTargetException exception) {
        exception.printStackTrace();
      }
      return Boolean.FALSE;
    }