

create and register the remote control client

PendingIntent mediaPendingIntent = PendingIntent.getBroadcast(context, 0, mediaButtonIntent, 0) tComponent(mRemoteControlClientReceiverComponent) Intent mediaButtonIntent = new Intent(Intent.ACTION_MEDIA_BUTTON) * Set up the remote control and tell the system we want to be the default receiver for the MEDIA buttonsĬontext context = VLCApplication.getAppContext() ĪudioManager audioManager = (AudioManager)context.getSystemService(AUDIO_SERVICE) ĪudioManager.registerMediaButtonEventReceiver(mRemoteControlClientReceiverComponent) This part of the code is to intercept media controls.

If you want a working example, download VLC for Android and check out : It can be done using RemoteControlClient, part of Android since ICS. And coming soon, you’ll be able to remove a single photo from a Memory, remove Best of Month Memories and rename or remove Memories based on the moments you celebrate.The solution below only works for applications that have registered itself as a media controller, so apps that don't play audio can't/shouldn't use this mechanism to change the lockscreen wallpaper. We’re also adding more granular controls for Memories in your grid - starting today, you’ll be able to rename a Trip highlight, or remove it completely. Later this summer we're making these controls easier to find, so you can choose what you look back on in just a few taps. Google Photos already includes controls to hide photos of certain people or time periods, and we’re continuing to add new ones to improve the experience as a result of this continued partnership. We specifically heard from the transgender community that resurfacing certain photos is painful, so we’ve been working with our partners at GLAAD and listening to feedback to make reminiscing more inclusive. Whether it’s a breakup, a loss or some other tough time, we don’t want to relive everything.
