Full-screen display method and device and electronic equipment

By detecting the aspect ratio of the window and displaying it in full screen according to the current or specified orientation, the inconvenience of full-screen display on split-screen and foldable screen devices is solved, improving the user experience.

CN121785693APending Publication Date: 2026-04-03HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2020-04-15
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Existing technologies cannot provide a consistent and convenient full-screen display method on split-screen and foldable screen devices, resulting in a poor user experience.

Method used

By detecting whether the aspect ratio of the application interface window is within a preset range, full-screen display is performed according to the current display orientation or the orientation specified by the application, thus avoiding the need for the user to rotate the device.

Benefits of technology

Provides a better full-screen display experience in various scenarios, improving user convenience and consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121785693A_ABST
    Figure CN121785693A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a full-screen display method and device and electronic equipment. In the method, a multimedia file is displayed on an application program interface in a non-full-screen mode; detecting an instruction for performing full-screen display on the multimedia file, and judging whether a window for displaying an application program interface is a graph of which the aspect ratio is in a preset interval or not; if the window is the graph with the aspect ratio in the preset interval, displaying the multimedia file in the window in a full screen manner according to the current display direction of the application program interface; the current display direction of the application program interface comprises the display direction of the application program interface when the instruction for performing full-screen display on the multimedia file is detected, so that a better full-screen display mode can be provided for a user in various scenes needing full-screen display, and the full-screen experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to Chinese Patent Application No. 202010293858.7, filed on April 15, 2020, entitled “Full-screen display method, apparatus and electronic device”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of smart terminal technology, and in particular to a full-screen display method, apparatus and electronic device. Background Technology

[0003] Current handheld electronic devices, such as smartphones and tablets, all support application interface rotation. In a particular application, if a user desires a better immersive experience in full-screen mode, the operating system switches the application interface from portrait to landscape mode, allowing the user to rotate the device for a full-screen immersive experience. However, with the development of split-screen technology and the emergence of foldable screens, this method of full-screen application interface display is no longer fully adaptable to various new scenarios requiring full-screen display. Summary of the Invention

[0004] This application provides a full-screen display method, apparatus, and electronic device that can provide users with a better full-screen display method in various scenarios that require full-screen display, thereby enhancing the user's full-screen experience.

[0005] Firstly, this application provides a full-screen display method, including: A multimedia file is displayed in non-fullscreen mode on the application interface. Upon detecting an instruction to display the multimedia file in fullscreen mode, the system determines whether the window displaying the application interface is a graphic with an aspect ratio within a preset range. The preset range includes the range containing 1. If the window is a graphic with an aspect ratio within the preset range, the multimedia file is displayed in fullscreen mode on the window according to the current display orientation of the application interface. The current display orientation of the application interface includes the display orientation of the application interface when the instruction to display the multimedia file in fullscreen mode is detected.

[0006] The aforementioned application can be an application for an electronic device, which may include a mobile terminal (phone), a smart screen, a drone, an intelligent connected vehicle (ICV), a smart car, or an in-vehicle device, etc. When the window displaying the application interface is a graphic with an aspect ratio within a preset range, the method displays the application interface in full screen according to the current display direction of the application interface, without requiring the user to rotate the electronic device. This provides a better full-screen display method for users in various scenarios that require full-screen display, thereby improving the user's full-screen display experience.

[0007] Below are several possible ways to determine whether a window displaying the application interface is a graphic with an aspect ratio within a preset range: In one possible implementation, determining whether the window displaying the application interface is a graphic with an aspect ratio within a preset range includes: obtaining the aspect ratio of the window; and determining whether the aspect ratio is within the preset range, where the preset range can be [0.75, 4 / 3], and the upper and lower boundaries of the preset range can be open or closed. The principle for setting the preset range is that for windows with an aspect ratio within the preset range, the user's viewing experience is less different when the application interface is displayed in horizontal full-screen or vertical full-screen mode.

[0008] In another possible implementation, the display screen of the electronic device displaying the application interface is a foldable screen. When unfolded, the full screen displays a graphic with an aspect ratio outside the preset range, and when folded, the sub-screen displays a graphic with an aspect ratio within the preset range. The display screen does not split into multiple screens. Determining whether the window displaying the application interface is a graphic with an aspect ratio within the preset range includes: determining the screen used by the window; if the screen used by the window is a sub-screen, determining that the window is a graphic with an aspect ratio within the preset range; if the screen used by the window is the full screen, determining that the window is a graphic with an aspect ratio outside the preset range.

[0009] In another possible implementation, the display screen of the electronic device displaying the application interface is a foldable screen. When unfolded, the full screen displays a graphic with an aspect ratio within a preset range, and when folded, the sub-screen displays a graphic with an aspect ratio outside the preset range. The display screen does not split into multiple screens. Determining whether the window displaying the application interface is a graphic with an aspect ratio within the preset range includes: determining the screen used by the window; if the screen used by the window is a full screen, determining that the window is a graphic with an aspect ratio within the preset range; if the screen used by the window is a sub-screen, determining that the window is a graphic with an aspect ratio outside the preset range.

[0010] In another possible implementation, the display screen of the electronic device displaying the application interface is a foldable screen. When unfolded, the full screen displays a graphic with an aspect ratio outside the preset range, and when folded, the sub-screen displays a graphic with an aspect ratio within the preset range. The display screen does not display multiple screens. Determining whether the window displaying the application interface is a graphic with an aspect ratio within the preset range includes: determining the open / closed state of the display screen; if the open / closed state is folded, determining that the window is a graphic with an aspect ratio within the preset range; if the open / closed state is unfolded, determining that the window is a graphic with an aspect ratio outside the preset range; if the open / closed state is a changing state, determining the direction of the changing state; if the changing direction is from unfolded to folded, determining that the window is a graphic with an aspect ratio within the preset range; if the changing direction is from folded to unfolded, determining that the window is a graphic with an aspect ratio outside the preset range.

[0011] In another possible implementation, the display screen of the electronic device displaying the application interface is a foldable screen. When unfolded, the full screen displays a graphic with an aspect ratio within a preset range, and when folded, the sub-screen displays a graphic with an aspect ratio outside the preset range. The display screen does not display multiple screens. Determining whether the window displaying the application interface is a graphic with an aspect ratio within the preset range includes: determining the opening / closing state of the display screen; if the opening / closing state is unfolded, determining that the window is a graphic with an aspect ratio within the preset range; if the opening / closing state is folded, determining that the window is a graphic with an aspect ratio outside the preset range; if the opening / closing state is a changing state, determining the direction of the changing state; if the changing direction is from folded to unfolded, determining that the window is a graphic with an aspect ratio within the preset range; if the changing direction is from unfolded to folded, determining that the window is a graphic with an aspect ratio outside the preset range.

[0012] In one possible implementation, after the multimedia file is displayed in full-screen mode, the method further includes: detecting a change in the opening / closing state of the display screen; determining, based on the direction of the change in opening / closing state, whether the window displaying the multimedia file after the change in opening / closing state is a graphic with an aspect ratio within a preset range; if the window displaying the multimedia file is a graphic with an aspect ratio within the preset range, displaying the multimedia file in full-screen mode according to the current display orientation of the multimedia file; the current display orientation of the multimedia file includes the display orientation of the multimedia file when the change in the opening / closing state of the display screen is detected. Therefore, when the multimedia file is displayed in full-screen mode, if a change in the opening / closing state of the display screen is detected, and if it is determined based on the direction of the change in opening / closing state that the window displaying the multimedia file after the change in opening / closing state is a graphic with an aspect ratio within a preset range, the user does not need to rotate the electronic device, providing a better full-screen display method in this scenario and improving the user's full-screen display experience.

[0013] In one possible implementation, the full screen in the unfolded state is a graphic with an aspect ratio outside the preset range, while the sub-screen in the folded state is a graphic with an aspect ratio within the preset range; the display does not display in split-screen mode. The method of determining whether the window displaying the multimedia file has an aspect ratio within the preset range after a change in the opening / closing state is based on the direction of the change includes: determining the direction of the change in the display's opening / closing state; if the change is from unfolded to folded, determining that the window displaying the multimedia file has an aspect ratio within the preset range; if the change is from folded to unfold, determining that the window displaying the multimedia file has an aspect ratio outside the preset range. This provides an implementation method for determining whether the window displaying the multimedia file has an aspect ratio within the preset range after a change in the opening / closing state.

[0014] In one possible implementation, the full screen in the unfolded state is a graphic with an aspect ratio within a preset range, and the sub-screen in the folded state is a graphic with an aspect ratio outside the preset range; the display does not display in split-screen mode. The method of determining whether the window displaying the multimedia file has an aspect ratio within the preset range after a change in the opening / closing state is based on the direction of the change includes: determining the direction of the change in the display's opening / closing state; if the change is from folded to unfolded, determining that the window displaying the multimedia file has an aspect ratio within the preset range; if the change is from unfolded to folded, determining that the window displaying the multimedia file has an aspect ratio outside the preset range. This provides an implementation method for determining whether the window displaying the multimedia file has an aspect ratio within the preset range after a change in the opening / closing state.

[0015] In one possible implementation, detecting an instruction to display a multimedia file in fullscreen mode includes: receiving a direction setting request sent by the application to which the application interface belongs. The direction setting request is sent by the application when it detects the instruction to display the multimedia file in fullscreen mode, and the direction setting request carries the display direction specified by the application for the application interface. This provides an implementation for detecting an instruction to display a multimedia file in fullscreen mode.

[0016] In one possible implementation, displaying a multimedia file in full-screen mode in a window according to the current display orientation of the application interface includes: modifying the display orientation specified by the application in the orientation setting request to the current display orientation of the application interface; and displaying the multimedia file in full-screen mode in the window according to the modified orientation setting request. This provides an implementation method for displaying a multimedia file in full-screen mode in a window according to the current display orientation of the application interface.

