Beispiel #1
0
    @Override
    protected String doInBackground(String... params) {

      response =
          Data.getDataFromServer(
              "", "POST", Constants.VIEW_LABOURS + "=" + params[0], Constants.CONTENT_TYPE);
      if (!TextUtils.isEmpty(response)) parseLabourData(response);

      return null;
    }
Beispiel #2
0
    @Override
    protected String doInBackground(String... params) {
      try {
        response =
            Data.getDataFromServer(
                "", "POST", Constants.MATERIALS_LIST + "=" + params[0], Constants.CONTENT_TYPE);
        if (!TextUtils.isEmpty(response)) parseData(response);
      } catch (Exception e) {
      }

      return response;
    }