# Status bar behaviour on Android

**URL:** <https://forum.juce.com/t/status-bar-behaviour-on-android/24999>\
**Category:** Android\
**Created:** [November 5, 2017, 7:53pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999 "2017-11-05T19:53:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [November 5, 2017, 7:53pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/1 "2017-11-05T19:53:54Z")

</div>

Hi, with the Juce Demo app, the status bar is visible. With the Demo Plugin, the bar appears briefly but then disappears off the top of the screen. However, if the app loses the focus and regains it, it appears with the status bar.

Is this behaviour intentional and is it controllable via Juce - basically I want the bar to appear at all times and not auto-hide

thx

---

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [November 9, 2017, 5:48pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/2 "2017-11-09T17:48:55Z")

</div>

bump

---

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [November 24, 2017, 2:48pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/3 "2017-11-24T14:48:04Z")

</div>

@fabian, @lukasz.k - any thoughts on this?

---

<div class="post-metadata">

**Author:** ![lukasz.k](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@lukasz.k](https://forum.juce.com/u/lukasz.k)\
**Post date:** [November 24, 2017, 4:18pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/4 "2017-11-24T16:18:10Z")

</div>

I will have to check this. Currently I am in the middle of a different task I need to finish first.

---

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [November 24, 2017, 4:18pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/5 "2017-11-24T16:18:57Z")

</div>

no probs, thx

---

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [December 3, 2017, 6:17pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/6 "2017-12-03T18:17:35Z")

</div>

Hi, have you had a chance to look at this yet?

I’ve tried removing the call to setKioskModeComponent() and also calling it with the allowMenusAndBars=true to see if that had any effect and neither of those changes appear to.

Edit: looks like the allowMenusAndBars is not used:

void Desktop::setKioskComponent (Component\* kioskModeComp, bool enableOrDisable, bool /_allowMenusAndBars_/)

---

<div class="post-metadata">

**Author:** ![lukasz.k](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@lukasz.k](https://forum.juce.com/u/lukasz.k)\
**Post date:** [December 4, 2017, 9:07am UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/7 "2017-12-04T09:07:37Z")

</div>

Hey. Sorry, not yet! I have it on my radar and I will have a look. Thanks for the update.

---

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [December 13, 2017, 10:20pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/8 "2017-12-13T22:20:10Z")

</div>

Hi, sorry to keep on about this, but it’s stopping me from doing a release as the GUI behaviour is somewhat random and inconsistent. Any idea when someone can take a look? thx

---

<div class="post-metadata">

**Author:** ![lukasz.k](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@lukasz.k](https://forum.juce.com/u/lukasz.k)\
**Post date:** [December 14, 2017, 10:43am UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/9 "2017-12-14T10:43:12Z")

</div>

Sorry, for the delay leehu, I will have a look today.

---

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [December 14, 2017, 11:02am UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/10 "2017-12-14T11:02:09Z")

</div>

thanks - I know you’re busy on lots of other stuff, so appreciate it.

---

<div class="post-metadata">

**Author:** ![lukasz.k](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@lukasz.k](https://forum.juce.com/u/lukasz.k)\
**Post date:** [December 14, 2017, 6:43pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/11 "2017-12-14T18:43:40Z")

</div>

Thanks leehu for your feature request and sorry again for taking so long to respond. I have pushed the fix to develop [in commit 181f4ab.](https://github.com/WeAreROLI/JUCE/commit/181f4ab7fcbb7e38322e19854ea078f2427f6a81) You can now customise if kiosk mode should be used for your standalone plugin build or not. Just use the new `JUCE_STANDALONE_FILTER_WINDOW_USE_KIOSK_MODE` preprocessor def in Projucer to set the value you need. By default the kiosk mode is enabled on iOS and Android.

 ![42](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/1/18fa3a1e552bab7b3dd51fae10b30d19b4f6abae.png)

> With the Demo Plugin, the bar appears briefly but then disappears off the top of the screen. However, if the app loses the focus and regains it, it appears with the status bar.

I have also fixed that in a separate commit, so that the visibility of navigation and status bars remains the same if the app is suspended and later resumed.

---

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [December 15, 2017, 9:33am UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/12 "2017-12-15T09:33:06Z")

</div>

Hi, tried this this morning, thanks. Done some testing on the audio plugin app. If I turn off kiosk mode, the Android menu bar remains (as desired). However, the app menu bar is also visible (not really desirable) - the minimise button has no effect, but the ‘x’ button will suspend the app but then resuming it causes a consistent crash.

---

<div class="post-metadata">

**Author:** ![lukasz.k](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@lukasz.k](https://forum.juce.com/u/lukasz.k)\
**Post date:** [December 15, 2017, 1:04pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/13 "2017-12-15T13:04:20Z")

</div>

Ah, I missed that, thanks! I fixed it in [commit a2bbd99](https://github.com/WeAreROLI/JUCE/commit/a2bbd992342324d676bb68fc3fdb28c4f7965d0b) by hiding the title bar on iOS and Android disregarding kiosk mode.

---

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [December 15, 2017, 4:08pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/14 "2017-12-15T16:08:25Z")

</div>

This all looks good now, thanks!

---

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [January 6, 2018, 12:05am UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/15 "2018-01-06T00:05:46Z")

</div>

Hi @lukasz.k, I’ve just pulled the latest from develop and the status bar has gone, and some of the sizing oddities have come back. I notice there is a Status Bar Hidden option for iOS but not for Android (not sure if this option is what I think it is).

Edit: Maybe this is related to enabling OpenGL - will check tomorrow.

---

<div class="post-metadata">

**Author:** ![lukasz.k](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@lukasz.k](https://forum.juce.com/u/lukasz.k)\
**Post date:** [January 15, 2018, 12:38pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/16 "2018-01-15T12:38:39Z")

</div>

Hi @leehu. I’ve just got the latest develop and all is working fine here. Can you try getting the latest develop and re-saving your project in Projucer?

---

<div class="post-metadata">

**Author:** ![lukasz.k](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@lukasz.k](https://forum.juce.com/u/lukasz.k)\
**Post date:** [January 15, 2018, 12:52pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/19 "2018-01-15T12:52:13Z")

</div>

Can you reproduce it in Plugin Demo? Have you got `JUCE_STANDALONE_FILTER_WINDOW_USE_KIOSK_MODE` set to `Disabled`?

---

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [January 15, 2018, 12:52pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/20 "2018-01-15T12:52:44Z")

</div>

sorry, ignore last 2 replies - I thought I was replying to ed - will try this later. thx

---

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [January 16, 2018, 7:43pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/21 "2018-01-16T19:43:40Z")

</div>

Hi @lukasz.k - pulled latest everything and rebuilt from scratch and status bar looks good again. thx

---

<div class="post-metadata">

**Author:** ![bohan-xie](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@bohan-xie](https://forum.juce.com/u/bohan-xie)\
**Post date:** [April 10, 2018, 7:39pm UTC](https://forum.juce.com/t/status-bar-behaviour-on-android/24999/22 "2018-04-10T19:39:29Z")

</div>

@leehu @lukasz.k  
Do you guys know how to hide the status bar for an app on Android?

[Next page](https://forum.juce.com/t/status-bar-behaviour-on-android/24999.md?page=2)