[0017] Secondly, embodiments of this application provide an electronic device, including: The device includes: a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the device, cause the device to perform the following steps: displaying a multimedia file in a non-full-screen manner on an application interface; detecting an instruction to display the multimedia file in full-screen mode, determining whether the window displaying the application interface is a graphic with an aspect ratio within a preset range; the preset range is a range containing 1; if the window is a graphic with an aspect ratio within the preset range, displaying the multimedia file in full-screen mode on the window according to the current display orientation of the application interface; the current display orientation of the application interface includes: the display orientation of the application interface when the instruction to display the multimedia file in full-screen mode is detected.

[0018] In one possible implementation, when the instruction is executed by the device, the step of determining whether the window displaying the application interface is a graphic with an aspect ratio within a preset range includes: obtaining the aspect ratio of the window; and determining whether the aspect ratio is within the preset range, where the preset range is [0.75, 4 / 3].

[0019] In one possible implementation, the display screen of the electronic device displaying the application interface is a foldable screen. When unfolded, the full screen displays a graphic with an aspect ratio outside the preset range, and when folded, the sub-screen displays a graphic with an aspect ratio within the preset range. The display screen is not split into multiple screens. When the instruction is executed by the device, the device performs the following steps to determine whether the window displaying the application interface is a graphic with an aspect ratio within the preset range: determining the screen used by the window; if the screen used by the window is a sub-screen, determining that the window is a graphic with an aspect ratio within the preset range; if the screen used by the window is the full screen, determining that the window is a graphic with an aspect ratio outside the preset range.

[0020] In one possible implementation, the display screen of the electronic device displaying the application interface is a foldable screen. When unfolded, the full screen displays a graphic with an aspect ratio within a preset range, and when folded, the sub-screen displays a graphic with an aspect ratio outside the preset range. The display screen does not split into multiple screens. When the instruction is executed by the device, the steps for determining whether the window displaying the application interface is a graphic with an aspect ratio within the preset range include: determining the screen used by the window; if the screen used by the window is a full screen, determining that the window is a graphic with an aspect ratio within the preset range; if the screen used by the window is a sub-screen, determining that the window is a graphic with an aspect ratio outside the preset range.

[0021] In one possible implementation, the display screen of the electronic device displaying the application interface is a foldable screen. When unfolded, the full screen displays a graphic with an aspect ratio outside a preset range; when folded, the sub-screen displays a graphic with an aspect ratio within the preset range. The display screen does not display multiple screens. When the instruction is executed by the device, the steps for determining whether the window displaying the application interface is a graphic with an aspect ratio within the preset range include: determining the open / closed state of the display screen; if the open / closed state is folded, determining that the window is a graphic with an aspect ratio within the preset range; if the open / closed state is unfolded, determining that the window is a graphic with an aspect ratio outside the preset range; if the open / closed state is a changing state, determining the direction of the changing state; if the changing direction is from unfolded to folded, determining that the window is a graphic with an aspect ratio within the preset range; if the changing direction is from folded to unfolded, determining that the window is a graphic with an aspect ratio outside the preset range.

[0022] In one possible implementation, the display screen of the electronic device displaying the application interface is a foldable screen. When unfolded, the full screen displays a graphic with an aspect ratio within a preset range; when folded, the sub-screen displays a graphic with an aspect ratio outside the preset range. The display screen does not split into multiple screens. When the instruction is executed by the device, the steps for determining whether the window displaying the application interface is a graphic with an aspect ratio within the preset range include: determining the open / closed state of the display screen; if the open / closed state is unfolded, determining that the window is a graphic with an aspect ratio within the preset range; if the open / closed state is folded, determining that the window is a graphic with an aspect ratio outside the preset range; if the open / closed state is a changing state, determining the direction of the changing state; if the changing direction is from folded to unfolded, determining that the window is a graphic with an aspect ratio within the preset range; if the changing direction is from unfolded to folded, determining that the window is a graphic with an aspect ratio outside the preset range.

[0023] In one possible implementation, when the instruction is executed by the device, the device performs the following steps after displaying the multimedia file in full-screen mode: detecting a change in the opening / closing state of the display screen, determining whether the window displaying the multimedia file is a graphic with an aspect ratio within a preset range based on the direction of the change in opening / closing state; if the window displaying the multimedia file is a graphic with an aspect ratio within the preset range, displaying the multimedia file in full-screen mode in the window displaying the multimedia file according to the current display orientation of the multimedia file; the current display orientation of the multimedia file includes the display orientation of the multimedia file when the change in the opening / closing state of the display screen is detected.

[0024] In one possible implementation, the full screen in the unfolded state is a graphic with an aspect ratio not within a preset range, and the sub-screen in the folded state is a graphic with an aspect ratio within the preset range; the display screen does not display in split-screen mode. When the instruction is executed by the device, the device performs the step of determining whether the window displaying the multimedia file is a graphic with an aspect ratio within the preset range after the change in the opening / closing state, based on the direction of the change in the opening / closing state, includes: determining the direction of the change in the opening / closing state of the display screen; if the change direction is from unfolded to folded, determining that the window displaying the multimedia file is a graphic with an aspect ratio within the preset range; if the change direction is from folded to unfolded, determining that the window displaying the multimedia file is a graphic with an aspect ratio not within the preset range.

[0025] In one possible implementation, the full screen when the display is in the unfolded state is a graphic with an aspect ratio within a preset range, and the sub-screen when the display is in the folded state is a graphic with an aspect ratio outside the preset range; the display does not display in split-screen mode. When the instruction is executed by the device, the device performs the following steps to determine whether the window displaying the multimedia file has an aspect ratio within the preset range after the change in the opening / closing state: determining the direction of the change in the opening / closing state of the display; if the change direction is from folded to unfolded, determining that the window displaying the multimedia file has an aspect ratio within the preset range; if the change direction is from unfolded to folded, determining that the window displaying the multimedia file has an aspect ratio outside the preset range.

[0026] In one possible implementation, when the instruction is executed by the device, the step of causing the device to perform the action of detecting an instruction to display a multimedia file in full screen includes: receiving an orientation setting request sent by the application to which the application interface belongs, the orientation setting request being sent by the application when it detects an instruction to display a multimedia file in full screen, the orientation setting request carrying the display orientation specified by the application for the application interface.

[0027] In one possible implementation, when the instruction is executed by the device, the step of causing the device to display a multimedia file in full-screen mode according to the current display orientation of the application interface includes: modifying the display orientation specified by the application in the orientation setting request to the current display orientation of the application interface; and displaying the multimedia file in full-screen mode according to the modified orientation setting request.

[0028] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the method of the first aspect.

[0029] Fourthly, this application provides a computer program that, when executed by a computer, performs the method of the first aspect.

[0030] In one possible design, the program in the fourth aspect can be stored wholly or partially on a storage medium packaged with the processor, or it can be stored wholly or partially on a memory not packaged with the processor. Attached Figure Description

[0031] Figure 1A An example diagram illustrating full-screen display on an existing rectangular screen electronic device. Figure 1B Example image of a square-screen electronic device displaying full-screen mode; Figure 2A This is an example diagram showing the state of an electronic device with a foldable screen as an embodiment of this application; Figure 2B This is an example diagram of a split-screen implementation of an embodiment of this application; Figure 2C This is an example diagram showing the height and width of a window in an embodiment of this application; Figure 2D Example diagrams showing possible shapes for irregular graphics; Figure 3A This is a flowchart of one embodiment of the full-screen display method of this application; Figure 3B This is an example diagram illustrating how clicking the full-screen button launches the application interface in full-screen mode, as described in this application embodiment. Figure 3C This is an example diagram showing the full-screen interface of the application launched by a user rotating an electronic device, as described in this application embodiment. Figure 3D This is an example diagram illustrating a method for full-screen display of multimedia files according to an embodiment of this application; Figure 3E This is an example diagram of a full-screen display method for a game interface according to an embodiment of this application; Figure 4A This is a flowchart of another embodiment of the full-screen display method of this application; Figure 4B This is an example diagram of a full-screen display method in a foldable screen scenario; Figure 4C An example diagram illustrating a full-screen display method in a split-screen scenario; Figure 5A This is a flowchart of another embodiment of the full-screen display method of this application; Figure 5B A schematic diagram of a display screen structure and shape; Figure 5C Here is an example diagram of the full-screen display method of this application; Figure 6 This is a flowchart of yet another embodiment of the full-screen display method of this application; Figure 7A This is a flowchart of yet another embodiment of the full-screen display method of this application; Figure 7B This is yet another example diagram of the full-screen display method of this application; Figure 8A This is a flowchart of yet another embodiment of the full-screen display method of this application; Figure 8B A schematic diagram of another display screen structure and shape; Figure 8C This is yet another example diagram of the full-screen display method in this application; Figure 9 This is a flowchart of yet another embodiment of the full-screen display method of this application; Figure 10AThis is a flowchart of yet another embodiment of the full-screen display method of this application; Figure 10B This is yet another example diagram of the full-screen display method of this application; Figure 11A This is a flowchart of yet another embodiment of the full-screen display method of this application; Figure 11B This is an example diagram illustrating a possible implementation of the full-screen display method of this application under the Android system; Figure 12 This is a schematic diagram of the structure of one embodiment of the full-screen display device of this application; Figure 13 This is a schematic diagram of the structure of an embodiment of the electronic device of this application. Detailed Implementation

[0032] The terminology used in the implementation section of this application is for the purpose of explaining specific embodiments of this application only, and is not intended to limit this application.

