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:
1 <stylename= "Appstartload"Parent= "@android: Style/theme.notitlebar.fullscreen"> 2 <Itemname= "Android:windowbackground">@drawable/splash</Item> 3 <Itemname= "Android:windownotitle">True</Item> 4 </style>
Just set a background that is the same as activating the activity.
References in manifest:
1 <Activity2 Android:name= "Com.pztuan.module.Splash" 3 Android:theme= "@style/appstartload" > 4 <Intent-filter> 5 <ActionAndroid:name= "Android.intent.action.MAIN" /> 7 <categoryAndroid:name= "Android.intent.category.LAUNCHER" /> 8 </Intent-filter> 9 </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.
Android App startup speed optimization