简体   繁体   English

Android:重新启动应用程序时出现白屏

[英]Android : White screen when relaunch app

I have a problem of white screen when I relaunch background app. 重新启动后台应用程序时出现白色屏幕问题。

I click home button and then I click on app logo, my application resume and sometimes I have a white screen. 我单击主页按钮,然后单击应用程序徽标,我的应用程序恢复,有时会出现白屏。

Do you know what's happening please? 你知道发生了什么吗?

This is the time that your application takes starting, before first activity is displayed. 在显示第一个活动之前,这是您的应用程序开始运行的时间。

If you extended the application class, you can look at the onCreate method, if there is much code here. 如果扩展了应用程序类,则此处有很多代码,您可以查看onCreate方法。

You can minimize the effects, setting the default window background to a color or drawable in a theme: 您可以最小化效果,将默认窗口背景设置为主题中的颜色或可绘制背景:

<item name="android:windowBackground">@color/mycolor</item>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM