I know Jelly Bean 4.2 added the ability to create lock screen widgets, but I also noticed that certain apps (such as Spotify) have added lock screen play/pause/stop/etc controls even for my 4.1.2 phone. I can’t for the life of me figure out how they did it, though. How can I do something like this in my apps?
Thanks!
http://developer.android.com/about/versions/android-4.0.html
and a few more paragraphs on the subject.
You register a
RemoteControlClientviaregisterRemoteControlClient()onAudioManager.