Questions tagged [android-notification-bar]

Use this tag for questions relating to issues showing your notification in the notification area.

When you tell the system to issue a notification, it first appears as an icon in the notification area. To see the details of the notification, the user opens the notification drawer. Both the notification area and the notification drawer are system-controlled areas that the user can view at any time.

Useful links

359 questions
2
votes
2 answers

Android 4.0.3 Hide Notification Bar and Title Bar

I want to make my application go fullscreen in any android device. Hide the Title bar and also the notification bar. The application is supposed to run on a 10 inch tablet on Android 4.0.3. I am using the following code but only the title bar…
Swayam
  • 16,294
  • 14
  • 64
  • 102
1
vote
2 answers

Updating notificationbar from AsynTask causes the notificationbar to crash

I am uploading a video file using an Async Task. To track the progress I have a notification running in the statusbar. The notification works and updates correctly, but it causes severe performance issues to the extent where the statusbar crashes…
1
vote
1 answer

Odd behavior of screen height in pixels?

In my android application, there is an OpenGL Renderer over-layed over a canvas. The device i'm testing on is a Droid x. I'm moving all the drawing functions over to Open Gl but I've noticed a curious issue. It seems that the canvas draws starting…
cody
  • 735
  • 3
  • 11
  • 19
1
vote
1 answer

Handle notification bar folding when Activity still running

Let's say we have a standard MainActivity that extends Activity. It contains onCreate method that is fired every time when Activity goes on the top (start application, call it again when gone minimized..) - so we can know when user does something…
hsz
  • 148,279
  • 62
  • 259
  • 315
1
vote
1 answer

Notification flags have value -3

I'm writing a custom upload notification, very similar to that from the Picasa Photo Uploader http://code.google.com/p/picasaphotouploader/source/browse/trunk/src/com/android/picasaphotouploader/UploadNotification.java At creation, I set the…
1
vote
0 answers

How to prevent head-up notification from dismissing when it is clicked in Android 6?

As i wrote in the title of this question, how can i prevent head-up notification from dismissing when it's clicked? this only happens on Android 6 Mashmellow(API 23). If i click the head-up notification, it's cleared and also i can't see it in the…
1
vote
0 answers

How do I get the expandable image from StatusBarNotification?

I am trying to get all the information from a StatusBarNotification (sbn). I've already set up the NotificationListenerService. I was able to get EXTRA_TITLE, EXTRA_TEXT and EXTRA_LARGE_ICON. But I unable to get the expandable image. I am checking…
Jeeva
  • 3,975
  • 3
  • 23
  • 47
1
vote
1 answer

Why do notifications on Oreo not display unless an icon is set

Is this a platform bug or some problem in my implementation? It appears to be regardless of importance level. Version of Android is 8.1.0. Target SDK is 22 (I am stuck on that unfortunately). val defaultChannelId =…
Daniel Wilson
  • 18,838
  • 12
  • 85
  • 135
1
vote
0 answers

Load remote image to NotificationCompat MessagingStyle Message SetData in Android

I am trying to load image from a remote url in NotificationCompat.MessagingStyle.Message.setData() method. Code is like this val senderImg = Picasso.with(this).load(senderAvatar).get() val sndr = Person.Builder() …
1
vote
2 answers

Clear exo player notification when app stops from recent apps in android studio

I am developing an app for radio streaming using exoplayer library. So, I want to clear(delete) exoplayer notification bar (with play/stop buttons) when I close the app(from recent apps e.t.c). Now, I close the app but the notification bar still…
1
vote
0 answers

How to solved my problem for all notification not displayed when extending it from a group of notification in android

I have added 20 messages that are in for loop for a group notification like whats app. It is created successfully but all notification is showing, only 7 child group messages are displaying when extending it. It does not show 20 messages when…
1
vote
1 answer

Do drawer notification icons have to be white?

My app is for API 26 or higher. I am having an issue with the small icon in the notification. I went to the documentation here, and regardless of my issue, I saw that it is mentioned the icon has to be white, but as I am working right now I am…
1
vote
1 answer

How to set tiny notification icon badge

How can I correctly set the round small badge that appears right on top of my app's notification's largeIcon in the picture below(I want to change the round ring which is the default to a picture) like how the badge is the blue circle twitter logo…
linker
  • 821
  • 1
  • 8
  • 20
1
vote
0 answers

NotificationManager Using Clear All Notification

Is Possible to clearAll notification? btnMessageStyle1.setOnClickListener (arg0 -> { final int NOTIFICATION_ID = 1; mNotifyManager = (NotificationManager) …
1
vote
0 answers

How to set different sounds to different notification?

I want to set a different notification sound to a notification depending on it's content. I have set a working sound if the title of the notification contains number "1", "2", or "3". However, the sound must be different if the title contains…