Вот нотификация, созданная так:
NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
Intent notificationIntent = new Intent(this, MyActivity.class);
PendingIntent contentIntent = PendingIntent.getActivity(this,0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);
Resources res = this.getResources();
builder.setContentIntent(contentIntent)
.setSmallIcon(R.drawable.launcher_icon)
.setLargeIcon(BitmapFactory.decodeResource(res, R.drawable.launcher_icon))
.setContentTitle("title")
.setTicker("ticker")
.setAutoCancel(true)
.setContentInfo("Info")
.setVisibility(VISIBILITY_PUBLIC)
.setContentText("text");
Notification notification = builder.build();
NotificationManager notificationManager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.notify(notificationId++, notification);
Все работает в android5. В android6 тоже все работает кроме одного: не показывается быстрый текст в статусбаре. Только иконка. Можно ли сделать так, чтобы работало точно так же как и android5: появляется иконка и коротко показывается текст-ticker?
Сборка персонального компьютера от Artline: умный выбор для современных пользователей