Kal
Posts: 0
Joined: Thu May 22, 2014 11:03 pm

Hiding the Android Navigation Bar (fullscreen app)

Hi, in order to have a fullscreen app, I need to hide the Android navigation bar. This URL tells me how to do it: https://developer.android.com/trainin...

However, I am not sure where I would set the SYSTEM_UI_FLAG_HIDE_NAVIGATION in Appery Source tab. Or, can it only be done by exporting to Eclipse?

Any pointers will be appreciated!

Thanks,
-Kal.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Hiding the Android Navigation Bar (fullscreen app)

Hello!

Please try searching online how to do that in PhoneGap app. Looks like in res/xml/config.xml it is enough to add pre<preference name="fullscreen" value="true" />/pre

Kal
Posts: 0
Joined: Thu May 22, 2014 11:03 pm

Hiding the Android Navigation Bar (fullscreen app)

Thanks for the pointer, I will do further research.

Kal
Posts: 0
Joined: Thu May 22, 2014 11:03 pm

Hiding the Android Navigation Bar (fullscreen app)

Hi Maryna,

I did some research and found the same info as you did regarding phonegap full screen. However, I think the problem is that Appery does not expose the phonegap source code tree fully. I went into the Android directory and went to res/xml/config.xml, and added the line (as shown in the attached screen shot), and then saved and re-built the APK. However, it still shows the Navigation Bar on launch.

Any other ideas?
Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Hiding the Android Navigation Bar (fullscreen app)

Hello!

"it still shows the Navigation Bar on launch" - do you mean Navigation Bar is shown only while app loading, then it is gone?

Kal
Posts: 0
Joined: Thu May 22, 2014 11:03 pm

Hiding the Android Navigation Bar (fullscreen app)

Sorry, wrong choice of words... the Navigation Bar shows in the App when it is running.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Hiding the Android Navigation Bar (fullscreen app)

Hello Kal,

Sorry we don't have navbar if we put:

code <preference name="fullscreen" value="true" />/code

Neither on Android 4.0.4, neither 4.4.2. Could you please give a screenshot of your application installed on the device?

Kal
Posts: 0
Joined: Thu May 22, 2014 11:03 pm

Hiding the Android Navigation Bar (fullscreen app)

OK, just to be sure, I created a new blank page, and set it as the Start Page on my project (just to be sure nothing in the page is interfering). I checked once again to make sure the above line was in the XML (it was), and exported to apk, downloaded to the tablet. Here is the screenshot.
Image

Kal
Posts: 0
Joined: Thu May 22, 2014 11:03 pm

Hiding the Android Navigation Bar (fullscreen app)

Just as a test, I did the same XML change to another app I have, which I run on a Moto G with Android 4.4.3. It has the exact same behavior, the navbar does not disappear.

Evgene: In your project, do yo have the BarcodeScanner folder as well? I have it in mine, and was wondering if that causes interference.

Second, did you put the Preference line in the same place I did (per the screen shot I attached a few replies ago), or are you putting it in a different place?

I think we must be doing something differently, since I cannot get it to work on 4.1 and neither on 4.4.3, whereas you can get it to work on two different OS versions, including 4.4.2.

Kal
Posts: 0
Joined: Thu May 22, 2014 11:03 pm

Hiding the Android Navigation Bar (fullscreen app)

Any update on this?

Return to “Issues”