3

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?

Marc
  • 1,094
  • 3
  • 17
  • 38

1 Answers1

3

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.

ianhanniballake
  • 191,609
  • 30
  • 470
  • 443
  • 2
    You'll note that `MediaBrowserServiceCompat` actually has a `@hide` annotation on it if you look at the source, hence why it is not in the documentation nor mentioned in the [release notes](http://developer.android.com/tools/support-library/index.html) – ianhanniballake Jan 03 '16 at 18:23
  • Note, the answer has changed! Support Library 23.2 makes `MediaBrowserServiceCompat` official! – ianhanniballake Mar 03 '16 at 22:49
  • MediaBrowserService connect method gives null pointer exception? Any idea? spent almost half day behind this `boolean java.lang.String.equals(java.lang.Object)' on a null object reference android.os.Binder.queryLocalInterface(Binder.java:254) android.service.media.IMediaBrowserService$Stub.asInterface(IMediaBrowserService.java:31)` – sam_k Jul 20 '16 at 22:27
  • @sam_k 0 that sounds like a different question. – ianhanniballake Jul 21 '16 at 01:06