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
1
vote
1 answer

Notification custom sound and vibrate not working?

I have an app that receives notification, all is working. However, the custom sound and vibration is not working. I'm testing it on Android 9 pie. Uri sound = Uri.parse("android.resource://" +getApplicationContext().getPackageName()+ "/"…
1
vote
0 answers

WhatsApp notifications for a specific chat while I am in it

I'm working on a notification based app, for which I need to listen to incoming notifications. By using the Accessibility Service I've been able to listen to WhatsApp notifications. However, when I am inside a specific WhatApp chat, I can`t receive…
1
vote
1 answer

Android Notification Bar Not Updating all Values

I have a service with a worker thread. Meanwhile in the while loop, the notification bar gets updated. But not all values get updated and sometimes even the message Completed is not shown remaining stuck with the last value. What am i doing wrong?…
user10803328
1
vote
1 answer

How to detect when the notification/system bar is opened

I needed to know when the system/notification bar gets opened in my app, and I couldn't find any real solutions, so I hacked something together which seems to work pretty well.
The Hungry Androider
  • 2,274
  • 5
  • 27
  • 52
1
vote
0 answers

Lock notifications bar Android 8.0

I´m doing an app like a "Kiosk mode". One part of this proyect consist in lock the notifications bar and this works good in android >= 4.4 until 8.0. With this code i can lock it: private void disablePullNotificationTouch() { WindowManager…
1
vote
1 answer

How to read the content intent from the notification

I'm using the NotificationListenerService to read the notification posted on the status bar. I'm able to read the title and text on the notifications , but couldn't find a way to read the actions and content intent set to the…
1
vote
1 answer

How to lock status bar and notification bar in a specific Activity in my application

I am working on a exam related android application. When exam starts i need to lock status bar and notification bar. I used below code but it is only hiding status bar and notification bar. this.requestWindowFeature(Window.FEATURE_NO_TITLE); …
arjun babu
  • 67
  • 1
  • 11
1
vote
1 answer

android notification bar show/hide toggle

I am making an app where I would like the notification bar to be toggled for being show/ not being shown. Is that possible? I already know how to set button listener/override buttons but I just need the java code that makes that possible. Thanks
Timothy Miller
  • 291
  • 5
  • 24
1
vote
1 answer

How can I draw over the notification bar?

I need to draw a rectangle that is drawn over the notification bar, but I'm unable to get it to work. The code looks like this: canvas.drawRect(0,0, 200, 200, mLoadPaint); But 0, 0 is just bellow the notification bar, instead of over it. How can I…
Alex
  • 2,213
  • 4
  • 32
  • 44
1
vote
2 answers

Emergency notification which does not prompt unlocking on locked screen to open activity

There is an emergency app named Medical Id. It has a marvelous feature in which it shows notification on locked screen. The user can just double tap on the notification to open the activity. For other app notifications, if the user tap, it prompts…
1
vote
1 answer

how to identify selected notification from multiple Notification android?

Here is my MyFirebaseMessagingService i am using it to generate notification in application. class MyFirebaseMessagingService extends FirebaseMessagingService { private final String TAG = this.getClass().getSimpleName(); @Override public void…
1
vote
2 answers

Adding numbers in a notification icon

I implemented a notification system to my Android application and I would like to know if is there any way to set the Small Icon as a number/text. Because in my notification I want to display the number of new orders that the user has in the small…
1
vote
0 answers

Android bluetooth icon on notification bar

I'm now testing Bluetooth application. But the thing is, the icon on notification bar doesn't turn into active mode(instead of just normal mode and no sound additionally) even they can communicate properly Is there any specific way to make it an…
1
vote
2 answers

how to hide/show status bar

I want to show/hide status bar outside activity. My code is below: activity.getWindow().getDecorView() .setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE); It doesn't work for me. activity.getWindow() returns null.
user2362956
1
vote
1 answer

Notification Bar is double drawed on Top Navigation Bar View Android

Hello guys I have problem with NavigationBarView. I set NavigationBarView this without not swipe and I set Other view above NavigationBarView. I made this Activity with Tranculents Style. But I have got error, the notification bar is double, this…
Amay Diam
  • 2,561
  • 7
  • 33
  • 57