Questions tagged [mediabrowserservice]
40 questions
17
votes
0 answers
MediaBrowserService and MediaStore
How to use MediaBrowserService to load media from different providers(Files Explorer, GoogleDrive, ContentProvider, etc) keeping single service
Checked with UAMP, its only uses one provider
My second question is what is the purpose of onLoadItem

ingsaurabh
- 15,249
- 7
- 52
- 81
15
votes
0 answers
The app did not appear in the Android Auto screen when we attempted to test functionality
I have a audio player app on playstore and wanted to add support for AndroidAuto.
After making the required changes, when I uploaded my new apk to playstore it got rejected and received the following email from Play
When they say app did not appear…

Rinav
- 2,527
- 8
- 33
- 55
13
votes
2 answers
How to set EXTRA_PAGE and EXTRA_PAGE_SIZE in a MediaBrowserServiceCompat by getting reference to the Android Auto MediaBrowser?
I have an Android Auto app. I would like to take advantage of pagination for browsing within the app. It seems that you can set EXTRA_PAGE and EXTRA_PAGE_SIZE by getting a reference to the MediaBrowserCompat and passing those constants in…

I'm_With_Stupid
- 1,112
- 4
- 16
- 35
12
votes
1 answer
MediaBrowserService with ExoPlayer and PlayerControlView - How to access to the player instance from the UI (PlayerControlView)?
I am currently working on a part of an app which has video and audio functionality, and started refactor the code base recently. The goal is to integrate MediaSession/ MediaController and MediaBrowserService/ MediaBrowser framework.
We use ExoPlayer…

Mike Hsu
- 123
- 5
10
votes
0 answers
Android assistant - MediaBrowserService - Voice command - "Play x on appName"
The voice commande Play [song] on [my appName] command not working, the "appName" is not being recognised by google assistante.
I followed the instruction form https://developer.android.com/guide/topics/media-apps/interacting-with-assistant and the…

Salah Hammouda
- 303
- 2
- 19
7
votes
2 answers
Is it possible to connect to Spotify's MediaBrowserService?
I am writing a voice assistant and would like to be able to launch search results in Spotify. To understand how to connect to Spotify and other apps, I am playing with the Google's Media Controller Test app, which is described as doing the…

Ellen Spertus
- 6,576
- 9
- 50
- 101
5
votes
2 answers
Android Auto: How to return a large number of children on loadChildren() of MediaBrowserService?
I am currently trying to implement a MediaBrowserService to build a media app for Android Auto.
I followed the official Android Auto documentation (https://developer.android.com/training/cars/media#onLoadChildren) to implement theonLoadChildren…

idearibosome
- 684
- 1
- 7
- 17
5
votes
1 answer
leak canary detects memory leak in MediaBrowserServiceCompat sample app
I have created a test app that implements MediaBrowserServiceCompat. I have followed this guide:
https://developer.android.com/guide/topics/media-apps/audio-app/building-a-mediabrowserservice
Created MediaPlaybackService and MainActivity. I have…

Kasper Finne Nielsen
- 2,086
- 2
- 17
- 28
5
votes
0 answers
In MediaBrowserService.onLoadChildren, when/how is the options bundle supplied?
In MediaServiceBrowser or MediaServiceBrowserCompat, there are two methods:
public abstract void onLoadChildren (String parentId,
Result
- > result)
and
public void onLoadChildren (String parentId,
…

Rob Pridham
- 4,780
- 1
- 26
- 38
5
votes
3 answers
Refreshing MediaBrowserService subcription content
TL;DR: I have successfully created and coupled (via a subscription) an activity to a media browser service. This media browser service can continue running and play music in the background. I'd like to be able to refresh the content at some stage,…

Benjamin Scholtz
- 823
- 6
- 15
5
votes
2 answers
How to stop MediaBrowserServiceCompat?
My service:
public class MusicService extends MediaBrowserServiceCompat {
...
}
My Activity:
public class MediaActivity extends AppCompatActivity{
private MediaBrowserCompat mMediaBrowser;
@Override
public void onCreate(Bundle…

NickUnuchek
- 11,794
- 12
- 98
- 138
4
votes
1 answer
Adding media item to MediaBrowserService
I'm building a music player for Android, using these two samples (Android MediaBrowserService Sample and Universal Music Player) as examples.
I noticed both load media information on start-up and add it to the Media Browser. Both have the complete…

Vin
- 309
- 1
- 11
3
votes
1 answer
I have an issue regarding Android Auto media duration feature
I just developed media application with android automotive support everything is working fine but i have an issue with new design of automotive OS like in previous design there is no duration for media streams but now they added duration of a media…

Tara
- 692
- 5
- 23
3
votes
1 answer
MediaStyleNotification: Play/Pause button does not respond to click
In my app when the user chooses an audio file for playing, when the file is ready and the playback starts a MediaStyle Notification is shown successfully.
The metadata info is updated, title, icon etc. But…
1.Play/Pause button does not respond to…

Themelis
- 4,048
- 2
- 21
- 45
3
votes
1 answer
MediaBrowser not connecting to MediaBrowserService
I'm trying to connect to a MediaBrowserService from an activity using a MediaBrowser. However, my onConnected callback never seems to be called to allow me to set up the MediaController and start manipulating playback.
In my player/browser…

transiti0nary
- 493
- 6
- 25