Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

App startup with black screen cost very long time before splash

Discussion in 'Android' started by fuy, Mar 10, 2016.

  1. fuy

    fuy

    Joined:
    Sep 24, 2014
    Posts:
    30
    my Resources Folder have many prefabs, the black screen stay very long before splash image when app startup
    how can i show splash first? i dont want see the black screen, it looks like app die!!!

    IOS is fine, it startup with splash image first.
    Pls help me
     
  2. fuy

    fuy

    Joined:
    Sep 24, 2014
    Posts:
    30
    tested in 4.6.9 and 4.7.1
     
  3. yanhui

    yanhui

    Joined:
    Aug 24, 2012
    Posts:
    5
    it seems no one know how to resove it.try add this line <android:theme="@android:style/Theme.Translucent"> to Manifest.xml about main activity.
     
  4. crispybeans

    crispybeans

    Joined:
    Apr 13, 2015
    Posts:
    210
    Try with a clean project and work towards the problem in steps - I often found that it can help rather than trying and go backwards to solve the problem.

    1. Try and make a new project from scratch and see if that project does the same thing, is it the phone or a bug in Unity ?
    2. Set the same build parameters in the new project to the same as your failing one. Is it a build option that caurse it ?
    3. Import the same plugins and Android manifest as your failing project, is it one of these ?
    4. If it still works then it must be some code in your failing project doing it, try looking into stuff getting called in Awake or Start and see if that caurse it - maybe something is calling Thead.Sleep or maybe something is doing a while loop that takes a long time.