0

Can't seem to grab the events from the Hardware buttons.

Setting the Media session callback and doing this:

mSession.setFlags(MediaSession.FLAG_HANDLES_MEDIA_BUTTONS |
                MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS);

But no luck. Any ideas?

Silva2351
  • 332
  • 2
  • 12

1 Answers1

0

Was missing the setActive on the MediaSession.

Silva2351
  • 332
  • 2
  • 12