3 ms·
Your device does it. These days it's hidden with clever animations so you don't literally see a blank screen, but the UI is being completely killed on each rota
by BoorishBears 4y ago
Your device does it. These days it's hidden with clever animations so you don't literally see a blank screen, but the UI is being completely killed on each rotation.
Android will kill the user-facing portion of the process ("Activity") and recreate it* if you rotate the screen.
Devices have gotten fast enough to hide it with an animation, but it's still "kill UI, draw new UI". (specifically it's usually "render the UI to an image, squish it and rotate it, then show the new UI underneath".
My problem isn't with the literal animation, it's what that mess of rebuilding the entire user facing UI because they rotated their screen represents.
(* apps can opt out of this, but that's reserved for games and apps that render their own custom UI directly to a raw surface)
- gbil 4y agoOk is there a way I can “see” this, eg. Via adb ? Or via enabling some debug options ?
- BoorishBears 4y agoNot really? I mean maybe dumpsys window might give you a hint if the memory address of an activity changes, but it's not really an intended usage and I'm not sure it's fine-grained enough for that But this is like ground-truth stuff about Android, about as immutable as it gets: https://developer.android.com/guide/topics/resources/runtime-changes https://developer.android.com/guide/topics/resources/runtime... The best time to fix it was before the G1 launched and the 2nd best would have been right after, but here we are more than a decade later paying for its sins. 12 years ago people were asking for this stuff: https://www.reddit.com/r/Android/comments/djp18/i_know_its_stupid_but_i_want_iphoney_fluid_screen/ https://www.reddit.com/r/Android/comments/djp18/i_know_its_s...