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