I want to change the notification icon that appears by default.
I have my NotificationCompat.Builder as well:
Bitmap largeIcon = BitmapFactory.decodeResource(getResources(), R.drawable.largeicon);
NotificationCompat.Builder mBuilder =
new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.smallicon)
.setLargeIcon(largeIcon)
.setColor(0x00)
.setContentTitle("B-TRAKER")
.setOngoing(true)
.setContentText("Abrir aplicación");
The fact is that it is not changed by the icon that I have established. Researching a bit I saw that to show the icons I must change the targetSdkVersion of the Gradle to 20, but still does not show me the icon I want. It only shows the default Android icon (the android).
Edit: Well, apparently my code was fine, I rebooted the device and now if you take the icons.