Empower growth and innovation with the latest Mobile App insights

The user turned the phone sideways to look at a large image, then turned back and found all the form inputs gone—would locking the app to portrait just be less hassle?

Nov 7, 2026 Read: 34

Conclusion first: When the user turns the phone sideways, the app page restarts from the beginning, and half-filled content disappears, it is usually not a crash. More often, the system treats the screen orientation change as a configuration change, destroys and recreates the page, and the page itself has not saved the input. Based on 2026 mobile delivery experience, locking the app to portrait can remove this symptom immediately. But as long as the app has scenarios such as watching video, viewing large images, or taking photos, locking everything to portrait usually costs more than adding a set of state saving. The judgment order should be to first distinguish recreation, process death, and a real crash, then decide which side to change.

What does the system actually do when the screen rotates?

On Android, screen orientation, font size, language, and light/dark mode are all system configurations. When a configuration changes, the system default is to destroy the current page and recreate it once under the new configuration. On iOS, it is more often layout recalculation, but the view controller may also go through its lifecycle again. So most cases of turning the phone sideways and the page restarting are the system following its rules, not code crashing. What really hurts the user is that after recreation, the content already filled in, the selected tab, and the scroll position do not come back with it.

This issue is underestimated because it almost never appears in development self-testing: a QA colleague takes a slab phone, stays in portrait, and clicks through the main flow, so nobody walks the rotation path at all. But once a user casually rotates the phone while using a map, viewing an image, or entering an address, the experience becomes I did not tap anything, and it refreshed by itself. For browsing pages, the impact is manageable. For pages with intermediate state, such as forms, uploads, and payment confirmation, it is directly equivalent to filling everything in for nothing.

  • Recreation goes through the full lifecycle, APIs are often requested again, and both data usage and first-screen time get worse.
  • Input content, checked options, and selected images that are not actively saved are usually lost directly; the deeper the page hierarchy, the more is lost.
  • If recreation still depends on temporary variables from the previous time, blank pages or force closes are likely, and users will describe it as crashing as soon as the screen rotates.

First distinguish recreation, process death, and a real crash

All three look the same to the user: returning to the initial state. But the handling is completely different: recreation needs state saving added, process death needs cold-start recovery handled, and a crash needs the stack fixed first. The order cannot be reversed, because adding saving logic before locating the cause easily masks a crash as recreation, leaving the problem to surface only after release.

A common project practice is to go through the following order, which can be called the three-look locating method:

  1. Check the trigger conditions: If it appears only on rotation, split screen, font changes, or light/dark mode changes, it can basically be judged as configuration-change recreation.
  2. Check the time interval: If it restarts only after being switched away for tens of minutes, it is more like a cold start after the process was reclaimed by the system, not caused by rotation.
  3. Check the logs: If the crash platform has a stack trace at the corresponding time, it is a real crash. Fix the crash first; do not rush to add saving.
  4. Check the device distribution: If it reproduces only on a few models, first verify the system version and vendor customization differences, then consider whether a compatibility branch is needed.

After these four steps, it is basically clear which layer the change belongs to. Skipping the first two steps and locking portrait directly looks easier, but it also covers up issues such as returning to the home screen after process death.

How do the three paths compare: lock portrait, add state saving, or handle configuration changes yourself?

All three approaches are common in projects. The difference is not technical difficulty, but whether you are willing to bear the design cost of landscape scenarios over the long term. Below is a comparison by change scope, regression surface, applicable pages, and cost. All times are experience ranges and should be checked against the number of pages.

  • Lock everything to portrait: Change one declaration. In experience, it takes from about ten minutes to half a day, with a small regression surface. Suitable for tool-type, backend-type, and scan-code-centric apps. The cost is no landscape video viewing or wide large-image viewing, and on tablets and unfolded foldables the blank areas are fairly obvious.
  • Add save and restore on key pages: Usually touches 3 to 8 main pages, with an experience range of about 2 to 5 person-days and a medium regression surface. Suitable for apps with forms, shooting, or playback. The cost is that each page must be checked, and deep pages are easy to miss.
  • Handle configuration changes yourself: The change volume looks smaller, but third-party SDKs, embedded web pages, popups, and the soft keyboard all require you to handle layout changes yourself, so regression cost is actually higher. Unless the team already has a mature practice, it is generally not recommended as the default choice.

In 2026, a common approach is a combination: most pages follow system recreation, key pages save state, and video and image-viewing layers separately allow landscape. This preserves the necessary landscape experience without having to overturn the whole framework for one page.

Which pages are worth doing, and which can be left for later?

