安卓恢复?
我有一个应用程序经过大量测试后运行得非常好,但是当我退出应用程序(点击主屏幕)并让它静置一段时间然后返回应用程序时,我只是看到黑屏。我试图重现这一点,但无法重现,因为只有当我让手机静置一段时间时...我尝试退出每个活动,甚至在我的应用程序之上打开内存密集型应用程序,然后回到我的应用程序,但它总是工作正常。除非我在屏幕关闭的情况下等待一段时间然后再回来......黑屏。有什么想法吗?我没有重写 onresume 或 onstart,应该吗?
I have an app that works perfectly fine after tons of testing, but when I exit out of the app (hit home screen) and let it sit for a while and come back to the app, I just have a black screen. I have tried to reproduce this, but have been unable to, because it is only when I let the phone sit for a while...I have tried exiting out on each activity and even opening memory intensive apps on top of my app, then going back to my app, but it always works fine. Unless I wait a while with the screen turned off then come back...black screen. Any ideas? Im not overriding onresume or onstart, should I be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我以前从未见过这个问题,但这里有一些您可以尝试的提示:
只是好奇,您在什么类型的手机上进行测试?您使用的 Android 版本是什么?
I've never seen this issue before but here are some tips you could try:
Just curious, what type of phone are you testing this on? What Android version are you using?