The RemoteControlClient was introduced in ICS. That's the way the lock screen seems to be integrating with various music players. See the screenshot below for an example of Spotify on the lock screen.
Could one from another app than the lock screen integrate with said players as well?
I find the documentation lacking a bit on the subject, but I think the results, if it's possible, could be interesting.
Edit:
Progress so far: none. What I've found out is that IRemoteControlDisplay likely has some part in it, but my Android/Java skills are a bit lacking to actually understand how to implement it and achieve the same functionality as on the lock screen.
You can remote control Android devices via the remote control feature of AirDroid Personal. Even the Android device is far away from you. You can use the remote control feature to: Focus on your computer screen, enhance work efficiency.
Bomgar is a single, centralized solution that allows you to support all of your systems, including Windows, Mac, Linux, iOS, Android, and more. Plus, it allows you to conduct multiple sessions simultaneously and collaborate with other reps within sessions, allowing you to be more productive and resolve issues faster.”
While working on my app I've actually found how to implement your own RemoteControlDisplay.
Basically, you extend IRemoteControlDisplay$Stub, which sends messages to special handler, this handler updates metadata and thing. Then you register your own class extended from IRemoteControlDisplay$Stub by calling to AudioManager#registerRemoteControlDisplay().
And then you unregister it by calling AudioManager#unregisterRemoteControlDisplay().
It's fairly complex, but I've wrote an article on how to this. I've published it on XDA, check it here: http://forum.xda-developers.com/showthread.php?p=44513199
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