title: Integrating Chromecast into application supporting ActionBarSherlock
body: <p>I'm integrating chromecast into my existing application supporting ActionBarSherlock.
  I followed this link <a href="http://www.droidorbit.com/2013/10/mediarouter-and-actionbarsherlock.html" rel="nofollow">http://www.droidorbit.com/2013/10/mediarouter-and-actionbarsherlock.html</a>.
  But I got the error in compile time:</p>
  
  <pre><code>MediaRouterJellybean cannot be resolved to a type.  
  MediaRouterJellybeanMr1 cannot be resolved to a type  
  MediaRouterJellybeanMr2 cannot be resolved to a type  in SystemMediaRouteProvider.java file.  
  R.attr.isLightTheme cannot be resolved or is not a field in MediaRouterThemeHelper.java file.
  </code></pre>
  
  <p>I currently comments these code for error free, then integrate with the Cast sample project. In the project I display cast icon in the ActionBar with <code>android.support.v7.app.MediaRouteActionProvider</code> instead of using <code>MediaRouteButton</code>. But I got the error in run time in <code>onCreateOptionMenu()</code>:</p>
  
  <pre><code>java.lang.ClassCastException: android.support.v7.app.MediaRouteActionProvider cannot be cast to com.actionbarsherlock.view.ActionProvider
  </code></pre>
  
  <p>I don't know how to fix it. Could anyone help me?<br>
  Thanks in advance.<br>
  P/S: Could anyone give instructions modifying MediaRouter lib using Eclipse.</p>