notificationmanager Questions

6

package com.test.app; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Con...
Belisle asked 27/7, 2011 at 11:43

3

Solved

Anyone know any way to get a notification by id? It's I want when get a new notification if it is still being shown in the status bar of Android want to get the information and add it to a new noti...
Esotropia asked 23/5, 2014 at 13:58

7

Android: I am trying to cancel a notification from the notification bar after a package being installed. What I am doing is the following: public class MyBroadcastReceiver extends BroadcastReceiver...
Civilian asked 25/10, 2012 at 6:26

3

Solved

Now in android i put this code in one activity to show notification when a button pressed. static int notificationCount = 0; then btnNotification.setOnClickListener( new View.OnClickListener(...

4

Solved

I'm making an android app and I would like to cancel all notifications that have a certain tag. Right now it only seems possible to cancel notifications by their id (int id) or by both their ids a...
Adaiha asked 12/3, 2016 at 17:56

2

Solved

I am trying to implement ExoPlayer's Notification Manager, it works pretty well but I do not want to show fast rewind and fast forward buttons. I checked documentation but can not find a way to hid...
Steradian asked 23/2, 2020 at 10:43

2

I want to be able to get active notifications from my Android app on demand. (actually I just need to know if there are any) I've been searching for this behavior and it seems, like I have only two...
Varistor asked 24/1, 2016 at 18:15

2

Background I just noticed some functions of NotificationManager that handle a class that's called AutomaticZenRule : https://developer.android.com/reference/android/app/NotificationManager.html#a...
Coaler asked 17/10, 2017 at 9:38

4

Solved

I am having a strange error with notification manager. @Override public void onMessageReceived(String from, Bundle data) { Log.i(TAG, "IP : " + (String) data.get("ip")); NotificationManager noti...
Disposal asked 11/11, 2015 at 0:54

2

Solved

I have been having difficulties lately getting many specific functions to work on Android Studio. Recently I am working on trying to display simple notifications. They never show up. I feel like I ...

3

Is there any way in Android to detect when a user swipes a notification to the left and deletes it? I'm using an alarmmanager to set a repeating alert and I need my repeating alert to stop when the...
Hypochondriasis asked 30/9, 2012 at 21:7

0

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 ...

3

Solved

My Apps receives Push Notification via Firebase. Now there a 3 distinct situations that can happen when the notification arrives: The app is in the foreground The app is in the background The app...

2

Solved

The requirement was to make a custom notification since the android's default notification only allows for an image. So I went through on how to attach a custom UI for notification when expanded, t...
Icelander asked 8/8, 2016 at 6:46

6

Solved

I am using push notifications in my app. I need to display a notification when a push notification delivered. If I send another notification (without clearing the previous notification), it will re...
Applegate asked 17/6, 2013 at 12:59

2

Solved

I am using the NotificationManager builder to show an alert in my app. I know that the first parameter for the notify method is an id and the framework will update the notification if it is already...
Manteau asked 4/5, 2012 at 16:26

3

Solved

I've been trying to remove a persistent Notification set by a Service using: startForeground(1337, notification); The code I'm using to cancel it: NotificationManager nManager = (NotificationMa...

0

I have implemented a notification that contains an animation when my app downloads a file, it was working perfectly until Lollipop appeared. public void createNotification(String filename) { mBu...
Thermogenesis asked 4/12, 2014 at 10:23

1

Solved

I am trying to Notify user based on some criteria. Multiple Notifications are being shown in Status Bar but I want to Group the notification in single notification and when user clicks in the Statu...

1

Solved

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. ...

3

Solved

I simply want to start and stop the sync icon that is in the status bar. I thought it would be a simple call using NotificationManager, but I cannot find the documentation or sample Q&A on the ...

2

Solved

Notification and NotificationManager are used to create icons to be placed on the top-left position of the screen. A Notification also need to have an entry on the status bar pull-down. However, i...
Eurythmics asked 29/3, 2010 at 17:47

2

Solved

I have a service which creates a notification and then updates it with certain information periodically. After about 12 mins or so the phone crashes and reboots, I believe it is caused by a memory ...
Datestamp asked 2/8, 2010 at 17:38

2

Solved

I send a few notification on the notification bar, i wanted to clear all of it when one of the notification is clicked. For now I clear one by one by using Flag. I know notificationManager.cancelAl...
Bosnia asked 30/11, 2012 at 10:9

2

Solved

Research I've been looking through the NotificationManager class in the android documentation for API level 10 and haven't found a way to implement this. I also looked around on google but only fou...
Cooper asked 19/10, 2012 at 13:15

© 2022 - 2024 — McMap. All rights reserved.