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
8
votes
2 answers

How to keep track of notifications to know when to show a summary notification

I want to emulate Gmail's app behavior regarding notification bar notifications, which complies with the recommended Android pattern: http://developer.android.com/design/patterns/notifications.html When the app is in background and I get a new…
fekke
  • 351
  • 3
  • 10
7
votes
1 answer

Create notification without it popping up

I'm trying to add an android notification to the "tray" in android 3, but I don't want it to "pop up" every time I call notify(). I managed to kind of do this by setting the FLAG_ONLY_ALERT_ONCE flag on the notification, but it will still alert when…
Artiom Chilaru
  • 11,811
  • 4
  • 41
  • 52
7
votes
1 answer

How to load Glide cached image in NotificationCompat.Builder.setLargeIcon()?

Like this image I am trying to set notification large icon as user profile thumbnail like whatsapp or other chatting apps I have tried Glide.with(context) .asBitmap() .load(messageNotification.getLargeIcon()) …
7
votes
2 answers

Oreo Notification Bar Round Icon

I want to know that how can I change the notification bar small icon in android Oreo (API 26). It has round white icon showing in the notification bar. How can I change it? Manifest file default notification icon set as below.
7
votes
4 answers

Android: How to distinguish CLEAR all events from notification bar from user action

According to the specification, .setDeleteIntent(pendingIntent) is associated to both actions (CLEAR all events from notification bar and user action like swiping). My requirements are that when the user touches the notification that appears on the…
goseib
  • 737
  • 3
  • 12
  • 24
7
votes
5 answers

Android NotificationListenerService onNotificationPosted fire twice

I listen for notifications like WhatsApp Messages. But every time a notification comes in the NotificationListenerService fire twice. Does anyone know this problem?? This is a snippet from the AndroidManifest.xml:
7
votes
1 answer

Gray circle next to large notification icon?

Im displaying notifications in my app - but for some reason on android version Lolipop its displaying a gray circle next to the large icon like this: Does anyone have an idea why is this happening? Here is my code in which I create my…
7
votes
2 answers

How to know if Show Notification is disabled for my app?

Is there any way to track whether the user has "Show notifications" disabled/unchecked in the Settings/App Info page of my app?
6
votes
2 answers

How to support multiple colors (more than two color) for Android Notification icon?

I am working on Android app (API level >23). And I have to support Notification. And my notification icon is supported more than two colors. If I use that icon then icon displays in grey in notification pannel. So I have created background…
6
votes
1 answer

How to change string locale of notification bar in android

In my application, i'm changing language dynamically so if my is in foreground, notification language is coming properly but if i force close app notification is coming in device locale. I've used following code to change context locale but after…
6
votes
1 answer

Android Emulator only opens notification bar once

I'm seeing this strange behaviour. I can only open the notification bar once on the emulator. Running API level 17 with a 480x800 screen (Nexus One with API level 17 settings) on a Macbook pro / OSX 10.8 Anyone experienced anything similar? Same as…
mach
  • 8,315
  • 3
  • 33
  • 51
6
votes
0 answers

NotificationCompat Ticker Text Not Showing When Updating Notification

Background This is an app I am writing to familiarize myself with some of the APIs, it serves no real purpose other than to demonstrate some functionality in Android. I have a Service that is running in the foreground (startForeground), and has an…
6
votes
2 answers

How to show notification in status bar?

So i have created this notification in my activity Notification n = new Notification.Builder(getApplicationContext()) .setContentTitle("New mail from " + sender) .setContentText(subject) .setSmallIcon(R.drawable.notification) …
Vladimir
  • 1,243
  • 5
  • 19
  • 23
6
votes
0 answers

Android's equivalent to IOS' networkActivityIndicatorVisible?

How can I display a network indicator on Android's status bar? What is the equivalent of IOS' networkActivityIndicatorVisible in Android? Or if there's none, how can I create a similar network indicator in Android?
Arci
  • 6,647
  • 20
  • 70
  • 98
6
votes
3 answers

Notification Bar shows both Large and Small Icons

The notification bar in my application shows only the small icon in the ticker (as it should). However, when the "shade" is pulled down, it shows both the small icon from the ticker, as well as a large icon that I set in the Notification.Builder.…
1 2
3
23 24