I am trying to show color notification icon in Android L.
The only way to show the notification icon in color is to setLargeIcon. The problem is that large icon won't be shown unless setSmallIcon is also set. Sett both results in both large and small shown at the same time (with small icon on the bottom right of large icon.)
So my question is, is it possible to only show large notification without showing small notification in Android L?
my code follows:
builder.setContentTitle(context.getString(R.string.app_name))
.setSmallIcon(R.drawable.ic_notification)
.setLargeIcon(BitmapFactory.decodeResource(context.getResources(), R.drawable.ic_app))
.setAutoCancel(true)
.setContentText(content)
//.setColor(0xff123456)
.setWhen(0)
.setContentIntent(contentIntent)
.setCategory(Notification.CATEGORY_CALL)
.setVisibility(Notification.VISIBILITY_PUBLIC)
.setPriority(Notification.PRIORITY_MAX);
Aucun commentaire:
Enregistrer un commentaire