R.drawable.ic_play_arrow_white_24dp, mService.getString(R.string.label_play), MediaButtonReceiver.buildMediaButtonPendingIntent( mService, PlaybackStateCompat.ACTION_PLAY)); R.drawable.ic_pause_white_24dp, mService.getString(R.string.label_pause), MediaButtonReceiver.buildMediaButtonPendingIntent( mService, PlaybackStateCompat.ACTION_PAUSE)); R.drawable.ic_skip_next_white_24dp, mService.getString(R.string.label_next), MediaButtonReceiver.buildMediaButtonPendingIntent( mService, PlaybackStateCompat.ACTION_SKIP_TO_NEXT)); R.drawable.ic_skip_previous_white_24dp, mService.getString(R.string.label_previous), MediaButtonReceiver.buildMediaButtonPendingIntent( mService, PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS));
.setLargeIcon(description.getIconBitmap()) .setContentIntent(controller.getSessionActivity()) .setDeleteIntent(MediaButtonReceiver.buildMediaButtonPendingIntent( this, // Context PlaybackStateCompat.ACTION_STOP)) .addAction(new NotificationCompat.Action( R.drawable.pause, getString(R.string.pause), MediaButtonReceiver.buildMediaButtonPendingIntent( this, PlaybackStateCompat.ACTION_PLAY_PAUSE))) .addAction(new NotificationCompat.Action( R.drawable.skip_to_next, getString(R.string.skip_to_next), MediaButtonReceiver.buildMediaButtonPendingIntent( this, PlaybackStateCompat.ACTION_SKIP_TO_NEXT))); .setCancelButtonIntent(MediaButtonReceiver.buildMediaButtonPendingIntent( this, PlaybackStateCompat.ACTION_STOP)));
MediaButtonReceiver.buildMediaButtonPendingIntent( mService, PlaybackStateCompat.ACTION_STOP))) .setDeleteIntent(MediaButtonReceiver.buildMediaButtonPendingIntent( mService, PlaybackStateCompat.ACTION_STOP))