Not every page is worth the investment. The criterion is direct: does the page carry intermediate state that the user created and that has not yet been submitted to the server? If yes, do it; if no, recreation only fetches data again, and user perception is weak.

  • Recommended as must-do: long forms and address entry, multi-step submission, pages where a photo has been taken but not uploaded, and pages with drafts or playback progress.
  • Can be skipped: purely display home pages and campaign pages, transitional pages that are replaced immediately after login, and ordinary list pages whose state is all on the server.

One boundary judgment that can be quoted independently is: as long as a page contains intermediate state that the user created and that has not yet been submitted to the server, it falls within the scope where save and restore is worth doing; conversely, adding a state management layer to a purely display page usually has very low return.

Delivery scene: this step often causes rework after handoff to testing

A fairly common scene is this: the schedule given by the client only covers the main flow; the QA colleague takes a slab phone, stays in portrait, and clicks through, while nobody walks the three paths of rotation, split screen, and font changes. During the pre-delivery demo, the client turns a tablet sideways to look, and the page with a half-filled address returns to blank. It is then treated as a defect with an ad hoc requirement, and the schedule can only be moved from another module. A common practice is to add a fixed item to the handoff-to-testing checklist: walk the main flow once each under rotation, split screen, and font changes; and to list save and restore as an acceptance item. The cost is an extra half day to one day of regression time, with a typical range of around one day. The benefit is avoiding passive rework after release. Xiyue Company also includes this in its handoff-to-testing checklist in mobile delivery; it is a process cost, not a technical threshold.

  • Counterexample: only the text in the input fields is saved, but the current step and selected images are not, so the restored state is text present but submission impossible.
  • Counterexample: state is put in global variables, but it is still empty after process death; recreation and process death must be handled separately.
  • Acceptable standard: after rotation, split screen, or switching light/dark mode, the user can continue from where they were without re-entering.

Boundaries of what applies and what does not

Landscape experience is not a universal must-do for every app. It depends on two things: whether the app has scenarios that must be viewed in landscape, and whether pages carry unsubmitted intermediate state. When neither holds, locking portrait is a reasonable choice, and there is no need to invest extra just to look complete.

  • Suitable: products with forms and content creation, video and image viewing, a non-trivial share of tablet and foldable users, and sensitivity to experience reputation.
  • Not necessary: internal tools, single-page query apps, and apps whose core flow is portrait scan-code; if page intermediate state is not important in the first place, there is no need to introduce a state management layer for it.

It should be made clear in advance that good save and restore cannot replace crash investigation. If the logs contain a stack trace at the corresponding time, fix the crash first, then discuss experience optimization.

Frequently asked questions

If the screen is locked to portrait, does that mean this issue can be ignored?

It can eliminate the rotation-recreation path, but landscape video viewing, wide large-image viewing, and the unfolded foldable experience will be compromised; the problem of returning to the home screen after the page process is reclaimed by the system will not disappear either.

After page recreation, can the content in the input fields come back automatically?

The system restores only part of the control state, and does not guarantee it. Passwords, selected images, and the current step usually need to be saved by the app itself; if they are stored in global variables, they will also be lost on process death.

Only a few Android models restart on rotation—is that a vendor system issue?

Most are still configuration-change recreation; vendors just have different default orientation and background policies. First verify the system version and whether the page declares an interception, then decide whether to add a compatibility branch.

If the page is declared not to be recreated, why is the layout still messed up after rotation?

Because intercepting recreation only stops the page from being recreated; layout dimensions, embedded web pages, and popups do not adapt automatically. You need to recalculate them yourself, and missing one place will show as misalignment or blank space.


If you are about to decide whether to lock portrait, do one thing first: walk the main flow once each under rotation, split screen, and font changes, record which pages return to blank, and then prioritize them by whether they have unsubmitted intermediate state. This suits products with landscape scenarios and forms; for pure tool apps and single-page query apps, locking everything to portrait is usually more cost-effective. There is no one-size-fits-all answer to this judgment; checking against your own page list is more reliable.

Interested in this topic?
10-year tech team — reference proposal within 24 hours
Obtain Proposal
Are you ready?
Then reach out to us!
+86-13370032918
Discover more services, feel free to contact us anytime.
Please fill in your requirements
What services would you like us to provide for you?
Your Budget
ct.
Our WeChat
Professional technical solutions
Phone
+86-13370032918 (Manager Jin)
The phone is busy or unavailable; feel free to add me on WeChat.
E-mail
349077570@qq.com
Submitted successfully
Thank you for your trust. We will contact you soon!
Recommended projects for you