I am so curious about what will happen for the app's activities when the app is dismissed from the screen and the user switches to other apps. In the activity circle, the activity will reach onStop(), then how the system handle the activity before it is either onRestart() or relaunch? What exactly happens under the hood? Still in cache, replaced by LRU?
Anyone has some ideas or knows some articles discussing this issue?
If possible, can anyone mention some source code to read about that?