public void statusesLoaded(LoadMoreStatusesResult result) {
   setProgressBarIndeterminateVisibility(false);
   if (result.newer) {
     headerView.hideProgress();
     adapter.appendNewer(result.statuses);
     getListView().setSelection(1);
   } else {
     footerView.hideProgress();
     adapter.appendOlder(result.statuses);
   }
 }
 private void loadOlderTweets() {
   footerView.showProgress();
   new LoadMoreAsyncTask(this, twitter, adapter.getLastId() - 1, false).execute();
 }
 private void loadNewerTweets() {
   headerView.showProgress();
   new LoadMoreAsyncTask(this, twitter, adapter.getFirstId(), true).execute();
 }