I've created a simple notification using NotificationCompat
.
Following is my code
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(mContext);
mBuilder.setSmallIcon(icon)
.setTicker(title)
.setWhen(0)
.setAutoCancel(true)
.setContentTitle(title)
.setStyle(new NotificationCompat.InboxStyle())
.setContentIntent(resultPendingIntent)
.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION))
.setContentText(message);
NotificationManager notificationManager = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.notify(mNotificationId, mBuilder.build());
Here is the output on my device.
My icon does not have the blue gradient background. The icon is a png that contains only the white USB symbol.
I'm suspecting that the background is being added by system.
Now my question is, how I can prevent this kind of modifications.
My device is running KitKat 4.4.4