@Override public void loadData(int pageIndex) { getContactListHPI = new GetContactListHPI(getActivity()); getContactListHPI.setTaskId(taskId); getContactListHPI.setPage(pageIndex); getContactListHPI.setListener( new WebAPIListener() { @Override public void onLoadSuccess(int successNum) { onLoaded(true); } @Override public void onLoadFail(int errNum, String errMessage) { onLoaded(false); } }); getContactListHPI.doConnectInBackground(); }
@Override public List getDataList() { return getContactListHPI.getContacts(); }