Music player control in notification
You need to set a custom intent action, not the AudioPlayerBroadcastReceiver component class. Create a Intent with custom action name like this Intent switchIntent = new Intent(“com.example.app.ACTION_PLAY”); Then, register the PendingIntent Broadcast receiver PendingIntent pendingSwitchIntent = PendingIntent.getBroadcast(this, 100, switchIntent, 0); Then, set a onClick for the play control , do similar custom action for other … Read more