コード例 #1
0
  @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();
  }
コード例 #2
0
 @Override
 public List getDataList() {
   return getContactListHPI.getContacts();
 }