Hacker News new | ask | show | jobs
by ex3ndr 3520 days ago
> every time you resize your window the entire browser restarts and its up to your page to restore its state

Wrong, it can be and often is disabled and windows are just resized without recreating of activities.

1 comments

Disabling configuration changes is a naive hack (half the people who do it don't even disable every configuration so their apps break on something as simple as plugging in a keyboard with USB Otg or more commonly, tablets).

You're still supposed to handle all the configuration changes you disable yourself, and people rarely do. Disabling configuration changes is really for stuff like games where realistically the normal configuration change handling doesn't make sense and proper handling is as simple as resizing your surface or something.

And the window thing was part of the browser analogy, not the Android one, but ironically resizing an Android window can force an app to switch layouts causing a configuration change. Windows actually add even more complexity because now apps have to differentiate (to keep the analogy going) between when the user closes the browser and when the user clicks away from the browser (nuances with how the window features interact with stop vs pause which affect stuff like video playback apps)