On the difference between app cold start and hot start and white screen solution for cold start _app

Source: Internet
Author: User

First science about the difference between app hot and cold start:

    App Cold start: When the application is started, the background does not have the application process, then the system will re-create a new process assigned to the application, this startup is called cold start (the background does not exist the application process).

    app hot start: When the application is turned on, but when the button is pressed back to the desktop or another program, and then reopened, the app is called Hot boot (the application process is already in the background).

The second is about the cold start of the white screen to solve the problem, exclusion is the logic of the code to create a startup screen or black screen problem (you can set up a picture in the startup page, when the start of the picture will not appear black screen or is screen to judge whether the logic of the code problem, the specific set up the method in the end of the text given).

A white screen appears in the development phase of the instant run after the Android studio 2.0.0, but don't worry, this is a side effect of as as, and the release version does not.

If so, you can set up:
Set the theme for the initiated activity in the Style.xml file, setting the Android:windowbackground property to start the splash screen image of the activity display, so that the app seconds open.

The global background color is then set to transparent.

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.