Die Benachrichtigungsleiste in meiner Anwendung zeigt nur das kleine Symbol im Ticker (wie es sollte). Wenn der "Schatten" jedoch nach unten gezogen wird, zeigt er sowohl das kleine Symbol aus dem Ticker als auch ein großes Symbol, das ich im Notification.Builder eingestellt habe. Hier ist mein Code:Benachrichtigungsleiste zeigt sowohl große als auch kleine Symbole
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;
}
}
Ich weiß nicht genau, warum das passiert. Irgendwelche Hilfe?
Können Sie einen Screenshot irgendwo von Post, was Sie sehen? – CommonsWare
Sicher, eine Sekunde ... http://imgur.com/07lxg – D4N14L
Ich nehme an, dass Sie MintChip sind. Ich bin nicht ganz sicher, warum Sie diesen Effekt erzielen. Welches Gerät ist das? Beachten Sie, dass Ihre Frage besagt, dass Sie "Notification.Builder" verwenden, Ihr Code jedoch nicht. Sie könnten 'NotificationCompat.Builder' aus dem Android Support-Projekt verwenden und prüfen, ob das hilft. – CommonsWare