android - Google Cast v3: Do I _need_ to put the MediaRouteButton in a menu resource as well as the layout XML? -


i'm trying integrate cast v3 our app. our app has activity (no toolbar nor menu) adds fragment (toolbar, no menu). added mediaroutebutton toolbar xml , setup castoptionsprovider illustrated in documentation, though see media route being added our test chromecast device in android logs, mediaroutebutton never appears. if force "visible" in layout xml, appears never enabled.

the sample videobrowser app works, things differently: 1. has basic activity toolbar 2. not use fragments 3. has menu associated toolbar

it fair amount of work re-architect our code move toolbar fragment (one of many) activity , add menu. really required have functional mediaroutebutton? i'm thinking there has easier way ...


Comments

Popular posts from this blog

vue.js - Create hooks for automated testing -

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

serial port - hub4com OVERRUN Error -