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

Hidden notification bar reappearing after screen lock and unlock

I hid my notification bar for my activity by changing the theme to Theme.NoTitlebar.FullScreen and then changed it in my manifest too. I successfully hid the notification bar. But if I lock and then again unlock the screen when in the same…
user838522
  • 3,821
  • 3
  • 23
  • 24
2
votes
1 answer

Send a Notification Message to an Android device using adb from a computer

Is there a way to to this? I'm able to see many examples for the other way around (forwarding notifications from Android device to the PC) Thanks in advance
Pavan Kulkarni
  • 476
  • 5
  • 17
2
votes
1 answer

Custom Android notification sound

I'm trying to implement a custom notification sound in my application. I have written the following code, but the application plays only default sound and not the custom sound i've added in raw folder. Upon receiving the notification, the logs…
2
votes
2 answers

How to create Custom Notification Icons that support both Light and Dark theme in Android

In my application I used icons in custom notification. The icons' color is black. It works fine in light mode, but NOT in dark. The icons are made by vector graphics in Android. The problem with the text is solve…
Riskhan
  • 4,434
  • 12
  • 50
  • 76
2
votes
1 answer

Show video, gif or banner in push notificaion

I have come across the notification which actively changes the content like banners. AFAIK videos and GIFs are not supported in the notification. How can we achieve this? I have searched and found Custom Notification Layout might the solution. But…
Rumit Patel
  • 8,830
  • 18
  • 51
  • 70
2
votes
0 answers

Is simple broadcast receiver is enough to handle FCM events?

I had problems with FCM that i want to send notification from Notifications composer (Firebase web). and somewhat modify how it looks in system notifications center (system tray). And also on click open full notification window activity. That was…
2
votes
0 answers

NotificationManager: notify: id corrupted: sent , got back 0

I'm facing a issue with NotificationManager in my app for the past couple of days and I don't seem to be getting closer to solving it. I have a very simple ThreadPoolExecutor to download multiple files. but same time i need to show download progress…
Usha
  • 74
  • 1
  • 10
2
votes
0 answers

Custom notification not working on Oreo - why?

so i've been having this issue for quite sometime now. My notification is not making any sound at all, I've tried changing it into the default sound programmatically and it's not working. I'm currently using the Android Emulator in Android Studio…
2
votes
1 answer

How to avoid Heads-up notification on android Oreo and above?

I want to show the notification in the background. Means, while user opening the notification screen. But its coming on the top of my app screen. I don't want to show at the top of the my app. I want to show only in the notification bar. Can…
2
votes
2 answers

Click on the Notification programmatically

I trying click on the notification after receiving it. I'm able to drag the notification drawer using the Accessibility service. For clicking the notification I'm using accessibilityEvent.getSource() and …
2
votes
0 answers

Heads up with reply (RemoteInput) does not cancel notification

Step1 : Build Notification with Reply intent and heads up notification private void buildInlineReplyNotification() { // Create an instance of RemoteInput.Builder that you can add to your notification action. // This class's constructor…
2
votes
0 answers

Android notification gets cleared on opening App via app launcher

I have created a new application in which for showing notification used NotificationCompat Notify method. Defining a functionality that notification should get dismissed only on clicking it or swiping it. It should not get dismissed on opening app…
2
votes
0 answers

Resize Android screen resolution because of dead zone

I need to resize my Android screen in order to be able to use the drop-down notification bar since the top and bottom parts of the screen are dead. I was able to work with bottom buttons (back, home, recents) after using: wm overscan…
2
votes
1 answer

How to prevent notification from opening an activity or removed when clicked in Android?

I am developing an Android app. I my app, I am trying to show process notification to user. But what I want is I do not want notification opening an Activity or removed when it is get clicked. What I am doing is I am showing notification when a user…
2
votes
1 answer

How to show image on the right hand side of the notification in android

I am working on android application . I need to create a notification for the app. I am able to create it successfully using : http://www.tutorialspoint.com/android/android_notifications.htm I know NotificationCompat.Builder setNumber(int Number) .…