[0033] In the existing implementation schemes, see Figure 1A As shown, if a user wants a better immersive experience through full-screen mode, the operating system in the electronic device switches the application interface from portrait to landscape mode, and the user rotates the electronic device to achieve a full-screen immersive experience. However, with the development of technologies such as split-screen and the emergence of foldable screens, this method of displaying application interfaces in full-screen mode cannot fully adapt to the various new scenarios that require full-screen display.

[0034] For example, with the advent of foldable screens, the displays of electronic devices are no longer simply rectangular screens, but have become more square-like, also known as rectangular screens. See also Figure 1B As shown, when a user wants to click a button to enter a full-screen immersive experience for a video or game, the screen is rotated, and the user rotates the electronic device to view it. However, unlike electronic devices with ordinary rectangular screens, due to the special nature of square screens, rotating the screen does not significantly increase the original visible area of ​​the video or game. Users will find that rotating the screen and the electronic device is a redundant and "laborious" operation.

[0035] Therefore, embodiments of this application provide a full-screen display method, apparatus, and electronic device that can provide users with a better full-screen display mode for application interfaces in various scenarios, and provide users with a convenient, user-friendly, and consistent full-screen display experience.

[0036] Hereinafter, the terms appearing in the embodiments of this application will be explained by way of example.

[0037] For electronic devices with foldable displays, in this embodiment, the screen in its unfolded state is referred to as the complete screen, and each independent screen that makes up the complete screen is referred to as a sub-screen of the display. The folding form of the electronic device based on the display can include three states: unfolded state, partially folded state, and fully folded state. For example... Figure 2A As shown, the electronic device's display screen includes two sub-screens, namely sub-screen 1 and sub-screen 2 located on either side of the dotted line. When the electronic device is in... Figure 2A The unfolded state shown in section 21 consists of two sub-screens forming a complete screen; Figure 2A As shown in section 22, the electronic device is in a partially folded state. Figure 2A As shown in section 23, the electronic device is in a fully folded state. The partially folded state and the fully folded state can be collectively referred to as the folded state.

[0038] The application interface in this embodiment serves as the medium for interaction and information exchange between the application and the user, enabling the conversion between the internal form of information and a form acceptable to the user. A common form of application interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. An application interface can consist of visible interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0039] In this embodiment, the window displaying the application interface can be considered as the area on the display screen of the electronic device that displays the application interface.

[0040] For electronic devices whose displays are not foldable: when not split-screen, the window displaying the application interface can be the entire display area of ​​the screen; when split-screen, the window displaying the application interface can be a portion of the display area. For electronic devices with foldable screens, when not split-screen, the window displaying the application interface can be the entire display area of ​​the full screen or the entire display area of ​​the sub-screen; when split-screen, the window displaying the application interface can be a portion of the full screen or a portion of the sub-screen.

[0041] In this embodiment, screen splitting refers to dividing the display area of ​​the screen into at least two sub-regions. Each sub-region can serve as a window to display the application interface. The size of the sub-regions can be adjusted, and different sub-regions can display the same or different application interfaces, such as... Figure 2BAs shown, the display area on the electronic device's screen is divided into two sub-areas from the area indicated by the dotted line, each displaying the same application interface as a window. For electronic devices with foldable screens, the split-screen display area can be a full screen or a sub-screen; please refer to the above description and related information for details. Figure 2B Examples are not elaborated here.

[0042] In this embodiment, the aspect ratio of the window refers to the window's height divided by its width. However, the window's height and width are related to specific setting rules. For example, in one possible implementation, the window's height and width can be set to be related to the display orientation of the application interface. Figure 2C In both images, the window displaying the application interface occupies the entire display area of ​​the screen; however, Figure 2C The height and width of the application interface window shown in the left image are exactly the opposite of those shown in the right image; the aspect ratios of the two windows are reciprocals of each other. In the embodiments of the full-screen display method in this application, the aspect ratio of the window obtained by this window height and width setting rule will be used as an example for explanation. In another possible implementation, the height and width of the window may not be related to the display orientation of the application interface, so that the aspect ratio of the same window remains unchanged, for example... Figure 2C Regardless of whether the application interface is displayed in the left or right image, the aspect ratio of the window will always be set to [value]. Figure 2C The height / width is shown in the middle left image.

[0043] In this embodiment, the graphics with aspect ratios within a preset range include squares and graphics that approximate squares. The principle for setting the preset range is that windows with aspect ratios within the preset range provide a minimal difference in user viewing experience when the application interface is displayed in horizontal or vertical full-screen mode. Optionally, the preset range can be an interval containing 1, and the upper and lower boundaries of the preset range are close to 1. For example, the preset range can be [6 / 8, 8 / 6], or [0.75, 4 / 3]. The above example uses a closed interval; the upper and lower boundaries of the preset range can also be open intervals. Graphics approximate squares can be regular or irregular. Regular graphics approximate squares can include rectangles with aspect ratios within the preset range, etc. See also... Figure 2D The solid lines in the figure provide examples of irregular shapes that approximate squares. For figure 24, the aspect ratio is 7:6, and all four corners are curved. For figure 25, the aspect ratio is 6:6 or 6:5. For figure 26, the aspect ratio is 7:6, but one corner is missing. For figure 27, the aspect ratio is 7:6, but one side is missing. Figure 2DThe illustrated figures are merely examples and are not intended to limit the shapes and square approximations in this application. Those skilled in the art can foresee more shapes and square approximations. For example, each example may have different aspect ratios close to 1, the number of arc-shaped corners in figure 24 may be different, the number of missing corners or sides in figures 26 and 27 may be different, the missing shapes may vary, and so on. These will not be elaborated further here.

[0044] The following provides an exemplary description of the full-screen display method according to an embodiment of this application.

[0045] Figure 3A A flowchart of one embodiment of the full-screen display method of this application is shown below. Figure 3A As shown, the method may include: Step 301: When an instruction to display the application interface in full screen is detected, determine whether the window displaying the application interface is a graphic with an aspect ratio within a preset range; the preset range is an range containing 1; if the window is a graphic with an aspect ratio within the preset range, proceed to step 302; if the window is a graphic with an aspect ratio not within the preset range, proceed to step 303.

[0046] Scenarios in which a command to display the application interface in fullscreen mode is detected include, but are not limited to: This involves obtaining a full-screen command for the application interface. For example, a user might issue a full-screen command to the application by clicking a full-screen button or performing a preset gesture, or the application might trigger its own built-in full-screen command during operation. For instance, for playing multimedia files such as videos and images, the user can typically click a full-screen button (see...). Figure 3B (as shown), or rotating electronic devices (see) Figure 3C (As shown) to issue commands for full-screen playback of multimedia files; for mobile games, the game's launch options generally include commands for full-screen playback of the game interface, therefore, the application, i.e., the mobile game, can obtain the full-screen command from the launch options when it starts; or, The application interface is already displayed in full screen, but a change has been detected in the window displaying the full-screen application interface. The application interface needs to continue to be displayed in full screen in the changed window. The reasons for the window change may include, but are not limited to: changes in the opening and closing state of the display screen, split-screen display, etc., and changes in the orientation, shape, size, etc. of the window displaying the application interface.

[0047] Step 302: Display the application interface in full screen in the window according to the current display orientation of the application interface, and this branch of the process ends.

[0048] The current display orientation of the application interface refers to the orientation of the application interface when a command to display the application interface in full screen is detected.

[0049] Step 303: Display the application interface in full screen in the window according to the display orientation specified by the application. This branch of the process ends.

[0050] The method shown in Figure 3 displays the application interface in full screen according to the current display orientation of the application interface when the window displaying the application interface is a graphic with an aspect ratio within a preset range. This eliminates the need for the user to rotate the electronic device, providing a better full-screen display method and enhancing the user's full-screen experience in scenarios where the window displaying the application interface is a graphic with an aspect ratio within a preset range.

[0051] based on Figure 3A The illustrated embodiment describes a method for full-screen display of multimedia files. See also: Figure 3D The top left and top right images show a multimedia file displayed in a non-full-screen format on the application interface of an electronic device. Figure 3D Taking a multimedia file as an example, if a user clicks the full-screen button while watching a multimedia file, the electronic device detects the full-screen instruction for the multimedia file (that is, detects the instruction to display the application interface in full screen) and determines whether the window displaying the application interface is a graphic with an aspect ratio within a preset range. If the result indicates that the window is a graphic with an aspect ratio within the preset range, as shown in the lower right image, there is no need to rotate the multimedia file. Figure 3D The orientation of the video file (in the center) will be adjusted according to the current display orientation of the application interface, displaying the multimedia file in full-screen mode within the window. Figure 3D (The middle part is a video).

[0052] If the result indicates that the window is a graphic whose aspect ratio is not within the preset range, then, as shown in the lower left figure, the multimedia file will be displayed in full screen in the window after rotating the application interface according to the display orientation specified by the application.

[0053] based on Figure 3A The illustrated embodiment describes a method for displaying a game in full screen. See also... Figure 3E As shown in the upper left and upper right images, when a user clicks the icon of a game application to launch the game, the application obtains the full-screen instruction for the game interface from the launch items. Correspondingly, the electronic device detects the full-screen instruction for the application interface (that is, detects the instruction to display the application interface in full screen) and determines whether the window displaying the application interface is a graphic with an aspect ratio within a preset range. If the result is that the window is a graphic with an aspect ratio within the preset range, then, as shown in the lower right figure, there is no need to rotate the orientation of the game interface. The game interface will be displayed in full screen in the window according to the current display orientation of the game interface. If the result indicates that the window is a graphic whose aspect ratio is not within the preset range, then, as shown in the lower left figure, the game interface will be rotated to the correct orientation according to the display orientation specified by the game program and displayed in full screen.

