コード例 #1
0
 @Override
 public void onAttach(Activity activity) {
   // TODO Auto-generated method stub
   super.onAttach(activity);
   mActivity = (MainActivity) activity;
   mHandler = new DataHandler(mActivity.getMainLooper(), this);
   if (activity instanceof OnActionBarChangeCallback) {
     mActionBarCallback = (OnActionBarChangeCallback) activity;
   }
 }
コード例 #2
0
 protected void setTitle() {
   if (mTitle != null) {
     mActivity.setTitle(mTitle);
   }
 }