// InitListData public void GetServiceData(int index) { String url = Constant.BASE_URL + "user/playHistories" + "?page_num=" + Integer.toString(index) + "&page_size=10"; AjaxCallback<JSONObject> cb = new AjaxCallback<JSONObject>(); cb.url(url).type(JSONObject.class).weakHandler(this, "InitListDataForHistory"); cb.SetHeader(app.getHeaders()); aq.ajax(cb); }
public AQuery getAQuery() { if (aQuery == null) { aQuery = new AQuery(this); } AjaxCallback.setReuseHttpClient(true); return aQuery; }