public GetUserProfileTask createTask(String username, boolean refreshFromWebOnly) {
    UserFragment.this.setRefresh(true);

    if (task != null && task.isRunning()) task.cancel();

    Log.e("username", "username : " + username);

    return task = new GetUserProfileTask(getSherlockActivity(), username, refreshFromWebOnly);
  }
  @Override
  public void onDestroy() {
    super.onDestroy();

    if (task != null && task.isRunning()) task.cancel();
  }