Problem Description:
The business initialization process requires the Display splash screen interface, after a version update, found in some scenarios, the splash screen interface does not disappear after initialization is complete.
Cause of the problem:
Initialization is done on a child thread, and the splash screen belongs to the UI interface, which needs to be displayed by the UI thread. The initialization process and splash screen display on different threads, when the UI thread is busy, the initialization of the business is done and the splash screen is actually displayed.
Resolution:
Scenario One: To change the splash screen display to a synchronization link in the initialization process, blocking the current thread until the splash screen display will continue to execute. -There is a loss
Scenario Two: The splash screen display remains asynchronous, but needs to be added in the splash screen display time judgment, if the initialization has been completed, then directly close the interface.
"Classic bug" android-initialization splash screen does not disappear