Black screen came for 2 seconds when starting app in phonegap
in android
before the splash screen came. How to resolve this problem? I need splash screen immediately.
You need to create a new theme to the android app. Under "{Project}\res\values" create a new file "styles.xml" and put the contents of the attached image
In the AndroidManifest.xml add "android:theme="@style/Theme.MyAppTheme"" to the "application" tag
Simply you can't.
That black screen is a sort of Android internal base screen that Android shows for your app while it fork a process in the Dalvik JVM and load your resources/classes. it happen for any Android app. it is not related to Phonegap. Android make this to give the user the impression of a "fast app launch" while it instead is still loading your code.
Anyway you can style that black screen to make it appear as near as possible to the theme of your app so the user have the impression the app is ready and launched but it is loading internal content.
You can read more about it here: http://cyrilmottier.com/2013/01/23/android-app-launching-made-gorgeous/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With