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
Why do multiple uses to Notification.Builder crash the app?
I am making a project that will display notifications to the user if set setLuminLevels() setHumidLevels() setTempLevels() return true.
This is my main
@Override
protected void onCreate(Bundle savedInstanceState) {
…

Death_by_Ch0colate
- 379
- 1
- 2
- 7
0
votes
1 answer
How to update broadcast receiver. (multiple notification)
Variables in BroadcastReceiver are not updating every time i set a notification/alarm manager.
"receiver (recycler)" is from a fragment.
receiver" is from a BroadcastReceiver class.
onCreateView
intentAlarmManager = new Intent(context,…

Google0593
- 59
- 13
0
votes
3 answers
App crashes when I try to launch in Android Kitkat 4.4.4 but works fine in Android 5 & 6 versions
I am new to android, and i am unable understand what exactly going on here, app works fine Android 5 & 6 but crashes in Android 4(KITKAT)
03-13 13:11:44.925 10802-10840/? E/GoogleConversionPing: Error sending ping 03-13 13:11:45.145 3289-3497/?…

Rakesh Gowda
- 3
- 4
0
votes
4 answers
possible to return values from parameters in Java?
as I know, Java always invoke a method by "pass-by-value".
but I see the reference for Android's NotificationManager.notify(String, int, Notification):
Returns
the id of the notification that is associated with the string
identifier that can be…

Henry
- 942
- 3
- 11
- 21
0
votes
0 answers
Notification's image changes and doesn't update when Trigger Notifications while the app is closed
I am trying to Show notifications only when the app is closed, and I managed to that by the following code
public class AppMain extends Application {
public static boolean isInForeGround;
@Override
public void onCreate() {
…

aya salama
- 903
- 1
- 10
- 29
0
votes
0 answers
How to send notification from an array in android without repeating values
I am fairly new to android development guys, so please bear with me.
In my app I want to send notification to the user in frequent intervals. I already set the intervals through alarm manager and used broadcastReciever to send the notifications.
And…

Haaris Ahamed
- 317
- 3
- 15
0
votes
1 answer
Message not displayed when pdf reader not installed
I am having some problems with the following.
When a file is downloaded, I show a notification to the user, when he/she tabs the notification it searches for the applicable application (example PDF reader) to open the file with.
Eveything works…

Simon
- 1,691
- 2
- 13
- 28
0
votes
1 answer
Notification activity crashing
package com.example.khatrimann.notification;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import…

Mann
- 89
- 1
- 7
0
votes
1 answer
Install application only on notification tab
I show a notification to the user once an application has been downloaded.
I also have a installApk method which installs the downloaded application but in the code piece (completeNotification) the application gets automatically installed. I need it…

Simon
- 1,691
- 2
- 13
- 28
0
votes
0 answers
How to use Fileprovider for sending data (using content uri) to pending intent for notification on click in android N
I want to open the downloaded file on click of notification. It was working fine when content intent was set using fileUri. But in android N due to enhanced file security it is giving FileUriExposedException. But now after content uri is used ,…

Jaggs
- 75
- 2
- 6
0
votes
1 answer
Android Show Activity above Lockscreen on Click of Notification Icon
We need to display information without needing to show the unlock screen.
We are able to do this normally by code like:
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON|
WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD|
…

user1969292
- 1
- 1
0
votes
1 answer
Can't create notification even though notification manager is initialized correctly
I am trying to send a notification using the NotificationManager API in Android. Below is my code:
AndroidManifest.xml:

user1871869
- 3,317
- 13
- 56
- 106
0
votes
1 answer
How to show notification that is added as new each time it is fired from broadcast receiver in Android
I am developing an Android app. In my app, I am showing notification that is fired from inside of a broadcast receiver. Showing notification from receiver is working fine. But I am having a little problem with what I want it to be. It is a…

Wai Yan Hein
- 13,651
- 35
- 180
- 372
0
votes
1 answer
How to make the notification manager not get the times in past?
I don't know if the title clear or not, my problem with the notification manager is that when I set the times as ( 1:00 , 2:00 , 3:00 , 4:00) and the time now is 2:30, the normal notification will wait until 3:00 then 4:00 ,, but in my code the…

B.tool
- 5
- 4
0
votes
2 answers
cannot Resolve Method setLatestEventInfo in android notification
I just imported an android project and in the Notification section, I have to use setLatestEventInfo. But Android Studio Says cannot resolve method setLatestEventinfo. Here is my code snippet, please kindly help edit my code while answering
…

Omega
- 289
- 1
- 4
- 14