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

Ah… This was added to daily build 2398, the first daily build after the last public release.  The forums say you are a Starter account, so this is not a feature in the SDK you can use.

Rob

Ah! It’s ok.

I’m happy that the feature even exist. I’ll wait till the next public release.  :) 

I’m using native.setProperty( “androidSystemUiVisibility”, “immersive” ) and it works great.

Make sure to set it first thing on start-up so your setting up your screen dimensions to the immersive resolution and on app resume.

Also since you have no idea if the user has swiped up the status bar and has once again resumed interacting with your app I set immersive mode on every event.phase == “began” touch that isn’t in the vicinity of the top or bottom edge of the screen to hide it.

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.