[英]Android White Screen on Before Splash
When Launching android app it shows white screen almost 3 sec.启动 android 应用程序时,它显示白屏近 3 秒。 I have added this line of code in style to remove white screen,我在样式中添加了这行代码以删除白屏,
<item name="android:windowDisablePreview">false</item>
It removes white screen but now app launch is taking 3 to 4 sec.它删除了白屏,但现在应用程序启动需要 3 到 4 秒。 How to fix this issue.如何解决这个问题。 Kindly help.请帮忙。
Move code out of your onCreate/onStart/onResume.将代码移出 onCreate/onStart/onResume。 All of these methods block the app startup.所有这些方法都会阻止应用程序启动。 Instead, launch a background thread/coroutine/task to load your app asynchronously, while displaying a loading page as it loads.相反,启动后台线程/协程/任务以异步加载您的应用程序,同时在加载时显示加载页面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.