@Override
 protected boolean taskBody(final String... args) throws Exception {
   RESTOnTruckList.add(
       AppDataSingleton.getInstance().getOnTruckPartsList().get(mSelectedItem).getId(),
       AppDataSingleton.getInstance().getAppointment().getId(),
       UserUtilitiesSingleton.getInstance().user.getServiceProviderId(),
       quantityToAdd,
       false); // 'false' is
   // addToInvoice
   return true;
 }
 @Override
 protected Boolean doInBackground(Void... params) {
   // Simulates a background job.
   try {
     if (UserUtilitiesSingleton.getInstance().user.isLoggedIn()) {
       RESTOnTruckList.query(AppDataSingleton.getInstance().getAppointment().getOwnerId());
       return true;
     }
   } catch (Exception e) {
   }
   return false;
 }
 @Override
 protected boolean taskBody(final String... args) throws Exception {
   RESTOnTruckList.query(AppDataSingleton.getInstance().getAppointment().getOwnerId());
   return true;
 }