# Android notification pls help

**URL:** <https://discourse.processing.org/t/android-notification-pls-help/33309>\
**Category:** Processing for Android\
**Created:** [November 4, 2021, 10:47am UTC](https://discourse.processing.org/t/android-notification-pls-help/33309 "2021-11-04T10:47:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [November 5, 2021, 12:16am UTC](https://discourse.processing.org/t/android-notification-pls-help/33309/4 "2021-11-05T00:16:02Z")

</div>

@MonteliaRO

What about your version information?

Settings vary depending on the situation.

Reference site:

> [@\[Android\] I can't find a solution. 'Notification pop up' is required](https://discourse.processing.org/t/android-i-cant-find-a-solution-notification-pop-up-is-required/14961):
>
> [Android] I can’t find a solution. ‘Notification pop up’ is required. Reference: [[Android] 'Notification' does not work](https://discourse.processing.org/t/android-notification-does-not-work/14512) ‘Notification pop up’ doesn’t work after Android version is higher. Can anyone solve it? Please help me. I want to solve import android.os.Build; import android.app.NotificationChannel; import android.app.NotificationManager; import android.support.v4.app.NotificationCompat; import android.support.v4.app.NotificationManagerCompat; import static android.content.…

```auto
void showNotification() {
// Create an explicit intent for an Activity in your app
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(getContext())

.setSmallIcon(R.drawable.icon)
.setContentTitle("This is a messsage")
.setContentText("Mouse pressed event detected!")
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
.setPriority(NotificationCompat.PRIORITY_HIGH)
.setAutoCancel(true);
// Show the notification
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(getContext());
// notificationId is a unique int for each notification that you must define
int notificationId = 666;
notificationManager.notify(notificationId, mBuilder.build());
}

```

---

_[View the full topic](https://discourse.processing.org/t/android-notification-pls-help/33309)._
