# Any idea on how to show status-notification bar?

**URL:** https://discourse.processing.org/t/any-idea-on-how-to-show-status-notification-bar/13510
**Category:** Processing for Android
**Created:** [August 21, 2019, 2:24am UTC](https://discourse.processing.org/t/any-idea-on-how-to-show-status-notification-bar/13510 "2019-08-21T02:24:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Oscar\_Galeote](https://avatars.discourse-cdn.com/v4/letter/o/c77e96/32.png) [@Oscar\_Galeote](https://discourse.processing.org/u/Oscar_Galeote)
#### Post date: [August 21, 2019, 2:24am UTC](https://discourse.processing.org/t/any-idea-on-how-to-show-status-notification-bar/13510/1 "2019-08-21T02:24:23Z")

</div>

I’m working on a project for android as a beginner on Processing. I would like to know if anyone knows how to show the notification bar and change its color. I’ve tried with android developer’s guide, but I’m still stuck.

---

<div class="post-metadata">

### Author: ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)
#### Post date: [August 21, 2019, 4:51pm UTC](https://discourse.processing.org/t/any-idea-on-how-to-show-status-notification-bar/13510/2 "2019-08-21T16:51:18Z")

</div>

@Oscar_Galeote ===  
you can do that using the NotificationManager API from Android + NotificationService and an intent (pending intent); for calling all this stuff you can create some button, adding to it an onClickListener. As for the background color (and other things of this kind - title,icon, contents…) you set them when you build your notification: myBuilder.setContentTitle (“monTitre”)…and so on.  
I can give more details but first of all i want to see what you have tried.

---

<div class="post-metadata">

### Author: ![Oscar\_Galeote](https://avatars.discourse-cdn.com/v4/letter/o/c77e96/32.png) [@Oscar\_Galeote](https://discourse.processing.org/u/Oscar_Galeote)
#### Post date: [August 21, 2019, 6:24pm UTC](https://discourse.processing.org/t/any-idea-on-how-to-show-status-notification-bar/13510/3 "2019-08-21T18:24:57Z")

</div>

Thanks a lot. I’ve been stupid enough to confuse notification with status bar. Sorry.  
What I would like to do is to keep showing the status bar in purple while the app is running fullscreen.  
I’ve tried what some people do in these links:  
[https://forum.processing.org/one/topic/how-to-show-the-status-bar-on-full-screen.html](https://forum.processing.org/one/topic/how-to-show-the-status-bar-on-full-screen.html)

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/17869/how-to-display-statusbar)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.

But I’m a newbie, as you might already imagined.

---

<div class="post-metadata">

### Author: ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)
#### Post date: [August 23, 2019, 5:29pm UTC](https://discourse.processing.org/t/any-idea-on-how-to-show-status-notification-bar/13510/4 "2019-08-23T17:29:09Z")

</div>

@Oscar_Galeote ===

With Processing

- you can rather easily show the status bar even in full screen, using from android WindowManager and flags
- but i cannot see the way to change the status bar background color , because it seems that this color is set by the background() method: so if you want to change the background status color to purple you can only change the background() to purple! - Though with android native and Android Studio you have only to call (example)“window.setStatusBarColor(Color.parseColor(”#0A45F2")); But this call seems to be overriden in processing by the standard background() method.
- the only solution i can see is to create a layout behind the status bar (some rect) but it is a very bad workaround…Yet, it works (tried with M)
- Anyway you have also to know that all this stuff can only be done when targetting min SdK \>= lollipop.
