search

Home  >  Q&A  >  body text

android 启动页闪黑屏怎么解决比较好

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

巴扎黑巴扎黑2772 days ago508

reply all(4)I'll reply

  • 阿神

    阿神2017-04-17 17:37:47

    Optimize Android startup page, remove black screen and achieve instant startup

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 17:37:47

    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. #🎜🎜#

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 17:37:47

    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.

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 17:37:47

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

    reply
    0
  • Cancelreply