@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; }
@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; }