[0054] Figure 4A This is a flowchart of another embodiment of the full-screen display method of this application. Figure 4A The document provides one possible implementation for determining whether a window displaying the application interface is a graphic with an aspect ratio within a preset range. For example... Figure 4A As shown, the method may include: Step 401: When an instruction to display the application interface in full screen is detected, obtain the aspect ratio of the window displaying the application interface.

[0055] In practical applications, the height and width values ​​of the window can be obtained separately, and the aspect ratio of the window can be calculated by the height / width ratio; or, if the aspect ratio parameter of the window is set in advance, the aspect ratio of the window can be obtained by obtaining that parameter.

[0056] Step 402: Determine whether the aspect ratio is within the preset range. If it is within the preset range, proceed to step 403; otherwise, proceed to step 404.

[0057] The setting of the preset interval can be referred to the relevant description above, and will not be repeated here.

[0058] Step 403: Display the application interface in full screen in the window according to the current display orientation of the application interface, and this branch of the process ends.

[0059] Step 404: Display the application interface in full screen in the window according to the display orientation specified by the application. This branch of the process ends.

[0060] Figure 4A The method shown determines whether a window is a graphic with an aspect ratio within a preset range based on the window's aspect ratio. This is unrelated to the various states of the display screen in the electronic device. For example, the display screen can be a foldable screen or a non-foldable screen. If the display screen is a foldable screen, it can be in a folded state, an unfolded state, or a state that changes between folded and unfolded states. The display screen can be in a split-screen display state or a non-split-screen display state, and so on.

[0061] Figure 4AThe method shown determines whether a window is a graphic with an aspect ratio within a preset range by judging whether the aspect ratio of the window is within a preset range.

[0062] based on Figure 4A In an embodiment, taking a rectangular foldable screen without split-screen as an example, see [link to example]. Figure 4B The diagram illustrates the relationship between the window aspect ratio change and the full-screen display orientation before and after the screen is folded. For example, as shown in the right figure, R0 is the window aspect ratio before the screen is folded, and R1 is the window aspect ratio after the screen is folded. If R1 falls within a preset range, the application interface's display orientation does not need to be rotated according to its current orientation; if R1 falls outside the preset range, the application interface's display orientation generally needs to be rotated according to the application's specified orientation.

[0063] See Figure 4C Taking the display screen in split-screen mode as an example Figure 4A The illustrated embodiments are provided for comparative explanation. Figure 4C In the two images on the left, the display screen can be either a foldable or non-foldable screen. If the display screen is foldable, it can be in an unfolded or folded state. The key point is that each split-screen window on the display screen is a graphic with an aspect ratio within a preset range. Figure 4C In the two images on the right, the display screen can be either a foldable screen or a non-foldable screen. If the display screen is a foldable screen, it can be in an unfolded state or a folded state. The key point is that each split-screen window on the display screen is a graphic whose aspect ratio is not within the preset range.

[0064] In the top left corner image, a multimedia file (video is used as an example) is playing in the split-screen window on the left. If the user clicks the full-screen button on the application interface to issue a full-screen command, it is determined whether the aspect ratio of the split-screen window is within the preset range. Since the split-screen window is a graphic with an aspect ratio within the preset range, the result is that the aspect ratio is within the preset range. Therefore, in the bottom left corner image, the multimedia file is displayed in full screen according to the current display orientation of the application interface. In the top right corner image, a multimedia file (using video as an example) is playing in the split-screen window on the left. If the user clicks the full-screen button on the application interface to issue a full-screen command, the system checks whether the aspect ratio of the split-screen window is within the preset range. Since the split-screen window is a graphic whose aspect ratio is not within the preset range, the result is that the aspect ratio is not within the preset range. Therefore, in the bottom right corner image, the multimedia file is rotated according to the display orientation specified by the application and then displayed in full-screen mode.

[0065] In practical applications, if the display screen does not use a split-screen display, the window displaying the application interface generally overlaps with the complete display area of ​​the screen to which it belongs. That is, the window displaying the application interface is the complete display area of ​​the screen to which it belongs. Given the screen shape and size, it is not necessary to obtain the window's aspect ratio; simply knowing whether the screen's aspect ratio falls within a preset range is sufficient to determine if the window's aspect ratio falls within that range. If the display screen is not a foldable screen, the "screen" here refers to the entire display screen or a sub-screen. Based on this principle, this application also provides... Figures 5A to 10A The examples shown are described below.

[0066] Figure 5A This is a flowchart of yet another embodiment of the full-screen display method of this application.

[0067] In this embodiment, the display screen is a foldable screen, and the display screen does not display in a split-screen manner; when folded, the sub-screen displays a graphic with an aspect ratio within a preset range, and when unfolded, the full screen displays a graphic with an aspect ratio outside the preset range. See also Figure 5B As shown, example diagrams are given of the fully folded and unfolded states of the display screen when it includes two sub-screens.

[0068] like Figure 5A As shown, the method may include: Step 501: When an instruction to display the application interface in full screen is detected, determine the screen used by the window displaying the application interface; if the screen used is a sub-screen, proceed to step 502; if the screen used is a full screen, proceed to step 503.

[0069] Step 502: Display the application interface in full screen in the window according to the current display orientation of the application interface, and this branch of the process ends.

[0070] Step 503: Display the application interface in full screen in the window according to the display orientation specified by the application. This branch of the process ends.

[0071] In one possible implementation, if the display screen in this embodiment is split-screen, and the display screen is split-screen according to each sub-screen as a sub-screen, then the application interface is displayed on a sub-screen, and the sub-screen is a graphic with an aspect ratio in a preset range. At this time, when an instruction to display the application interface in full screen is detected, before the step of determining the screen used by the window displaying the application interface, it may further include: determining whether the display screen is split-screen; if not split-screen, executing the step of determining the screen used by the window displaying the application interface; if split-screen, executing step 502.

[0072] See Figure 5C ,for Figure 5A The illustrated embodiment is shown in the diagram above left. In the diagram, a user clicks the full-screen button while watching a video on a sub-screen. Figure 5A The method in the text determines whether the screen being used is a sub-screen. Accordingly, as shown in the lower left figure, the video is displayed in full screen on the sub-screen according to the current display orientation of the video playback program interface. In the image at the top right, when a user clicks the full-screen button while watching a video in full screen, they can proceed according to... Figure 5A The method described in the image determines whether the screen being used is a full screen. Accordingly, as shown in the lower right image, the video player will display the video in full screen after rotating the orientation of the video player interface.

[0073] Figure 6 This is a flowchart of yet another embodiment of the full-screen display method of this application.

[0074] In this embodiment, the display screen is a foldable screen, and the display screen does not display in a split-screen manner; when folded, the sub-screen displays a graphic with an aspect ratio within a preset range, and when unfolded, the full screen displays a graphic with an aspect ratio outside the preset range. An example of the display screen can be found in [link to example]. Figure 5B That will not be elaborated here.

[0075] Because the display screen does not split into multiple screens, in the folded state, one sub-screen displays the application interface; in the unfolded state, the entire screen displays the application interface; when changing from folded to unfolded, the entire screen displays the application interface; and when changing from unfolded to folded, one sub-screen displays the application interface. The folded state can be either partially folded or fully folded. In practical applications, this application does not limit which sub-screen displays the application interface.

[0076] At this time, as Figure 6 As shown, the method may include: Step 601: When an instruction to display the application interface in full screen is detected, determine the opening / closing state of the display screen; if the opening / closing state of the display screen is folded, proceed to step 603; if the opening / closing state of the display screen is unfolded, proceed to step 604; if the opening / closing state of the display screen is in a changing state, proceed to step 602. Step 602: Determine the direction of change of the opening and closing state of the display screen. If the direction of change is from unfolded to folded, proceed to step 603. If the direction of change is from folded to unfolded, proceed to step 604.

[0077] Step 603: Display the application interface in full screen in the window according to the current display orientation of the application interface, and this branch of the process ends.

[0078] Step 604: Display the application interface in full screen in the window according to the display orientation specified by the application. This branch of the process ends.

[0079] In one possible implementation, if the display screen in this embodiment is split-screen, and the display screen is split-screen according to each sub-screen as a sub-screen, then the application interface is displayed on a sub-screen, and the sub-screen is a graphic with an aspect ratio in a preset range. At this time, when a full-screen command for the application interface is detected, before the step of determining the opening and closing state of the display screen, it may also include: determining whether the display screen is split-screen; if it is not split-screen, the step of determining the opening and closing state of the display screen is executed; if it is split-screen, step 603 is executed.

[0080] Figure 6 For examples, please refer to Figure 5B and Figure 7B This will not be elaborated upon here.

[0081] Figure 7A This is a flowchart of yet another embodiment of the full-screen display method of this application.

[0082] In this embodiment, the display screen is a foldable screen, and the display screen does not display in split-screen mode; when unfolded, the full screen is a graphic with an aspect ratio outside the preset range, and when folded, the sub-screens are graphics with an aspect ratio within the preset range. An example of the display screen can be found in [link to example]. Figure 5B That will not be elaborated here.

[0083] Since the display does not split into multiple screens, when changing from a folded state to an unfolded state, the screen displaying the application interface changes from a sub-screen to a full screen; conversely, when changing from an unfolded state to a folded state, the screen displaying the application interface changes from a full screen to a sub-screen. The folded state can be either partially folded or fully folded. In practical applications, this application does not limit which specific sub-screen displays the application interface.

[0084] At this time, as Figure 7A As shown, the method may include: Step 701: When the opening and closing state of the display screen begins to change, determine the direction of the change in the opening and closing state of the display screen; if the direction of change is from unfolded state to folded state, execute step 702; if the direction of change is from folded state to unfolded state, execute step 703.

