Android App startup speed optimization

Source: Internet
Author: User

Now a lot of apps start clicking on a black screen or a white screen, and even the previous time has the same problem. In fact, white screen or black screen or some other things, all because of the problem of Android theme, as long as they customize a startup theme, the problem is solved perfectly.

Resolved as follows:

The style file adds:

<style name= "Appstartload" parent= "@android: Style/theme.notitlebar.fullscreen" >        <item name= "Android: Windowbackground "> @drawable/splash</item>        <item name=" Android:windownotitle ">true</item >    </style>

Just set a background that is the same as activating the activity.

References in manifest:

<activity            android:name= "Com.pztuan.module.Splash"            android:theme= "@style/appstartload" >            < intent-filter>                <action android:name= "Android.intent.action.MAIN"/>                <category android:name= " Android.intent.category.LAUNCHER "/>            </intent-filter>        </activity>

The problem is solved so that no matter what kind of low-matching machine it is, it can also make people feel instantly open the application.

If you have any questions, please leave a message, reproduced the source.

Android App startup speed optimization

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.