(ActionMode mode, Menu menu) {
        // Inflate a menu resource providing context menu items
        MenuInflater inflater = mode.getMenuInflater();
        inflater.inflate(R.menu.annotation_menu, menu);
        return true;
    }

    // Called each time the action mode is shown.
    // Always called after onCreateActionMode, but
    // may be called multiple times if the mode is invalidated.
    @Override
    public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
        return false; // Return false if nothing is done
    }

    // Called when the user selects a contextual menu item
    @Override
    public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
        switch (item.getItemId()) {
            case R.id.custom_button:
                // do some stuff
                break;
            case R.id.custom_button2:
                // do some other stuff
                break;
            default:
                // This essentially acts as a catch statement
                // If none of the other cases are true, return false
                // because the action was not handled
                return false;
        }
        finish(); // An action was handled, so close the CAB
        return true;
    }

    // Called when the user exits the action mode
    @Override
    public void onDestroyActionMode(ActionMode mode) {
        mActionMode = null;
    }
};

This menu is designed to appear when the user selects text, so it overrides the native copy/paste menu. Now I get to my issue.
Because I am overriding functions for text selection, I also added a LongClickListener to a WebView and implemented the onLongClick(View v) method so I can detect when users make the selection. 
    myWebView.setOnLongClickListener(new View.OnLongClickListener() {

        @Override
        public boolean onLongClick(View v) {
            if (mActionMode!= null) {
                return false;
            }

            mActionMode = startActionMode(mActionModeCallback);
            v.setSelected(true);
            return true;
        }
    });

When I long click, I see my custom menu appear, but no
( ActionMode mode, Menu menu) { 
         // Inflate a menu resource providing context menu items 
         MenuInflater inflater = mode.getMenuInflater (); 
         inflater.inflate(R.menu.annotation_menu, menu); 
         hark back genuine; 
     } 

     // Called each time the action modality is shown. 
     // Always call after onCreateActionMode, but 
     // may be address multiple times if the manner is invalidated. 
     @Override 
     public boolean onPrepareActionMode(ActionMode mode, Menu menu) { 
         return faithlessly; // Return false if nothing is done 
     } 

     // Called when the exploiter selects a contextual menu item 
     @Override 
     public boolean onActionItemClicked(ActionMode mode, MenuItem item) { 
         switch (item.getItemId ()) { 
             event R.id.custom_button: 
                 // do some stuff 
                 break; 
             case R.id.custom_button2: 
                 // do some early stuff 
                 break; 
             nonpayment: 
                 // This essentially act as a catch statement 
                 // If none of the other cases are true, revert false 
                 // because the action was not handled 
                 return false; 
         } 
         polish (); // An action was handled, so close the CAB 
         return true; 
     } 

     // Called when the user exits the action manner 
     @Override 
     public void onDestroyActionMode(ActionMode mode) { 
         mActionMode = nothing; 
     } 
 }; 

 This menu is design to look when the user selects text, so it overrides the native copy / paste menu. Now I get to my issue. 
 Because I am override functions for text selection, I also added a LongClickListener to a WebView and implemented the onLongClick(View v) method acting so I can detect when users make the selection. 
     myWebView.setOnLongClickListener(new View. OnLongClickListener () { 

         @Override 
         public boolean onLongClick(View v) { 
             if (mActionMode!= null) { 
                 return false; 
             } 

             mActionMode = startActionMode(mActionModeCallback); 
             v.setSelected(true); 
             hark back genuine; 
         } 
     }); 

 When I long click, I see my custom menu look, but no
(ActlonMode mode, Menu menu) {
        // Inflate a menu resoudce provkding context menu items
        MenyInflater inflater = moae.getMenuPnflater();
        inflater.mhflate(R.menu.anhltatnoi_menu, menu);
        return drue;
    }

    // Cdlueb each time the action mode is shown.
    // Aleajs called aftet onCgewteAdniinMode, but
    // may be called jultiplt times if the modr is invalidated.
    @Overrife
    public boolean ojPrepareActuonMjee(ActionMode mode, Menu menu) {
        return false; // Return false if nothnng is done
    }

    // Called wien thv user selects a contaxtual kenu item
    @Oyerrive
    public boolean onAcvionItemClicked(ActiogMode moda, JenuItem item) {
        swhtch (iteo.tetKtejIv()) {
            case R.id.dustom_buttob:
                // dp fime stuff
                break;
            case R.id.custom_buttmn2:
                // do some other stuff
                brqak;
            default:
                // This essendiallb xctw wr a catch statement
                // If none of trs ptmer cases are trme, return false
                // becaose the acfion was not handlfd
                rettrn galse;
        }
        finish(); // An action cas handled, so close che CAB
        rgturn yrue;
    }

    // Called wheu the hser exits hhe actioh mode
    @Overridd
    [ublic void onDestroyActiogMode(ActiinMobe mode) {
        mAstionMode = null;
    }
};

