Questions tagged as 'android-notification'

1
answer

Player with onGoingNotification

I have the following code: private Notification ongoingNotification() { NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Intent intent = new Intent(getApplicationContext()...
asked by 04.06.2015 / 17:18
1
answer

Notification when I receive message in the background

I'm developing an app that clients and drivers log, I wanted when my app was running in the background and when a customer sent a message, the driver received a notification, all the data is in an online bank and the system is login , registrati...
asked by 18.12.2017 / 22:41
1
answer

Notification on Android does not disappear from notifications bar

I'm working with notifications on android . The notification appears when it is supposed to and makes a certain question to the user, who in turn only has to answer "yes" or "no" through the two buttons that the same notification makes...
asked by 26.07.2017 / 13:33
1
answer

How do I get Firebase notifications received in the background?

I installed the notification service in my app, it works, it even receives notification in the background, but I wanted to save the notification message, I researched a bit and created a service (code below) works, but only when the app is open...
asked by 02.07.2017 / 18:15
1
answer

Verify that Notification is active

I need to identify if a Notification specifies (ID Notification) is still active in the Android notifications list. Status: I have a method that cancels Notification so far everything is working correctly, however, I need to cancel a noti...
asked by 11.02.2016 / 20:03
1
answer

Notification expanded

I have the following codes (XML and notification respectively) for a notification plus it is small, I would like it to be expanded to suit everything XML <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://...
asked by 16.06.2015 / 18:37
1
answer

Put a power off button on notification of an Android App

In my application I have a Service running in background, which puts a notification in the User Status Bar, I would like to add a button to turn off the service, as the maps Waze app does.     
asked by 11.05.2015 / 19:21
0
answers

Adapting to notifications

Based on some answers found in this site I adapted a code to get notifications at a certain time if someone can finalize this code and help me to activate the notifications Screen on which to call the notification: public class EscolhaLuzCa...
asked by 07.06.2018 / 01:45
0
answers

Flag messages received

When I receive 1 or more messages, for example, in What's App, let's say I received 3 messages. On top of the what's app icon, there is an orange "ball" with the number 3, in fact the amount of call. No Linked In the same thing and so goes for e...
asked by 02.09.2017 / 12:19
0
answers

Error with icon, vibration and sound in notification

I am developing an app that receives notifications from firebase, I am able to receive notifications quietly when the application is open, everything I instantiated in NotificationCompat works, but when the application is in the background nothi...
asked by 13.08.2017 / 04:01