[0085] Step 702: Display the application interface in full screen in the window according to the current display orientation of the application interface, and this branch of the process ends.

[0086] Step 703: Display the application interface in full screen in the window according to the display orientation specified by the application. This branch of the process ends.

[0087] In one possible implementation, if the display screen in this embodiment is split-screen, and the display screen is split-screen according to each sub-screen as a sub-screen, then the application interface is displayed on a sub-screen, and the sub-screen is a graphic with an aspect ratio in a preset range. At this time, when the opening and closing state of the display screen is detected to start changing, before the step of determining the direction of the change in the opening and closing state of the display screen, it may further include: determining whether the display screen is split-screen; if it is not split-screen, the step of determining the direction of the change in the opening and closing state of the display screen is executed; if it is split-screen, step 702 is executed.

[0088] See Figure 7B In the image at the top left, the user is watching a video in full-screen mode. Figure 7A The method shown indicates that if the display screen is folded at this time, the direction of change is determined to be from unfolded to folded. Accordingly, as shown in the lower left figure, the video is displayed in full screen on the sub-screen according to the current display direction of the video playback program interface. In the image at the top right, the user is watching a video in full-screen mode. Figure 7A The method shown indicates that if the display screen is folded at this time, the direction of change is determined to be from unfolded to folded. Accordingly, as shown in the lower right figure, the video playback program interface is rotated to display the video in full screen on the sub-screen.

[0089] Figure 8A This is a flowchart of yet another embodiment of the full-screen display method of this application.

[0090] In this embodiment, the display screen is a foldable screen, and the display screen does not display in split-screen mode; when unfolded, the full screen displays a graphic with an aspect ratio within a preset range, and when folded, the sub-screens display a graphic with an aspect ratio outside the preset range. See also Figure 8B As shown, an example diagram is given of the folded and unfolded states of the display screen when it includes two sub-screens. The folded state can be either a partially folded state or a fully folded state.

[0091] like Figure 8A As shown, the method may include: Step 801: When an instruction to display the application interface in full screen is detected, determine the screen used by the window displaying the application interface; if the screen used is a full screen, proceed to step 802; if the screen used is a sub-screen, proceed to step 803.

[0092] Step 802: Display the application interface in full screen in the window according to the current display orientation of the application interface, and this branch of the process ends.

[0093] Step 803: Display the application interface in full screen in the window according to the display orientation specified by the application. This branch of the process ends.

[0094] In one possible implementation, if the display screen in this embodiment is split-screen, and the display screen is split-screen according to each sub-screen as a sub-screen, then the application interface is displayed on a sub-screen, and the sub-screen is a graphic whose aspect ratio is not in the preset range. At this time, when an instruction to display the application interface in full screen is detected, before the step of determining the screen used by the window displaying the application interface, it may further include: determining whether the display screen is split-screen; if it is not split-screen, executing the step of determining the screen used by the window displaying the application interface; if it is split-screen, executing step 803.

[0095] See Figure 8C ,for Figure 8A The illustrated embodiment is shown in the diagram above left. In the diagram, a user clicks the full-screen button while watching a video on a sub-screen. Figure 8A The method described in the image determines whether the screen being used is a sub-screen. Accordingly, as shown in the lower left image, the video player will rotate its interface to display the video in full screen on the sub-screen. In the image at the top right, when a user clicks the full-screen button while watching a video in full screen, they can proceed according to... Figure 8A The method described in the text determines whether the screen being used is a full screen. Accordingly, as shown in the lower right figure, the video is displayed in full screen on the sub-screen according to the current display orientation of the video playback program interface.

[0096] Figure 9 This is a flowchart of yet another embodiment of the full-screen display method of this application.

[0097] In this embodiment, the display screen is a foldable screen, and the display screen does not display in a split-screen manner; when folded, the sub-screen is a graphic with an aspect ratio outside the preset range, and when unfolded, the full screen is a graphic with an aspect ratio within the preset range. The folding state can be either a partially folded state or a fully folded state. An example of the display screen can be found in [reference needed]. Figure 8B That will not be elaborated here.

[0098] Because the display does not split into multiple screens, when folded, one sub-screen displays the application interface; when unfolded, the entire screen displays the application interface; when changing from folded to unfolded, the entire screen displays the application interface; and when changing from unfolded to folded, one sub-screen displays the application interface. In practical applications, this application does not limit which sub-screen displays the application interface.

[0099] At this time, as Figure 9 As shown, the method may include: Step 901: When a full-screen command for the application interface is detected, determine the opening / closing state of the display screen; if the opening / closing state of the display screen is an unfolded state, execute step 903; if the opening / closing state of the display screen is a folded state, execute step 904; if the opening / closing state of the display screen is an opening / closing change state, execute step 902. Step 902: Determine the direction of change of the opening and closing state of the display screen. If the direction of change is from folded state to unfolded state, proceed to step 903. If the direction of change is from unfolded state to folded state, proceed to step 904.

[0100] Step 903: Display the application interface in full screen in the window according to the current display orientation of the application interface, and this branch of the process ends.

[0101] Step 904: Display the application interface in full screen in the window according to the display orientation specified by the application. This branch of the process ends.

[0102] In one possible implementation, if the display screen in this embodiment is split-screen, and the display screen is split-screen according to each sub-screen as a sub-screen, then the application interface is displayed on a sub-screen, and the sub-screen is a graphic whose aspect ratio is not in the preset range. At this time, when a full-screen command for the application interface is detected, before the step of determining the opening and closing state of the display screen, it may also include: determining whether the display screen is split-screen; if it is not split-screen, the step of determining the opening and closing state of the display screen is executed; if it is split-screen, step 904 is executed.

[0103] Figure 9 For examples, please refer to Figure 8C and Figure 10B This will not be elaborated further here.

[0104] Figure 10A This is a flowchart of yet another embodiment of the full-screen display method of this application.

[0105] In this embodiment, the display screen is a foldable screen, and the display screen does not display in a split-screen manner; when folded, the sub-screen is a graphic with an aspect ratio outside the preset range, and when unfolded, the full screen is a graphic with an aspect ratio within the preset range. The folding state can be either a partially folded state or a fully folded state. An example of the display screen can be found in [reference needed]. Figure 8B That will not be elaborated here.

[0106] Because the display does not use a split-screen display, when changing from a folded state to an unfolded state, the screen displaying the application interface changes from a sub-screen to a full screen; conversely, when changing from an unfolded state to a folded state, the screen displaying the application interface changes from a full screen to a sub-screen. In practical applications, this application does not limit which specific sub-screen displays the application interface.

[0107] At this time, as Figure 10A As shown, the method may include: Step 1001: When the opening and closing state of the display screen begins to change, determine the direction of the change in the opening and closing state of the display screen; if the direction of change is from folded state to unfolded state, proceed to step 1002; if the direction of change is from unfolded state to folded state, proceed to step 1003.

[0108] Step 1002: Display the application interface in full screen in the window according to the current display orientation of the application interface. This branch of the process ends.

[0109] Step 1003: Display the application interface in full screen in the window according to the display orientation specified by the application. This branch of the process ends.

[0110] In one possible implementation, if the application is a video player, and the change direction is from an expanded state to a collapsed state, the full-screen content of the application may change, for example, returning from a full-screen window to a details page; this is not a limitation.

[0111] In one possible implementation, if the display screen in this embodiment is split-screen, and the display screen is split-screen according to each sub-screen as a sub-screen, then the application interface is displayed on a sub-screen, and the sub-screen is a graphic whose aspect ratio is not in the preset range. At this time, when the opening and closing state of the display screen is detected to start changing, before the step of determining the direction of the change in the opening and closing state of the display screen, it may also include: determining whether the display screen is split-screen; if it is not split-screen, the step of determining the direction of the change in the opening and closing state of the display screen is executed; if it is split-screen, step 1003 is executed.

[0112] See Figure 10B In the image at the top left, the user is watching a video in full screen on a sub-screen. Figure 10A The method shown indicates that if the display screen is unfolded at this time, the direction of change is determined to be from folded state to unfolded state. Accordingly, as shown in the lower left figure, the video is displayed in full screen according to the current display direction of the video playback program interface. In the image at the top right, the user is watching a video in full-screen mode. Figure 10A The method shown indicates that if the display screen is folded at this time, the direction of change is determined to be from unfolded to folded. Accordingly, as shown in the lower right figure, the video playback program interface is rotated to display the video in full screen on the sub-screen.

[0113] In the above Figures 5A to 10AIn the embodiments described, a foldable screen comprising two sub-screens is used as an example. Those skilled in the art can extend the embodiments of this application to scenarios where the foldable screen comprises more than two sub-screens. The principle is that when the window displaying the application interface is the complete display area of ​​the screen where the window is located, the shape of the window can be determined according to the shape of the screen where the window is located. The embodiments will not be listed one by one here.

[0114] In one possible implementation, the electronic device's system, such as Android, can perform the determination of whether the window is a graphic with an aspect ratio within a preset range and the full-screen display of the application interface. See here. Figure 11A The implementation shown may include: Step 1101: When the application detects an instruction to display the application interface in full screen, the application sends a direction setting request to the system.

[0115] The specific implementation of the instruction to display the application interface in full screen can be found in step 301, and will not be repeated here.

[0116] In one possible implementation, taking the Android system as an example, the application sending an orientation setting request to the system may include: the application sending setRequestedOrientation to the system.

[0117] Since existing technologies use rectangular screens, the orientation setting request sent by the application in the prior art includes the display orientation of the application interface, which is either landscape or portrait. Specifically, if the application sends a setRequestOrientation to the system, its parameter can be either LANDSCAPE or PORTRAIT; for example, setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) indicates portrait mode, and setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) indicates landscape mode. This application does not limit how the application determines the display orientation in the orientation setting request.

