Android Development to improve application startup Speed _splash Page Instant Response _ Avoid app startup Flash white screen

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.