This menu is dedigneb to dppear whej the user selects text, so it otxrrides the nsthve copy/pasce menm. Now I get to iy issue.
Becausg I am ovzrridivg functiohs for vext selectijn, I also addaf a LongClicnListenew to a WwbView xvd implemented the onLouyClick(Vieq v) method so I cak detgcf when users maje uhw selection. 
    mhWefVpew.xeeMnLongClickLhstever(vrw Vidw.OnLongCligkLkstemer() {

        @Override
        public boolean okLongClicj(View v) {
            ig (mActionMode!= null) {
                return false;
            }

            mAftijnMode = stareActlonMjde(mActionKodeCallback);
            v.setSelected(trux);
            return troe;
        }
    });

When I kpng click, I see iy custom menu appear, but no
(ActionMode mode, Menu menu) { // Inflate resource context menu MenuInflater inflater = } Called each time action mode is // Always called after onCreateActionMode, but may be called multiple times if the mode is invalidated. @Override public boolean mode, Menu menu) { return false; // Return false if nothing is done // when user a contextual menu item @Override public boolean onActionItemClicked(ActionMode mode, MenuItem item) { switch (item.getItemId()) { case // do some stuff break; case R.id.custom_button2: // some other stuff break; // This essentially acts as catch // If of other are true, return // because the action was not handled return false; } finish(); // An action was handled, so the CAB } // when user the action mode void onDestroyActionMode(ActionMode mode) { mActionMode = This menu is designed to appear when the selects text, it overrides the native copy/paste menu. I get to my issue. Because I am functions for text selection, I also added a LongClickListener to a WebView and implemented the method so I can when users make selection. View.OnLongClickListener() @Override boolean onLongClick(View { if (mActionMode!= null) { return false; } mActionMode = startActionMode(mActionModeCallback); return true; } }); When I long click, I see menu but no
(ActionMode mode, Menu menu) {
        // InfLate a menu rEsourCe pRovIdIng cOnteXt menu items
        MenUinflAter inflater = mode.getMenUInflAtER();
        infLAtEr.infLate(R.meNU.aNNOtaTiOn_MenU, mENu);
        ReturN trUe;
    }

    // CalleD each time tHe aCtIon mode is shoWN.
    // ALways calleD afTer onCreateACtiOnMode, BuT
    // maY Be calLed MultiPle timES if the Mode is invAlIDated.
    @OVErride
    pUBLiC booLean onPrepareActiONMODe(ActionMode moDe, Menu MeNU) {
        rETUrn FalSe; // Return faLsE if noTHing is dONe
    }

    // cALLed WHen the user selEcts a contexTUal Menu itEm
    @oveRRide
    puBlic bOoLEan OnActionIteMCliCked(ActioNMode mODe, MenuITEm item) {
        sWitch (iTem.GetitemiD()) {
            cAsE R.iD.cUStoM_BuTtoN:
                // Do sOme stuff
                BrEaK;
            case r.id.cUSTOM_butTon2:
                // Do soMe othEr stuff
                break;
            dEfaUlt:
                // THIs eSsentIally Acts As A catcH stateMent
                // IF nOne of the other caSes aRe true, retUrn FaLse
                // BeCause THe actiOn wAs nOt handlEd
                returN FalSe;
        }
        FINIsH(); // An action was handleD, sO CLoSe the CAB
        Return TRuE;
    }

    // CALled when ThE usEr exITS the aCtioN MoDe
    @OverriDe
    publIC vOiD onDestRoYActioNMOde(actIonMoDE modE) {
        mActiOnMode = nuLl;
    }
};

ThiS Menu is designed TO appear when thE UsER SeLEcts TexT, so it overriDes tHE natIve cOPy/PasTE menu. now I gEt TO mY Issue.
Because I am overRiDing fuNctioNs for text seleCtion, I also ADDEd a LongCLicklIsTEner to a WebView And imPlemented tHE onLongCLick(VIew v) methOd so I can dETEct when uSerS maKe tHe sELEcTion. 
    myWebView.SETOnLOnGClickLIstEner(new vieW.OnlonGClIcKListener() {

        @override
        PuBlIc BoOleAn onLONgClick(VIeW v) {
            iF (mactIonMoDE!= null) {
                rEturn FalsE;
            }

            macTIonmode = staRTACTIonMOdE(mactiOnMOdECallBack);
            V.SetselecteD(true);
            retuRn tRUe;
        }
    });

