Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gray circle next to large notification icon?

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)));
like image 442
Darko Petkovski Avatar asked Dec 24 '14 08:12

Darko Petkovski


People also ask

How do I get rid of the notification circle?

In the Circle app, go to Menu >> Manage >> Push Notifications. Use the toggles to turn ON or OFF the notifications you'd like to receive from Circle.

How do I get rid of the notification circle on my Android?

If your Samsung Galaxy smartphone runs Android 11 or 12, open the Settings app and head into the "Notifications" menu. Then, tap "Advanced settings" and toggle off the "App icon badges" switch.

What are notification icons?

Android Status Bar icons are notifications in the graphical user interface (GUI) from apps running on your device. These notifications can contain text, graphics, and even controls.


1 Answers

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 ///

like image 183
Drakkin Avatar answered Oct 21 '22 18:10

Drakkin