How should I show default silent notification in status bar? - android

Sorry if it seems childish but I searched everywhere and I couldn't find any answer to this,
I need to show the crossed-melody ,which is shown when you use silent mode in android phones on status-bar.
Anyone can help me?

You cannot simply show a icon on the status bar!
You have to create a Notification in the Notification bar
Which will show you a Icon of your app or you can set your custom icon which will show up on the Status Bar
example
http://www.javacodegeeks.com/2013/08/android-notification-with-sound-and-icon-tutorial.html

Related

How to get colored status bar icon?

In this screenshot, the app is showing colored status bar icon. Whenever I try to do so, my icons turn into mono color icons. I cant find any documentation regarding this. Can anyone please explain?

Change Android status bar color along with an ongoing notification

I'm trying to get the status bar to change color as long as a certain ongoing notification is active in the status bar. I think this is what happens when you answer a call on your phone and you minimize the phone app. (The status bar changes color to show that you are still in the call.) I've read the Notification docs and other search results but couldn't find anything helpful.
Does anyone know how to do achieve this? (Or help confirm that this is not possible/is bad design?)
Thanks!

How do I show an Icon in the status bar without showing a Notification in the notification drawer?

I want to show an icon in the status bar while my app is running but I don't want a notification to appear when the notification drawer is expanded, how can I do that?
So you want to display something on the user device, that the user can't control or remove in any way nor know where it came from? Not possible...
How can i do a notification in the status bar without the expanded message in the "Notifications" window? (only want the icon)

Display android app in pull down menu but not in status bar

I am building an android application that I would like to provide access from the Notification Bar but I don't want it to display as a Notification Item in the status bar at the top. It should only show up when the user pull's down the bar.
Is there any way to get one without the other?
Use NotificationCompat with setPriority as PRIORITY_MIN

Android status bar icon

How do I put an icon into the android status bar? I don't want any notifications to be associated with it. Just the icon and nothing more.
Thanks
The only way to put an icon in the status bar is to start a notification.
Don't know how to add them but read this on designing them.
Also, http://www.youtube.com/watch?v=e74z0_Z5QWI

Categories

Resources