MediaRouter: Detecting a chromecast device when using ActionBarSherlock?
问题 So I modified the Mediarouter source to be dependent on ActionBarSherlock rather than AppCompat. However, now the callback from MediaRouteAdapter onDeviceAvailable(...) is not being called. Any ideas on how to get this to work? I don't want to leave the cast button always visible. Rather, I want to use onDeviceAvailable(..) to only make it visible when a device is available. 回答1: I found a hack on how to fix this. If you use appcompat, the cast icon will only be visible when you have a