code: @Override public boolean onCreateOptionsMenu(Menu menu) {
      if (actionBarMenuAction != null) {
        menu.add(actionBarMenuAction.title)
            .setShowAsActionFlags(SHOW_AS_ACTION_ALWAYS)
            .setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
              @Override public boolean onMenuItemClick(MenuItem menuItem) {
                actionBarMenuAction.action.call();
                return true;
              }
            });
      }
      menu.add("Log Scope Hierarchy")
          .setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
            @Override public boolean onMenuItemClick(MenuItem item) {
              Log.d("DemoActivity", MortarScopeDevHelper.scopeHierarchyToString(activityScope));
              return true;
            }
          });
      return true;
    }
docs: Configure the action bar menu as required by {@link ActionBarOwner.Activity}.