I checkout code from svn and I resolved the run time issues and run the application. Then for me blank screen is coming for every first launch the app and for others it's not happening.
I added below line to fix runtime error
aaptOptions {
cruncherEnabled = false
}
Add the following theme in your styles.xml and apply it for the splash Activity
<style name="AppTranslucent" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowIsTranslucent">true</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
Add this in your style.xml,
<style name="Theme.Transparent" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowIsTranslucent">true</item>
</style>
In manifest file, call this style.xml as android:theme="@style/Theme.Transparent" within your Splash screen activity
It will solve your problem.
Try this.. Add the NoTitleBar theme to you Splash
<activity
android:name=".SplashScreenActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
/ >
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.