Software Archive
Read-only legacy content
17061 Discussões

How exclude a splashcreen in Intel XDK?

Mateus_A_
Principiante
687 Visualizações

Hi, i would like to know, how can i exclude all the splashscreens, that i have set on intel xdk. Because now im using the file index.html as my splash.

I tried to exclude the references of the splash images on the android xml config fil,e but this doesn't worked. 

0 Kudos
4 Respostas
Guseinov__Rizvan
Principiante
687 Visualizações
First step:
Remove the plugin Splash Screen in the Plugin Management
 
Second step:
Insert:
intel.xdk.device.hideSplashScreen ();
in function (it is in the index.html):
function onDeviceReady ()
- Must happen:
<script>

            function onDeviceReady() {
            // Register the event listener
            intel.xdk.device.hideSplashScreen();
            document.addEventListener("backbutton", onBackKeyDown, false);
        }

</script>

 

Guseinov__Rizvan
Principiante
687 Visualizações

Rizvan G. wrote:

First step:

Remove the plugin Splash Screen in the Plugin Management

 

Second step:

Insert:

intel.xdk.device.hideSplashScreen ();

in function (it is in the index.html):

function onDeviceReady ()

- Must happen:

<script>

            function onDeviceReady() {
            // Register the event listener
            intel.xdk.device.hideSplashScreen();
            document.addEventListener("backbutton", onBackKeyDown, false);
        }

</script>

 

Elroy_A_Intel
Funcionário
687 Visualizações

I recommend adding the Splashscreen Cordova plugin in your project found under the Plugin Management section on the Projects Tab.

During the deviceready event handler, you can execute the following method;

navigator.splashscreen.hide()

For more information about the Apache Cordova*Splashscreen plugin, visit https://www.npmjs.com/package/cordova-plugin-splashscreen.

PaulF_IntelCorp
Funcionário
687 Visualizações
  • exit the XDK
  • make a copy of the <project-name>.xdk file inside your project directory
  • open the <project-name>.xdk file using a text editor (notepad++, sublime, brackets, etc.)
  • find the arrays of "splashes_" in the file and replace them with "splashes_" : [],
  • save the file
  • restart the XDK
Responder