I also ran into the same problem. I will get around this by setting a background mock activity between init and loadUrl. Thus, I got the whole shell of the process: before the pop-up screen, the splash screen shown, hide the screen saver, and then hide my screen saver after the device is ready.
super.onCreate(savedInstanceState); super.init(); // set the layout background root.setBackgroundDrawable(null); root.setBackgroundResource(R.drawable.splash); root.setBackgroundColor(Color.parseColor("#ffffffff")); super.loadUrl(Config.getStartUrl(), 80000);
To reduce the code, I installed my splash screen in the config.xml file:
<preference name="backgroundColor" value="0xffffffff" /> <preference name="splashscreen" value="splash" /> <preference name="AutoHideSplashScreen" value="false" /> <preference name="auto-hide-splash-screen" value="false" />
It is based on Cordoba 2.8+. Splash Screen 2.7 is a kind of wack.
Also, if you have a white screen issue on iOS. See the iOS quirk section below: http://docs.phonegap.com/en/2.8.0/cordova_splashscreen_splashscreen.md.html#Splashscreen
Noogen
source share