• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How do I make use of MediaBrowserService?

Kataklasm

Lurker
I have a music player app, I want to control play/pause from the lock-screen or notification panel with MediaStyle notification. I have implemented the MediaStyle notification UI with no problem but the controls part is where I'm having trouble, I understand that it is required to have a MediaButtonReceiver, when I click the play/pause button from the lock-screen or notification panel the app crashes.

Error(s):

java.lang.RuntimeException: Unable to start receiver android.support.v4.media.session.MediaButtonReceiver: java.lang.IllegalStateException: Could not find any Service that handles android.intent.action.MEDIA_BUTTON or implements a media browser service.
 
Back
Top Bottom