I am creating an application, I am able to display notification properly, but small icon is not getting displayed as I have mentioned it in the drawable folder, The icon is getting masked with white color. Can any one help me, how can I get the icon to display properly.
Below is my notification code:
nb = new NotificationCompat.Builder(context) .setContentTitle(contentTitle) .setContentText(contentText) .setSmallIcon(icon) .setLargeIcon(BitmapFactory.decodeResource(context.getResources(), R.drawable.micon_notification)) .setWhen(when) .setContentIntent(contentIntent) .setAutoCancel(true) .setOnlyAlertOnce(true) .setTicker(tickerText) .setColor(Color.RED); The icon mentioned in drawable is as shown below:
[1]: https://i.sstatic.net/ggYCY.png That complete red color present inside the image is getting vanished and icon is getting displayed with complete white color. All suggestions are welcome.
