Notification icon in Android 7 -


i'm having problem app's notification icon (in android 7). instead of showing full icon image, system displays background of icon (see attached image). guess it's icon, idea should fix? thanks!

enter image description here

edit: code example

notificationcompat.builder builder = new notificationcompat.builder(this);     builder.setcontenttitle(title)             .setcontenttext(message)             .setsmallicon(r.mipmap.ic_launcher)             .setautocancel(true)             .setongoing(false)             .setticker(message)             .setcontentintent(pendingintent);     android.app.notification notification = new notificationcompat.bigtextstyle(builder)             .bigtext(message).build(); 

you need use smallicon 1 , largeicon full one.


Comments

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -