1. Write a method, call it in onstop, save the current page cache when exiting, and just do it in onResum. 2. In onResume, reload the layout, especially the content that uses adapters or background data filling. Need to redraw. 3.Static
You can pay attention to two points: static variables and fragments with parameters. If the above are used, problems will occur when the application is recycled and rebuilt.
1. Write a method, call it in onstop, save the current page cache when exiting, and just do it in onResum.
2. In onResume, reload the layout, especially the content that uses adapters or background data filling. Need to redraw.
3.Static
There must be a bug somewhere in the code, let’s debug it carefully.
It’s best to post your implementation code. I can’t imagine where your problem lies.
You can pay attention to two points: static variables and fragments with parameters. If the above are used, problems will occur when the application is recycled and rebuilt.
It feels like I don’t want to be recycled either