[0118] Step 1102: The system receives the request and determines whether the window displaying the application interface is a graphic with an aspect ratio within a preset range. If it is a graphic with an aspect ratio within a preset range, proceed to step 1103; otherwise, proceed to step 1104.

[0119] In this step, you can refer to the various judgment methods described in Figures 4 to 10 to determine whether the window is a graphic with an aspect ratio within the preset range. These methods will not be repeated here.

[0120] Step 1103: The system displays the application interface in full screen in the window according to the current display orientation of the application interface, and this branch of the process ends.

[0121] In this step, the system can modify the parameter configuration of setRequestedOrientation sent by the application to the system to BEHIND, which means that the display orientation of the application interface follows the current display orientation of the application interface and does not need to be rotated. For example, setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_BEHIND).

[0122] For example, in the following code, you can replace "landscape" or "portrait" with "behind".

[0123] <activity android:configChanges=”…” android:name=".VideoPlayerActivity" android:screenOrientation=”landscape” / > or <activity android:configChanges=”…” android:name=".VideoDetailActivity" android:screenOrientation=”portrait” / > For example, in the following code, you can replace "LANDSCAPE" or "PORTRAIT" with "BEHIND".

[0124] Public void onClick(view v){ RequestWindowFeature(Window.FEATURE_NO_TITLE); / / Hide the title getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); / / Set to fullscreen setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); } or Public void onClick(view v){ setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); } Step 1104: The system displays the application interface in full screen in the window according to the display direction requested in the direction setting request, and this branch of the process ends.

[0125] In this step, referring to the implementation method in step 503, the system can display the application interface in full screen in the window without modifying the parameters of setRequestedOrientation, based on the parameters LANDSCAPE or PORTRAIT in setRequestedOrientation.

[0126] For example, see Figure 11B A graphics decision module can be added to the Android system side. When the application receives a request to set the orientation of the full-screen interface, the graphics decision module determines whether the window displaying the application interface is a graphic with an aspect ratio within a preset range according to a preset judgment standard. Based on the judgment result, the display orientation in the orientation setting request is modified or kept. Then, the Android system architecture continues to perform subsequent full-screen display processing and controls the display driver to display the application interface in full-screen mode.

[0127] Figure 11A The method shown is in Figure 3A Based on the method shown, a method is provided for the system to determine whether a window is a graphic with an aspect ratio within a preset range. The improvement is only made on the system side, and no modifications are required on the application side.

[0128] It is understood that some or all of the steps or operations in the above embodiments are merely examples, and other operations or variations thereof can be performed in the embodiments of this application. Furthermore, the steps may be performed in different orders as presented in the above embodiments, and it is not necessary to perform all the operations in the above embodiments.

[0129] Figure 12 This is a schematic diagram of the structure of one embodiment of the full-screen display device of this application, as shown below. Figure 12 As shown, the full-screen display device 120 may include: Display unit 121 is used to display a multimedia file in a non-full-screen manner on the application interface; The judgment unit 122 is used to detect the instruction to display the multimedia file in full screen and to determine whether the window displaying the application interface is a graphic with an aspect ratio within a preset range; the preset range is a range that includes 1. The display unit 121 can also be used to: if the window is a graphic with an aspect ratio in a preset range, display the multimedia file in full screen in the window according to the current display direction of the application interface; the current display direction of the application interface includes: the display direction of the application interface when an instruction to display the multimedia file in full screen is detected.

[0130] Specifically, the judgment unit 122 can be used to: obtain the aspect ratio of the window; and determine whether the aspect ratio is within a preset range, where the preset range is [0.75, 4 / 3].

[0131] The electronic device displaying the application interface has a foldable screen. When unfolded, the full screen displays a graphic with an aspect ratio outside the preset range, and when folded, the sub-screen displays a graphic with an aspect ratio within the preset range. The display does not split into multiple screens. Specifically, the judgment unit 122 can be used to: determine the screen used by the window; if the screen used by the window is a sub-screen, determine that the window is a graphic with an aspect ratio within the preset range; if the screen used by the window is a full screen, determine that the window is a graphic with an aspect ratio outside the preset range.

[0132] The electronic device displaying the application interface has a foldable screen. When unfolded, the full screen displays a graphic with an aspect ratio within a preset range, and when folded, the sub-screen displays a graphic with an aspect ratio outside the preset range. The display does not split into multiple screens. The judgment unit 122 can be used to: determine the screen used by the window; if the screen used by the window is a full screen, determine that the window is a graphic with an aspect ratio within the preset range; if the screen used by the window is a sub-screen, determine that the window is a graphic with an aspect ratio outside the preset range.

[0133] The electronic device displaying the application interface has a foldable screen. When unfolded, the full screen displays a graphic with an aspect ratio outside the preset range, and when folded, the sub-screen displays a graphic with an aspect ratio within the preset range. The display does not split into multiple screens. The judgment unit 122 can be specifically used to: determine the opening / closing state of the display; if the display is in a folded state, determine that the window displays a graphic with an aspect ratio within the preset range; if the display is in an unfolded state, determine that the window displays a graphic with an aspect ratio outside the preset range; if the display is in a changing opening / closing state, determine the direction of the changing opening / closing state; if the changing direction is from unfolded to folded, determine that the window displays a graphic with an aspect ratio within the preset range; if the changing direction is from folded to unfolded, determine that the window displays a graphic with an aspect ratio outside the preset range.

[0134] The electronic device displaying the application interface has a foldable screen. When unfolded, the full screen displays a graphic with an aspect ratio within a preset range, and when folded, the sub-screen displays a graphic with an aspect ratio outside the preset range. The display does not split into multiple screens. The judgment unit 122 can be specifically used to: determine the opening / closing state of the display; if the display is unfolded, determine that the window is a graphic with an aspect ratio within the preset range; if the display is folded, determine that the window is a graphic with an aspect ratio outside the preset range; if the display is in a changing opening / closing state, determine the direction of the changing opening / closing state; if the changing direction is from folded to unfolded, determine that the window is a graphic with an aspect ratio within the preset range; if the changing direction is from unfolded to folded, determine that the window is a graphic with an aspect ratio outside the preset range.

[0135] The judgment unit 122 can also be used to: detect a change in the opening and closing state of the display screen, and determine whether the window displaying the multimedia file is a graphic with an aspect ratio within a preset range based on the direction of the change in the opening and closing state; if the window displaying the multimedia file is a graphic with an aspect ratio within a preset range, display the multimedia file in full screen according to the current display direction of the multimedia file; the current display direction of the multimedia file includes: the display direction of the multimedia file when the change in the opening and closing state of the display screen is detected.

[0136] In this configuration, the full screen in the unfolded state is a graphic whose aspect ratio is not within a preset range, and the sub-screen in the folded state is a graphic whose aspect ratio is within a preset range. The display screen does not display multiple screens. Specifically, the judgment unit 122 can be used to: determine the direction of change of the opening and closing state of the display screen; if the direction of change is from unfolded to folded, determine that the window displaying the multimedia file is a graphic whose aspect ratio is within a preset range; if the direction of change is from folded to unfolded, determine that the window displaying the multimedia file is a graphic whose aspect ratio is not within a preset range.

[0137] In this configuration, the full screen when the display is in the unfolded state is a graphic with an aspect ratio within a preset range, and the sub-screen when the display is in the folded state is a graphic with an aspect ratio outside the preset range. The display does not display in a split-screen manner. Specifically, the judgment unit 122 can be used to: determine the direction of change of the opening and closing state of the display; if the direction of change is from folded state to unfolded state, determine that the window displaying the multimedia file is a graphic with an aspect ratio within the preset range; if the direction of change is from unfolded state to folded state, determine that the window displaying the multimedia file is a graphic with an aspect ratio outside the preset range.

[0138] Specifically, the judgment unit 122 can be used to: receive a direction setting request sent by the application to which the application interface belongs. The direction setting request is sent by the application when it detects an instruction to display a multimedia file in full screen. The direction setting request carries the display direction specified by the application for the application interface.

[0139] Specifically, the display unit 121 can be used to: modify the display direction specified by the application in the direction setting request to the current display direction of the application interface; and display the multimedia file in full screen in the window according to the modified direction setting request.

[0140] Figure 12 The full-screen display device provided in the illustrated embodiment can be used to execute this application. Figures 3A to 11A The implementation principle and technical effects of the method embodiment shown can be further referred to the relevant description in the method embodiment.

[0141] The above should be understood Figure 12The division of the various units in the illustrated full-screen display device is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, these units can be implemented entirely through software calls from processing elements; they can be fully implemented in hardware; or some units can be implemented through software calls from processing elements, while others are implemented in hardware. For example, the display unit can be a separate processing element, or it can be integrated into a chip within the electronic device. The implementation of other units is similar. Moreover, these units can be fully or partially integrated together, or they can be implemented independently. During implementation, each step of the above method or each of the above units can be completed through integrated logic circuits in the hardware of the processor element or through software instructions.

[0142] For example, these units can be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs). Alternatively, these units can be integrated together to form a system-on-a-chip (SOC).

[0143] Figure 13 This is a schematic diagram of the structure of an embodiment of the electronic device of this application, as shown below. Figure 13 As shown, the above-mentioned electronic device may include: a display screen; one or more processors; a memory; and one or more computer programs.

[0144] The aforementioned display screen may include the display screen of an in-vehicle computer (Mobile Data Center); the aforementioned electronic device may be a mobile terminal (phone), a smart screen, a drone, an intelligent connected vehicle (ICV), a smart car, or an in-vehicle device, etc.

[0145] One or more of the aforementioned computer programs are stored in the aforementioned memory, and the one or more computer programs include instructions that, when executed by the aforementioned device, cause the aforementioned device to perform... Figures 3A to 11A The method shown.

