html5 - how to stop initializing on phone gap android app -


i created game phaser , port android game using phone gap. it's working fine keeps initialising every time. , want disable it. scree shot can disabled ? or can give other custom loading screen ? here phone gap config file

config.xml

<?xml version="1.0" encoding="utf-8" ?> <widget xmlns   = "http://www.w3.org/ns/widgets"     xmlns:gap   = "http://phonegap.com/ns/1.0"     id          = "com.phonegap.space"     versioncode = "10"     version     = "1.0.0" >    <name>space shooter</name>   <description>      game   </description>   <author>       shashank padwal   </author>    <!-- platforms -->   <preference name="phonegap-version" value="cli-7.0.1" />   <preference name="fullscreen" value="true" />      <platform name="windows" >         <preference name="windows-arch" value="arm" />         <preference name="windows-appx-target" value="uap" />     </platform>      <platform name="ios" >         <preference name="target-device" value="universal" />         <preference name="prerendered-icon" value="true" />         <preference name="detect-data-types" value="true" />         <preference name="exit-on-suspend" value="true" />         <preference name="deployment-target" value="7.0" />     </platform>      <platform name="android" >         <preference name="fullscreen" value="true" />         <preference name="orientation" value="portrait" />         <preference name="androidpersistentfilelocation" value="compatibility" />     </platform> </widget> 

and index file using

index.html

<!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />     <title>game</title>      <script type="text/javascript" src="js/phaser.min.js"></script>     <style type="text/css">         body{             margin: 0px;             padding: 0px;             background-color: red;         }     </style> </head> <body> <script type="text/javascript" src="cordova.js"></script> <div id="gamearea"></div> <script type="text/javascript" src="js/main.js"></script> </body> </html> 


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -