Top "Android-notifications" questions

A status notification adds an icon to the system's status bar (with an optional ticker-text message) and a notification message in the notifications window.

How to create Multiple statusbar Notifications in android

I need to create multiple statusbar notifications. When i pull down the statusbar, multiple notification icons should be displayed as …

android android-notifications
Notification passes old Intent Extras

i am creating a notification inside a BroadcastReceiver via this code: String ns = Context.NOTIFICATION_SERVICE; NotificationManager mNotificationManager = (NotificationManager) context.…

android android-notifications android-pendingintent android-notification-bar
Prevent user from dismissing notification

Some apps have notifications which can´t be dismissed by swiping them away. How can I manage such behaviour?

android notifications android-notifications dismiss
Access application notification settings programmatically

In an Android app, I have a button that I want to have the functionality of opening the App Notification …

android android-notifications android-settings
Oreo - Foreground service does not show foreground notification

So far, I've adjsuted my code to use ContextCompat.startForegroundService(context, intentService); to start my service. This way, it works …

android android-notifications android-8.0-oreo foreground-service
Custom Notification Sound not working in Android Oreo

Uri sound = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + context.getPackageName() + "/" + R.raw.notification_mp3); mBuilder.setSound(sound); I had copied …

android push-notification android-notifications
Android - Calling methods from notification action button

I know that you can launch Activities from the action buttons using PendingIntents. How do you make it so that …

android android-layout android-notifications action-button
How to cancel a foreground service from using the notification (swipe dismiss) or clear all notifications?

I'm currently creating a foreground service with a notification that appears in the notification bar when the service starts. If …

android android-service android-notifications
How to properly clear all notification once clicked?

I send a few notification on the notification bar, i wanted to clear all of it when one of the …

android android-notifications notificationmanager
Notification.Builder(context) deprecated Android O

Notification.Builder(context) has been deprecated recently with the venue of Notification Channels in Android O. PROBLEM: After using Notification.…

android android-notifications android-8.0-oreo