Skip to content

Instantly share code, notes, and snippets.

@ufukhalis
Created November 9, 2015 12:35
Show Gist options
  • Save ufukhalis/cf2b15b698d43b92d328 to your computer and use it in GitHub Desktop.
Save ufukhalis/cf2b15b698d43b92d328 to your computer and use it in GitHub Desktop.
url = getString(R.string.getFilteredJobsList) + KnetGenericClass.getCurrentDate();
KnetNetworkManager.getInstance().getDataFromURL(getString(R.string.getSuitedJobsFilter),
null, new JsonHttpResponseHandler() {
@Override
public void onSuccess(JSONObject response) {
if (response != null) {
try {
response.put("skip", ilanSkipCount);
response.put("take", pageSize);
StringEntity entity = new StringEntity(response.toString(), "UTF-8");
entity.setContentType(new BasicHeader(HTTP.CONTENT_TYPE, "application/json"));
sendIsAraEntityRequest(url, entity);
} catch (UnsupportedEncodingException e) {
//TODO
e.printStackTrace();
} catch (JSONException e) {
//TODO
e.printStackTrace();
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment