Activity Segmentation for Seamless Display Rotation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
When switching the display direction of an application on an electronic device, frame freezing occurs due to the need to take a screenshot of the original display interface and interrupt video playback.
Innovation Solution
Implementing a method where different activities manage display interfaces in different orientations, allowing for seamless switching without the need for screenshot processing, and ensuring uninterrupted video playback by switching the video stream to the appropriate activity.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If the system takes a screenshot of the vertical display interface to enable display direction switching, then the display direction can be switched, but video playing is temporarily interrupted causing frame freezing
Solution Approach 1:
The patent divides the display interface into separate activities based on display direction. A first activity handles vertical display interfaces while a second activity handles horizontal display interfaces. This segmentation allows independent processing of different display orientations without interfering with each other, enabling smooth switching without screenshot capture and thus preventing video playback interruption.
Solution Approach 2:
The system pre-creates and prepares display interfaces for different display directions in separate activities before switching is needed. When display direction changes are required, the system can directly switch between the prepared activities without needing to capture screenshots or redraw interfaces, thereby avoiding frame freezing and maintaining video playback continuity.
2Device complexity
If the system uses the same activity for both vertical and horizontal display interfaces, then the activity management is simplified, but frame freezing occurs during display direction switching
Solution Approach 1:
The patent segments the single activity into separate first and second activities dedicated to vertical and horizontal display interfaces respectively. Although this increases activity management complexity, it eliminates frame freezing by allowing independent rendering and switching of display interfaces in different orientations without interfering with each other's rendering processes.
3Loss of information
If the system performs screenshot processing during display direction switching, then the original display interface can be captured, but video playing is interrupted
Solution Approach 1:
Instead of capturing display interface information through screenshot processing, the patent creates separate display interfaces (copies) for different display directions in separate activities. The horizontal display interface is rendered as a complete, independent interface in the second activity, not as a screenshot of the vertical interface. This copying approach preserves display information without requiring interruption of video playback for screenshot capture.
Data Source
AI summary
Embodiments of this application provide an application display method and an electronic device. The method includes: The electronic device starts a second activity in response to a first operation of switching a display interface from a first display interface to a second display interface, where a display interface corresponding to the second activity is the second display interface, and an activity corresponding to the first display interface is a first activity; and the electronic device executes a first screen rotation animation for switching from the first display interface to the second display interface.


