Currently I am using
mAudioManager.registerMediaButtonEventReceiver(mRemoteControlResponder);
but this is now deprecated in 5.0 and replaced by setMediaButtonReceiver
. There are 5 links in Google all pointing to developer.android.com.
Has anyone used this yet? If so can you provide an example?