84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
应用内某页面在第一次启动时会显示引导蒙层,此时按home键进入后台并开启其他app,系统因内存不足kill掉app后台后,无法从多任务中打开应用,现象为全白屏,然后ANR。如果点击完蒙层(即蒙层消失后)并重复上述操作,app可以正常恢复原fragment。
我在该fragment的onStop方法中已经判断并置空了蒙层的对象。
ps:该页面正常使用/进入后台kill前再次打开 均正常,仅在系统kill后从后台打开出现问题。
可否有大神能分析下可能的原因以及解决办法。
欢迎选择我的课程,让我们一起见证您的进步~~
Activity#onSaveInstanceState(Bundle outState) Activity#onRestoreInstanceState(Bundle savedInstanceState) Fragment#onSaveInstanceState(Bundle outState) Fragment#onViewStateRestored(Bundle savedInstanceState) View#onSaveInstanceState() View#onRestoreInstanceState(Parcelable state)
Let’s learn about the functions above...
It is recommended to refer to the answer above
Let’s learn about the functions above...
It is recommended to refer to the answer above