private MenuItem addInternal(int group,int id,int categoryOrder,CharSequence title){
  final int ordering=getOrdering(categoryOrder);
  final MenuItemImpl item=new MenuItemImpl(this,group,id,categoryOrder,ordering,title,mDefaultShowAsAction);
  if (mCurrentMenuInfo != null) {
    item.setMenuInfo(mCurrentMenuInfo);
  }
  mItems.add(findInsertIndex(mItems,ordering),item);
  onItemsChanged(true);
  return item;
}

private MenuItem addInternal ( int group , int id , int categoryOrder , CharSequence title ) { final int ordering = getOrdering ( categoryOrder ) ; final MenuItemImpl item = new MenuItemImpl ( this , group , id , categoryOrder , ordering , title , mDefaultShowAsAction ) ; if ( mCurrentMenuInfo != null ) { item . setMenuInfo ( mCurrentMenuInfo ) ; } mItems . add ( findInsertIndex ( mItems , ordering ) , item ) ; onItemsChanged ( true ) ; return item ; }
adds an item to the menu . the other add methods funnel to this .
