I'm using IBM Worklight 6.1 for my mobile app project. My question is how to reduce splash screen duration around 1 second. I and my colleague already try many solutions from stackoverflow regarding to this issue.
IBM Worklight 5.0.6 - How to add a splash screen to Android environment? - stay on splash screen
phonegap - splash screen for Android app - not working
Worklight App Splash Screen on Android - blank screen
Until now the splash screen takes a lot around 10 seconds. We test it on Samsung Note 2 and compile it using eclipse Juno.
This is our source code for splash screen.
package com.WorklightMobile;
import android.os.Bundle;
import com.worklight.androidgap.WLDroidGap;
public class WorklightMobile extends WLDroidGap {
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
super.setIntegerProperty("splashscreen", R.drawable.splash);
}
/**
* onWLInitCompleted is called when the Worklight runtime framework initialization is complete
*/
@Override
public void onWLInitCompleted(Bundle savedInstanceState){
super.loadUrl(getWebMainFilePath(), 1000);
// Add custom initialization code after this line
}
}
Check this out my repo - https://github.com/datomnurdin/worklight-mobile