My application taking so much time to launching First Activity screen

后端 未结 6 728
逝去的感伤
逝去的感伤 2020-12-11 04:39

My application taking so much time to launching First Activity screen. It will showing white screen for long time. Even after kill my application and accessing.

I am

相关标签:
6条回答
  • 2020-12-11 05:19

    The Instant Run is enabled in your Android Studio. Try to disable the function. You will not get that issue.

    Why does my App start incredibly slow (10s+) at first run, showing only white screen on android 5.0?

    0 讨论(0)
  • 2020-12-11 05:20

    if you are launching application to the first time it take time to load, after that when you open it second time it not take time to open.

    You are using debug_apk. try creating release sign apk once and check it take time or not.

    0 讨论(0)
  • 2020-12-11 05:25

    In my experience, Fabric consumes a bit of time in establishing the connection and communicating.

    I would suggest you to comment the Fabric portion on the code and re-run to see if there is any change in the app load time.

    Additionally u could move the code on to an async task rather than performing these on the main thread. It would at least not slow down ur initial app launch time.

    0 讨论(0)
  • 2020-12-11 05:29

    If you have an image which shows in splash screen and if there is only single density image, put it in drawable-xxxhdpi folder.

    0 讨论(0)
  • 2020-12-11 05:30

    If someone is still facing this issue, please check your styles.xml for the below entry, and disable it, if it is present.

    <item name="android:windowDisablePreview">true</item>
    
    0 讨论(0)
  • 2020-12-11 05:31

    check this In android studio --> File --> Setting --> Build --> Remove tick following option's

    0 讨论(0)
提交回复
热议问题