The notification panel in my application shows only a small icon in the ticker (as it should). However, when the βshadowβ is reset, it shows both the small icon from the ticker and the large icon that I set in Notification.Builder. Here is my code:
if (Build.VERSION.SDK_INT > 10){ notification = new Notification(R.drawable.ic_stat_mintchip, "This is a test", System.currentTimeMillis()); notification.largeIcon = (((BitmapDrawable)c.getResources().getDrawable(R.drawable.ic_launcher)).getBitmap()); notification.defaults |= Notification.DEFAULT_ALL; notification.number += 1; notification.flags |= Notification.FLAG_AUTO_CANCEL; } else { notification = new Notification(R.drawable.ic_stat_mintchip, "This is a test", System.currentTimeMillis()); notification.flags |= Notification.FLAG_AUTO_CANCEL; notification.defaults |= Notification.DEFAULT_ALL; notification.number += 1; } }
I do not quite understand why this is happening. Any help?
source share