Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is RemoteControlClient in Android 4.0?

I know the rules of StackOverflow and hence apologize beforehand for asking such a subjective question.

I tried the documentation but all it says is this :

RemoteControlClient enables exposing information meant to be consumed by remote controls capable of displaying metadata, artwork and media transport control buttons.

A remote control client object is associated with a media button event receiver. This event receiver must have been previously registered with registerMediaButtonEventReceiver(ComponentName) before the RemoteControlClient can be registered through registerRemoteControlClient(RemoteControlClient).

I don't know about others but for me, this much of documentation was not enough for something which has such a cool name as "RemoteControlClient".

I searched a lot of forums for this but unfortunately, the concept is still not clear to me.

Would indeed be grateful if someone helped me understand it, how it works and most importantly, what all it is capable of.

Thanks in advance and apologies for asking a subjective question.

like image 533
Swayam Avatar asked Aug 31 '12 14:08

Swayam


1 Answers

http://developer.android.com/about/versions/android-4.0.html

The new RemoteControlClient allows media players to enable playback controls from remote control clients such as the device lock screen. Media players can also expose information about the media currently playing for display on the remote control, such as track information and album art.

and a few more paragraphs on the subject.

It also points out:

For a sample implementation, see the Random Music Player, which provides compatibility logic such that it enables the remote control client on Android 4.0 devices while continuing to support devices back to Android 2.1.

like image 62
CommonsWare Avatar answered Oct 21 '22 01:10

CommonsWare