DEV Community

loading...

Discussion on: Android Vitals - Is this a cold start? 🦋

Collapse
pyricau profile image
Py ⚔ Author

That's a great question, and you're right, the documentation is confusing.

The main difference seem to be about whether the activity is created with a restored state bundle. If the system starts an activity from scratch with no saved state, it's a cold start. If it starts the process then relaunches an activity with a restored state then they assume there's going to be less work to do so they call it a warm start. I'm not quite convinced that a restored state yields much less work..