예제 #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();
  }