Push Notification Icon Android -
how add notification icon in notification area in android? try show blank white space in notification area.
mnotificationmanager = (notificationmanager) .getsystemservice(context.notification_service); pendingintent contentintent = pendingintent.getactivity(this, 0, new intent(this, receive_message_list.class), 0); notificationcompat.builder mbuilder = new notificationcompat.builder( this) .setsmallicon(r.drawable.pushicon) .setcontenttitle("may-i") .setstyle(new notificationcompat.bigtextstyle() .bigtext(notification_message)) .setcontenttext(notification_message); mbuilder.setcontentintent(contentintent); mnotificationmanager.notify(notification_id, mbuilder.build());
on android 5.0, icon passed thru color filter makes non transparent pixels, white.
from, http://developer.android.com/design/patterns/notifications.html
use color distinguish app others. notification icons should white-on-transparent background image.
Comments
Post a Comment