How can I remove the android software navigation button.

Hi,

As you know with Android, there are the navigation buttons at the bottom of the screen. 

How can I hide them or remove them?

https://docs.coronalabs.com/api/library/native/setProperty.html#androidsystemuivisibility

 Hi, I added the following to main.lua :

native.setProperty( "androidSystemUiVisibility", "immersiveSticky" )

But nothing happens. is there anything else I should do?

Hi mohammadalshwaf,

Use code below from Sticker-Knight-Platformer/main.lua

-- Removes status bar on iOS -- https://docs.coronalabs.com/api/library/display/setStatusBar.html display.setStatusBar( display.HiddenStatusBar )&nbsp; -- Removes bottom bar on Android&nbsp; if system.getInfo( "androidApiLevel" ) and system.getInfo( "androidApiLevel" ) \< 19 then &nbsp; native.setProperty( "androidSystemUiVisibility", "lowProfile" ) else native.setProperty( "androidSystemUiVisibility", "immersiveSticky" )&nbsp; end

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

@Rob Miracle: Do you want to hide the navbar for the entire app?  Then put them at the top of your main.lua. If you only want to hide them during your scene, then put them in scene:show() to hide them and turn them back on again in scene:hide().

Read more:

Have a nice day:)

ldurniat

Hi, thanks a lot. it worked.

https://docs.coronalabs.com/api/library/native/setProperty.html#androidsystemuivisibility

 Hi, I added the following to main.lua :

native.setProperty( "androidSystemUiVisibility", "immersiveSticky" )

But nothing happens. is there anything else I should do?

Hi mohammadalshwaf,

Use code below from Sticker-Knight-Platformer/main.lua

-- Removes status bar on iOS -- https://docs.coronalabs.com/api/library/display/setStatusBar.html display.setStatusBar( display.HiddenStatusBar )&nbsp; -- Removes bottom bar on Android&nbsp; if system.getInfo( "androidApiLevel" ) and system.getInfo( "androidApiLevel" ) \< 19 then &nbsp; native.setProperty( "androidSystemUiVisibility", "lowProfile" ) else native.setProperty( "androidSystemUiVisibility", "immersiveSticky" )&nbsp; end

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

@Rob Miracle: Do you want to hide the navbar for the entire app?  Then put them at the top of your main.lua. If you only want to hide them during your scene, then put them in scene:show() to hide them and turn them back on again in scene:hide().

Read more:

Have a nice day:)

ldurniat

Hi, thanks a lot. it worked.