3 ms·
From the app's point of view both are the same - the app can no longer execute code and upon resume it must restore state.
by isodev 3y ago
From the app's point of view both are the same - the app can no longer execute code and upon resume it must restore state.
- g-b-r 3y agoSuspending means that its memory was preserved, so the app doesn't have to do anything !!!
- isodev 3y agoWhile suspending may be the first state, the OS can choose to fully evict the app from memory if it needs it for other tasks. So a "good app" saves state before being suspended so that upon resume, it can restore from disk even if it was "killed".
- g-b-r 3y agoYes, but in practice almost all apps don't do it always with the complete state,; and on phones that don't kill them so easily most of the times you can switch between apps without problems.