Questions tagged [mediabrowserservice]
40 questions
0
votes
1 answer
how to show indicator for current playing queueitem in mediabrowserservice (android auto) android?
enter image description here
i want to show indicator icon like above image
I will try lots of but i havent idea. how to do it like this

MacyMind
- 1
- 1
0
votes
0 answers
how to add playlist as queue in android auto (MediaBrowserService)?
I try like this :
private MediaMetadataCompat mPreparedMedia;
mPreparedMedia = new MediaMetadataCompat.Builder()
.putString(MediaMetadataCompat.METADATA_KEY_MEDIA_ID, station.ChannelLink)
…

MacyMind
- 1
- 1
0
votes
1 answer
MediaDescription.Builder() not setting MediaItem Icon
This is a android automotive media application that uses the MediaBrowserService and i'm trying to set MediaItem MediaDescription Icon using a image in drawable folder.
This is the code I'm Using,
@Override
public void onLoadChildren(final String…

MadMan
- 1
- 1
0
votes
0 answers
How to resolve leak at androidx.media.MediaBrowserServiceCompat?
Leak is :
19583-19583/com.example D/LeakCanary:
┬───
│ GC Root: Global variable in native code
│
├─ android.service.media.MediaBrowserService$ServiceBinder instance
│ Leaking: UNKNOWN
│ Retaining 1.3 kB in 12 objects
│ this$0 instance of…

NickUnuchek
- 11,794
- 12
- 98
- 138
0
votes
1 answer
Cannot get app to respond to Bluetooth controls
I've tried everything and can't get Bluetooth controls to respond in my media app. I've read over the documentation a hundred times and I still can't get it to work. My Bluetooth headphones respond to other media apps on my device so it's something…

Kris B
- 3,436
- 9
- 64
- 106
0
votes
1 answer
Android Automotive OS not displaying playable MediaItem's
I have a generic Android Automotive OS emulator running. I created a sample automotive app that should show 6 songs at the main browsable root. The code snippet in my MediaBrowserService is:
override fun onLoadChildren(parentId: String, result:…

William Seemann
- 3,440
- 10
- 44
- 78
0
votes
2 answers
onLoadChildren must call detach(), MusicBrowserService, Android?
I am using MediaBrowserService to play audio on the device.
When I turn on the bluetooth and play audio the app crashes.
Below is the logs
java.lang.IllegalStateException: onLoadChildren must call detach() or sendResult() before returning for…

WISHY
- 11,067
- 25
- 105
- 197
0
votes
1 answer
How to use Android's MediaBrowserService to serve MediaStore songs?
In the 'onLoadChildren' method of the MediaBrowserService we must return a list of MediaItems in order for the client to build it's UI accordingly. How would I go about it if in my service I have a cursor I just fetched from the MediaStore, or an…

TheCodeFather
- 194
- 1
- 7
0
votes
1 answer
android TV mediacontroller
I try to use android's mediabrowser and sample by google works fine on phones (https://github.com/googlesamples/android-media-controller)
But on android TV it can't find any app which supported this feature
final Intent mediaBrowserIntent =
…

sergii.gudym
- 163
- 1
- 13
0
votes
1 answer
MediaBrowserService vs MediaPlayer to play wave files on Android
In the Android developer guide, under Building an Audio App section, there is a statement:
The preferred architecture for an audio app is a client/server design. The player and its media session are implemented inside a MediaBrowserService, and the…

Piotr Aleksander Chmielowski
- 5,640
- 7
- 29
- 45