It seems that Google official documentation on accessing a Chromecast from Android revolves mostly around an ActionBar button that seems to automatically handle the chooser dialog and return the user choice to the Callback.
I have a custom Button
(view) with a handleCastButton()
method in my activity. Is there an example somewhere of how to bring up the standard chooser when using a custom UI?
Edit: It looks like I should be able to do something with the stock MediaRouteDialogFactory
but I can't find any details.