18 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
358
views
Grant read access to FileProvider to any client app without knowing their package name
In the context of a MediaBrowserService for audio playback I need to provide image files via a ContentProvider (FileProvider). The URIs are propagated via meta data related to media browsing and ...
1
vote
0
answers
361
views
How to control music playback on the phone from WearOS watch
I want remote control phone music playback from WearOS watch just for play/pause/next/previous as system app does.
I have google a lot, building a media browser client in WearOS app looks right to ...
2
votes
0
answers
159
views
How to access SimpleExoPlayer instance inside MediaBrowserServiceCompat with PlayerControlView?
I have been trying to build an audio podcast app in which I need one feature of playing audio that should show in the notification bar/ lock screen just like any other music app.
For that, I have used ...
0
votes
0
answers
277
views
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
│ ...
2
votes
1
answer
1k
views
Why is connectionCallback.onConnected() not called when connecting to mediaBrowser?
I'm just setting out with teaching myself about Android audio development, and I'm rather baffled as to why neither the onConnected nor the onConnectionFailed method of connectionCallback is called ...
11
votes
2
answers
857
views
MediaBrowserServiceCompat receiving empty bundle when item is clicked
I am trying to expose media items to other media apps that can browse my app's content through my MediaBrowserServiceCompat service.
In my onLoadChildren method I am constructing MediaBrowserCompat....
5
votes
0
answers
577
views
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<List<MediaBrowser.MediaItem>> ...
2
votes
1
answer
862
views
Android Auto: paginating a MediaBrowserService by passing extras options bundles fails
Recently, I've been trying to implement pagination on the Android Auto part of my application. To do so, I took inspiration from this Medium post. This question is also related. However, I am still ...
1
vote
0
answers
264
views
Using Single instance of MediaBrowserCompat for entire of app with Dagger 2
I created multiple instances of MediaBrowserCompat in activities and fragments in my app and in this situation every component must create MediaBrowserCompat and connect it to service and so on.
For ...
0
votes
1
answer
99
views
MediaMetadataCompact getRating
In my media app, I keep all the media items as MediaBrowserCompat.MediaItem
I'm adding a rating to these items.
To read the rating from a MediaItemCompact, Android provides
public RatingCompat ...
0
votes
1
answer
2k
views
PlaybackState for MediaControllerCompat
I was following through this guide to building a background audio app with MediaSessionCompat and bumped into a problem.
In my Activity, I connect my UI to media controller as below
private ...
0
votes
0
answers
49
views
MediaBrowserCompat's "connect()" method always return to onConnectonFailed() on Oreo, but works fine on Marshmallow
MediaBrowserCompat's "connect()" method always return to onConnectonFailed() on Android Oreo but works fine on Marshmallow
My "MediaActivity" onCreate() contains
mediaBrowserCompat = new ...
3
votes
1
answer
3k
views
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 ...
1
vote
1
answer
2k
views
Fatal Exception: java.lang.IllegalStateException in MediaBrowser
My audio streaming app have this issue in Crashlytics, with the stacktrace below
Fatal Exception: java.lang.IllegalStateException: getExtras() called while not connected (state=...
0
votes
1
answer
2k
views
Android: Playback State on Media Browser Client returns null pointer exception
I'm currently developing a simple media player using a client/service approach using MediaBrowser compat from the Android support library.
I'm getting the following exception:
FATAL EXCEPTION: main
...