Most voted "android-notification" questions
USE ONLY in questions related to creating and handling notifications. The Android notification system allows applications to display messages to the user in an area of the screen other than the application.
Learn more…51 questions
Sort by count of
-
7
votes1
answer782
viewsNotification at 0h00 without starting application
I would like to notify the user that he has an expense that expires the next day, but without the need for the application to be running, currently I have a code that notifies from the moment I…
-
4
votes2
answers176
viewsHow, by clicking on the notification, delete the notification and do not open the application?
I need to send a notification but would like when the user clicks on the notification it is deleted and does not open the application The part of generating the notification that is already working…
-
4
votes1
answer222
viewsAndroid notification
I have a very simple project to test that at the event onCreate from screen 1 sends a notification, which by clicking opens screen 2. Purposely, I quickly click on the notification to open the new…
-
4
votes1
answer292
viewsStop touch(sound) of notification
I have an Android app that wakes up with the system notification standard ringtone. The problem is that when it clicks on the notification the alarm does not stop. I use a class for notification and…
-
3
votes1
answer51
viewsClick off the actions of a Notification
I wonder if there is any way inside an Ongoing Notification so that when clicking off the buttons but still in the notification it performs a predetermined action?
-
3
votes1
answer2751
viewsNotifications in a given time and on mobile phone
Hello. I’m making an android app that notifies me when I have to deliver a school assignment and, if it’s the day of the task or the day before, I want to be notified at certain times. The home…
-
3
votes1
answer535
viewsNotification at a certain time with no need to open the program
package com.example.dell.notification; import android.annotation.TargetApi; import android.media.RingtoneManager; import android.net.Uri; import android.os.Build; import android.os.Bundle; import…
-
3
votes2
answers1659
viewsSend notification message to app
I am developing an APP and I have the need to send warnings to users who use this APP. Example, in Apps of shopping websites , when a promotion appears a message arrives the App about the promotion.…
-
3
votes1
answer573
viewsHow to open a URL directly from the notification
I want to clear an application to open Urls that redirect to the Play Store and I want you to just load the direct URL in the notification without Bir any layout, and appear in the android intent…
-
3
votes1
answer265
viewsButtons (Action) in the notification. How to know which one was clicked?
The purpose of the notification is to show a question to the user, and the user has two response options, "YES" or "NO". The problem is knowing which button the user pressed. Another thing that I…
-
2
votes1
answer221
viewsHow to recover Activity, instead of creating new, when you click on the notification?
In my app when activity goes to the state onPause I trigger her notifications via Notifitionmanager. I wish she could be restored to the state onResume if a click in the notification. Through this…
-
2
votes1
answer85
viewsNotification - Customize Actions
I wonder if it is possible to customize a Notification with your actions. Example: RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.customnotification); Notification.Builder…
-
2
votes1
answer212
viewsNotification fixed at the top
I created a Notification but it always compresses and goes down, I would like to leave it always expanded and always at the top of notifications
-
2
votes1
answer327
viewsNotification Bar with Bigpicturestyle and 2 lines text?
I need to make a notification with that aspect: I’ve tried everything and I can’t find anything like it. I managed to put 2 buttons below the image with: .addAction(R.drawable.sim, "Sim",…
-
2
votes2
answers871
viewsHow to put notifications in an Android app?
I would like to know how to develop notifications for a app Android, so it can be updated online. That is: Every time there is an update of app, I would like to see a similar notification to that of…
-
2
votes0
answers59
viewsShow notifications on any screen
I have an app and want to make it show a pop-up style notification, like Whatsapp and/or iOS reminders, but with a custom layout. I’ve searched and so far nothing, anyone has any idea how to do?…
-
2
votes1
answer36
viewsIs there an alternative to PRIORITY_MAX that is obsolete?
I’m using the class NotificationCompat.Builder to create a notification where it has to be at the top with the highest priority. I set the notification priority as follows:…
-
2
votes3
answers876
viewsHow to repeat a minute-to-minute notification
I’m creating a app simple that gets a notification every time I click a button on my layout, everything works perfectly. Now I want this notification to be repeated for example every minute until I…
-
2
votes1
answer164
viewsNotification remains in status bar even after click
I have an application where I receive daily notifications, however by clicking on this notification, it still stays on my bar status. I’m using the class Notificationcompat for the creation of these…
-
2
votes1
answer115
viewsAndroid notifications are not released
I use RTP_WAKEUP to "wake up" my device when it realizes that it has notifications to release and in fact I can release notifications for 10/15 or even 20 minutes, but when I try to release a…
-
2
votes1
answer149
viewsNOTIFICATION_SERVICE with Channel=null error, how to resolve?
I did work perfectly this notification on android 19 and 21 but does not work on 27, 28 e 29. <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> private void…
-
1
votes1
answer326
viewsPut an off service button on notification of an Android App
In my application I have a Service running in the background, which puts a notification in the user’s Status Bar, I would like to add a button to turn off the service, as the Waze map app does.…
-
1
votes1
answer46
viewsPlayer com onGoingNotification
I have the following code: private Notification ongoingNotification() { NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Intent intent…
-
1
votes2
answers330
viewsHow to create notification with custom layout?
I wonder if it is possible to create a notification (Ongoing Notification) using an xml? if yes, could pass me a basic with buttons and picture? XML: <?xml version="1.0" encoding="utf-8"?>…
-
1
votes1
answer208
viewsCheck that Notification is active
I need to identify if a Notification specifies (ID Notification) this still active in the list of notifications from Android. Status: I have a method that cancels the Notification so far everything…
-
1
votes1
answer63
viewsExpanded notification
I have the following codes (XML and notification respectively) for a notification plus it this small, I would like to let it expanded to suit everything XML <?xml version="1.0"…
-
1
votes2
answers4072
viewsHow to create notifications?
I’m making apps only to test some functions for Android and would like to know how to create notifications in the status bar. My Java code and a standard code that only calls the XML file: package…
-
1
votes0
answers22
viewsSignal receipt of messages
When I receive 1 or more messages, for example, in the What’s App, let’s say I received 3 messages. On top of the icon of the what’s app, there is an orange "ball" with the number 3, in reality the…
-
1
votes0
answers270
viewsHandle and filter Notifications on Android
I’m creating an application for Android in which I use a NotificationListenerService to try to intercept the notifications. The intention is to intercept all notifications and let you pass only…
android push-notification android-notification android-serviceasked 7 years, 6 months ago Julio Machado 11 -
1
votes1
answer571
viewsHow to get Firebase notifications received in the background?
I implemented the notification service in my app, working, even receives notification in the background, however I wanted to save the notification message, searched a little and created a service (…
-
1
votes0
answers32
viewsAdaptation in notifications
Based on some answers found on this site I adapted a code to arrive notifications in a certain time if someone can finalize this code and help me activate the notifications Screen where I should…
-
1
votes0
answers263
viewsError with icon, vibration and sound in notification
I’m developing an app that receives notifications coming from firebase, I’m able to receive notifications quietly when the application is open, everything I’ve instated in Notificationcompat works,…
-
1
votes1
answer559
viewsNotification on Android does not disappear from the notification bar
I’m working with notifications in android. The notification appears when it is supposed and asks a certain question to the user, who in turn only has to answer "yes" or "no", through the two buttons…
-
1
votes1
answer607
viewsNotification when I receive message in the background
I’m developing an app that customers and drivers log in, I wanted when my app runs in the background and when a customer sends a message, the driver receives a notification, all the data is in an…
android-notificationasked 6 years, 11 months ago user98257 -
1
votes1
answer99
viewsHow to use non-static "getSystemService"
I am making a class that repeats the notifications but I cannot import the Prompt class.Notification whenever I leave the Static Notification Class of the error in getSystemService in the following…
-
1
votes1
answer58
viewsHow to access an Activity by clicking on the notification without losing the data
Hello, I would like to ask for help because I built an app with a stopwatch and after a long time managed to enable notifications for Android Oreo+, but I can’t access the stopwatch Activity through…
android android-studio android-activity android-notificationasked 4 years, 1 month ago Nathan Nathan 21 -
0
votes1
answer484
viewsDoubt with Notification and Alarmmanager
What I need is a hint, help to know how to implement an Alarmmanager that whenever a notification appears something like this In the Home screen of the phone and is making a sound every 5s for the…
-
0
votes1
answer2295
viewsProgram android notification
My app shows notification when it opens, but I didn’t want it to show the notification every time I opened the app, I wanted to show it once a day or even several times, with specific times. I’ll…
-
0
votes1
answer692
viewsClear old notifications the moment you enter the app
Someone knows how to clear old notifications from my app from the moment I enter the app through the Icon, not the notification itself. Whatsapp does this on android, but can’t find a way to work…
-
0
votes1
answer60
viewsText update in Notification
I need to update a text in the notification bar but I can’t keep calling the same notification because in the tests I did when I call again it flashes my notification. I have an app that picks up…
-
0
votes1
answer679
viewsNotification with Alarm manager
One of the ultimate goals of my application is to send notifications to the user at a certain time. My Alarm manager is working correctly now my problem is notifications that are not shown. The aim…
-
0
votes1
answer119
viewsSome kind of alert with Firebase
I developed an application where users access and can save some things (name, address etc). These settings are available for an administrator user to view and modify if applicable. I am using…
-
0
votes0
answers200
viewsHow to Recover Extras from a Pendingintent (Android)?
I’m implementing Notifications in an app. I’m using Alarmmanager with a Pendingintent of an Intent with data (in Extras, some model objects) but when I receive them in another Broadcastreceiver…
-
0
votes0
answers55
viewsUser-to-user notification in different apps
I was doing some studies related to the development of Android, and I came across the following question. How can I send a notification from one user in an application to another in another…
-
0
votes0
answers185
viewsNotification Android does not work
I followed the example given here of stackoverflow, Notifications in a given time and on mobile phone but only the service is started, the notification is not launched. Follow my code here, how I…
-
0
votes0
answers64
viewsAndroid notification buttons do not appear on mobile device
I always interacted with my Android application by emulator, but recently I started to test everything I did with my phone. I created some notifications with buttons, and in the emulator they appear…
-
0
votes1
answer90
viewsNotifications repeating every day
I’m trying to make an app that arrives notifications at user-determined times every day, but I was only able to make them arrive once. That’s the code I’ve got so far: private void salvar() {…
android android-studio android-notification notifyingasked 6 years, 4 months ago aleander rayson 23 -
0
votes1
answer107
viewsI can’t notify Push by firebase
I’m trying to create an application that notifies through firebase and by what I researched I got to a part that I don’t leave anymore wanted help to see if I’m doing right and to fix my mistake.…
android android-studio push-notification android-notificationasked 5 years, 11 months ago renan silva das neves 159 -
0
votes0
answers25
viewsProblems with scheduled notifications
I am developing an application that must issue a notification with date and time informed by the user and the notification is not being issued. I’m using Alarmmanager to set the time and another…
android calendar android-notification android-alarmmanagerasked 4 years, 11 months ago João Marcos 11 -
0
votes0
answers16
viewsNotifications with Jobscheduler is not working
I want my app to send notifications once a day, so I’m using Jobscheduler that looks newer (I’ve tried alarmmanager and there were other errors). However, I’m not getting any notifications, nothing…