Making an Android app fullscreen with Cordova -



Making an Android app fullscreen with Cordova -

i'm newcomer cordova, , trying create app appears total screen (hiding taskbar @ bottom of android).

i have looked online , there seem 2 different techniques.... have tried adding

<preference name="fullscreen" value="true" /> config.xml

so reads

<?xml version='1.0' encoding='utf-8'?> <widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <preference name="loglevel" value="debug" /> <preference name="androidlaunchmode" value="singletop" /> <feature name="app"> <param name="android-package" value="org.apache.cordova.app" /> </feature> <name>hellocordova</name> <description> sample apache cordova application responds deviceready event. </description> <author email="dev@cordova.apache.org" href="http://cordova.io"> apache cordova team </author> <content src="index.html" /> <access origin="*" /> <preference name="fullscreen" value="true" /> <preference name="webviewbounce" value="true" /> <preference name="orientation" value="landscape" /> <preference name="hidekeyboardformaccessorybar" value="true" /> </widget>

the status bar still remains @ bottom (although app prepare @ landscape). have tried other advice involves adding lines hellocordova.java. imports android.view.windowmanager; , adds lines after loading index.html:

(windowmanager.layoutparams.flag_fullscreen, windowmanager.layoutparams.flag_fullscreen windowmanager.layoutparams.flag_force_not_fullscreen);

this method stops app compiling cordova build android.

any tips of can looking.

i'm using android 4.1.1

the bottom bar on android called navigation bar , mode looking called immersive mode. terms may help future web searches. seek using plugin https://github.com/mesmotronic/cordova-fullscreen-plugin

android cordova

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -