Note that there are some explanatory texts on larger screens.

plurals
  1. POBlack screen showing after splash screen Android 2.2 onwards Cordova 1.9
    primarykey
    data
    text
    <p>Even my problem is not resolved....</p> <pre><code> @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //fix for Bug 3774 super.setIntegerProperty("splashscreen", R.drawable.splash); // Display splash screen for android this.setIntegerProperty("loadUrlTimeoutValue", 120000); super.loadUrl("file:///android_asset/www/index.html",1000);// 1000 is the time for splash screen display } </code></pre> <p>Here, I wanted splash screen will show for 1 Sec (1000) and after that index page must be shown, but in between (splash and index page), blank screen is coming for 10-20 sec.</p> <p>in my apps.js, i implemented - </p> <pre><code>document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { cordova.exec(null, null, "SplashScreen", "hide", []); } </code></pre> <p>but even it is not working. 1. I don't want to show splash screen more than 1000. Any solution ....</p> <p><strong>Solution</strong></p> <p><strong>I was doing silly mistake.</strong></p> <pre><code>document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { cordova.exec(null, null, "SplashScreen", "hide", []); } </code></pre> <p>this code must be in .Ready method in .js file.</p> <ol> <li><p>Java file</p> <p>I was doing silly mistake.</p> <p>document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { cordova.exec(null, null, "SplashScreen", "hide", []); }</p></li> </ol> <p>this code must be in .Ready method in .js file.</p> <ol> <li>Java file</li> </ol> <p>add time to max like 10000 or 1200000</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload