How to show ongoing notification without an icon in the status bar? - Android Software Development

I've been searching for a way to show an ongoing notification in the notification tray without showing a corresponding icon in the status bar. Anyone know how?
I can make it show an empty icon by using:
Code:
Notification notification = new Notification(-1, text,System.currentTimeMillis());
(-1 as the first parameter), which APPEARS to not show an icon, but in reality it shows a "blank" icon that uses up an icon slot in the status bar. I don't want it to show an icon or use a slot up.
Hopefully someone's figured this out. I've seen other apps do it, but my google-fu is failing horribly.
Scott

When QuickSettings does this, it looks to me like it displays a blank icon, and pushes it to the right-most position. Don't know how the code works, but a couple times I've managed to get my phone running slowly enough to see it happen.

Related

[Q] Disabling Status Bar Notification Text Alert

I have successfully replicated the iOS statusbar onto my i9500, the only problem is whenever I have a notification and the text appears for it on the top of my status bar, everything moves up to let text be read except the clock which is right in the center...
Is there a way I can either make the clock move up along with everything else or to stop the notification text from appearing on my statusbar?
I'll add a picture of my status bar to hopefully give you a better visual image of what I'm trying to do.
Anyone who wants further details about how I replicated everything, I can share with you It's just a few Xposed modules and Nova Launcher along with a few icon packs.

new icon appears on my status bar...?

What is this new icon that to appear on my status bar ?
Edit: Now I know that this is NFC but why I am getting the notification now? NFC was "ON" from the first day...

[Q] Unknown Status Bar in Galaxy Note 3

Dear Experts,
Since few days a unknown status bar is appearing on top of my original status bar. Please see the screenshot.
I am not sure how to get rid of it. To see my notifications i have to pull this unknown status bar which then get hidden after that my original icons are visible then i have to pull down again the original status bar which shows me my notifications.
Please suggest.
aronxda said:
Dear Experts,
Since few days a unknown status bar is appearing on top of my original status bar. Please see the screenshot.
I am not sure how to get rid of it. To see my notifications i have to pull this unknown status bar which then get hidden after that my original icons are visible then i have to pull down again the original status bar which shows me my notifications.
Please suggest.
Click to expand...
Click to collapse
You have installed a junk app lately? Look through your apps and remove those you suspect.
custom ROM?
aronxda said:
Dear Experts,
Since few days a unknown status bar is appearing on top of my original status bar. Please see the screenshot.
I am not sure how to get rid of it. To see my notifications i have to pull this unknown status bar which then get hidden after that my original icons are visible then i have to pull down again the original status bar which shows me my notifications.
Please suggest.
Click to expand...
Click to collapse
are you in any custom ROM using any Status Bar mods?
aronxda said:
Dear Experts,
Since few days a unknown status bar is appearing on top of my original status bar. Please see the screenshot.
I am not sure how to get rid of it. To see my notifications i have to pull this unknown status bar which then get hidden after that my original icons are visible then i have to pull down again the original status bar which shows me my notifications.
Please suggest.
Click to expand...
Click to collapse
Resolved the issue. It was WP launcher. It was showing toolbar even I was running Nova launcher. I uninstalled it and issue resolved.

Show battery percentage in top status bar

I think i'm spoiled by custom roms.
Is there an easy way to show the battery percentage in the status bar at the top of the screen? (i can't remember if this is called status bar or notification bar but its where the clock and notification icons show up)
Yes, pull down notification tray and long click (or press several clicks - can't remember) on settings icon. It will add system ui tuner to your settings menu. There you can add battery percentage icon to inside the battery icon
Yes. Pull down quick settings and hold the settings icon for a few seconds then release it. If you scroll down to the bottom of your settings page you should now have a section named 'System UI Tuner' where you can do this.
What an awesome tip! I had no idea about "System UI Tuner". Thanks guys!
Thanks for this tip ....
On Oreo this option is also found under battery settings.
On Nougat battery text was inside the icon, on Oreo it's on the left side and to my eye a bit bigger than clock. I couldn't stand this design flaw, but fortunately Gravity box can fix it and show text inside the icon again or on the right side and with smaller font.

lockscreen status bar icons

With miui9 u can set up the phone that waking the phone would show any notification icons in the status bar without having to unlock the phone.
Now with miui 10, it won't show the icons in the status bar. Instead just the big box like icons on the middle of the screen. Attached screen shot explains my issue. Can anyone help.?

Categories

Resources