Exemplo n.º 1
0
 @Override
 public void onResume() {
   super.onResume();
   if (taskThread == null) {
     taskThread = new TaskThread();
   }
   HashMap<String, String> hashMap = new HashMap<>();
   hashMap.put("cellphone", Setting.getInstance().getUserPhone());
   // TODO 如果分页做,这里要改
   Integer integer = 1;
   Integer pageSize = 99;
   hashMap.put("pageIndex", integer.toString());
   hashMap.put("pageSize", pageSize.toString());
   taskThread.addTask(
       new HttpTask(
           Global.GET_FAVORITE_DESIGN, Global.MSG_FAVORITE, CollectionActivity.this, hashMap));
 }