androidandroid-mediaplayerandroid-support-libraryandroid-appcompatandroid-wear-notification

Updating MediaBrowserService to MediaBrowserServiceCompat removes 'browse' function


I've been busy updating the universal Android Mediaplayer to use the Compat libraries to get it working on Android versions lower than lollipop.

This was a process of replacing most classes by the compat variants of them. You can see the commit with all my changes here.

The thing I don't like right now is that the 'browse' function has dissapeard on the Wear device. This function can be seen in the images below.

enter image description here enter image description here

I just made screenshots of this function with the latest version of the Universal Music Player. When I updated the most classes to their compat variants this function dissapeard.

I don't know if I forgot to update something, if the function should be activated somehow or any other reason why it doesn't work.

Is there any reason for this?


Solution

  • Update: As of Android Support Library 23.2, MediaBrowserServiceCompat is public and fully compatible with Android Auto and Android Wear (exactly the same as MediaBrowserService). A full description of what MediaBrowserServiceCompat can do is found in this blog post.

    Previous Answer: MediaBrowserServiceCompat as of version 23.1.1 is not yet compatible with things that require a framework MediaBrowserService (such as Android Wear and Android Auto) - that is coming in a future release.