コード例 #1
0
  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);
  }
コード例 #2
0
  @Override
  public void onDestroy() {
    super.onDestroy();

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