android 启动页闪黑屏怎么解决比较好
巴扎黑
巴扎黑 2017-04-17 17:35:47
0
4
509

app启动时会有一小段时间的黑屏时间,有没有什么比较好的解决方法,不想设置application的主题用一张图片替代

巴扎黑
巴扎黑

reply all(4)
阿神

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 starts Activity to see if there are any operations that can be removed. ActivityonCreate函数,看看里面是不是有可以去掉的操作。

  • 检查用用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. #🎜🎜#
Ty80

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.

Peter_Zhu

Set the window background of this activity, which is effective and convenient

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template