This is a class which helps create notification for you app. Import Statement for NotificationManager class android.app.NotificationManager
Questions tagged [notificationmanager]
233 questions
0
votes
1 answer
Can phone gap web sql can work with android notification manager?
Is it possible to work with android notification manager
With phonegap? And show data of the notification from the web sql?

AlexTheLion
- 47
- 1
- 9
0
votes
1 answer
Why is multiple notifications not displayed simultaneously?
I have included a unique id for creating PendingIntent as well as in mNM.notify() method. When I set two notifications to display at the same time they do not get displayed simultaneously. The first notification get displayed with the time given for…

Gayan Jayasingha
- 752
- 2
- 17
- 33
0
votes
1 answer
how to start activity with any notification message e.g. "abc"
I want to open my application when I get notification message "abc". I can do this with SMSReceiver but only get sms message. I want do this whatsapp message. sory for bad English.
@Override
public void onReceive(Context context, Intent intent) {
…

Ahmet Atıcı
- 13
- 1
- 4
0
votes
2 answers
Set a picture in notification alert and other fix- android
here is the code I use to set a notification for any event. But my requirement is, Instead of just only text I also want to display a picture in the notification panel, which is not a logo, a complete picture (or may be cropped). How to modify this…

androCoder-BD
- 498
- 7
- 13
0
votes
1 answer
Making it so a custom dialog pops up on notification icon click
I'm trying to make it so a custom dialog box pops up each time that I click my apps notification icon on the status bar. But I can't get it to work. Here's my notification icon code. I also don't want it to return to the main activity every time I…

Fernando
- 450
- 1
- 7
- 22
0
votes
1 answer
Update Notification when it becomes visible
I've a (rich) Notification in my Android App which is currently using the BigPictureStyle
The Bitmap which is shown changes from time to time, therefore I need to update the notification, which is not a big deal BUT I don't know when my…

fish
- 828
- 1
- 6
- 14
0
votes
1 answer
multiple status bar notification, unique ID not working
I have an app that sends notifications to the status bar as a reminder to take a pill. If two pills need to be taken at the same time. then two separate notifications shall be sent. I know you need to use an unique id for this to happen in the…

anaconda122
- 17
- 1
- 6
0
votes
1 answer
NotificationManager — How to make a notification do log "no" if not pressed within two hours?
I've set up a notification that appears in the status bar at a certain time. When you press it, it will log "yes" into a database. However I want it to log "no" if it is not pressed after 2 hours. I understand how to do the logging part, but I have…

anaconda122
- 17
- 1
- 6
0
votes
2 answers
android AlarmManager behavior when application is forced to close
I use AlarmManager to issue local notifications to user. But if I kill my application using Settings->Apps->Stop, alarm manager seems to be destroyed and all the notification icons disappears from status bar.
It it normal? The idea of local…

Nick
- 3,205
- 9
- 57
- 108
0
votes
1 answer
How to programatically disable the Android Status Bar?
I am trying to make an SMS app in android. There are some messages which contents I want to keep hidden but as soon as I receive a message, android stausbar shows the contents of the message. How can I disable this programatically in my application?

aneela
- 1,457
- 3
- 24
- 45
0
votes
1 answer
Notification restart my activity and pause button on notification
My notification get restart when i click on it by Status bar
when i start my app it stream audio from server and show a notification until i don't clear it from status bar so my problem is when i click on my app notification it restart the activity…
user1597878
0
votes
1 answer
PendingIntent and DownloadManager
Is there any way to set up a PendingIntent with the download manager? Or the DownloadManager.Request? I'm sending the user a notification in the toolbar about the download with this:…

Connor Black
- 6,921
- 12
- 39
- 70
0
votes
1 answer
progress bar in notification
i try to put the progress bar into the notification. but the problem is the system will not respond for few seconds and progress bar stuck at beginning once it's started, please take note that even the progress bar is get stuck-ed but the file is…

melvintcs
- 551
- 3
- 13
- 34
0
votes
2 answers
Code stops executing at mNotificationManager.notify( , )
Although all the sendXXXXX booleans are true the code stops executing at the first notify(). If I manually set the first one to false, then the code stops executing inside the second if statement.
When .notify() is called acts like a return…

mrngneom
- 31
- 3
-1
votes
1 answer
null pointer exception when creating notificationmanager
When I try to start a service, i get a null pointer exception which is caused by instantiating a notificationmanager. This seems fairly simple, just instantiating, but this one line of code causes the application to crash.
What is the cause of this…

eli
- 3
- 3