Gray circle next to large notification icon?
Asked Answered
L

1

7

Im displaying notifications in my app - but for some reason on android version Lolipop its displaying a gray circle next to the large icon like this:

enter image description here

Does anyone have an idea why is this happening?

Here is my code in which I create my notifications:

builder = new NotificationCompat.Builder(context)
                    // Set Icon
                    .setSmallIcon(R.drawable.ic_launcher)
                    .setLargeIcon(icon)
                    // Set Ticker Message
                    .setTicker(message)
                    // Set Title
                    .setContentTitle(message)
                    // Set Text
                    .setContentText(context.getString(R.string.app_name))
                    // Add an Action Button below Notification
                    // .addAction(R.drawable.share,
                    // context.getString(R.string.share), pendingShare)
                    // Set PendingIntent into Notification
                    .setContentIntent(contentIntent)
                    // Dismiss Notification
                    .setAutoCancel(true)
                    .setSound(
                            Uri.parse("android.resource://"
                                    + context.getPackageName()
                                    + "/"
                                    + prefs.getInt(Constants.NOTIF_SOUND,
                                            R.raw.al_affassi_full)));
Limewater answered 24/12, 2014 at 8:27 Comment(2)
I think that is small icon which you set. Try after commenting setSmallIcon(R.drawable.ic_launcher)Onyx
@PankajKumar that way notification makes sound but no notifications is displayed.Limewater
P
4

Your notification icon must follow the notification design from here : iconography notifications

Notification icons must be entirely white. Also, the system may scale down and/or darken the icons.

Edit

try with this image (the image is white and is between the ///)

/// small icon ///

Padgett answered 24/12, 2014 at 8:54 Comment(5)
I've made my small icon white and 16x16px but same issue, circle stands nor displays come icon inside of itLimewater
Can you share with me your white small icon pleasePadgett
It is not only white, please remove the blue color and make it only white with transparent backgroundPadgett
Ok ill try, but I dont think this is this issue hereLimewater
You can use this to make a notification icon (probably unrelated to the question but still worth having a look at): romannurik.github.io/AndroidAssetStudio/…Polysaccharide

© 2022 - 2024 — McMap. All rights reserved.