I've got a strange problem with notification icon today.
It looks like this :
(the white circle ...)
Did I do something bad ?
Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.icon_notification)
.setContentTitle(this.getString(R.string.notification_title))
.setContentText(this.getString(R.string.notification_text))
.setAutoCancel(true)
.setSound(defaultSoundUri)
.setContentIntent(pendingIntent);
Here is my icon image (freshly downloaded from here https://material.io/icons/#ic_photo) : http://image.noelshack.com/fichiers/2016/44/1478185219-icon-notification.png
Did I miss something ?
For the record, I'm using SDK 24 and only created the hdpi
resource folder for now.
Edit #1 : I've added the ldpi
, mdpi
and xhdpi
icons, nothing change ...
Edit #2 : For more precision, I'm trying to create this notification from a service ... FCM messaging service ...