Hey. I noticed an unpleasant thing - a very slow reaction to a button that opens a new activation. It seemed to me that somewhere half a second, and when measured, it turned out from 0.5 for an empty form to 5 seconds for a window saturated with elements!
For accuracy, I turned off the animations in the system through the menu for developers. Here is what came out for the form with four buttons:
- + 150ms - touch and first call onUserIteraction - startActivity (intent);
- + 200ms - command - onPause of the current activation.
- + 100ms - onPause - start onCreate of the next activation.
- + 200ms - the duration of super.onCreate ()
- + 100ms - the duration of setContentView ().
- + 80ms - setContentView - onAttachedToWindow - this happens when everything is formed, filled, drawn and transferred to the system.
+ 1150ms - onAttachedToWindow - onStop ()
2s - GENERAL TIME!
If you load the form stronger, then at some point the screen is just black for a while.
My only idea is that while the current form is shown, create all of the following in the background, so that they are ready and stopped in RAM so that they can only edit the field data and start, and visually they opened immediately, without friezes and black screens. Is it possible