I need to implement the buttons under the notification.
I have 2 Samsung S5 and Meizu MX5
The push that I get on the Meizu MX5 looks like this
The push that I get on the Samsung S5 looks like
Here is my code
public void With_buttons(View view) { Bitmap icon = BitmapFactory.decodeResource(getResources(), R.drawable.ic_android_black_24dp); Intent resultIntent = new Intent(this, ResultActivity.class); TaskStackBuilder stackBuilder = TaskStackBuilder.create(this); stackBuilder.addParentStack(ResultActivity.class); stackBuilder.addNextIntent(resultIntent); PendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT); NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Notification notification = new Notification.Builder(this) .setVisibility(Notification.VISIBILITY_PUBLIC) .setSmallIcon(R.drawable.ic_android_black_24dp) .setContentTitle("Wonderful music") .setContentText("My Awesome Band") .setLargeIcon(icon) .addAction(R.drawable.ic_android_black_24dp, "Previous", resultPendingIntent) // #0 .addAction(R.drawable.ic_android_black_24dp, "Pause", resultPendingIntent) // #1 .addAction(R.drawable.ic_android_black_24dp, "Next", resultPendingIntent) // #2 .build(); mNotificationManager.notify((int) System.currentTimeMillis(), notification); } Why is this difference? I expect to see the buttons on the Samsung, but they are not ...
What am I doing wrong?


Samsung S5not that old, but rather Samsung has cut something out of the system when porting :) - Eugene Krivenja