コード例 #1
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   stopProgressDialog();
   UserInfoDataprovider.getInstance().removeOnRequestedListener(mOnUserInfoRequestedListener);
   TweetsDataprovider.getInstance().removeOnRequestedListener(mOnTweetsRequestedListener);
   ((WeChatApp) getApplication()).finishApp();
 }
コード例 #2
0
 private void initData() {
   startProgressDialog();
   UserInfoDataprovider.getInstance().addOnRequestedListener(mOnUserInfoRequestedListener);
   mTaskCount++;
   TweetsDataprovider.getInstance().addOnRequestedListener(mOnTweetsRequestedListener);
   mTaskCount++;
   mMomentsListView.setOnLoadListener(this);
   mMomentsListView.setOnRefreshListener(this);
 }