The global data is stored in the Application. the Application is recycled after cutting out the software. all newly created data in the Application are empty

  android, question

The global data is stored in the Application. the Application is recycled after cutting out the software, and the interface is reopened because the newly created data in the Application are all empty. In view of this situation, where the data is stored will not be recycled

File, db. Configuration tables and so on will not be used. Remember not to store data in Application. In addition, data can be recovered through Life cycle, but it is still recommended to store Life cycle long data in the form of files. As mentioned in my appeal.

Moreover, it is not only the global data of Application, but also the static global variables will be destroyed. android should reduce the use of static global variables. Even if it is used, it should also pay attention to storage and recovery in Life cycle.