First, do this (tested on Nexus 5 running 4.4.2):
- Pass a PRIORITY_LOW notification to Service.startForeground().
- Observe notification is not shown in status bar.
- Raise a PRIORITY_MAX notification using same notification ID.
- Observe notification is shown in status bar.
Now, is there any way to remove that icon from the status bar (other than Service.stopForeground())?
I've tried calling NotificationManager.cancel() and NotificationManager.cancelAll(). And also tried raising the same original PRIORITY_LOW notification. But all of them leave the notification icon in the status bar.