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

c++ - CPP, 'X' button listener -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -

shared memory - gstreamer shmsrc and shmsink with h264 data -