Keirathi
Keirathi

Reputation: 397

Having trouble getting MediaRouteActionProvider button to show up

I'm working on an android app that isn't using an AppCompat based theme, and I'm trying to add chromecast integration using cwac-mediarouter library but I can't seem to get the action provider button to show up.

Relevant code bits: https://gist.github.com/Keirathi/0038ae45fad08b766e79

The basic idea (for testing purposes) is to have an option in the action bar to go to my chromecast activity. From the chromecast activity, I will have the route selector button, and once it's connected I will output logs here.

Whenever I run the app, I can get to my chromecast activity, but the route selector button never shows up in the action bar and my output TextView is just populated with the MediaRouter default route (the tablet that I am running the app from).

I feel like I'm just missing something simple, but I can't figure it out :(

Upvotes: 1

Views: 653

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006869

Then I added your library as a jar.

There is your problem, because I'm a moron. You can't just use the JAR -- you need the Android library project. I will fix the project to remove the JAR.

Upvotes: 2

Related Questions