title: cast button not showing up on Demo
body: <p>I  am running the demo from <a href="https://github.com/googlecast/CastVideos-android" rel="nofollow">https://github.com/googlecast/CastVideos-android</a> . </p>
  
  <p>It is dependent the library located here <a href="https://github.com/googlecast/CastCompanionLibrary-android" rel="nofollow">https://github.com/googlecast/CastCompanionLibrary-android</a> </p>
  
  <p>The project is set up with all the necessary libraries and required jar.</p>
  
  <p>The project compiles and runs no problem except that the chromecast button does not show up in the actionBar.</p>
  
  <p><strong>The button shows up if I modify onCreate  with the following</strong> :</p>
  
  <pre><code>mSelector = new MediaRouteSelector.Builder()
        .addControlCategory(MediaControlIntent.CATEGORY_LIVE_AUDIO)
        .addControlCategory(MediaControlIntent.CATEGORY_LIVE_VIDEO)
        .addControlCategory(MediaControlIntent.CATEGORY_REMOTE_PLAYBACK)
        .addControlCategory(CastMediaControlIntent.categoryForCast(getResources().getString(R.string.app_id))).build();
  </code></pre>
  
  <hr>
  
  <p>and modify onCreateOptionsMenu with the following :</p>
  
  <pre><code> @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          super.onCreateOptionsMenu(menu);
          getMenuInflater().inflate(R.menu.main, menu);
  
        //mediaRouteMenuItem = mCastManager.addMediaRouterButton(menu, R.id.media_route_menu_item);
        //Attach the MediaRouteSelector to the menu item
  
          //MenuItem 
          mediaRouteMenuItem = menu.findItem(R.id.media_route_menu_item);
          MediaRouteActionProvider mediaRouteActionProvider = (MediaRouteActionProvider)MenuItemCompat.getActionProvider(mediaRouteMenuItem);
          mediaRouteActionProvider.setRouteSelector(mSelector);
          return true;
      }
  </code></pre>
  
  <p>If I simply leave onCreateOptionsMenu as it was out of the box, then it does not work.</p>
  
  <pre><code>@Override
      public boolean onCreateOptionsMenu(Menu menu) {
          super.onCreateOptionsMenu(menu);
          getMenuInflater().inflate(R.menu.main, menu);
  
          mediaRouteMenuItem = mCastManager.addMediaRouterButton(menu, R.id.media_route_menu_item);        
          return true;
      }
  </code></pre>
  
  <p>Any ideas as to why this is? </p>