[0146] Figure 13 The electronic device shown can be a terminal device or a circuit device built into the aforementioned terminal device. This device can be used to execute this application. Figures 3A to 11A The functions / steps in the method provided in the illustrated embodiment.

[0147] Electronic device 1300 may include a processor 1310, an external memory interface 1320, an internal memory 1321, a universal serial bus (USB) interface 1330, a charging management module 1340, a power management module 1341, a battery 1342, antenna 1, antenna 2, a mobile communication module 1350, a wireless communication module 1360, an audio module 1370, a speaker 1370A, a receiver 1370B, a microphone 1370C, a headphone jack 1370D, a sensor module 1380, buttons 1390, a motor 1391, an indicator 1392, a camera 1393, a display screen 1394, and a subscriber identification module (SIM) card interface 1395, etc. The sensor module 1380 may include a pressure sensor 1380A, a gyroscope sensor 1380B, a barometric pressure sensor 1380C, a magnetic sensor 1380D, an accelerometer sensor 1380E, a distance sensor 1380F, a proximity sensor 1380G, a fingerprint sensor 1380H, a temperature sensor 1380J, a touch sensor 1380K, an ambient light sensor 1380L, a bone conduction sensor 1380M, etc.

[0148] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 1300. In other embodiments of this application, the electronic device 1300 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0149] Processor 1310 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.

[0150] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0151] The processor 1310 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 1310 is a cache memory. This memory can store instructions or data that the processor 1310 has just used or that are used repeatedly. If the processor 1310 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 1310, and thus improves the efficiency of the system.

[0152] In some embodiments, the processor 1310 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0153] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 1310 may include multiple I2C buses. The processor 1310 can couple to the touch sensor 1380K, charger, flash, camera 1393, etc., through different I2C bus interfaces. For example, the processor 1310 can couple to the touch sensor 1380K through the I2C interface, enabling the processor 1310 and the touch sensor 1380K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 1300.

[0154] The I2S interface can be used for audio communication. In some embodiments, the processor 1310 may include multiple I2S buses. The processor 1310 can be coupled to the audio module 1370 via the I2S bus to enable communication between the processor 1310 and the audio module 1370. In some embodiments, the audio module 1370 can transmit audio signals to the wireless communication module 1360 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.

[0155] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 1370 and the wireless communication module 1360 can be coupled via the PCM bus interface. In some embodiments, the audio module 1370 can also transmit audio signals to the wireless communication module 1360 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0156] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 1310 and the wireless communication module 1360. For example, the processor 1310 communicates with the Bluetooth module in the wireless communication module 1360 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 1370 can transmit audio signals to the wireless communication module 1360 via the UART interface to enable music playback through Bluetooth headphones.

[0157] The MIPI interface can be used to connect the processor 1310 to peripheral devices such as the display screen 1394 and the camera 1393. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 1310 and the camera 1393 communicate via the CSI interface to enable the shooting function of the electronic device 1300. The processor 1310 and the display screen 1394 communicate via the DSI interface to enable the display function of the electronic device 1300.

[0158] The GPIO interface is configurable via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 1310 to a camera 1393, a display screen 1394, a wireless communication module 1360, an audio module 1370, a sensor module 1380, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0159] The USB port 1330 is a USB standard compliant interface, which can be a Mini USB port, Micro USB port, USB Type-C port, etc. The USB port 1330 can be used to connect a charger to charge the electronic device 1300, and can also be used for data transfer between the electronic device 1300 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0160] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 1300. In other embodiments of this application, the electronic device 1300 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0161] The charging management module 1340 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 1340 receives charging input from the wired charger via a USB interface 1330. In some wireless charging embodiments, the charging management module 1340 receives wireless charging input via the wireless charging coil of the electronic device 1300. While charging the battery 1342, the charging management module 1340 can also supply power to the electronic device via the power management module 1341.

[0162] The power management module 1341 connects the battery 1342, the charging management module 1340, and the processor 1310. The power management module 1341 receives input from the battery 1342 and / or the charging management module 1340, providing power to the processor 1310, internal memory 1321, display screen 1394, camera 1393, and wireless communication module 1360, etc. The power management module 1341 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 1341 may also be located within the processor 1310. In other embodiments, the power management module 1341 and the charging management module 1340 may be located in the same device.

[0163] The wireless communication function of electronic device 1300 can be implemented through antenna 1, antenna 2, mobile communication module 1350, wireless communication module 1360, modem processor and baseband processor, etc.

[0164] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 1300 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0165] The mobile communication module 1350 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 1300. The mobile communication module 1350 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 1350 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 1350 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 1350 may be housed in the processor 1310. In some embodiments, at least some functional modules of the mobile communication module 1350 and at least some modules of the processor 1310 may be housed in the same device.

[0166] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 1370A, receiver 1370B, etc.) or displays images or videos through the display screen 1394. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 1310 and may be housed in the same device as the mobile communication module 1350 or other functional modules.

[0167] The wireless communication module 1360 can provide solutions for wireless communication applications on the electronic device 1300, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 1360 can be one or more devices integrating at least one communication processing module. The wireless communication module 1360 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 1310. The wireless communication module 1360 can also receive signals to be transmitted from processor 1310, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0168] In some embodiments, antenna 1 of electronic device 1300 is coupled to mobile communication module 1350, and antenna 2 is coupled to wireless communication module 1360, enabling electronic device 1300 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0169] Electronic device 1300 implements display functions through a GPU, a display screen 1394, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 1394 and the application processor. The GPU performs mathematical and geometric calculations for graphics rendering. Processor 1310 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0170] Display screen 1394 is used to display images, videos, etc. Display screen 1394 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 1300 may include one or N displays 1394, where N is a positive integer greater than 1.

[0171] Electronic device 1300 can perform shooting functions through ISP, camera 1393, video codec, GPU, display 1394 and application processor.

[0172] The ISP (Image Signal Processor) is used to process data fed back from the camera 1393. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be integrated into the camera 1393.

[0173] Camera 1393 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, electronic device 1300 may include one or N cameras 1393, where N is a positive integer greater than 1.

[0174] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 1300 is selecting a frequency point, the DSP is used to perform Fourier transforms on the frequency energy.

[0175] Video codecs are used to compress or decompress digital video. Electronic device 1300 can support one or more video codecs. Thus, electronic device 1300 can play or record video in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0176] An NPU (Neural Processing Unit) is a neural network (NN) computing processor that, by borrowing from the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, rapidly processes input information and can continuously learn on its own. NPUs can enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0177] The external storage interface 1320 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 1300. The external memory card communicates with the processor 1310 through the external storage interface 1320 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0178] Internal memory 1321 can be used to store computer executable program code, which includes instructions. Internal memory 1321 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 1300 (such as audio data, phonebook, etc.). Furthermore, internal memory 1321 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 1310 executes various functional applications and data processing of electronic device 1300 by running instructions stored in internal memory 1321 and / or instructions stored in memory located in the processor.

[0179] Electronic device 1300 can implement audio functions, such as music playback and recording, through audio module 1370, speaker 1370A, receiver 1370B, microphone 1370C, headphone jack 1370D, and application processor.

[0180] The audio module 1370 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 1370 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 1370 may be located in the processor 1310, or some functional modules of the audio module 1370 may be located in the processor 1310.

[0181] The speaker 1370A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. Electronic device 1300 can listen to music or make hands-free calls through the speaker 1370A.

[0182] The receiver 1370B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 1300 answers a telephone call or voice message, the receiver 1370B can be brought close to the ear to listen to the voice.

[0183] Microphone 1370C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 1370C, inputting the sound signal into microphone 1370C. Electronic device 1300 may have at least one microphone 1370C. In some embodiments, electronic device 1300 may have two microphones 1370C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 1300 may have three, four, or more microphones 1370C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0184] The 1370D headphone jack is used to connect wired headphones. The 1370D headphone jack can be a USB 1330 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0185] Pressure sensor 1380A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 1380A can be disposed on display screen 1394. There are many types of pressure sensors 1380A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 1380A, the capacitance between the electrodes changes. Electronic device 1300 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 1394, electronic device 1300 detects the intensity of the touch operation based on pressure sensor 1380A. Electronic device 1300 can also calculate the touch position based on the detection signal from pressure sensor 1380A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view SMS messages is executed. When a touch operation with a strength greater than or equal to the first pressure threshold is applied to the SMS application icon, the instruction to create a new SMS message is executed.

[0186] The gyroscope sensor 1380B can be used to determine the motion attitude of the electronic device 1300. In some embodiments, the gyroscope sensor 1380B can determine the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes). The gyroscope sensor 1380B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 1380B detects the angle of the shake of the electronic device 1300, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 1300 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 1380B can also be used in navigation and motion-sensing game scenarios.

[0187] The barometric pressure sensor 1380C is used to measure air pressure. In some embodiments, the electronic device 1300 calculates altitude using the air pressure value measured by the barometric pressure sensor 1380C to assist in positioning and navigation.

[0188] The magnetic sensor 1380D includes a Hall sensor. The electronic device 1300 can use the magnetic sensor 1380D to detect the opening and closing of the flip cover. In some embodiments, when the electronic device 1300 is a flip phone, the electronic device 1300 can detect the opening and closing of the flip cover based on the magnetic sensor 1380D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be set.

[0189] The 1380E accelerometer can detect the magnitude of acceleration of an electronic device 1300 in various directions (typically three axes). When the electronic device 1300 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the electronic device, and can be applied to applications such as screen orientation switching and pedometers.

[0190] A distance sensor 1380F is used to measure distance. Electronic device 1300 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 1300 can utilize the distance sensor 1380F to measure distance for rapid focusing.

