I'm a newbie with RemoteControlClient
and I'm still looking into it. However, I've seen that it can be used to get media buttons like Play/Pause on the lock screen.
Anyway, my question is, is Audio Focus required for RemoteControlClient
to work to show up on the lock screen? I don't have any form of Audio Focus for my app (and maybe the way my media player is implemented for my app is probably not the best way to do so), and my lock screen controls aren't showing up.
As a side note, I'm also finding the RandomMusicPlayer example to be a little confusing.
Yes, I found out that audio focus is required to have audio controls displayed on lock screen. I implemented it according to RandomMusicPlayer and it works fine now. And yes I agree RandomMusicPlayer is a bit confusing sample. Requires reasonable time to figure it out. Here's a nice tutorial about audio focus you can use too http://developer.android.com/training/managing-audio/audio-focus.html.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With