# HiddenStatusBar for Android

**URL:** <https://forums.solar2d.com/t/hiddenstatusbar-for-android/352042>\
**Category:** Android\
**Created:** [August 7, 2020, 9:44pm UTC](https://forums.solar2d.com/t/hiddenstatusbar-for-android/352042 "2020-08-07T21:44:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![duskandawn](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/9dc877/32.png) [@duskandawn](https://forums.solar2d.com/u/duskandawn)\
**Post date:** [August 7, 2020, 9:44pm UTC](https://forums.solar2d.com/t/hiddenstatusbar-for-android/352042/1 "2020-08-07T21:44:59Z")

</div>

Hello,  
I dont see `display.setStatusBar (display.HiddenStatusBar)` working in Android. Is this expected. I was not able to find anything specific in documentation.  
If it doesnt work, how is one suppose to hide status bar in Android.  
I am using Coronacards for embedding my game, will it make a difference ?

---

<div class="post-metadata">

**Author:** ![Siu](https://forums.solar2d.com/user_avatar/forums.solar2d.com/siu/32/2129_2.png) [@Siu](https://forums.solar2d.com/u/Siu)\
**Post date:** [August 8, 2020, 12:17am UTC](https://forums.solar2d.com/t/hiddenstatusbar-for-android/352042/2 "2020-08-08T00:17:52Z")

</div>

It’s fine for me, but I don’t use Corona Cards.

Corona Cards is limited in the Solar2D API, I don’t know whether this function call falls under that, however, since Corona Cards is just an “add-on” to your project you should be able hide the Status Bar through native code.

---

<div class="post-metadata">

**Author:** ![duskandawn](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/9dc877/32.png) [@duskandawn](https://forums.solar2d.com/u/duskandawn)\
**Post date:** [August 8, 2020, 12:45am UTC](https://forums.solar2d.com/t/hiddenstatusbar-for-android/352042/3 "2020-08-08T00:45:37Z")

</div>

Thank you, hiding from native was my last resort. may be thats what I need to do with corona cards. Thank you again !!

---

<div class="post-metadata">

**Author:** ![bgmadclown](https://forums.solar2d.com/user_avatar/forums.solar2d.com/bgmadclown/32/490_2.png) [@bgmadclown](https://forums.solar2d.com/u/bgmadclown)\
**Post date:** [August 8, 2020, 12:11pm UTC](https://forums.solar2d.com/t/hiddenstatusbar-for-android/352042/4 "2020-08-08T12:11:07Z")

</div>

Have you tried [native.setProperty()](https://docs.coronalabs.com/api/library/native/setProperty.html) ? [androidSystemUiVisibility](https://docs.coronalabs.com/api/library/native/setProperty.html#androidSystemUiVisibility) property might solve the problem.

---

<div class="post-metadata">

**Author:** ![duskandawn](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/9dc877/32.png) [@duskandawn](https://forums.solar2d.com/u/duskandawn)\
**Post date:** [August 8, 2020, 8:36pm UTC](https://forums.solar2d.com/t/hiddenstatusbar-for-android/352042/5 "2020-08-08T20:36:40Z")

</div>

Thank you @bgmadclown, yes that works…

On similar lines have a question for Coronacards support for `landscape` mode in Android.  
I have added this to my build.settings

```
orientation =
	{
		default = "landscapeRight",
		supported = { "landscapeLeft", "landscapeRight"},
	}, 

```

But even then my game does not force the app to switch to landscape mode. Do I have to force this from native side as well, or define orientation for my host activity of this game ?

---

<div class="post-metadata">

**Author:** ![bgmadclown](https://forums.solar2d.com/user_avatar/forums.solar2d.com/bgmadclown/32/490_2.png) [@bgmadclown](https://forums.solar2d.com/u/bgmadclown)\
**Post date:** [August 8, 2020, 8:53pm UTC](https://forums.solar2d.com/t/hiddenstatusbar-for-android/352042/6 "2020-08-08T20:53:46Z")

</div>

I’m sorry, I have absolutely no idea but looking at the [sample project](https://github.com/CoronaCards/sample-android-ChildView) I don’t see a `build.settings` included. Maybe something else is used for orientation handling?

quick update:

> [@How To Change Orientation in CoronaCards](https://forums.solar2d.com/t/how-to-change-orientation-in-coronacards/342293/4):
>
> What Engineering is saying is that since Corona Cards is designed to be a view in a native app, the CoronaView is like any other native object, it has an X, Y width and heigh that’s always in portrait orientation. There isn’t a concept of orientation at the view level. You could detect the orientation on the native side and then send an event to the view so you know that the orientation changed.&nbsp; Rob

---

<div class="post-metadata">

**Author:** ![duskandawn](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/9dc877/32.png) [@duskandawn](https://forums.solar2d.com/u/duskandawn)\
**Post date:** [August 8, 2020, 9:06pm UTC](https://forums.solar2d.com/t/hiddenstatusbar-for-android/352042/7 "2020-08-08T21:06:52Z")

</div>

Thank you @bgmadclown, reading the thread I see what it means. I would probably force it from native side.
