DEV Community

Discussion on: Android Vitals - When did my app start? ⏱

Collapse
 
kuanyingchou profile image
Kuan-Ying Chou

Thanks for the series! It's been extremely helpful. Question on the conclusion again. For APIs before 24, if we don't need Context, could we use an earlier time than the class load time of a content provider, e.g. class load of Application?

Collapse
 
pyricau profile image
Py ⚔

Content providers are loaded before the Application class. If you leverage the application class then you're likely missing some of the init time.