The black screen time must be caused by doing too much work during startup.
Check the onCreate function that starts Activity to see if there are any operations that can be removed. Activity的onCreate函数,看看里面是不是有可以去掉的操作。
检查用用App类的onCreate
Check the onCreate function of the App class to see if there is any optimization.
For operations that must be performed at startup, open a new thread or add a service.
All operations that can be delayed will be delayed.
#🎜🎜#
#🎜🎜#Basically, for most applications, just pay attention to these points, especially the third and fourth points. Once done, there should be no problem. #🎜🎜#
Optimize Android startup page, remove black screen and achieve instant startup
The black screen time must be caused by doing too much work during startup.
Check the
onCreate
function that startsActivity
to see if there are any operations that can be removed.Activity
的onCreate
函数,看看里面是不是有可以去掉的操作。检查用用
App
类的onCreate
onCreate
function of theApp
class to see if there is any optimization.There is a black screen because your activity takes too long to start. You can use a transition page to display a logo or something first.
Set the window background of this activity, which is effective and convenient