Reputation: 718
When creating a splash screen for an Android app, does the code that runs while the splash screen is visible need to be asynchronous? If so, why? Thanks.
Upvotes: 0
Views: 148
Reputation: 48262
Yes, otherwise your splash image will never show until the code completes. Because Android has the single UI thread. If you do anything else in that UI thread then no UI changes are possible until your other code finishes.
Upvotes: 1