Application and activity in the OnCreate are optimized, basically no time-consuming operation, but after starting the application will still flash a white background, and then into the splash page, compared to QQ, Weibo and other clients, After the click is instantaneous response Splash start page, where is the difference.
In fact, even if you oncreate do not do anything, will still flash white screen, because the initial parsing interface takes a certain amount of time, the solution is to customize the theme.
Customize the following
<style name= "Appsplash" parent= "Android:theme" > <item name= "Android:windowbackground" > @drawable/ ipod_bg</item> <item name= "Android:windownotitle" >true</item> </style>
The configuration file is configured as follows
<activity android:theme= "@style/appsplash" android:name= ". Splashactivity "> </activity>
In this way, click on the app icon will immediately respond, the background image set up, with QQ, the same effect.
jason0539
Blog: http://blog.csdn.net/jason0539 (reprint please indicate the source)
Sweep code Follow me public number
Android Development to improve application startup Speed _splash Page Instant Response _ Avoid app startup Flash white screen