This is a class which helps create notification for you app. Import Statement for NotificationManager class android.app.NotificationManager
Questions tagged [notificationmanager]
233 questions
5
votes
1 answer
Android Remoteviews for expanded notifications
The expanded notifications introduced in Jelly Bean allows adding actions. The actions appear as buttons in a row. If I wanted to modify this with my own custom view I would consider a remoteview.
Do expanded notifications allow for remoteviews? I…

CQM
- 42,592
- 75
- 224
- 366
5
votes
2 answers
Why does Eclipse not recognize the build() method from the Notification.Builder class to return a Notification object?
This is my code:
NotificationManager mNotificationManager = (NotificationManager) c.getSystemService(ns);
//Instantiate the notification
CharSequence tickerText = "Hello";
long when = System.currentTimeMillis();
…

Andy
- 10,553
- 21
- 75
- 125
4
votes
1 answer
How do I keep my Android notification displayed until my app is closed?
I've been developing for Android for awhile but this is my first shot at notifications. I've got my notification setup as described in the Android SDK tutorial, but I can't figure out how to keep the notification displayed until my app is closed. …

Lou Morda
- 5,078
- 2
- 44
- 49
4
votes
2 answers
onActivityResult for PendingIntent
How do i get the result of an activity started from NotificationManager?
In other words i need to get the resultCode from a PendingIntent.
public void test(Context context){
Notification notification = new Notification(null, "text",…

CelinHC
- 1,857
- 2
- 27
- 36
4
votes
2 answers
Android: How to react to notification touch events?
I'm displaying a notification via the NotificationManager from a BroadcastReceiver, but if the user touches the notification, nothing happens. If I create notifications from a view, the containing activity is brought to front when touching the…

futlib
- 8,258
- 13
- 40
- 55
4
votes
1 answer
Android Seek Bar in Status Bar
I'm developing an android application where i want to add the volume control in Status Bar. Can i add a seek bar inside the Status Bar.
I have worked with NotificationManager and i've found that adding animation is difficult in Notification…

Rohan K
- 1,608
- 4
- 21
- 32
4
votes
2 answers
Notification auto cancel not working for Android lollipop
I want to auto cancel my notification when user clicks on notification. The following code works good in all the devices except Android lollipop device. In Lollipop device, notification goes only when user swipes it…

Balaraman L
- 196
- 2
- 12
4
votes
2 answers
Android: Call IntentService from NotificationManager action PendingIntent
I have a push notification app.
When the push notification comes, the BroadcastReceiver calls GCMIntentService to setup notification
mNotificationManager = (NotificationManager) this
.getSystemService(Context.NOTIFICATION_SERVICE);
…

Jefferson Setiawan
- 536
- 1
- 5
- 22
4
votes
1 answer
how to automatically set a reminder which data is from the database?
SOURCE CODE:
private void saveState() {
DatabaseHelper myDbHelper = new DatabaseHelper(ReminderEditActivity.this);
try {
myDbHelper.createDataBase();
} catch (IOException ioe) {
throw new Error("Unable to create…

sam
- 133
- 1
- 2
- 6
3
votes
4 answers
Android alarm setting with specific date
I wan to set alarm with notification at specific date.
Then I am using AmarmManager with NotificationManager currently.
When I set selected date from dateDialog, the alarm is working.
How can I put calendar value on alarm set with fixed time?
I want…

wholee1
- 1,491
- 13
- 34
- 51
3
votes
1 answer
Android group summary displayed as a separate notification on lock screen
I'm having a strange issue with notification groups on Android 12. (I haven't checked other OS versions.) I show two notifications, and a group summary notification, using the code below:
val notificationManager =…

Krystian Wsul
- 31
- 1
- 7
3
votes
3 answers
Android Notification Channel always defaults to Silent
I am creating android notification channel, i want the notification to vibrate and play sound. But for some reason the notification is always displayed under Silent group in android pull down menu. No sound or vibration is played. Here is the code I…

Easy Coder
- 295
- 1
- 3
- 14
3
votes
3 answers
Why does not show notification on Android 9
Does not show notification on Android 9.0 and works great on 8 and below.
I had trouble with old code and I read that is needed to pass Channel on new android version, I got this code from internet but still is not working on Android 9.0. I don't…

Web.11
- 406
- 2
- 8
- 23
3
votes
1 answer
Android notification manager help
I m currently looking into android notification. Is there any way to show all the notification from an application as a single one with the number in android notifications window. Clicking on this will redirect the user to a view in the application…

Dijo David
- 6,175
- 11
- 35
- 46
3
votes
1 answer
How can I set multiple local notification prior 30 minutes based on db value?
I have 3 questions:
I have 2 tables category and task.
category table contains the following fields
id(int), name(text), status(int))
and the task table contains following fields:
id(int), category_id(Foreign_key referenced from category…

Shiva
- 454
- 5
- 10