[0191] The proximity sensor 1380G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 1300 emits infrared light outward through the LED. The electronic device 1300 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that an object is near the electronic device 1300. When insufficient reflected light is detected, the electronic device 1300 can determine that no object is near the electronic device 1300. The electronic device 1300 may use the proximity sensor 1380G to detect when a user holds the electronic device 1300 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 1380G can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.

[0192] The ambient light sensor 1380L is used to sense ambient light intensity. The electronic device 1300 can adaptively adjust the brightness of the display screen 1394 based on the sensed ambient light intensity. The ambient light sensor 1380L can also be used to automatically adjust the white balance when taking photos. The ambient light sensor 1380L can also work in conjunction with the proximity sensor 1380G to detect whether the electronic device 1300 is in a pocket, preventing accidental touches.

[0193] The fingerprint sensor 1380H is used to collect fingerprints. The electronic device 1300 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.

[0194] Temperature sensor 1380J is used to detect temperature. In some embodiments, electronic device 1300 uses the temperature detected by temperature sensor 1380J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 1380J exceeds a threshold, electronic device 1300 performs thermal protection by reducing the performance of a processor located near temperature sensor 1380J to reduce power consumption. In other embodiments, when the temperature is below another threshold, electronic device 1300 heats battery 1342 to prevent abnormal shutdown of electronic device 1300 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, electronic device 1300 boosts the output voltage of battery 1342 to prevent abnormal shutdown due to low temperature.

[0195] Touch sensor 1380K, also known as a "touch device," can be located on display screen 1394. The touch sensor 1380K and display screen 1394 together form a touchscreen, also known as a "touchscreen." Touch sensor 1380K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 1394. In other embodiments, touch sensor 1380K may also be located on the surface of electronic device 1300, in a different position than display screen 1394.

[0196] The bone conduction sensor 1380M can acquire vibration signals. In some embodiments, the bone conduction sensor 1380M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 1380M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 1380M can also be incorporated into headphones to form bone conduction headphones. The audio module 1370 can parse the voice signals based on the vibration signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 1380M to realize voice functionality. The application processor can parse heart rate information based on the blood pressure signals acquired by the bone conduction sensor 1380M to realize heart rate detection functionality.

[0197] Buttons 1390 include a power button, volume buttons, etc. Buttons 1390 can be mechanical buttons or touch-sensitive buttons. Electronic device 1300 can receive button input and generate key signal inputs related to user settings and function control of electronic device 1300.

[0198] Motor 1391 can generate vibration alerts. Motor 1391 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 1391 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 1394. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0199] Indicator 1392 can be an indicator light, which can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0200] The SIM card interface 1395 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 1395 to make contact with and separate from the electronic device 1300. The electronic device 1300 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 1395 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 1395 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 1395 is also compatible with different types of SIM cards. The SIM card interface 1395 is also compatible with external memory cards. The electronic device 1300 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 1300 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 1300 and cannot be separated from the electronic device 1300.

[0201] It should be understood that Figure 13 The electronic device 1300 shown is capable of implementing this application. Figures 3A to 11A The illustrated embodiments provide various processes of the method. The operation and / or function of each module in the electronic device 1300 are respectively for implementing the corresponding processes in the above method embodiments. See this application for details. Figures 3A to 11A The detailed descriptions in the method embodiments shown are omitted here to avoid repetition.

[0202] It should be understood that Figure 13 The processor 1310 in the illustrated electronic device 1300 can be a system-on-a-chip (SoC). The processor 1310 may include a central processing unit (CPU) and may further include other types of processors, such as a graphics processing unit (GPU).

[0203] In summary, the various processors or processing units inside the processor 1310 can work together to implement the previous method flow, and the corresponding software programs of each processor or processing unit can be stored in the internal memory 121.

[0204] This application also provides an electronic device, the device including a storage medium and a central processing unit (CPU). The storage medium may be a non-volatile storage medium storing a computer-executable program. The CPU is connected to the non-volatile storage medium and executes the computer-executable program to implement this application. Figures 3A to 11A The method provided in the illustrated embodiment.

[0205] In the above embodiments, the processor may include, for example, a CPU, DSP, microcontroller, or digital signal processor, and may also include a GPU, embedded neural network processing unit (NPU), and image signal processor (ISP). The processor may also include necessary hardware accelerators or logic processing hardware circuits, such as an ASIC, or one or more integrated circuits for controlling the execution of the program in this application. Furthermore, the processor may have the function of operating one or more software programs, which may be stored in a storage medium.

[0206] This application also provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to execute this application. Figures 3A to 11A The method provided in the illustrated embodiment.

[0207] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to execute this application. Figures 3A to 11A The method provided in the illustrated embodiment.

[0208] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, A and B simultaneously, or B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.

[0209] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0210] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0211] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0212] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.

Claims

1. A full-screen display method, characterized in that, Applied to an electronic device, wherein the display screen of the electronic device is a foldable screen, the foldable screen includes an unfolded state and a folded state, the method includes: A multimedia file is displayed in a non-full-screen format on the application interface; Upon detecting an instruction to display the multimedia file in full screen, it is determined whether the window displaying the application interface is a graphic with an aspect ratio within a preset range; the preset range is an interval containing 1. When the display screen of the electronic device is in the unfolded state, if the window is a graphic with an aspect ratio within a preset range, the multimedia file is displayed in full screen in the window according to the current display orientation of the application interface; the current display orientation of the application interface includes: the display orientation of the application interface when an instruction to display the multimedia file in full screen is detected.

2. The method according to claim 1, characterized in that, The method further includes: When the display screen of the electronic device is in a folded state, if the window is a graphic with an aspect ratio not within the preset range, the multimedia file is displayed in full screen on the window after rotating the orientation of the application interface according to the display orientation specified by the application.

3. The method according to claim 1, characterized in that, The determination of whether the window displaying the application interface is a graphic with an aspect ratio within a preset range includes: Obtain the aspect ratio of the window; Determine whether the aspect ratio is within a preset range.

4. The method according to claim 1, characterized in that, When the display screen of the electronic device showing the application interface is in the unfolded state, the full screen displays a graphic with an aspect ratio within a preset range; when in the folded state, the second screen displays a graphic with an aspect ratio outside the preset range. The display screen does not display in split-screen mode. The step of determining whether the window displaying the application interface is a graphic with an aspect ratio within the preset range includes: Determine the screen used by the window; If the window uses a full screen, the window is determined to be a graphic with an aspect ratio within a preset range; If the window uses a second screen, it is determined that the window is a graphic whose aspect ratio is not within a preset range.

5. The method according to claim 1, characterized in that, When the display screen of the electronic device showing the application interface is in the unfolded state, the full screen displays a graphic with an aspect ratio within a preset range; when in the folded state, the second screen displays a graphic with an aspect ratio outside the preset range. The display screen does not display in split-screen mode. The step of determining whether the window displaying the application interface is a graphic with an aspect ratio within the preset range includes: Determine the open / closed state of the display screen; If the display screen is in the unfolded state, the window is determined to be a graphic with an aspect ratio within a preset range; If the display screen is in a folded state, the window is determined to be a graphic whose aspect ratio is not within a preset range; If the opening / closing state of the display screen is a changing state, determine the direction of change of the opening / closing state of the display screen; If the change direction is from a folded state to an unfolded state, the window is determined to be a graphic with an aspect ratio within a preset range; If the change direction is from an unfolded state to a folded state, the window is determined to be a graphic whose aspect ratio is not within a preset range.

6. The method according to any one of claims 1 to 5, characterized in that, After the multimedia file is displayed in full-screen mode in the window, the method further includes: If a change in the opening / closing state of the display screen is detected, it is determined whether the window displaying the multimedia file after the change in the opening / closing state is a graphic with an aspect ratio within a preset range, based on the direction of the change in the opening / closing state. If the window displaying the multimedia file is a graphic with an aspect ratio within a preset range, the multimedia file is displayed in full screen in the window displaying the multimedia file according to the current display orientation of the multimedia file; the current display orientation of the multimedia file includes: the display orientation of the multimedia file when the opening / closing state of the display screen is detected to have changed.

7. The method according to claim 6, characterized in that, The full screen of the display when it is unfolded is a graphic with an aspect ratio within a preset range, and the second screen when it is folded is a graphic with an aspect ratio outside the preset range. The display does not display in split-screen mode. The step of determining whether the window displaying the multimedia file is a graphic with an aspect ratio within the preset range after a change in the opening / closing state, based on the direction of the change in the opening / closing state, includes: Determine the direction of change in the opening / closing state of the display screen; If the change direction is from a folded state to an unfolded state, it is determined that the window displaying the multimedia file is a graphic with an aspect ratio within a preset range; If the change direction is from an expanded state to a collapsed state, it is determined that the window displaying the multimedia file is a graphic whose aspect ratio is not within a preset range.

8. The method according to any one of claims 1 to 7, characterized in that, The detected instruction to display the multimedia file in full screen includes: A direction setting request is received from the application to which the application interface belongs. The direction setting request is sent by the application when it detects an instruction to display the multimedia file in full screen. The direction setting request carries the display direction specified by the application for the application interface.

9. The method according to claim 8, characterized in that, Displaying the multimedia file in full-screen mode in the window according to the current display orientation of the application interface includes: Modify the display orientation specified by the application in the orientation setting request to the current display orientation of the application interface; Based on the modified orientation setting request, the multimedia file is displayed in full screen in the window.

10. An electronic device, characterized in that, include: Display screen; One or more processors; Memory; And one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs including instructions that, when executed by the electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 9.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when run on a computer, causes the computer to perform the method as described in any one of claims 1 to 9.

12. A computer program product, characterized in that, The computer program product includes computer instructions that, when executed by a processor, implement the method of any one of claims 1 to 9.