I would like to make an Android app that shows an icon in the notification bar, however I don't want an actual notification to appear when you scroll down the bar.
The point is to show info only through a changing icon.
Is this possible to do, even if it requires some strange workaround?
I'll be glad if someone can help.
Thanks.
You can make a permanent notice is not removed swipe,
but only in the tray icon - rather impossible.
Persistent notification
Related
I want the notification panel to automatically collapse when the user presses a notification button.
I tried the answers here but they didn't work. How can I programmatically open/close notifications in Android?
Only answer that comes close is this accessibility method:
performGlobalAction(GLOBAL_ACTION_NOTIFICATIONS);
However this only seems to open the notification panel not close it.
So, I actually don't know how to do it, but there is a attention from Android docs, that Intent.ACTION_CLOSE_SYSTEM_DIALOGS is deprecated now for API LEVEL>=31 for more security. You can see it here.. And, probably, now we just don't have any way to hide notification bar.
Also you can see this StackOverFlow page with same question (there you can find actual answers. Last answer was in March of 2022)
I have something in mind that i would like to integrate into my android app and I dont know where to start researching.
I want to create a notification bar just as androids in my app, and hold an activity in it( eg. a menu ) and for it to dropdown when the user pulls it down just like android.
I didnt know what to exactly research about, i tried notification bar in android app but to no success as all the links go to customizing your android notification bar.
Thank you for your time.
currently I'm working on an UI Replacement of Android, currently achived by writing a different launcher and different-styled apps. All's good so far, BUT: there is still the notification bar missing, means, I have no idea how to replace the notification bar.
The "new" notification bar shall show only generic informations like the clock and network state, similar to windows phone and ios, without NotificationManager-binding.
How can I achive this? I know that there are several notification bar replacement apps out there, like omega statusbar or statusbar+.
My idea was to make every app of my UI fullscreen and having its own NotificationBar-Instance, fed by a ContentProvider or Service. But if the user decides to use classic android apps, he also will see the generic notification bar, which isn't what I want.
Also it might be an idea to create a window on top the notification bar, but I have no clue either this is "the right way", nor if it is even possible to achive this in this way.
I want to add an image- once my app is installed on the android to the top bar (where the battary information is, the whatsup icon and so on...)- I'm sorry I couldnt fint it's technical name
Do you know how could this be done?
Notifications are used for that.
all you need is Notification. See this link to learn more about notification.
I want to write myself an Application to hide the time in the notificationbar and i´m lookin out for some way to do so!
I want it to look like this for example, just not visible:
Do you have any hints how i can accomplish the time in the notificationbar gone?
Thanks in advance, i know this isnt a very specific question but i´dont look for a specific answer either!
EDIT: Currently i´m using the app super status bar to hide the time but unfortunally it delivers a lot more than i want. Within the alternative status bar i just set the fontcolor of the time to black. When this app can do it there has to be some kind of way to accomplish the time not visible or gone right!?
You certainly can't accomplish that with a widget, and you can't do that without actually modifying the OS itself, and building a custom ROM. There is no way for you to override the system part of the notification bar as a third-party application.