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
Android Notification and broadcast receiver and JobScheduler
I looked through stack overflow for the answer and it seems everyone has a different way of doing things.
What I want to do is simple in theory: Everyday at 10 AM I want android to run certain code and to notify the user when it finds something or…

Ants
- 390
- 1
- 3
- 18
0
votes
1 answer
problem in show a notification in in real device
hi guys i created a notification for android app , my code work in virtual device but not work in real device , please help me.
public void onClick(View v){
try {
NotificationCompat.Builder builder = new…

Mehdi
- 3
- 2
0
votes
1 answer
Background Notification shows only once
I use the Android NotificationCompat.Builder and each time the a user opens the app or closes it it sends a background notification.
I want to know what should I write to make so that this notification will show up only once in generally. It means…

Alon
- 41
- 4
0
votes
3 answers
Android Notification repeatation
I want to set notification for an event which will repeat every day. So the notification should come everyday at event time. How to set any notification in NotificationManager so that it repeats after certain period of time.

dev_android
- 8,698
- 22
- 91
- 148
0
votes
1 answer
Notification image never displays in Android
If suppose I create Notification icons by uploading a png image using Image Asset tool from Android Studio by choosing type as notification would it generate all required icons with the dimensions as needed by notification icon spec? if Yes, then…

Naga
- 2,368
- 3
- 23
- 33
0
votes
1 answer
Handling Alarm notification
I start to combine alarm manager and notification manager on android, and this is my code:
MainActivity.java
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
…

Fzee
- 33
- 6
0
votes
1 answer
Notifications in android app 26 api
I have a problem with notifications (NotificationManager class) in my android app. I made channel and notification. I read about the problem with 26 build and made a channel for notifications, but it doesn't solve my problem. But I have the next…

Tswet
- 71
- 1
- 5
0
votes
0 answers
NoitificationManager permissions
I set up a notification using notification nManager, but I also know that using notification requires the user to accept the use of it.
Usually those stuff are asked at the beginning of the app, how can I make the small pop-up at app loading to ask…

Dor Furman
- 55
- 1
- 8
0
votes
2 answers
Android Studio - Trouble setting off notifications with broadcast receiver
So my program is supposed to set off a notification a few hours after the application has been stopped (minutes are being used just now for testing). It does this, however the problem with it is that if the code is executed a second time before a…
0
votes
1 answer
Unable to pass context to NotificationCompat.Builder
I've been trying to build notification from background service, App crashes at runtime while generating notification. here is my log
E/AndroidRuntime: FATAL EXCEPTION: Thread-9364
…

Asad
- 63
- 1
- 10
0
votes
1 answer
Notification sound from My Application when in call
My application sends notification on set time always with the custom ringtone and vibration(if the user as set the vibrate option). But the same is not going well when in call.
My notification code looks as below:
NotificationManager…

Shree
- 354
- 2
- 21
0
votes
1 answer
Trying to use notification inboxStyle to show more lines similar to GMAIL app in notification but it doesn't work
This is the code that I have:
NotificationManager notifManager = (NotificationManager) getActivity().getSystemService(Context.NOTIFICATION_SERVICE);
Notification.InboxStyle inboxStyle = new Notification.InboxStyle();
…

rosu alin
- 5,674
- 11
- 69
- 150
0
votes
1 answer
Android Notification timer
I want to show a status bar notification which contains two texts and one progress bar of a track playing in the background to show the playback progress. This should be updated every second.
I am currently using a RemoteViews which contains a…

Halaseh
- 21
- 1
0
votes
1 answer
Tapping one notifiaction, removing all notifications
I am working on project where we are showing notifications for each photo album updates. But on tap of one notification, it is removing all notifications from the notification bar.
I tried the following code:
private void…

Subhra
- 312
- 1
- 7
- 18
0
votes
0 answers
swiping the notification causes the service to stop working android
Currently the notification appears on the set time and at an interval of one day. But when I swipe the notification to the right or left or remove the notification from the notification bar then the alarm isn't repeating the next day and the…

Varun K Nair
- 396
- 3
- 16