Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens between Application#onCreate and Activity#onCreate?

I'm seeing 200ms or more latency between MyApplication#onCreate and MyActivity#onCreate. Does anything significant happen in that interval?

like image 852
philo Avatar asked Jan 25 '26 20:01

philo


1 Answers

Based on the documentation of Application#onCreate (link), it is called before any Activity/Service/Receiver objects are created.

This means that after Application#onCreate the Activity (MyActivity in your case) is instantiated and only then can Activity#onCreate be called.

EDIT: Based on your implementation, even the call to super.onCreate() in MyActivity would add to the time interval.

like image 169
Neel Mehta Avatar answered Jan 27 '26 11:01

Neel Mehta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!