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

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -