コード例 #1
0
 @Override
 public void onActionClicked(int commandID) {
   switch (commandID) {
     case ACTION_REFRESH_CAMPAIGNS:
       mCampaignReadLoader.forceLoad();
       break;
   }
 }
コード例 #2
0
  @Override
  public void onContentChanged() {
    super.onContentChanged();

    mCampaignReadLoader.onCreate();

    // throw some actions on it
    getActionBarControl()
        .addActionBarCommand(
            ACTION_REFRESH_CAMPAIGNS,
            getString(R.string.campaign_list_refresh_action_button_description),
            R.drawable.btn_title_refresh);

    // and attach handlers for said actions
    getActionBarControl().setOnActionListener(this);
  }
コード例 #3
0
 @Override
 public void onRestoreInstanceState(Bundle savedInstanceState) {
   super.onRestoreInstanceState(savedInstanceState);
   mCampaignReadLoader.onRestoreInstanceState(savedInstanceState);
 }
コード例 #4
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   mCampaignReadLoader.onSaveInstanceState(outState);
 }
コード例 #5
0
 @Override
 protected void onResume() {
   super.onResume();
   mCampaignReadLoader.onResume();
 }