Questions tagged [mediabrowserservicecompat]
65 questions
0
votes
1 answer
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 MediaBrowserCompat.ConnectionCallback…

ohnu93
- 263
- 6
- 22
0
votes
0 answers
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 MediaBrowserCompat(this, new…

Kiran Sonar
- 1
- 2
0
votes
0 answers
Big issue with android.content.Context.getSystemService(java.lang.String)' on a null object reference error
I'm trying to build a music app in Android, although I feel ridiculously newbie sometimes. I have researched a lot, tried my best at getting the hang of how MediaPlayer, MediaBrowserCompat / MediaBrowserServiceCompat, MediaController and Services…

Emilian Cebuc
- 331
- 4
- 20
0
votes
1 answer
MediaBrowserServiceCompat starts playing on its own
Well, subj. Users report that on some devices (Doogee, Meizu) MediaBrowserServiceCompat starts playing after it's got paused and phone remains untouched for some time with it's screen off.

JaLoveAst1k
- 512
- 3
- 14
-1
votes
1 answer
How to control play/pause state of MediaBrowserServiceCompat from RecyclerView?
I have an app that uses MediaBrowserServiceCompat to play audio. I have a RecyclerView that displays a list of media items, and I want to be able to control the play and pause state of each item from within the RecyclerView. For example, I want to…

David Feldman
- 7
- 4