La barra de notificaciones en mi aplicación muestra solo el ícono pequeño en el teletipo (como debería). Sin embargo, cuando se baja el "sombreado", muestra tanto el ícono pequeño del teclado como un ícono grande que configuré en Notification.Builder. Aquí está mi código:La barra de notificaciones muestra iconos grandes y pequeños
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;
}
}
No sé muy bien por qué sucede esto. ¿Alguna ayuda?
Se puede publicar una captura de pantalla en alguna parte de lo que está viendo? – CommonsWare
Claro, un segundo ... http://imgur.com/07lxg – D4N14L
Supongo que usted es MintChip. No estoy muy seguro de por qué estás obteniendo ese efecto. ¿Qué dispositivo es este? Tenga en cuenta que, aunque su pregunta dice que está utilizando 'Notification.Builder', su código no lo está. Puede considerar usar 'NotificationCompat.Builder' del proyecto de soporte de Android y ver si eso ayuda. – CommonsWare