コード例 #1
0
  @Override
  protected String doInBackground(Object... executeParams) {
    String url = (String) executeParams[0];
    String method = (String) executeParams[2];
    @SuppressWarnings("unchecked")
    Map<String, String> parames = (Map<String, String>) executeParams[1];
    try {
      if (method.equals(POST)) {
        return HttpConnection.doPOSTMethod(url, parames);
      } else {
        return HttpConnection.doGETMethod(url, parames);
      }

    } catch (Exception e) {
      LogUtils.e(e.toString());
    }
    return "";
  }