Ejemplo n.º 1
0
    protected Integer doInBackground(Integer... params) {

      Integer responseCode = 0;
      try {
        MultivaluedMap map = new MultivaluedMapImpl();
        map.add(
            "username",
            SharedPreferencesHelper.getStringProperty(getApplicationContext(), "username"));
        map.add("contactId", params[0].toString());

        RestClient tc = new RestClient(map);
        responseCode = tc.postForResponseCode("user/delete/contact");
      } catch (Exception e) {
        e.printStackTrace();
      }
      return responseCode;
    }