private void doCheckUpdataTask() {
   Map<String, Object> taskParams = new HashMap<String, Object>();
   taskParams.put(Task.FAN_ACTIVITY, HomePageActivity.class.getSimpleName());
   taskParams.put(Task.FAN_AUTHO_SYSTEM_TYPE, Task.FAN_AUTHO_SYSTEM_TYPE_ANDROID);
   Task task = new Task(Task.FAN_CHECKUPDATE, taskParams);
   IfanService.addTask(task);
 }
 private void doLikeTask(String personId) {
   showProgressDialog();
   Map<String, Object> taskParams = new HashMap<String, Object>();
   taskParams.put(Task.FAN_ACTIVITY, FindFDActivity.class.getSimpleName());
   taskParams.put(Task.FAN_GETMATCH_TYPE, Task.FAN_GETMATCH_TYPE_FANS);
   taskParams.put(Person.ID, personId);
   Task task = new Task(Task.FAN_LIKE, taskParams);
   IfanService.addTask(task);
 }
 private void doCheckNetTask() {
   User user = SPUtil.getDefaultUser(this, null);
   Map<String, Object> taskParams = new HashMap<String, Object>();
   taskParams.put(Task.FAN_ACTIVITY, HomePageActivity.class.getSimpleName());
   taskParams.put(User.PHONENUMBER, user.getPhoneNumber());
   taskParams.put(User.PASSWORD, user.getPassword());
   taskParams.put(Task.FAN_AUTHO_DEVICE_CODE, JPushInterface.getRegistrationID(this));
   taskParams.put(Task.FAN_AUTHO_SYSTEM_TYPE, Task.FAN_AUTHO_SYSTEM_TYPE_ANDROID);
   if (first_time_login) {
     taskParams.put(Task.FAN_AUTHO_BACK_LOGIN, Task.FAN_AUTHO_BACK_LOGIN_NO);
   } else {
     taskParams.put(Task.FAN_AUTHO_BACK_LOGIN, Task.FAN_AUTHO_BACK_LOGIN_YES);
   }
   Task task = new Task(Task.FAN_AUTHO, taskParams);
   IfanService.addTask(task);
 }