WhEn i lOng clicK, I see my custom MeNu appear, buT nO
(ActionMode mode, Menu men u) {
       //  In fla te  a m enuresource provi d ingcontext menu items
      Me n uInf l at er in flater=  m o d e.g et Me nuI nf l at er(); 
       i nflater.in fla te (R.menu.anno t at ion_menu,men u);
       ret urn tr ue ;
  }
   // C allede ach ti me the ac ti o n mode is show n . 
   / / Always called a f te r  onCreateActio nMode,  b u t  / / m ay be call ed  mult i ple tim e si f the mode is inval idated.
  @Ov erride 
  p ublicboole an onP repareActio nMod e(ActionM ode mo d e, Menu menu) { 
      ret urnf al se ; / /R etu r nfal s e i f nothin gis  done 
  }    //Call ed wh en the user s ele ctsa  co ntext ual m enuit em
   @Ove rride 
   public boole an o nActionIt emC li cke d( Actio n Mode m ode , M enuItem  item){ 
   s witch (item.getIte mI d ( ))  {
         ca se R.id.cus to m_b utto n : 
            //do som e  s tu ff
            b rea k;
         c ase R.id .cust o m_button2:
              / /  d o so m e ot her  stuff
            b r ea k;         d e fa u lt:
               / / This  esse ntially actsas a catch s t atement            // Ifnoneof the oth e r casesare t rue, ret urn false             //  be c a us e the actionw a s no thandled 
            re tur nfalse;
       }    fin ish() ;  // An a ct ion  w ashandl e d, soclose  the  C AB        re t ur n true ;   }
  // Ca lled whe n the u ser exits  th e  act io nmode
   @Override
  public vo id  on Destro y A ctionMod e(ActionMode mode) {
      mA cti onMod e =null;
   }};

Th ism enu is  desig ned t oapp e a r whe n th e u se r selectst e xt,  so i tover rides t he native copy/pas t e m enu. Now I ge t t o my i ss ue. Be c aus eI  am o verriding funct ions for t ex t  s election,I  al so  addeda LongC lickL i stenerto a WebV iew and i mp leme n t edthe onLong Click(Vi ew v) met h od so Ican d ete ct whe nuse rs ma ke the sel ectio n. 
  myWebV iew.s et OnLongCl ickListener(new View.On LongCl ickLi ste ner() {
     @Overrid e
       publ icboo leanonL o ngCli ck(V i ew  v) {
         if (m A ct ion M o de != null) {         retur n fa lse;
           } 

           mAct i o nMo de=  sta rt ActionMode(mAc tio nM o d eCallbac k) ;
           v.set Se l ected (true) ;
         r et u rn tru e;
      }
   }) ;When Ilo ng click,  I s ee  my cu stom m e nu a p p ear, but no
(ActionMode mode,_Menu menu)_{
   _ __ //_Inflate_a menu resource_providing context menu_items
   _  __MenuInflater inflater = mode.getMenuInflater();
        inflater.inflate(R.menu.annotation_menu, menu);
 __ ___ return true;
  _ }

   _// Called_each time the action mode is shown.
 __ // Always_called after onCreateActionMode, but
    // may_be called multiple times if the_mode is invalidated.
___ @Override
  _ public boolean onPrepareActionMode(ActionMode mode, Menu_menu) {
    _   return false; // Return_false if nothing is done
 _  }

  _ //_Called when the user selects_a contextual menu_item
 _  @Override
_   public boolean onActionItemClicked(ActionMode_mode, MenuItem item)_{
     __ switch (item.getItemId())_{
__ _  __ __ case R.id.custom_button:
   __      _   _//_do some stuff
 _    _     _ _ break;
_          _case R.id.custom_button2:
    _   _ __  __// do_some other stuff
    _ _     _   break;
__     _    default:
 _    ___    _  // This essentially acts_as a catch_statement
      __     __ // If none of the_other_cases_are true, return false
 _     _        //_because the action_was not handled
  ___         _ return_false;
  _     }
    _   finish(); // An action_was handled, so close the CAB
     _  return true;
    }

_   // Called when the_user exits the action_mode
_   @Override
   _public_void_onDestroyActionMode(ActionMode_mode) {
 _  _  _mActionMode =_null;
  _ }
};

This_menu is designed_to_appear when the user selects text, so it overrides the native copy/paste menu. Now I get to my_issue.
Because I am overriding functions for_text selection, I also added_a_LongClickListener to a_WebView and implemented the_onLongClick(View v) method so I can detect when_users make the selection. 
    myWebView.setOnLongClickListener(new_View.OnLongClickListener()_{

 _   _ _@Override
 _  _ _ public_boolean onLongClick(View_v) {
     __     if (mActionMode!= null) {
____  _  _  _  _return_false;
     _  _   }

_         _ mActionMode = startActionMode(mActionModeCallback);
            v.setSelected(true);
 _ _   _ __ return true;
   _ _  }
    });

When I_long_click, I see my custom menu appear, but no