Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote control client for Android

Tags:

java

android

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.

enter image description here

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.

like image 560
Frans Avatar asked Aug 28 '12 21:08

Frans


People also ask

Can I remotely control an Android phone?

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.

Does Bomgar work on Android?

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.”


1 Answers

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

like image 178
Alexander Woodblock Avatar answered Oct 01 '22 04:10

Alexander Woodblock