My question is quite simple, but I couldn't get around it for a long time so I'm asking here.
How to hide the ongoing notification's icon, that is displayed in the status bar? I am creating the notification with NotificationCompat.Builder
object. I tried to skip (when the option to show icon is unchecked) the builder.setSmallIcon()
function call, but that resulted in no notification on the notifications screen.
How to hide the ongoing notifications icon, that is displayed in status bar?
You don't.
I tried to skip (when the option to show icon is unchecked) the builder.setSmallIcon() function call, but that resulted in no notification in notifications screen.
Correct. Since the primary point of raising a Notification
is to put an icon in the status bar, there is no means to not put an icon in the status bar.