Questions tagged [notificationmanager]

This is a class which helps create notification for you app. Import Statement for NotificationManager class android.app.NotificationManager

233 questions
3
votes
0 answers

TransactionTooLargeException while notify notification

I have update time while recording in android, I using CountDownTimer and update to remote view on notification. I have optimized smallest data but still get TransactionTooLargeException. public void showNotificationRecording() { mRemoteViews =…
3
votes
2 answers

Android notification manager doesn't work with the screen is off

I have a count down timer that when it goes off (to zero) it checks to see if the app has focus. If not it launches a notification in the notification bar. When you click on the notification is re-opens the app. Now all of this works fine but if the…
Cameron
  • 1,612
  • 2
  • 16
  • 24
3
votes
0 answers

Notification RemoteView not show all contents

I implemented notification in my Reminder Application. As i needed custom notification, I used RemoteView for that and create layout for it. In Layout i have used two textview and set content in it. Notification showed here but with only one…
3
votes
1 answer

Pass data from one activity to another with notification manager

I need to spend a given activity to another using the notification manager. This is the code of the notification. private void notificacion(){ // Preparamos el intent que será lanzado si la notificación es seleccionada Uri soundUri =…
3
votes
1 answer

From the notificationbar, to call the working Class

I'm developing an online radio application. The application works in the background. When I click the NotificationManager, radioclass starts working again. I want to call the radioclass that are running. How can I do? player =…
lvnt
  • 43
  • 5
3
votes
2 answers

How to stop and play notifications continuously?

I want to achieve this : When alarm starts ringing the notification sound should play continuously until the user drag notification bar. When I drag down the notification bar the sound should stop playing.
Ramya
  • 205
  • 3
  • 11
3
votes
1 answer

Alarm Manager Triggers Notification

I have an alarm manager that triggers a notification every Sunday. It works fine but whenever I open the application, the notification is displayed even if it is not Sunday. Is the onReceive method triggered when the application opens? How could…
Shane
  • 972
  • 2
  • 12
  • 27
3
votes
2 answers

using NotificationManager into an android service

I have a service running in the background and I want to notify user if there is a new data, I've used a notificationmanager, and the notification appears, but when clicking on it it doesn't do anything (it is supposed to show an activity I'm new in…
Yasmine GreenApple
  • 438
  • 1
  • 5
  • 15
2
votes
1 answer

Android notification bar CPU usage inscreases when sending notifications continuously over a long period

I have an app that starts a service that continuously updates the notification bar. The notification shows the state of the service. The service is written to sleep for a period and then do some work in the background then repeat. As such, my…
brianestey
  • 8,202
  • 5
  • 33
  • 48
2
votes
0 answers

Android Media Notification progress bar is not showing up

I have media notification with 3 action buttons (pre/play/next). I am trying to show the progress bar (seek bar?) in the notification somehow, with no luck. All of the notification handling is being handled within one method, when I click…
gabi
  • 1,003
  • 5
  • 12
  • 30
2
votes
1 answer

NotificationManager.notify() throwing securityException only on android 11 and 12

On my alarm clock app, I have 180 crashes (impacted 42 users) of java.lang.SecurityException caused by NotificationManager.notify(). Since I have around 50K active users I guess it happens only under specific circumstances. This is how I init my…
2
votes
1 answer

Android Notification duration

Is there a way to make android notification stay on screen for over 4 seconds. For example: Phone App has notification for incoming call, when this notification shows up (Incoming call) it does not leave the screen until the user is interacting with…
Thegremlin
  • 89
  • 7
2
votes
1 answer

Is there a way to prevent my app from sending notifications for a certain time frame?

I am trying to make an app that will notify the user when data the app receives is not what it should be (think steam being below 212 degrees Fahrenheit). The app also shows the information if the user is in the app. I was able to get the…
Jackson148
  • 115
  • 1
  • 2
  • 9
2
votes
3 answers

Android Notification Not Appearing As Heads Up

I am using the following to present notifications to users on Android which currently works fine but I am having an issue that the notification appears in the status bar but does not come up as a heads up like a Facebook or WhatsApp notification…
2
votes
1 answer

cancelAll() and cancel() don't dismiss my notification

I am facing this problem for a long time now, I have an application with many functions, one of them is the alarm My notification just stays there and never disappears although I am calling cancelAll() / cancel() from the notification manager, also…