@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
}
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.
in my apps.js, i implemented -
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
cordova.exec(null, null, "SplashScreen", "hide", []);
}
but even it is not working.
1. I don't want to show splash screen more than 1000.
Any solution ....