Is it possible to hide the Android navigation bar (the one with the home and back buttons) in Corona SDK?

 Hi All, I was wondering whether it is possible to hide the navigation bar, the one with the home and back buttons (I assume it is called that way :)) in a Corona SDK Android build. I’ve done a thorough search concluding that actually it isn’t possible but I’d like a much more responsible answer from someone that knows.  There are some applications that manage to hide it but I think this can only be done by using native code.

Not that I’m aware of.

Not that I’m aware of.

There is a way to do it natively…maybe the Corona guys will include a call to it in a build soon? :smiley:

http://docs.coronalabs.com/daily/api/library/native/setProperty.html

Under 

androidSystemUiVisibility

Nice to see there’s a native property, you provided us with the key, but what would the value be?

0 or “false” or “False” or “0” to turn it off?

quote from docs:

native.setProperty() This is only works on the iOS platform at the moment

androidSystemUiVisibility  Only available on Android. 

??

Please hit the button at the bottom of the docs page so we can update this.  Prior to adding the new feature for Android, this was only used on iOS, now it’s used in both places as we need to make an update.

When you press the feedback button a ticket is issued to the documentation team and we can track its progress.

Thanks

Rob

done :slight_smile:

do u know what build this was introduced at?

(docs themselves say they’re 2014.2434, but is that the first rev of this feature?)

thx

I’m using native.setProperty( “androidSystemUiVisibility”, immersive )   and the navigation bar is still there. Also tried the other values and nothing. I’m using last public release

Maybe try:  native.setProperty( “androidSystemUiVisibility”, “immersive” )

I think it takes a string, not a nil variable.

Rob

@undecode: Did Rob’s suggestion work? Also, what versions of Android support this? I assume that we need to check that the game running on a new enough version of Android before issuing the native.setProperty call.

Thanks!

  • David

i haven’t yet tried it myself, but fwiw…

immersive intro at 4.4, hopefully corona degrades gracefully by itself

tho note that it has since been removed from the docs, so i don’t know what that means

(and note you’d need pro+ license for a daily build with it anyway, assuming it’s still in there despite docs)

@davebollinger: I’m seeing it in the current public API docs, as part of public release 2393: http://docs.coronalabs.com/api/library/native/setProperty.html

Thanks for the info on the Android version!

  • David

Someone is actively editing the docs as we speak  ;)

But no matter, am just glad it’s back in now, hope that means it’s a “keeper” :slight_smile:

Hi,

I’m using Corona SDK 2014.2393a and my tablet is using Android KitKat v4.4.2

I’ve tried the lines …

native.setProperty( “androidSystemUiVisibility”, “immersiveSticky” )

native.setProperty( “androidSystemUiVisibility”, “immersive” )

native.setProperty( “androidSystemUiVisibility”, “lowProfile” )

… three times (one at a time in each .apk) but the navigation does not hide or change.

Can you try it with a capital I in the UI part?

androidSystemUIVisibility

Ok, I’m on it.

I can’t make it work with …

native.setProperty( “androidSystemUIVisibility”, “immersiveSticky” )

native.setProperty( “androidSystemUIVisibility”, “immersive” )

native.setProperty( “androidSystemUIVisibility”, “lowProfile” )

… either.