Hello,
My app does not have a problem with cold start, it generally starts before 5 seconds which is the optimal time according to google. But I have a problem with warm start and hot start. I have a rate of %35 percent which takes longer more than 2 seconds to get the app to foreground from background. I don't have many operations under activity_resume so what may be the reason for the app comes back to foreground so slowly ? I also do not experience any slowness when I test with my devices but it is obvious that there is a problem some where.
Using sleep(0) on activity_resume as Erel suggested before breaks the app, it gives some views not initialized error. I don't actually understand how the warm start or hot start timer works. Is this the time when the actiivty_resume sub is completed or it is not related ?
Suggestion are welcome.
Thanks
My app does not have a problem with cold start, it generally starts before 5 seconds which is the optimal time according to google. But I have a problem with warm start and hot start. I have a rate of %35 percent which takes longer more than 2 seconds to get the app to foreground from background. I don't have many operations under activity_resume so what may be the reason for the app comes back to foreground so slowly ? I also do not experience any slowness when I test with my devices but it is obvious that there is a problem some where.
Using sleep(0) on activity_resume as Erel suggested before breaks the app, it gives some views not initialized error. I don't actually understand how the warm start or hot start timer works. Is this the time when the actiivty_resume sub is completed or it is not related ?
Suggestion are welcome.
Thanks