Ok is there a way I can “see” this, eg. Via adb ? Or via enabling some debug options ?
Re:Back to Android (For the Time Being)
by BoorishBears on Tuesday October 11, 2022 @11:28PM
(#33172447)
Not 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...
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_s...
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)