A method for displaying application and electronic device
The method addresses interface layout issues on folding screens by dividing the display into non-overlapping areas, ensuring consistent interface adaptation and enhancing the visual experience and utilization rate of folding screen devices.
Patent Information
- Application Number
- CN202310305080.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-05-14
- Filing Date
- 2019-10-18
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2039-10-18
AI Technical Summary
Folding screen electronic devices face issues with disordered interface layouts when unfolded, as most applications are designed for non-folding screens, leading to inadequate adaptation of interface layouts.
A method for displaying applications on folding screens that maintains interface layout consistency by dividing the display into non-overlapping areas on multiple screens, allowing simultaneous display of different interfaces in dual-window mode, adapting to the aspect ratios of ordinary non-folding screens.
Enables seamless display of application interfaces without restarting, enhances visual experience, and improves utilization rate by displaying richer content on folding screens.
Smart Images

Figure CN116521290B_ABST
Abstract
Description
[0001] This application claims the priority of the Chinese invention patent application filed with the State Intellectual Property Office on May 14, 2019, with application number 201910398758.8 and application name “A method and electronic device for folding screen display application”, the entire contents of which are incorporated by reference in this application. Technical Field
[0002] The embodiments of the present application relate to the field of electronic technology, and in particular to a display application method and an electronic device. Background Art
[0003] With the continuous development of electronic devices, more and more electronic devices with display screens are widely used in people's daily life and work, such as mobile phones with display screens. It is not difficult to find that with the development of screen technology, the display screens of electronic devices are becoming larger and larger, so as to provide users with richer information and bring users a better use experience.
[0004] However, if the display screen of an electronic device is too large, it will seriously affect its portability. Therefore, the folding screen electronic devices (such as folding screen mobile phones) proposed in recent years are the direction of future electronic device development.
[0005] Among them, the folding screen can be folded into at least two screens (such as a first screen and a second screen). After the folding screen is folded, the electronic device can display the interface of the application on one screen (such as the first screen). Generally speaking, the aspect ratio (ie, the height-to-width ratio) of the first screen of the folding screen is similar to the aspect ratio of an ordinary non-folding screen, such as the aspect ratio can be 16:9, 18:9, 20:9 or 16:10 and other conventional ratios; and most of the current applications are designed for non-folding screens, and their interface layouts are adapted to non-folding screens. Therefore, after the folding screen is folded, the first screen can display the interfaces of various applications normally. That is, the folded folding screen (ie, the first screen) is adapted to the interface layout of the application.
[0006] After the folding screen is unfolded, the display area of the folding screen includes at least two screens, and the aspect ratio of the unfolded folding screen can be 1:1 or 16:18, etc. At this time, the interface layout of the application cannot adapt to the unfolded folding screen. In this way, when the electronic device displays the application interface on the unfolded folding screen, there may be a problem of disordered interface layout. Summary of the invention
[0007] The embodiments of the present application provide a method for displaying an application and an electronic device, and the electronic device can display the interface of the application on an unfolded folding screen without changing the interface layout of the application.
[0008] In order to achieve the above purpose, the embodiment of the present application adopts the following technical solution:
[0009] In a first aspect, an embodiment of the present application provides a method for displaying an application, which can be applied to an electronic device including a folding screen. The folding screen can be folded to form at least two screens, and the at least two screens include a first screen and a second screen. When the folding screen is in a folded state, the first screen and the second screen are opposite to each other. The method for displaying an application includes: when the folding screen is in a folded state, controlling the first screen to display a first interface; in response to the folding screen changing from a folded state to an unfolded state, controlling the first display area of the folding screen to display the first interface, and the second display area of the folding screen to display the second interface. The second display area does not overlap with the first display area. The second interface is different from the first interface.
[0010] The folded state is a state where the angle between the first screen and the second screen is less than a preset angle threshold; the unfolded state is a state where the angle between the first screen and the second screen is greater than or equal to the preset angle threshold. Alternatively, the folded state is a state where the angle between the first screen and the second screen is less than or equal to the preset angle threshold; the unfolded state is a state where the angle between the first screen and the second screen is greater than the preset angle threshold.
[0011] In the embodiment of the present application, in response to the electronic device changing from a folded state to an unfolded state, the folding screen can display the first interface and the second interface in a dual-window mode, that is, the folding screen displays the two interfaces simultaneously in two display areas. Since the aspect ratio (i.e., height-to-width ratio) of the first screen and the second screen of the folding screen is similar to the aspect ratio of an ordinary non-folding screen; therefore, both the first screen and the second screen can adapt to the interface layout of the launched application. In this way, in response to the user's operation of unfolding the folding screen, the electronic device can display the interface of the application normally without restarting the application.
[0012] Moreover, the unfolded folding screen can display the first interface and the second interface at the same time, which can make the display content of the folding screen richer, improve the utilization rate of the folding screen, and enhance the user's visual experience.
[0013] In combination with the first aspect, in a possible design, the electronic device may also be changed from an unfolded state to a folded state. In response to the folding screen changing from the unfolded state to the folded state, the first screen may be controlled to display the first interface or the second interface.
[0014] In combination with the first aspect, in another possible design method, the first display area is the display area corresponding to the first screen, and the second display area is the display area corresponding to the second screen. Specifically, the above-mentioned folding screen is folded along the folding edge or the folding axis to form the first screen and the second screen. The first display area and the second display area are divided by the folding edge or the folding axis, and one side of the folding edge or the folding axis on the folding screen is the first display area, and the other side is the second display area. That is to say, with the folding edge of the folding screen as the dividing line, when the user faces the unfolded folding screen, the left side of the folding edge on the folding screen is the first display area, and the right side of the folding edge on the folding screen is the second display area; or, the right side of the folding edge on the folding screen is the first display area, and the left side of the folding edge on the folding screen is the second display area. In this way, it is more in line with the usage habits of most users for folding screen electronic devices.
[0015] In combination with the first aspect, in another possible design manner, the first display area and the second display area are pre-configured in the electronic device; or, the first display area and the second display area are set by a user in the electronic device.
[0016] In combination with the first aspect, in another possible design, the first interface and the second interface are both interfaces of the first application, wherein the second interface is the homepage of the first application; or, the second interface is the interface of the previous level of the first interface; or, the second interface is the interface of the next level of the first interface.
[0017] The first interface may be the home page of the first application or may not be the home page of the first application.
[0018] When the first interface is not the homepage of the first application, the second interface may be the homepage of the first application; or, the second interface may be the interface of the first application that is one level higher than the first interface; or, the second interface may be the interface corresponding to the previous record item of the record item corresponding to the first interface in the activity record of the first application.
[0019] When the first interface is the homepage of the first application, the second interface may be any interface at the next level of the first application; or, the second interface may be any interface of the first application except the homepage; or, the second interface may be the interface corresponding to the previous record item of the record item corresponding to the first interface in the activity record of the first application.
[0020] The activity record of the first application stores record items of each interface in the order in which the electronic device displays each interface of the first application.
[0021] In conjunction with the first aspect, in another possible design, the first interface is an interface of a first application, and the second interface is an interface of a second application. The second application is different from the first application. The second application may be any application among one or more applications that the electronic device has recently run and not closed, except the first application.
[0022] In combination with the first aspect, in another possible design method, the method of the embodiment of the present application may also include: when the folding screen is in the unfolded state, receiving a first operation of the user on the first interface displayed in the first display area, the first operation is used to trigger the first display area to display the third interface; in response to the first operation, the first display area of the folding screen displays the third interface, and the interface displayed in the second display area remains unchanged, that is, the second display area still displays the second interface.
[0023] In combination with the first aspect, in another possible design method, the method of the embodiment of the present application may also include: when the folding screen is in the unfolded state, receiving a second operation of the user on the second interface displayed in the second display area, the second operation is used to trigger the second display area to display the fourth interface; in response to the second operation, controlling the second display area of the folding screen to display the fourth interface, and the interface displayed in the first display area remains unchanged, that is, the first display area still displays the third interface.
[0024] To sum up, in the embodiment of the present application, when the first display area and the second display area of the folding screen display different interfaces, the first display area and the second display area of the folding screen can respectively receive and respond to user operations.
[0025] In the second aspect, the embodiment of the present application provides a method for displaying an application, which can be applied to an electronic device including a folding screen. The folding screen can be folded to form at least two screens, and the at least two screens include a first screen and a second screen. When the folding screen is in a folded state, the first screen and the second screen are opposite to each other, and the method for displaying an application includes: when the folding screen is in a folded state, the first screen is controlled to display a first interface; in response to the folding screen changing from a folded state to an unfolded state, the first display area and the second display area of the folding screen are used as a whole to display the first interface in the center; wherein the second display area does not overlap with the first display area; the folding screen receives a first operation of the user on the first interface, and the first operation is used to trigger the folding screen to display the second interface; in response to the first operation, the first display area of the folding screen is controlled to display the first interface, and the second display area is controlled to display the second interface. It should be noted that the folding screen described in the second aspect of the embodiment of the present application is an outward folding screen.
[0026] In the embodiment of the present application, in response to the folding screen changing from the folded state to the unfolded state, the first display area and the second display area of the folding screen are controlled as a whole to display the first interface in the center. That is, in response to the folding screen changing from the folded state to the unfolded state, the folding screen can be controlled to display the first interface in a single window mode. The interface layout of the first interface will not change, so the electronic device can display the interface of the application normally without restarting the application.
[0027] Furthermore, in response to a first operation input by a user on the first interface displayed in the center to trigger the folding screen to display the second interface, the folding screen can display the first interface and the second interface in a dual-window mode, that is, the folding screen displays the two interfaces simultaneously in two display areas. Since the aspect ratio (i.e., height-to-width ratio) of the first screen and the second screen of the folding screen is similar to that of an ordinary non-folding screen; therefore, both the first screen and the second screen can adapt to the interface layout of the launched application. In this way, in response to the user's operation of unfolding the folding screen, the electronic device can display the interface of the application normally without restarting the application.
[0028] Moreover, the unfolded folding screen can display the first interface and the second interface at the same time, which can make the display content of the folding screen richer, improve the utilization rate of the folding screen, and enhance the user's visual experience.
[0029] It should be noted that the first interface and the second interface described in the second aspect and any possible design thereof are interfaces of the same application (eg, the first application).
[0030] In combination with the second aspect, in a possible design method, the method of the embodiment of the present application may also include: in response to the folding screen changing from an unfolded state to a folded state, controlling the first screen to display the first interface or the second interface.
[0031] In combination with the second aspect, in another possible design method, the method of the embodiment of the present application may also include: when the folding screen is in the unfolded state, receiving a second operation of the user on the first interface displayed in the first display area, the second operation is used to trigger the first display area to display the third interface; in response to the first operation, controlling the first display area of the folding screen to display the third interface, and the second display area to display the second interface.
[0032] In combination with the second aspect, in another possible design method, the method of the embodiment of the present application may also include: when the folding screen is in the unfolded state, receiving a third operation of the user on the second interface displayed in the second display area, the second operation is used to trigger the second display area to display the fourth interface; in response to the third operation, controlling the second display area of the folding screen to display the fourth interface, and the first display area to display the third interface.
[0033] In summary, in the embodiment of the present application, when the first display area and the second display area of the folding screen display different interfaces, the first display area and the second display area can respectively receive and respond to user operations.
[0034] In a third aspect, an embodiment of the present application provides a method for displaying an application, which can be applied to an electronic device including a folding screen. The folding screen can be folded to form at least two screens, and the at least two screens include a first screen and a second screen. When the folding screen is in a folded state, the first screen and the second screen are opposite. A third screen is provided on the back of the first screen. The method for displaying an application includes: when the folding screen is in a folded state, controlling the third screen to display a first interface; in response to the folding screen changing from a folded state to an unfolded state, controlling the first display area of the folding screen to display the first interface, and the second display area of the folding screen to display the second interface; wherein the second display area does not overlap with the first display area. The second interface is different from the first interface.
[0035] It can be understood that after the folding screen is completely folded, the third screen is visible to the user, while the first screen and the second screen are invisible to the user. Therefore, for an electronic device with such a folding screen, when the folding screen is in a folded state, the interface can be displayed on the third screen; when the folding screen is in an unfolded state, the interface can be displayed on the first screen and the second screen.
[0036] In the embodiment of the present application, in response to the folding screen changing from a folded state to an unfolded state, the first interface is displayed on the third screen, and the first interface and the second interface are displayed on the first screen and the second screen in a dual-window mode, that is, the folding screen displays two interfaces in two display areas at the same time. Since the aspect ratio (i.e., the height-to-width ratio) of the first screen and the second screen of the folding screen is similar to the aspect ratio of an ordinary non-folding screen; therefore, both the first screen and the second screen can adapt to the interface layout of the started application. In this way, in response to the user's operation of unfolding the folding screen, the electronic device can display the interface of the application normally without restarting the application.
[0037] Moreover, the unfolded folding screen can display the first interface and the second interface at the same time, which can make the display content of the folding screen richer, improve the utilization rate of the folding screen, and enhance the user's visual experience.
[0038] In conjunction with the third aspect, in a possible design, in response to the folding screen changing from the unfolded state to the folded state, the third screen is controlled to display the first interface or the second interface. It can be understood that, since the third screen is visible to the user after the folding screen is completely folded, while the first screen and the second screen are invisible to the user; therefore, after the folding screen changes from the unfolded state to the folded state, the third screen can display the first interface or the second interface.
[0039] It should be noted that the first interface and the second interface described in the third aspect of the present application and any possible design thereof may refer to the description of the second interface in the first aspect and any possible design thereof, and the embodiments of the present application will not be repeated here.
[0040] In combination with the third aspect, in another possible design method, the method of the embodiment of the present application may also include: when the folding screen is in the unfolded state, receiving a first operation of the user on the first interface displayed in the first display area, the first operation is used to trigger the first display area to display the third interface; in response to the first operation, controlling the first display area of the folding screen to display the third interface, and the interface displayed in the second display area remains unchanged, that is, the second display area still displays the second interface.
[0041] In combination with the third aspect, in another possible design method, the method of the embodiment of the present application may also include: when the folding screen is in the unfolded state, receiving a second operation of the user on the second interface displayed in the second display area, the second operation is used to trigger the second display area to display the fourth interface; in response to the second operation, controlling the second display area of the folding screen to display the fourth interface, and the interface displayed in the first display area remains unchanged, that is, the first display area still displays the third interface.
[0042] In summary, in the embodiment of the present application, when the first display area and the second display area of the folding screen display different interfaces, the first display area and the second display area of the folding screen can respectively receive and respond to user operations.
[0043] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a folding screen, a memory, and one or more processors. The folding screen can be folded to form at least two screens, and the at least two screens include a first screen and a second screen. When the folding screen is in a folded state, the first screen and the second screen are opposite to each other. The folding screen, the memory, and the processor are coupled. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes: the processor is used to control the first screen to display a first interface when the folding screen is in a folded state; the processor is also used to control the first display area of the folding screen to display the first interface and the second display area of the folding screen to display the second interface in response to the folding screen changing from a folded state to an unfolded state; wherein the second display area does not overlap with the first display area; the second interface is different from the first interface.
[0044] In combination with the fourth aspect, in one possible design method, the above-mentioned processor is also used to control the first screen to display the first interface or the second interface in response to the folding screen changing from an unfolded state to a folded state.
[0045] It should be noted that the first interface and the second interface described in the fourth aspect of the present application and any possible design thereof may refer to the description of the second interface in the first aspect and any possible design thereof, and the embodiments of the present application will not be repeated here.
[0046] In combination with the fourth aspect, in another possible design method, the above-mentioned processor is also used to receive a first operation of the user on the first interface displayed in the first display area when the folding screen is in the unfolded state, and the first operation is used to trigger the first display area to display the third interface; the processor is also used to control the first display area of the folding screen to display the third interface and the second display area to display the second interface in response to the first operation.
[0047] In combination with the fourth aspect, in another possible design method, the above-mentioned processor is also used to receive a second operation of the user on the second interface displayed in the second display area when the folding screen is in the unfolded state, and the second operation is used to trigger the second display area to display the fourth interface; the processor is also used to control the second display area of the folding screen to display the fourth interface and the first display area to display the third interface in response to the second operation.
[0048] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a folding screen, a memory, and one or more processors. The folding screen can be folded to form at least two screens, and the at least two screens include a first screen and a second screen. When the folding screen is in a folded state, the first screen and the second screen are opposite to each other. The folding screen, the memory, and the processor are coupled. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes: the processor is used to control the first screen to display a first interface when the folding screen is in a folded state; the processor is also used to control the first display area and the second display area of the folding screen as a whole to display the first interface in the center in response to the folding screen changing from a folded state to an unfolded state; wherein the second display area does not overlap with the first display area; the processor is also used to receive a first operation of the user on the first interface, and the first operation is used to trigger the folding screen to display the second interface; the processor is also used to control the first display area of the folding screen to display the first interface and the second display area to display the second interface in response to the first operation.
[0049] In combination with the fifth aspect, in one possible design method, the above-mentioned processor is also used to control the first screen to display the first interface or the second interface in response to the folding screen changing from an unfolded state to a folded state.
[0050] In combination with the fifth aspect, in another possible design method, the above-mentioned processor is also used to receive a second operation of the user on the first interface displayed in the first display area when the folding screen is in the unfolded state, and the second operation is used to trigger the first display area to display the third interface; the processor is also used to control the first display area of the folding screen to display the third interface and the second display area to display the second interface in response to the first operation.
[0051] In combination with the fifth aspect, in another possible design method, the above-mentioned processor is also used to receive a third operation of the user on the second interface displayed in the second display area when the folding screen is in the unfolded state, and the second operation is used to trigger the second display area to display the fourth interface; the processor is also used to control the second display area of the folding screen to display the fourth interface and the first display area to display the third interface in response to the third operation.
[0052] In a sixth aspect, an embodiment of the present application provides an electronic device, which includes a folding screen, a memory, and one or more processors. The folding screen can be folded to form at least two screens, and the at least two screens include a first screen and a second screen. When the folding screen is in a folded state, the first screen and the second screen are opposite. A third screen is provided on the back of the first screen; the folding screen, the third screen, the memory, and the processor are coupled. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes: the processor is used to control the third screen to display a first interface when the folding screen is in a folded state; the processor is also used to control the first display area of the folding screen to display the first interface and the second display area of the folding screen to display the second interface in response to the folding screen changing from a folded state to an unfolded state; wherein the second display area does not overlap with the first display area; the second interface is different from the first interface.
[0053] In combination with the sixth aspect, in one possible design method, the above-mentioned processor is also used to control the third screen to display the first interface or the second interface in response to the folding screen changing from an unfolded state to a folded state.
[0054] It should be noted that the first interface and the second interface described in the sixth aspect of the present application and any possible design thereof may refer to the description of the second interface in the third aspect and any possible design thereof, and the embodiments of the present application will not be repeated here.
[0055] It should be noted that the first display area, the second display area, the unfolded state and the folded state described in the second to sixth aspects of the present application and any possible design methods thereof can refer to the relevant introduction in the first aspect and any possible design method thereof, and the embodiments of the present application will not be repeated here.
[0056] In the seventh aspect, the embodiment of the present application provides a method for displaying an application, which can be applied to an electronic device, and the method includes: when the display screen of the electronic device is in a first state, controlling the display screen to display the main interface of the electronic device, the main interface including the icon of the first application; receiving a first operation of the user on the icon of the first application, the first operation is used to trigger the display screen to display the first interface of the first application; in response to the first operation, if the first interface is the preset homepage of the first application, controlling the first display area of the display screen to display the first interface, and controlling the second display area of the display screen to display the second interface of the first application. The second interface is a related page configured in pair with the preset homepage; the second display area does not overlap with the first display area.
[0057] The first state is a horizontal screen state. Alternatively, the display screen is a folding screen, and the first state is an unfolded state. The unfolded state is a state in which the angle between the first screen and the second screen of the folding screen is greater than or equal to a preset angle threshold; the horizontal screen state is a state in which the angle between the long side of the display screen and the horizontal plane is less than a preset value.
[0058] In an embodiment of the present application, when the electronic device can display the main interface in a horizontal state or an expanded state, in response to a first operation of the user on the icon of the first application, it can be determined whether the first interface displayed by the electronic device triggered by the first operation is the preset homepage (i.e., main Page) of the first application. If the first interface is the main Page of the first application, the electronic device can display the main Page of the first application and the related pages (i.e., related Pages) configured in pairs with the main Page in a dual window. In this way, the electronic device in a horizontal state or an expanded state can display the two interfaces of the first application on the display screen at the same time, which can make the display content of the display screen richer, improve the utilization rate of the display screen, and enhance the user's visual experience.
[0059] In an eighth aspect, an embodiment of the present application provides a method for displaying an application, which can be applied to an electronic device, and the method comprises: when the display screen of the electronic device is in a first state, controlling the display screen to display a first interface of a first application; in response to the display screen changing from the first state to the second state, if the first interface is a preset homepage (i.e., mainPage) of the first application, controlling the first display area of the display screen to display the first interface, and controlling the second display area of the display screen to display the second interface of the first application; wherein the second interface is a related page (i.e., related Page) configured in pair with the preset homepage; the second display area does not overlap with the first display area.
[0060] Among them, the first state is the portrait state, and the second state is the landscape state. The landscape state is a state where the angle between the long side of the display screen and the horizontal plane is less than a preset value, and the portrait state is a state where the angle between the long side of the display screen and the horizontal plane is greater than or equal to a preset value. Alternatively, the display screen is a folding screen, the first state is the folding state, and the second state is the unfolding state; the unfolding state is a state where the angle between the first screen and the second screen of the folding screen is greater than or equal to a preset angle threshold, and the folding state is a state where the angle between the first screen and the second screen is less than a preset angle threshold.
[0061] In an embodiment of the present application, the electronic device displays the first interface of the first application in the first state. In response to the electronic device changing from the first state to the second state, the electronic device can determine whether the first interface displayed by the electronic device triggered by the first operation is the main page of the first application. If the first interface is the main page of the first application, the electronic device can display the main page of the first application and the related page configured in pair with the main page in a dual window. In this way, the electronic device in the horizontal screen state or the expanded state can display the two interfaces of the first application on the display screen at the same time, which can make the display content of the display screen richer, improve the utilization rate of the display screen, and enhance the user's visual experience.
[0062] In the ninth aspect, an embodiment of the present application provides a method for displaying an application, which can be applied to an electronic device. The display screen of the electronic device is in a horizontal screen state, and the horizontal screen state is a state in which the angle between the long side of the display screen and the horizontal plane is less than a preset value. Alternatively, the display screen of the electronic device is a folding screen, and the display screen is in an unfolded state, and the unfolded state is a state in which the angle between the first screen and the second screen of the folding screen is greater than or equal to a preset angle threshold. The method may include: controlling the display screen to display the interface of the second application; receiving a first operation of the user on the interface of the second application, the first operation is used to trigger the display screen to display the first interface of the first application; in response to the first operation, if the first interface is the preset homepage (i.e., mainPage) of the first application, controlling the first display area of the display screen to display the first interface, and controlling the second display area of the display screen to display the second interface of the first application. Among them, the second interface is a related page (i.e., related Page) configured in pair with the preset homepage; the second display area does not overlap with the first display area.
[0063] In an embodiment of the present application, the electronic device displays the interface of the second application in a first state; in response to a first operation for triggering the electronic device to call the first application to display the first interface, the electronic device can determine whether the first interface triggered by the first operation to be displayed by the electronic device is the main Page of the first application. If the first interface is the main Page of the first application, the electronic device can display the main Page of the first application and the relatedPage configured in pair with the main Page in a dual window. In this way, the electronic device in a horizontal or expanded state can display the two interfaces of the first application on the display screen at the same time, which can make the display content of the display screen richer, improve the utilization rate of the display screen, and enhance the user's visual experience.
[0064] In the tenth aspect, an embodiment of the present application provides a method for displaying an application, which can be applied to an electronic device. The display screen of the electronic device is in a horizontal screen state, and the horizontal screen state is a state in which the angle between the long side of the display screen and the horizontal plane is less than a preset value. Alternatively, the display screen of the electronic device is a folding screen, and the display screen is in an unfolded state, and the unfolded state is a state in which the angle between the first screen and the second screen of the folding screen is greater than or equal to a preset angle threshold. The method may include: controlling the first display area of the display screen to display the first interface of the first application, and controlling the second display area of the display screen to display the interface of the second application; receiving a first operation of the user, the first operation is used to trigger the display screen to exit the display interface of the second application and only display the first interface; in response to the first operation, if the first interface is the preset homepage (i.e., main Page) of the first application, controlling the first display area of the display screen to display the first interface, and controlling the second display area of the display screen to display the second interface of the first application. Among them, the second interface is a related page (i.e., related Page) configured in pairs with the preset homepage; the second display area does not overlap with the first display area.
[0065] In an embodiment of the present application, the electronic device displays the first interface of the first application and the interface of the second application in dual windows in a first state; in response to a first operation for triggering the electronic device to exit displaying the interface of the second application and only display the first interface, the electronic device can determine whether the first interface displayed by the electronic device triggered by the first operation is the mainPage of the first application. If the first interface is the main Page of the first application, the electronic device can display the main Page of the first application and the related Page configured in pair with the main Page in dual windows. In this way, the electronic device in a horizontal screen state or an expanded state can display the two interfaces of the first application on the display screen at the same time, which can make the display content of the display screen richer, improve the utilization rate of the display screen, and enhance the user's visual experience.
[0066] In combination with any one of the seventh to tenth aspects above, in a possible design mode, the preset homepage is pre-configured in a configuration file of the installation package of the first application. Alternatively, the preset homepage is the homepage of the first application. Alternatively, the preset homepage is an interface that satisfies a preset condition among multiple interfaces of the first application, and the preset condition is: including preset interface features, and the number of preset interface features is greater than a preset number threshold, and the preset interface features include preset components or mini-programs.
[0067] In combination with any one of the seventh to tenth aspects above, in another possible design mode, the above-mentioned related page is pre-configured in a configuration file of an installation package of the first application. Alternatively, the related page is an interface of a lower level than the home page. The related page is set by the user in the electronic device.
[0068] In combination with any one of the above-mentioned aspects 7 to 10, in another possible design method, the above-mentioned method may also include: when the display screen is in the first state or the second state, the third interface of the first application is displayed; wherein the first state is the horizontal screen state, and the second state is the vertical screen state; or, the first state is the expanded state, and the second state is the folded state; receiving a preset gesture input by the user on the third interface, the preset gesture is used to configure the relevant page of the first application; in response to the preset gesture, configuring the third interface to be the relevant page of the first application.
[0069] In combination with any aspect of the seventh to tenth aspects above, in another possible design method, after controlling the first display area of the display screen to display the first interface and controlling the second display area of the display screen to display the second interface of the first application, the method may also include: in response to the user's second operation on the first interface, the second operation includes clicking the Back key in the navigation bar of the electronic device, controlling the display screen to display the main interface; wherein, in response to the second operation on the first interface, the electronic device does not run the first application in the background; in response to the user's second operation on the second interface, controlling the display screen to display the main interface; wherein, in response to the second operation on the second interface, the electronic device runs the first application in the background.
[0070] In combination with any one of the seventh to tenth aspects, in another possible design, after controlling the first display area of the display screen to display the first interface and controlling the second display area of the display screen to display the second interface of the first application, the method may further include: in response to a second operation of the user on the first interface or the second interface, the second operation includes a click operation on the Back key in the navigation bar of the electronic device, controlling the display screen to display the main interface. In response to the second operation on the first interface, the electronic device runs the first application in the background.
[0071] In the eleventh aspect, an embodiment of the present application provides an electronic device, which includes a display screen, a memory, and one or more processors. The display screen, the memory, and the processor are coupled. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device performs the following operations: the processor is used to control the display screen to display the main interface of the electronic device when the display screen is in a first state. The main interface includes an icon of a first application. The processor is also used to receive a first operation of the user on the icon of the first application, and the first operation is used to trigger the display screen to display the first interface of the first application; the processor is also used to respond to the first operation, if the first interface is the preset homepage of the first application, to control the first display area of the display screen to display the first interface, and control the second display area of the display screen to display the second interface of the first application; wherein the second interface is a related page configured in pair with the preset homepage; the second display area does not overlap with the first display area;
[0072] It should be noted that the detailed description of the first state, horizontal screen state and expanded state of the eleventh aspect, as well as the beneficial effects that can be achieved by the electronic device, can be referred to the detailed description in the seventh aspect, and the embodiments of the present application will not be repeated here.
[0073] In the twelfth aspect, an embodiment of the present application provides an electronic device, which includes a display screen, a memory, and one or more processors. The display screen, the memory, and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device performs the following operations: the processor is used to control the display screen to display the first interface of the first application when the display screen is in the first state. The processor is also used to control the first display area of the display screen to display the first interface and the second display area of the display screen to display the second interface of the first application in response to the display screen changing from the first state to the second state if the first interface is the preset homepage of the first application. Among them, the second interface is a related page configured in pair with the preset homepage; the second display area does not overlap with the first display area.
[0074] It should be noted that the detailed description of the first state, the second state, the horizontal screen state, the vertical screen state, the folded state and the unfolded state of the twelfth aspect, as well as the beneficial effects that can be achieved by the electronic device, can be referred to the detailed description in the eighth aspect, and the embodiments of the present application will not be repeated here.
[0075] In a thirteenth aspect, an embodiment of the present application provides an electronic device, which includes a display screen, a memory, and one or more processors. The display screen, the memory, and the processor are coupled. The display screen of the electronic device is in a horizontal state or an expanded state. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device performs the following operations: a processor is used to control the display screen to display the interface of the second application. The processor is also used to receive a first operation of the user on the interface of the second application, and the first operation is used to trigger the display screen to display the first interface of the first application. The processor is also used to respond to the first operation, if the first interface is the preset homepage of the first application, to control the first display area of the display screen to display the first interface, and to control the second display area of the display screen to display the second interface of the first application. Among them, the second interface is a related page configured in pair with the preset homepage; the second display area does not overlap with the first display area.
[0076] It should be noted that the detailed description of the horizontal screen state and the expanded state of the thirteenth aspect can refer to the detailed description in the ninth aspect, as well as the beneficial effects that can be achieved by the electronic device, and the embodiments of the present application will not be repeated here.
[0077] In a fourteenth aspect, an embodiment of the present application provides an electronic device, which includes a display screen, a memory, and one or more processors. The display screen, the memory, and the processor are coupled. The display screen of the electronic device is in a horizontal screen state or an expanded state. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device performs the following operations: the processor controls the first display area of the display screen to display the first interface of the first application, and controls the second display area of the display screen to display the interface of the second application. The processor is also used to receive a first operation of the user, and the first operation is used to trigger the display screen to exit the interface of the second application and only display the first interface. The processor is also used to respond to the first operation, if the first interface is the preset homepage of the first application, control the first display area of the display screen to display the first interface, and control the second display area of the display screen to display the second interface of the first application. Wherein, the second interface is a related page configured in pair with the preset homepage; the second display area does not overlap with the first display area.
[0078] It should be noted that the detailed description of the horizontal screen state and the expanded state of the fourteenth aspect can refer to the detailed description in the tenth aspect, as well as the beneficial effects that can be achieved by the electronic device, and the embodiments of the present application will not be repeated here.
[0079] For a detailed description of the preset homepage and related pages described in any one of aspects 11 to 14, reference may be made to the description of the possible design methods in any one of aspects 7 to 10 mentioned above, and the embodiments of the present application will not be repeated here.
[0080] In combination with any one of the eleventh to fourteenth aspects, in a possible design mode, the processor is further used to control the display screen to display a third interface of the first application when the display screen is in the first state or the second state. The processor is further used to receive a preset gesture input by the user on the third interface, and the preset gesture is used to configure a related page of the first application. The processor is also used to configure the third interface to be a related page of the first application in response to the preset gesture.
[0081] In combination with any aspect from the eleventh aspect to the fourteenth aspect, in another possible design method, the above-mentioned processor is also used to control the display screen to display the first interface in the first display area and the second interface in the second display area, and then, in response to the user's second operation on the first interface or the second interface, control the display screen to display the main interface.
[0082] The second operation includes clicking a Back button in a navigation bar of the electronic device. In response to the second operation on the first interface, the processor does not run the first application in the background. In response to the second operation on the second interface, the processor runs the first application in the background.
[0083] In combination with any one of the eleventh to fourteenth aspects, in another possible design mode, the processor is further used to control the display screen to display the first interface in the first display area and the second interface in the second display area, and then, in response to a second operation of the user on the first interface or the second interface, control the display screen to display the main interface. In response to the second operation, the processor runs the first application in the background. The second operation includes a click operation on the Back key in the navigation bar of the electronic device.
[0084] In the fifteenth aspect, an embodiment of the present application provides a device for displaying an application, which can be applied to an electronic device including a folding screen, and the device is used to execute the method described in the first aspect, the second aspect, the third aspect, the seventh aspect, the eighth aspect, the ninth aspect or the tenth aspect and any possible design method thereof.
[0085] In the sixteenth aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device including a folding screen. The chip system includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by lines. The interface circuit is used to receive a signal from a memory of an electronic device and send the signal to the processor, where the signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the electronic device executes the method described in the first aspect, the second aspect, the third aspect, the seventh aspect, the eighth aspect, the ninth aspect or the tenth aspect and any possible design thereof.
[0086] In the seventeenth aspect, an embodiment of the present application provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method described in the first aspect, the second aspect, the third aspect, the seventh aspect, the eighth aspect, the ninth aspect or the tenth aspect and any possible design method thereof.
[0087] In the eighteenth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the first aspect, the second aspect, the third aspect, the seventh aspect, the eighth aspect, the ninth aspect or the tenth aspect and any possible design thereof.
[0088] It can be understood that the beneficial effects that can be achieved by the electronic device described in any one of the fourth, fifth, sixth, eleventh to fourteenth aspects and any possible design methods provided above, the device described in the fifteenth aspect, the chip system described in the sixteenth aspect, the computer storage medium described in the seventeenth aspect, and the computer program product described in the eighteenth aspect can be referred to the beneficial effects in the first, second, third, seventh, eighth, ninth or tenth aspect and any possible design methods, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0089] Figure 1 A schematic diagram of a folding screen provided in an embodiment of the present application;
[0090] Figure 2 A schematic diagram of another folding screen provided in an embodiment of the present application;
[0091] Figure 3 This is a schematic diagram of an example of a folding screen display application interface in the prior art;
[0092] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0093] Figure 5A A schematic diagram of the principle of calculating the angle α between screen A and screen B provided in an embodiment of the present application;
[0094] Figure 5B A schematic diagram of an example of a geographic coordinate system provided in an embodiment of the present application;
[0095] Figure 6 A schematic diagram of an example of software architecture of an electronic device provided in an embodiment of the present application;
[0096] Figure 7A flow chart of a method for displaying an application provided in an embodiment of the present application;
[0097] Figure 8 A schematic diagram of an example of an application interface displayed on a folding screen provided in an embodiment of the present application;
[0098] Fig. 9 A schematic diagram of an example of an application interface displayed on another folding screen provided in an embodiment of the present application;
[0099] Fig. 10A A schematic diagram of an example of a display area provided in an embodiment of the present application;
[0100] Fig. 10B A schematic diagram of an example of an application interface displayed on another folding screen provided in an embodiment of the present application;
[0101] Fig.11 A schematic diagram of an example of an application interface displayed on another folding screen provided in an embodiment of the present application;
[0102] Fig.12 An example schematic diagram of a first record stack provided in an embodiment of the present application;
[0103] Fig.13 A schematic diagram of an example of an application interface displayed on another folding screen provided in an embodiment of the present application;
[0104] Fig.14 A schematic diagram of another example of an application interface provided in an embodiment of the present application;
[0105] Fig.15 A schematic diagram of an example of an application interface displayed on another folding screen provided in an embodiment of the present application;
[0106] Fig.16 A schematic diagram of an example of an application interface displayed on another folding screen provided in an embodiment of the present application;
[0107] Fig.17 A schematic diagram of an example of an application interface displayed on another folding screen provided in an embodiment of the present application;
[0108] Fig.18 A schematic diagram of an example of an application interface displayed on another folding screen provided in an embodiment of the present application;
[0109] Fig.19 A schematic diagram of an example of a setting interface for a display area provided in an embodiment of the present application;
[0110] Fig. 20 A schematic diagram of an example of a setting interface for a display area provided in an embodiment of the present application;
[0111] Fig.21A schematic diagram of an example of a setting interface for a display area provided in an embodiment of the present application;
[0112] Fig.22A A schematic diagram of an example of an application interface displayed on another folding screen provided in an embodiment of the present application;
[0113] Fig. 22B An example schematic diagram of an application interface displayed on a non-folding screen provided in an embodiment of the present application;
[0114] Fig.23A A schematic diagram of another software architecture example of an electronic device provided in an embodiment of the present application;
[0115] Fig. 23B A schematic diagram of the calling principle of a preset page and related pages provided in an embodiment of the present application;
[0116] Fig.24 A schematic diagram of a horizontal screen state and a vertical screen state provided in an embodiment of the present application;
[0117] Fig.25 A flowchart of another method for displaying an application provided in an embodiment of the present application;
[0118] Fig.26 An example schematic diagram of an application interface displayed by an electronic device in a horizontal screen state provided in an embodiment of the present application;
[0119] Fig. 27 A schematic diagram of an example of an application interface displayed on a folding screen in an unfolded state provided in an embodiment of the present application;
[0120] Fig.28 A flowchart of another method for displaying an application provided in an embodiment of the present application;
[0121] Fig.29 An example schematic diagram of an application interface displayed by an electronic device when the vertical screen state is changed to the horizontal screen state provided in an embodiment of the present application;
[0122] Fig.30 An example schematic diagram of an application interface displayed on a folding screen when the folded state is changed to an unfolded state provided in an embodiment of the present application;
[0123] Fig.31A A flowchart of another method for displaying an application provided in an embodiment of the present application;
[0124] Fig.31B A schematic diagram of an example of an application interface displayed on a folding screen in an unfolded state provided in an embodiment of the present application;
[0125] Fig.32A flowchart of another method for displaying an application provided in an embodiment of the present application;
[0126] Fig.33 A schematic diagram of an example of an application interface displayed on a folding screen in an unfolded state provided in an embodiment of the present application;
[0127] Fig.34A A flowchart of a method for displaying an application provided in an embodiment of the present application;
[0128] Fig.34B A principle block diagram of a method for displaying an application provided in an embodiment of the present application;
[0129] Fig.35 A schematic diagram of an example of an application interface displayed on a folding screen in an unfolded state provided in an embodiment of the present application;
[0130] Fig.36 A schematic diagram of an example interface of a setting application related page provided in an embodiment of the present application;
[0131] Fig.37 A schematic diagram of another example interface of a related page of a setting application provided in an embodiment of the present application;
[0132] Fig.38 A schematic diagram of another example interface of a related page of a setting application provided in an embodiment of the present application;
[0133] Fig.39 A schematic diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0134] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0135] The embodiment of the present application provides a method for displaying an application, which can be applied to an electronic device with a folding screen. The folding screen can be folded to form at least two screens. For example, the folding screen can be folded along a folding edge or a folding axis to form a first screen and a second screen. That is, the at least two screens include the first screen and the second screen.
[0136] The folding screens in the embodiments of the present application can be divided into two categories. One is a folding screen that folds outward (referred to as an outward-folding folding screen), and the other is a folding screen that folds inward (referred to as an inward-folding folding screen). Among them, take the folding screen that can be folded to form a first screen and a second screen as an example. After the outward-folding folding screen is folded, the first screen and the second screen are opposite to each other. After the inward-folding folding screen is folded, the first screen and the second screen are opposite to each other.
[0137] For example, see Figure 1 , which shows a schematic diagram of the product form of an electronic device 100 with an outward folding screen provided in an embodiment of the present application. Figure 1 (a) is a schematic diagram of the shape of the outward folding screen when it is fully unfolded. The outward folding screen can be folded along the folding edge according to Figure 1 Folding the directions 101a and 101b shown in (a) can form Figure 1 The A screen (i.e., the first screen) and the B screen (i.e., the second screen) shown in (b) of FIG. 1 can be folded along the folding edge according to Figure 1 The direction 102a and 102b shown in (b) are further folded to form Figure 1 The folded screen is shown in (c) of FIG. Figure 1 As shown in (c), after the folding screen of the electronic device 100 is completely folded, screen A and screen B face each other and are visible to the user.
[0138] It can be understood that for an electronic device with an outward folding screen, when the folding screen is in a folded state, the interface can be displayed on the first screen or the second screen; when the folding screen is in an unfolded state, the interface can be displayed on the first screen and the second screen. The description of the unfolded state and the folded state of the folding screen can refer to the description in the following embodiments, which will not be repeated here.
[0139] For another example, please refer to Figure 2 , which shows a schematic diagram of the product form of an electronic device 100 with an inward folding screen provided by an embodiment of the present application. Figure 2 (a) is a schematic diagram of the inward folding screen when it is fully unfolded. The inward folding screen can be folded along the folding edge according to Figure 2 The direction 201a and 201b shown in (a) are folded to form Figure 2 The A screen (i.e., the first screen) and the B screen (i.e., the second screen) shown in (b) of FIG. 1 can be folded along the folding edge according to Figure 2 The direction 202a and 202b shown in (b) are further folded to form Figure 2 The folded screen is shown in (c) of FIG. Figure 2As shown in (c), after the folding screen of the electronic device 100 is completely folded, screen A and screen B are opposite to each other and are invisible to the user. Figure 2 The black line 203 shown in (c) is a line on the contact surface between the A screen and the B screen.
[0140] It should be noted that a display screen may be provided on the back of the first screen or the second screen of the inward folding screen provided in the embodiment of the present application, which may be referred to as a third screen. Figure 2 As shown in (b) in FIG. 1 , a C screen (i.e., the third screen) can be set on the back of the A screen (i.e., the first screen). Figure 2 As shown in (c), after the inner folding screen is completely folded, the C screens are opposite to each other and visible to the user. It can be understood that for an electronic device with such an inner folding screen, when the folding screen is in a folded state, the interface can be displayed on the third screen; when the folding screen is in an unfolded state, the interface can be displayed on the first screen and the second screen.
[0141] Generally speaking, the angle α between the first screen and the second screen of the folding screen (including the inward-folding folding screen and the outward-folding folding screen) has a value range of [0°, 180°]. In an embodiment of the present application, if α∈[0°, P], the electronic device can determine that the folding screen is in a folded state; if α∈(P, 180°], the electronic device can determine that the folding screen is in an unfolded state. Alternatively, if α∈[0°, P), the electronic device can determine that the folding screen is in a folded state; if α∈[P, 180°], the electronic device can determine that the folding screen is in an unfolded state. Among them, P is a preset angle threshold. P can be determined based on the usage habits of a large number of users using folding screens; or, P can be set by the user in the electronic device.
[0142] In some embodiments, according to the usage habits of most users, when the angle α between the first screen and the second screen is greater than 90°, the user is more likely to use the first screen and the second screen as a whole (i.e., as a complete display screen). Therefore, the preset angle threshold P in the embodiment of the present application may be greater than 90°. The value range of the preset angle threshold P may be (90°, 180°). For example, the preset angle threshold P may be 100°, 120°, 135°, 140°, 145°, or 150°, etc.
[0143] It should be noted that the at least two screens formed after the folding screen (including the inward-folding folding screen and the outward-folding folding screen) in the embodiment of the present application is folded can be multiple independent screens, or a complete screen with an integrated structure, which is just folded into at least two parts.
[0144] For example, the folding screen may be a flexible folding screen. The flexible folding screen includes a folding edge made of a flexible material. Part or all of the flexible folding screen is made of a flexible material. The at least two screens formed after the flexible folding screen is folded are a complete screen of an integrated structure, but are folded to form at least two parts.
[0145] For another example, the folding screen may be a multi-screen folding screen. The multi-screen folding screen may include multiple (two or more) screens. The multiple screens are multiple separate display screens. The multiple screens may be connected in sequence through folding axes. Each screen may rotate around the folding axis connected thereto to achieve folding of the multi-screen folding screen.
[0146] in, Figure 1 and Figure 2 In the embodiment of the present application, the folding screen is described by taking the folding screen being a flexible folding screen as an example. In addition, in the subsequent embodiments of the present application, the folding screen is also described by taking the folding screen being a flexible folding screen as an example.
[0147] In order to solve the problem that the interface layout of an electronic device may be disordered when displaying an application interface on a folding screen in an unfolded state, in some solutions, the electronic device may not change the interface layout of the application and display the application interface in a partial area of the unfolded folding screen. For example, the electronic device 100 may adopt Figure 3 The display mode shown shows the home page 301 of the "Taobao" application. Figure 3 As shown, the homepage of the "Taobao" application is displayed in the left half of the folding screen.
[0148] Although the use Figure 3 The display method shown does not require the interface layout of the application to be adapted to the unfolded folding screen when the application interface is displayed on the unfolded folding screen, which can avoid the disorder of the interface layout. However, because the display area of the unfolded folding screen is larger and the display area occupied by the application interface is smaller, the display content of the folding screen is relatively simple, and the display area of the folding screen cannot be fully utilized. In addition, it will affect the user's visual experience.
[0149] In some other solutions, some applications can design multiple interface layouts. For example, application 1 may include: an interface layout adapted to a display screen with an aspect ratio of 18:9, and an interface layout adapted to a display screen with an aspect ratio of 1:1. However, the application needs to be restarted when switching the interface layout. For example, assuming that when the folding screen is folded, the aspect ratio of the first screen is 18:9, and the aspect ratio of the unfolded folding screen is 1:1. When the folding screen is folded, the first screen displays interface 1 of application 1 (not application 1 is the home page), and the interface layout of application 1 is adapted to the aspect ratio of 18:9. In response to the user's operation of unfolding the folding screen, the electronic device needs to restart application 1 to adapt the interface layout of application 1 to the aspect ratio of 1:1. After the application is restarted, the electronic device displays the home page of the application, rather than the interface displayed by the electronic device when the folding screen is folded (such as interface 1), which affects the user experience.
[0150] In order to solve the above problems, an embodiment of the present application provides a method for displaying an application. Take the above-mentioned outward folding screen as an example. When the folding screen is in a folded state, the first screen can display the first interface of the first application; in response to the user's operation of unfolding the folding screen (that is, the folding screen changes from a folded state to an unfolded state), the first display area of the folding screen (such as the display area corresponding to the first screen) can display the first interface, and the second display area (such as the display area corresponding to the second screen) can display the second interface. The second interface can be the interface of the first application or the interface of other applications.
[0151] It can be understood that since the aspect ratio (i.e., height-to-width ratio) of the first and second screens of the foldable screen is similar to that of a normal non-foldable screen, both the first and second screens can adapt to the interface layout of the launched application. In this way, in response to the user's operation of unfolding the foldable screen, the electronic device can display the application interface normally without restarting the application.
[0152] Moreover, the unfolded folding screen can display the first interface and the second interface at the same time, which can make the display content of the folding screen richer, improve the utilization rate of the folding screen, and enhance the user's visual experience.
[0153] Exemplarily, the electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, and the like including the above-mentioned folding screen. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.
[0154] The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0155] Please refer to Figure 4 , is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. Figure 4 As shown, the electronic device 100 may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc. Among them, the sensor module 480 may include a pressure sensor 480A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, an ambient light sensor 480L, a bone conduction sensor 480M, etc.
[0156] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0157] The processor 410 may include one or more processing units, for example, the processor 410 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0158] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0159] The processor 410 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may store instructions or data that the processor 410 has just used or cyclically used. If the processor 410 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.
[0160] In some embodiments, the processor 410 may include one or more interfaces. The interface 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.
[0161] It is understandable that the interface connection relationship between the modules shown in this embodiment is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0162] The charging management module 440 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 440 may receive charging input from a wired charger through the USB interface 430. In some wireless charging embodiments, the charging management module 440 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 440 is charging the battery 442, it may also power the electronic device through the power management module 441.
[0163] The power management module 441 is used to connect the battery 442, the charging management module 440 and the processor 410. The power management module 441 receives input from the battery 442 and / or the charging management module 440, and supplies power to the processor 410, the internal memory 421, the external memory, the display screen 494, the camera 493, and the wireless communication module 460. The power management module 441 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 441 can also be set in the processor 410. In other embodiments, the power management module 441 and the charging management module 440 can also be set in the same device.
[0164] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 450, the wireless communication module 460, the modem processor and the baseband processor.
[0165] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0166] The mobile communication module 450 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 450 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 450 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 450 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 450 can be set in the processor 410. In some embodiments, at least some of the functional modules of the mobile communication module 450 can be set in the same device as at least some of the modules of the processor 410.
[0167] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate 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 the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 470A, a receiver 470B, etc.), or displays an image or video through a display screen 494. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 410 and be set in the same device as the mobile communication module 450 or other functional modules.
[0168] The wireless communication module 460 can provide wireless communication solutions 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), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 460 can be one or more devices integrating at least one communication processing module. The wireless communication module 460 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 410. The wireless communication module 460 can also receive the signal to be sent from the processor 410, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0169] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 450, and the antenna 2 is coupled to the wireless communication module 460, so that the electronic device 100 can communicate with the network and other devices through 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 technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0170] The electronic device 100 implements the display function through a GPU, a display screen 494, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 410 may include one or more GPUs, which execute program instructions to generate or change display information.
[0171] The display screen 494 is used to display images, videos, etc. The display screen 494 is the above-mentioned outward folding screen. Alternatively, the display screen 494 may include the above-mentioned foldable first screen (for example, Figure 2 A screen as shown in (b) in FIG. 1 ) and a second screen (eg, Figure 2 The inner folding screen of the B screen shown in (b) of FIG. 1 ), and the third screen (for example, Figure 2 (c) as shown in the C panel.
[0172] The display screen 494 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc.
[0173] The electronic device 100 can realize the shooting function through ISP, camera 493, video codec, GPU, display screen 494 and application processor.
[0174] ISP is used to process the data fed back by camera 493. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 493.
[0175] The camera 493 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 493, where N is a positive integer greater than 1.
[0176] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0177] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0178] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0179] The external memory interface 420 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 410 through the external memory interface 420 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0180] The internal memory 421 can be used to store computer executable program codes, which include instructions. The processor 410 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 421. For example, in an embodiment of the present application, the processor 410 can display the corresponding display content on the display screen 484 (i.e., the folding screen) in response to the user's first operation or second operation on the display screen 494 (i.e., the folding screen) by executing the instructions stored in the internal memory 421. The internal memory 421 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data (such as audio data, a phone book, etc.) created during the use of the electronic device 100, etc. In addition, the internal memory 421 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0181] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 470, the speaker 470A, the receiver 470B, the microphone 470C, the headphone jack 470D, and the application processor.
[0182] The audio module 470 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 470 can also be used to encode and decode audio signals. In some embodiments, the audio module 470 can be set in the processor 410, or some functional modules of the audio module 470 are set in the processor 410. The speaker 470A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 470A. The receiver 470B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, the voice can be answered by placing the receiver 470B close to the human ear. The microphone 470C, also known as the "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message or when the electronic device 100 needs to be triggered to perform certain functions through a voice assistant, the user can speak near the microphone 470C with the human mouth to input the sound signal into the microphone 470C. The electronic device 100 may be provided with at least one microphone 470C. In other embodiments, the electronic device 100 may be provided with two microphones 470C, which may not only collect sound signals but also realize noise reduction. In other embodiments, the electronic device 100 may be provided with three, four or more microphones 470C, which may collect sound signals, reduce noise, identify sound sources, realize directional recording functions, etc.
[0183] The earphone interface 470D is used to connect a wired earphone and can be a USB interface 430 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0184] The pressure sensor 480A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 480A can be set on the display screen 494. There are many types of pressure sensors 480A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 480A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 494, the electronic device 100 detects the touch operation intensity according to the pressure sensor 480A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 480A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0185] The gyroscope sensor 480B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 480B. The gyroscope sensor 480B can be used for anti-shake shooting. Exemplarily, when the shutter is pressed, the gyroscope sensor 480B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse motion to achieve anti-shake. The gyroscope sensor 480B can also be used for navigation and somatosensory game scenes. In an embodiment of the present application, the display screen 494 of the electronic device 100 can be folded to form multiple screens. Each screen may include a gyroscope sensor 480B for measuring the orientation of the corresponding screen (i.e., the direction vector of the orientation). The electronic device 100 can determine the angle between adjacent screens based on the angle change of the orientation of each screen measured.
[0186] It should be noted that, in the embodiment of the present application, the folding screen of the electronic device 100 (such as the display screen 494) can be folded to form multiple screens. Each screen may include a gyroscope sensor (such as the gyroscope sensor 480B) for measuring the orientation of the corresponding screen (i.e., the orientation vector). Figure 1 , the display screen 494 of the electronic device 100 can be folded to form screen A and screen B, then the screen A and the screen B both include a gyroscope sensor 480B, which is respectively used to measure the orientation of screen A and screen B. The electronic device 100 can determine the angle between adjacent screens based on the measured angular change of the orientation of each screen.
[0187] For example, the foldable screen of the electronic device 100 can be folded to form Figure 5A Screen A and screen B are shown. Screen A is provided with a gyro sensor A, and screen B is provided with a gyro sensor B. In the embodiment of the present application, the principle that gyro sensor A measures the orientation of screen A (i.e., the orientation direction vector), gyro sensor B measures the orientation of screen B (i.e., the orientation direction vector), and the principle that electronic device 100 calculates the angle α between screen A and screen B according to the orientation of screen A and the orientation of screen B are explained.
[0188] Among them, the coordinate system of the gyroscope sensor is the geographic coordinate system. Figure 5B As shown, the origin O of the geographic coordinate system is located at the point where the carrier (i.e., the device containing the gyroscope sensor, such as the electronic device 100) is located, the x-axis points to the east (E) along the local latitude, the y-axis points to the north (N) along the local meridian, and the z-axis points upward along the local geographic vertical, and forms a right-handed rectangular coordinate system with the x-axis and the y-axis. Among them, the plane formed by the x-axis and the y-axis is the local horizontal plane, and the plane formed by the y-axis and the z-axis is the local meridian plane. Therefore, it can be understood that the coordinate system of the gyroscope sensor is: with the gyroscope sensor as the origin O, the x-axis points east along the local latitude, the y-axis points north along the local meridian, and the z-axis points upward along the local geographic vertical (i.e., the opposite direction of the geographic vertical).
[0189] The electronic device uses the gyro sensor set in each screen to measure the direction vector of each screen in the coordinate system of the gyro sensor set in it. Figure 5A In the side view of the electronic device shown, the direction vector of the orientation of screen A in the coordinate system of gyroscope sensor A measured by the electronic device is vector z1, and the direction vector of the orientation of screen B in the coordinate system of gyroscope sensor B is vector z2. The electronic device uses formula (1): The angle θ between vector z1 and vector z2 can be calculated.
[0190] According to Figure 5A It can be seen that since vector z1 is perpendicular to screen A and vector z2 is perpendicular to screen B, the angle α between screen A and screen B can be obtained to be 180°-θ. That is, the electronic device can determine the angle α between screen A and screen B based on the measured direction vector of screen A in the coordinate system of gyroscope sensor A (i.e., vector z1) and the direction vector of screen B in the coordinate system of gyroscope sensor B (i.e., vector z2).
[0191] It should be noted that, although the positions of the gyro sensors set in screen A and screen B do not overlap, that is, the origins of the coordinate systems of the gyro sensors of screen A and screen B do not overlap, the x-axis, y-axis, and z-axis of the two coordinate systems are parallel, so it can be considered that the coordinate systems of the gyro sensors set in screen A and screen B are parallel. In this way, although vector z1 and vector z2 are not in the same coordinate system, because the axes of the two coordinate systems are parallel, the angle θ between vector z1 and vector z2 can still be calculated by the above formula (1).
[0192] In some embodiments, one or more other sensors may be used to measure the angle α between screen A and screen B. For example, an acceleration sensor may be provided in each screen of the folding screen. The electronic device 100 (such as the processor 410) may use the acceleration sensor to measure the motion acceleration of each screen when it is rotated; and then calculate the angle of rotation of one screen relative to another screen, that is, the angle α between screen A and screen B, based on the measured motion acceleration.
[0193] In other embodiments, the gyroscope sensor may be a virtual gyroscope sensor formed by the cooperation of other multiple sensors. The virtual gyroscope sensor may be used to calculate the angle between adjacent screens of the folding screen, that is, the angle α between screen A and screen B.
[0194] The air pressure sensor 480C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 480C to assist in positioning and navigation.
[0195] The magnetic sensor 480D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 480D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 480D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0196] The acceleration sensor 480E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device, and is applied to applications such as horizontal and vertical screen switching, pedometers, etc. It should be noted that in an embodiment of the present application, the display screen 494 of the electronic device 100 can be folded to form multiple screens. Each screen may include an acceleration sensor 480E for measuring the orientation of the corresponding screen (i.e., the direction vector of the orientation).
[0197] The distance sensor 480F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 480F to measure the distance to achieve fast focusing.
[0198] The proximity light sensor 480G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 480G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 480G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0199] The ambient light sensor 480L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 494 according to the perceived ambient light brightness. The ambient light sensor 480L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 480L can also cooperate with the proximity light sensor 480G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0200] The fingerprint sensor 480H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0201] The temperature sensor 480J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 480J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 480J exceeds a threshold, the electronic device 100 reduces the performance of the processor located near the temperature sensor 480J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 442 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 442 to avoid abnormal shutdown caused by low temperature.
[0202] The touch sensor 480K is also called a "touch panel". The touch sensor 480K can be set on the display screen 494, and the touch sensor 480K and the display screen 494 form a touch screen, also called a "touch screen". The touch sensor 480K is used to detect touch operations acting on or near it. The touch sensor can pass 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 the display screen 494. In other embodiments, the touch sensor 480K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 494.
[0203] The bone conduction sensor 480M can obtain a vibration signal. In some embodiments, the bone conduction sensor 480M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 480M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 480M can also be set in an earphone and combined into a bone conduction earphone. The audio module 470 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 480M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 480M to realize a heart rate detection function.
[0204] The key 490 includes a power key, a volume key, etc. The key 490 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0205] Motor 491 can generate vibration prompts. Motor 491 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 494, motor 491 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0206] Indicator 492 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0207] The SIM card interface 495 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 495 or pulling it out from the SIM card interface 495. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 495 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 495 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 495 can also be compatible with different types of SIM cards. The SIM card interface 495 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0208] The methods in the following embodiments can all be implemented in the electronic device 100 having the above hardware structure.
[0209] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0210] Figure 6 It is a software structure diagram of the electronic device 100 provided in an embodiment of the present application. The layered architecture can divide the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into three layers, from top to bottom, namely, the application layer (referred to as the application layer), the application framework layer (referred to as the framework layer), and the kernel layer (also called the driver layer).
[0211] The application layer can include a series of application packages. Figure 6 As shown, the application layer may include multiple application packages such as application 1 and application 2. For example, the application package may be an application such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and desktop launcher.
[0212] The framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 6As shown, the framework layer may include a window manager service (WMS) and an activity manager service (AMS), etc. Optionally, the framework layer may also include a content provider, a view system, a phone manager, a resource manager, a notification manager, etc. (not shown in the drawings).
[0213] Among them, the window manager WMS is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The activity manager AMS is responsible for managing the Activity, and is responsible for the startup, switching, scheduling of various components in the system, and the management and scheduling of applications. The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers. The kernel layer is the layer between hardware and software. The kernel layer can contain display drivers, input / output device drivers (for example, keyboards, touch screens, headphones, speakers, microphones, etc.), camera drivers, audio drivers, and sensor drivers.
[0214] Among them, when the user performs an input operation on the electronic device 100 (such as an operation to unfold the folding screen), the kernel layer can generate a corresponding input event (such as a folding screen unfolding event) according to the input operation, and report the event to the application framework layer. The activity management server AMS of the application framework layer sets the application's window mode (such as multi-window mode, single-window mode or full-screen mode) as well as the window position and size. The window management server WMS of the application framework layer draws the window according to the settings of AMS, and then sends the window data to the display driver of the kernel layer, and the display driver displays the corresponding application interface on the folding screen. Among them, when the folding screen of the electronic device 100 is in a folded state, the electronic device 100 uses full-screen mode to display the application interface. For example, Figure 8 As shown in (a) of FIG. 1 , when the folding screen is in the folded state, the interface of the "Taobao" application is displayed in full screen mode. When the folding screen of the electronic device 100 is in the unfolded state, the electronic device 100 displays the application interface in multi-window mode or single-window mode. For example, Figure 8 As shown in (c) in FIG. 1 , when the folding screen is in the unfolded state, the two interfaces of the “Taobao” application are displayed in a dual-window mode. Fig.13 As shown in (b), when the folding screen is in the unfolded state, the homepage of the "Taobao" application is displayed in a single window mode.
[0215] The display solution provided in the embodiment of the present application is based on Google's freeform feature and multi-window multi-tasking infrastructure. The display process provided in the embodiment of the present application can be found in Figure 6 .like Figure 6As shown, in an embodiment of the present application, the activity manager AMS may include an Activity native management module and an Activity extension module. Among them, the Activity native management module is responsible for managing the Activity, and is responsible for the startup, switching, scheduling of each component in the system, and the management and scheduling of applications. The Activity extension module is used to set the window mode and the properties of the window according to the folding state or unfolding state of the folding screen.
[0216] Among them, the properties of the window may include the position and size of the Activity window, as well as the visible properties of the Activity window (i.e., the status of the Activity window). The position of the Activity window is when the folding screen displays the Activity window. The position of the Activity window on the folding screen and the size of the Activity window can be the width, height and other information in the application startup config. The visible property of the Activity window can be true or false. When the visible property of the Activity window is true, it means that the Activity window is visible to the user, that is, the display driver will display the content of the Activity window. When the visible property of the Activity window is false, it means that the Activity window is not visible to the user, that is, the display driver will not display the content of the Activity window.
[0217] Among them, an application (such as application 1 or application 2) can call the start Activity interface to start the corresponding Activity. In response to the call of the application, the activity manager AMS can request the window manager WMS to draw the window corresponding to the Activity and call the display driver to display the interface.
[0218] It can be understood that in the process of the electronic device 100 displaying the application interface, the folding screen of the electronic device 100 may switch from a folded state to an unfolded state, or from an unfolded state to a folded state. At this time, the folding driver (input / output device driver) of the driving layer can detect the folding event input by the user. In the embodiment of the present application, the folding event may be triggered by the operation of the user controlling the folding screen to change from the above-mentioned folded state to the unfolded state, which is referred to as folding event 1. Alternatively, the folding event may be triggered by the operation of the user controlling the folding screen to change from the unfolded state to the folded state, which is referred to as folding event 2. The folding driver can report the folding event to the window manager WMS of the framework layer (i.e., the application framework layer).
[0219] The window manager WMS can listen to the folding event, and after listening to the folding event, it can determine to switch the display screen (display) size. The window manager WMS sends a display change event to the activity manager AMS, and the activity manager AMS sets the window mode and window properties. Among them, when the window manager WMS listens to the folding event 1, it can determine that the display becomes larger, and send the display change event 1 to the activity manager AMS. The display change event 1 is used to trigger the activity manager AMS to switch the window mode from full-screen mode to multi-window mode or single-window mode, and adjust the window properties. When the window manager WMS listens to the folding event 2, it can determine that the display becomes smaller, and send the display change event 2 to the activity manager AMS. The display change event 2 is used to trigger the activity manager AMS to switch the window mode from multi-window mode or single-window mode to full-screen mode, and adjust the window properties.
[0220] After the activity manager AMS sets the Activity window mode and properties, it can request the window manager WMS to draw the window and call the display driver to display the drawn window content, thereby presenting the interface to the user.
[0221] For example, in response to the above-mentioned display change event 1, the activity manager AMS requests the window manager WMS to draw a window, and calls the display driver to display an interface that may be: the folding screen is unfolded, and an application interface is displayed in the center (corresponding to the single window mode), and the size of the application interface is the same as the size of the application interface displayed when the folding screen is in the folded state. Alternatively, in response to the above-mentioned display change event 1, the interface displayed by the display driver may be: the folding screen is unfolded, and the folding screen displays two application interfaces (corresponding to the multi-window mode, such as the dual-window mode). The two application interfaces include an application interface displayed when the folding screen is in the folded state, and the size of the one application interface remains unchanged. In response to the above-mentioned display change event 2, the activity manager AMS requests the window manager WMS to draw a window, and calls the display driver to display an interface that may be: the electronic device displays an application interface in full screen in the folded state (corresponding to the full-screen mode).
[0222] The following will take the above-mentioned electronic device as a mobile phone, the folding screen of the mobile phone is the above-mentioned outward folding screen, and the outward folding screen can be folded to form a first screen (such as screen A) and a second screen (such as screen B) as an example to specifically describe the technical solution provided in the embodiment of the present application. Figure 7 As shown, the method for displaying an application may include S701-S702:
[0223] S701. When the folding screen is in the folded state, the mobile phone controls the first screen to display the first interface.
[0224] In an embodiment of the present application, when the folding screen is in the folded state, the first screen serves as the main screen to display the main interface or application interface (such as the first interface) of the mobile phone, and the second screen can be black.
[0225] Among them, when the folding screen is in the folded state, the angle between the first screen (such as screen A) and the second screen (such as screen B) of the mobile phone is α∈[0°, P]. When the mobile phone is in the unfolded state, the angle between screen A and screen B of the folding screen is α∈(P, 180°].
[0226] Alternatively, when the folding screen is in the folded state, the angle α∈[0°, P] between the first screen (such as screen A) and the second screen (such as screen B) of the mobile phone is α∈[0°, P]. When the mobile phone is in the unfolded state, the angle α∈[P, 180°] between screen A and screen B of the folding screen is α∈[P, 180°].
[0227] The above P is a preset angle threshold. P can be determined based on the usage habits of a large number of users using foldable screens; or, P can be set by the user in the mobile phone.
[0228] In some embodiments, when α>90°, the possibility that the user wants to use the first screen and the second screen as a whole (i.e., as a complete display screen) is high. Therefore, the preset angle threshold P in the embodiment of the present application may be greater than 90°. Among them, the value range of the preset angle threshold P may be (90°, 180°). The larger P is, the more likely the user is to use the first screen and the second screen as a whole. For example, the preset angle threshold P may be 100°, 120°, 135°, 140°, 145° or 150°, etc.
[0229] Among them, the mobile phone can calculate the angle α between screen A and screen B in real time, and detect the change of angle α. When it is detected that the angle α between screen A and screen B changes from small to large, and the angle α after the change is greater than P, the mobile phone can determine that the folding screen changes from the folded state to the unfolded state. The specific method for the mobile phone to calculate the angle α between screen A and screen B can refer to the method for calculating the angle α of the electronic device 100 in the above embodiment, and the embodiment of this application will not be repeated here.
[0230] It should be noted that the following uses the example that when the angle α between the first screen and the second screen is 0°, the folding screen is in a folded state; when the angle α between the first screen and the second screen is 180°, the folding screen is in an unfolded state, to illustrate the method of the embodiment of the present application. The first interface may be the interface of the first application.
[0231] For example, taking the above first application as the "Taobao" application, the first interface may be a product details page of the "Taobao" application. Figure 8 (a) shows the main view of the mobile phone, that is, the first screen of the mobile phone, when the folding screen is in the folded state. Figure 8 (b) in FIG. 1 shows the rear view of the mobile phone when the folding screen is in the folded state, that is, the second screen of the mobile phone. Figure 8 As shown in (a) of FIG. 1 , the first screen displays the first interface 801 of the “Taobao” application, i.e., the product details page. Figure 8 As shown in (b), the second screen is black.
[0232] The first interface is the interface of the first application. The first interface may be the homepage of the first application; or the first interface may not be the homepage of the first application.
[0233] In the application scenario (1) of the embodiment of the present application, the first interface is not the home page of the first application. The first interface is any interface of the first application except the home page of the first application. For example, the first interface can be Figure 8 The product details page 801 shown in (a) is not the homepage of the "Taobao" application.
[0234] In the application scenario (2) of the embodiment of the present application, the first interface may be the home page of the first application. Fig. 9 The first interface 901 shown in (a) in FIG. 9 is the homepage of the "Taobao" application. The mobile phone may display the first interface of the first application in the following cases (1) and (2).
[0235] Case (1): The homepage of the first application is displayed in response to a user clicking (such as a single click) on the icon of the first application in the main interface (i.e., desktop) of the mobile phone after the mobile phone exits the first application (i.e., stops displaying the interface of the first application on the mobile phone, and stops running the first application in the background). Alternatively, the homepage of the first application is displayed in response to a user clicking (such as a single click) on the icon of the first application in the main interface (i.e., desktop) of the mobile phone for the first time after the mobile phone is turned on.
[0236] For example, the mobile phone may respond to a user clicking (such as a single click) on the icon of the "Taobao" application in the main interface (i.e., the desktop) of the mobile phone and display a Fig. 9 The home page 901 of the "Taobao" application shown in (a) is the first interface.
[0237] Case (2): The mobile phone may display the home page of the first application in response to the user's return operation on the interface at a level lower than the home page of the first application.
[0238] For example, Fig. 9 The home page 901 of the "Taobao" application shown in (a), that is, the first interface, can be a mobile phone in response to the user's Fig. 9The return operation (such as a single click operation of the user on the "return" button 904) of the search result page 903 shown in (b) of the figure. In response to the user clicking the search button 902 on the home page 901 of the "Taobao" application (such as a single click operation), the mobile phone can display the search result page 903. The product details page 903 is the interface of the next level of the home page 901 of the "Taobao" application. For a detailed description of the hierarchical relationship between the interfaces, please refer to the subsequent relevant introduction of the embodiments of the present application, and the embodiments of the present application will not be repeated here.
[0239] S702. In response to the folding screen changing from a folded state to an unfolded state, the mobile phone controls the first display area of the folding screen to display a first interface and the second display area to display a second interface.
[0240] The first display area and the second display area are both part of the display area of the folding screen. The first display area and the second display area do not overlap.
[0241] In some embodiments, the first display area is the display area corresponding to the first screen, and the second display area is the display area corresponding to the second screen. Specifically, with the folding edge of the folding screen as the dividing line, when the user faces the unfolded folding screen, the left side of the folding edge on the folding screen is the first display area, and the right side of the folding edge on the folding screen is the second display area; or, the right side of the folding edge on the folding screen is the first display area, and the left side of the folding edge on the folding screen is the second display area. This is more in line with the usage habits of most users of folding screen electronic devices.
[0242] For example, the left side of the folding edge of the folding screen is the first display area, and the right side of the folding edge of the folding screen is the second display area. Fig. 10A As shown in (a) of FIG. 1 , the boundary line L1 between the first display area and the second display area coincides with the folding edge of the folding screen. In this embodiment, the first display area corresponds to the first screen, and the second display area corresponds to the second screen. Figure 8 As shown in (c) of FIG. 8 , the boundary line L between the first display area 803 and the second display area 804 coincides with the folding edge of the folding screen. The first display area 803 corresponds to the first screen, and the second display area 804 corresponds to the second screen.
[0243] In some other embodiments, the sizes (including width and height) of the first display area and the second display area may be pre-configured in the mobile phone. Alternatively, the width and height of the first display area and the second display area may be set by the user in the mobile phone. The method for the user to set the first display area and the second display area may refer to Figure 19-21 In this embodiment, the size of the first display area and the size of the second display area may be the same or different.
[0244] For example, Fig. 10A As shown in (b) in FIG. 1 , the size of the first display area is the same as the size of the second display area. Fig. 10A In (b), the first display area and the second display area are separated by a boundary line L2, the height of the first display area is the same as the height of the second display area, and the width of the first display area and the width of the second display area are both length x.
[0245] For example, Fig. 10A As shown in (c) in FIG. 1 , the size of the first display area is different from the size of the second display area. Fig. 10A In (c), the first display area and the second display area are separated by a boundary line L3, and the first display area is smaller than the second display area.
[0246] For example, Fig. 10A As shown in (d) in FIG. 1 , the size of the first display area is different from the size of the second display area. Fig. 10A In (d), the first display area and the second display area are separated by a boundary line L4, and the first display area is larger than the second display area.
[0247] It should be noted that in the following embodiments, the method of the embodiments of the present application is described by taking the case where the boundary between the first display area and the second display area is the folding edge, and the right side of the folding edge is the second display area, and the left side of the folding edge is the first display area. In this case, the first display area corresponds to the first screen, and the second display area corresponds to the second screen.
[0248] In the embodiment of the present application, the second interface may be the interface of the first application, which is different from the first interface. Alternatively, the second interface may be the interface of the second application, which is different from the first application.
[0249] In some embodiments, the second interface may be an interface of the first application, and the second interface is different from the first interface. In this embodiment, the mobile phone may determine the second interface in the following manner.
[0250] In conjunction with the above application scenario (1), the first interface is not the home page of the first application. In the implementation method (1) of the application scenario (1), the second interface can be the home page of the first application.
[0251] For example, the first application is the "Taobao" application. The homepage of the "Taobao" application is Figure 8 Interface 802 shown in (c) of FIG. Assume that the mobile phone displays Figure 8 The product details page 801 shown in (a) is the first interface. In response to the folding screen changing from the folded state to the unfolded state, as shown in FIG. Figure 8As shown in (c) of FIG. 8 , the mobile phone controls the first display area 803 of the folding screen to display the first interface 801, and the second display area 804 to display the second interface 802. The second interface 802 is the homepage of the "Taobao" application.
[0252] In implementation method (2) of application scenario (1), the second interface may be an interface at a level above the first interface. The hierarchical relationship between different interfaces is described in the embodiment of the present application:
[0253] In the embodiment of the present application, different interfaces of the same application may be divided into upper and lower levels. The mobile phone may display the interface to be displayed in the display area of the display screen according to the hierarchical relationship between the interface to be displayed and the displayed interface.
[0254] For example, different interfaces of the same application can correspond to the same activity or different activities. When different interfaces correspond to the same activity, these interfaces can correspond to the same level. When different interfaces correspond to different activities, these interfaces correspond to different levels. In response to a user's operation on one interface, the interface can call another interface.
[0255] When the actively called interface and the called interface correspond to the same Activity, the actively called interface and the called interface can correspond to the same level. For example, the actively called interface can be Fig. 10B The "hotspot" interface 1001 shown in the figure can be called by the user clicking Fig. 10B After pressing the "Video" button, the phone displays the "Video" interface. The "Video" interface and the "Hotspot" interface 1001 correspond to the same Activity and the same level. When the actively called interface and the called interface correspond to different Activities, the called interface is the next level of the actively called interface. For example, the actively called interface can be Fig. 9 In response to the user clicking on the search item 905 for "baseball cap" in the search result page 903, the mobile phone may display Figure 8 The product details page 801 shown in (a) of FIG. 8 is the called interface. The search result page 903 and the product details page 801 correspond to different activities, and the search result page 903 is the interface of the upper level of the product details page 801.
[0256] In one technical solution, the process of calling between interfaces by the mobile phone can be implemented through a first-in-last-out stack. For example, when the mobile phone calls and displays interface 1, interface 1 is pushed into the stack; when interface 1 calls interface 2, interface 2 is pushed into the stack; when the user returns to interface 1 from the current interface 2, the current interface 2 is popped out of the stack. In addition, when the mobile phone detects the user's return operation on the current interface, in response to the operation, it returns to the interface that actively called the current interface before.
[0257] For another example, there is a preset hierarchical relationship between different activities on the mobile phone. The interface corresponding to a high-level activity is also high-level, and the interface corresponding to a low-level activity is also low-level. For example, in the "Taobao" application, the activity corresponding to the homepage has the highest level, and the activity corresponding to the search results page has a higher level than the activity corresponding to the product details page.
[0258] Based on the hierarchical relationship between interfaces, Fig. 9 The search result page 903 shown in (b) is Figure 8 The interface of the upper level of the product details page 801 shown in (a).
[0259] For example, the phone displays Fig.11 In response to the folding screen being Fig.11 The folded state shown in (a) is transformed into Fig.11 In the unfolded state shown in (b), the mobile phone controls the first display area 1103 of the folding screen to display the first interface 1101, and the second display area 1104 to display the second interface 1102 (i.e., the search results page, the upper level interface of the product details page).
[0260] In the implementation method (3) of the application scenario (1), the second interface may be an interface corresponding to a previous record item of the record item corresponding to the first interface in the activity record of the first application.
[0261] Generally speaking, in response to a user clicking on the icon of a first application in the main interface (i.e., the desktop) of the mobile phone, after displaying the homepage of the first application, the mobile phone can generate an activity record of the first application and save the record items for the homepage in the activity record. In response to a user operation on the homepage or any interface of the first application, when the mobile phone displays another interface of the first application, the record items of the other interface can be saved in the activity record of the first application. Among them, the mobile phone can record the activity records of the application through a first-in-last-out stack (referred to as the first record stack). The pointer of the first record stack of the first application points to the record item at the top of the stack. When the mobile phone displays the interface of the first application, the interface corresponding to the record item pointed to by the pointer is displayed.
[0262] For example, in response to a user clicking on an icon of a first application in the main interface (i.e., desktop) of the mobile phone, after displaying the homepage of the first application, the mobile phone may generate a Fig.12 The first record stack shown in (a) in FIG. Fig.12 The first record stack shown in (a) includes the record item of interface 1 (i.e., the homepage of the first application), and the pointer points to the record item of interface 1. In response to the user's operation in interface 1, the mobile phone can display interface 2 and push the record item corresponding to interface 2 into the first record stack, obtaining Fig.12 The first record stack shown in (b) in FIG. Fig.12 In the first record stack shown in (b), the pointer points to the record item of interface 2. In response to the return operation input by the user on interface 2, the mobile phone can display interface 1 and push the record item corresponding to interface 1 into the first record stack to obtain Fig.12 The first record stack shown in (c). Fig.12 In the first record stack shown in (c) of FIG. 1 , the pointer points to the record item of interface 1 at the top of the stack. In response to the user's operation in interface 1, the mobile phone can display interface 3 and push the record item corresponding to interface 3 into the first record stack to obtain Fig.12 The first record stack shown in (d). Fig.12 In the first record stack shown in (d) in FIG. 1 , the pointer points to the record item of interface 3 at the top of the stack. In response to the user's operation in interface 3, the mobile phone can display interface 4 and push the record item corresponding to interface 4 into the first record stack to obtain Fig.12 The first record stack shown in (e). Fig.12 In the first record stack shown in (e), the pointer points to the record item of interface 4 at the top of the stack.
[0263] In conjunction with the above example, in response to the folding screen changing from a folded state to an unfolded state, the mobile phone may move the top pointer of the first record stack downward so that the pointer points to the next record item at the top of the stack. At this time, the interface corresponding to the record item pointed to by the pointer is the second interface, and the record item at the top of the stack is the first interface. The mobile phone can display the first interface corresponding to the record item at the top of the stack in the first display area of the folding screen, and display the second interface corresponding to the record item pointed to by the pointer in the second display area. Alternatively, the mobile phone can display the first interface corresponding to the record item at the top of the stack in the second display area of the folding screen, and display the second interface corresponding to the record item pointed to by the pointer in the first display area. Exemplarily, the identifier of the corresponding interface can be saved in the record item of the above-mentioned first record stack.
[0264] In combination with the situation (1) of the above application scenario (2), the first interface is the home page of the first application, and the first activity record of the first application only stores the record items of the home page of the first application. Fig.12 As shown in (a), the first record stack only includes record items of interface 1. In this case, in response to the folding screen changing from a folded state to an unfolded state, the mobile phone cannot find record items of other interfaces except the first interface from the activity record of the first application.
[0265] Based on this, in implementation method (a) of situation (1), in response to the folding screen changing from a folded state to an unfolded state, the mobile phone controls the first display area and the second display area of the folding screen as a whole, centers the first interface, that is, the folding screen displays the first interface in a single window.
[0266] For example, the first screen shows Fig.13 1301 of the first interface shown in (a) of FIG. 1 (i.e., the homepage of the "Taobao" application). Moreover, the first activity record of the "Taobao" application only stores the record item of the homepage of the "Taobao" application. In this case, in response to the folding screen being Fig.13 The folded state shown in (a) is transformed into Fig.13 In the unfolded state shown in (b) of FIG. 1 , the mobile phone can control the folding screen to display the first interface 1301 in a single window. For example, the mobile phone can display Fig.13 The first interface 1301 shown in (b) .
[0267] In implementation (b) of situation (1), the second interface may be any interface at a lower level than the homepage of the first application.
[0268] In implementation method (c) of situation (1), the mobile phone can be pre-set in the above situation (1), and the second interface can be any interface of the first application except the home page.
[0269] In combination with the situation (2) of the above application scenario (2), although the first interface is the homepage of the first application, the mobile phone saves the record items of other interfaces of the first application in the activity record of the first application. In this case, the above second interface can be the interface corresponding to the previous record item of the record item corresponding to the first interface in the activity record of the first application. The specific method for the mobile phone to determine the second interface can refer to the detailed description in the implementation method (3) of the application scenario (1), and the embodiments of this application will not be repeated here.
[0270] Assume that when the user faces the unfolded folding screen, the left side of the folding edge on the folding screen is the first display area, and the right side of the folding edge on the folding screen is the second display area. In S702, in response to the folding screen changing from a folded state to an unfolded state, the mobile phone controls the first display area of the folding screen to display the first interface, and the second display area to display the second interface. In order to make the display mode of the folding screen display the first interface and the second interface in accordance with the usage habits of most users and improve the user experience. The embodiment of the present application provides the following scheme:
[0271] In response to the folding screen changing from a folded state to an unfolded state, if the level of the first interface is higher than the level of the second interface, the mobile phone can control the first display area (i.e., the display area on the left) of the folding screen to display the first interface, and the second display area (i.e., the display area on the right) to display the second interface; if the level of the second interface is higher than the level of the first interface, the mobile phone can control the first display area of the folding screen to display the second interface, and the second display area to display the first interface; if the second interface and the first interface are interfaces of the same level, the mobile phone can control the first display area of the folding screen to display the first interface, and the second display area to display the second interface. In this way, when the level of the interface displayed in the second display area on the right is lower than or equal to the level of the interface displayed in the first display area on the left, it can facilitate user comparison and operation, and is more in line with the usage habits of most users.
[0272] In other embodiments, the second interface is an interface of a second application, and the second application is different from the first application. The second application is any application among one or more applications that the mobile phone has recently run and not closed, except the first application. The mobile phone not closing the second application means that the mobile phone runs the second application in the background.
[0273] For example, suppose that the applications that have been recently run and not closed on the mobile phone include the "Dialer" application, the "Settings" application, and the "WeChat" application. The mobile phone can display the following information in response to the user's preset operation on the mobile phone (such as double-clicking the Home button): Fig.14 The application task window interface 401 shown in the figure includes the task windows of the applications that were recently run and not closed by the mobile phone, such as the task window 402 of the "Dial" application, the task window 403 of the "Settings" application, and the task window 404 of the "WeChat" application. The first application is the "WeChat" application. The second application can be the "Dial" application or the "Settings" application.
[0274] like Fig.15 As shown in (a) of FIG. 1 , the mobile phone displays a first interface 1501 of a first application, namely, an interface of a “WeChat” application. Fig.15 The folded state shown in (a) is transformed into Fig.15 In the unfolded state shown in (b) of FIG. 1 , the mobile phone can control the first display area 1503 of the folding screen to display the first interface 1501, and the second display area 1504 to display the second interface 1502. The second interface 1502 is the interface of the above-mentioned "settings" application.
[0275] In some embodiments, the second interface is the interface of the second application. In this embodiment, in response to the folding screen changing from the folded state to the unfolded state, the mobile phone can control the first display area (i.e., the display area on the left) to display the first interface, and the second display area (i.e., the display area on the right) to display the second interface. In this way, the first interface of the first application is first displayed in the first display area on the left, and the second interface of the second application is then displayed in the second display area on the right, which is more in line with the usage habits of most users.
[0276] Further, such as Figure 7 As shown, after S702, the method of the embodiment of the present application may further include S703:
[0277] S703. In response to the folding screen changing from the unfolded state to the folded state, the mobile phone controls the first screen to display the first interface or the second interface.
[0278] For example, in response to the folding screen being Fig.15 The expanded state shown in (b) is transformed into Fig.15 In the folded state shown in (a), the first screen can display Fig.15 The first interface 1501 shown in (a) in FIG. Fig.15 The first interface 1501 shown in (a) can also be replaced by Fig.15 The second interface 1502 shown in (b) .
[0279] Among them, the mobile phone can calculate the angle α between screen A and screen B in real time, and detect the change of angle α. When it is detected that the angle α between screen A and screen B changes from large to small, and the angle α is less than P after the change, the mobile phone can determine that the folding screen changes from the unfolded state to the folded state. The specific method for the mobile phone to calculate the angle α between screen A and screen B can refer to the method for calculating the angle α of the electronic device 100 in the above embodiment, and the embodiment of this application will not be repeated here.
[0280] In the embodiment of the present application, in response to the folding screen changing from a folded state to an unfolded state, the mobile phone can control the folding screen to display the first interface and the second interface in a dual-window mode, that is, the folding screen displays the two interfaces simultaneously in two display areas. Since the aspect ratio (i.e., height-to-width ratio) of the first screen and the second screen of the folding screen is similar to the aspect ratio of an ordinary non-folding screen; therefore, both the first screen and the second screen can adapt to the interface layout of the launched application. In this way, in response to the user's operation of unfolding the folding screen, the mobile phone does not need to restart the application to display the interface of the application normally.
[0281] Moreover, the unfolded folding screen can display the first interface and the second interface at the same time, which can make the display content of the folding screen richer, improve the utilization rate of the folding screen, and enhance the user's visual experience.
[0282] As an alternative, in some embodiments, the above S702 may be replaced by S702a:
[0283] S702a. In response to the folding screen changing from a folded state to an unfolded state, the mobile phone may control the folding screen to display the first interface in a single window.
[0284] Among them, when the folding screen is in the unfolded state, the folding screen displays the first interface in a single window. Specifically, the first display area and the second display area of the folding screen are regarded as a whole, and the above-mentioned first interface is displayed in the center.
[0285] For example, the phone displays Fig.13 In response to the folding screen being Fig.13 The folded state shown in (a) is transformed into Fig.13 In the unfolded state shown in (b) of FIG. 1 , the mobile phone can control the folding screen to display the first interface 1301 in a single window. For example, the folding screen can display Fig.13 The first interface 1301 shown in (b) .
[0286] It should be noted that, unlike the implementation method (a) of the above situation (1), the first interface in this embodiment can be any interface of the first application and is not limited to the homepage of the first application.
[0287] Further, after S702a, the method of the embodiment of the present application may further include: in response to the folding screen changing from the unfolded state to the folded state, the mobile phone may control the first screen to display the first interface. Fig.13 The expanded state shown in (b) is transformed into Fig.13 In the folded state shown in (a), the mobile phone can control the first screen to display Fig.13 1301 of the first interface shown in (a).
[0288] In the embodiment of the present application, in response to the folding screen changing from the folded state to the unfolded state, the mobile phone can control the folding screen to display the first interface in a single window mode. The interface layout of the first interface will not change, so the mobile phone does not need to restart the application to display the interface of the application normally.
[0289] After S702a, the mobile phone may receive a first operation of the user on the first interface displayed in the first display area. The first operation is used to trigger the first display area to display the third interface of the first application. In response to the user's first operation on the first interface, the mobile phone may control the first display area of the folding screen to display the first interface and the second display area to display the third interface. For a detailed introduction of the first display area and the second display area, please refer to the description in the above embodiment, and the embodiments of this application will not be repeated here.
[0290] For example, the phone displays a single window Fig.16 The first interface 1601 shown in (a) is, for example, the homepage of the "Taobao" application. Generally speaking, in response to a user clicking operation (such as a single click operation) on the "Search" button 1602 in the first interface 1601, the search results interface, i.e., the third interface, can be displayed in a single window. In the embodiment of the present application, in response to a user clicking operation (such as a single click operation) on the "Search" button 1602 in the first interface 1601, the mobile phone can control the folding screen to simultaneously display the above-mentioned first interface and the third interface in dual windows. Fig.16 As shown in (b), the first display area 1604 of the folding screen displays the first interface, and the second display area displays the third interface 1603, that is, the search result interface.
[0291] Optionally, after S702a, in response to the user's first operation on the first interface, if the level of the first interface is higher than the level of the third interface, the mobile phone can control the first display area (i.e., the display area on the left) of the folding screen to display the first interface, and the second display area (i.e., the display area on the right) to display the third interface; if the level of the third interface is higher than the level of the first interface, the mobile phone can control the first display area of the folding screen to display the third interface, and the second display area to display the first interface; if the third interface and the first interface are interfaces of the same level, the mobile phone can control the first display area of the folding screen to display the first interface, and the second display area to display the third interface. In this way, when the level of the interface displayed in the second display area on the right is lower than or equal to the level of the interface displayed in the first display area on the left, it can facilitate user comparison and operation, and is more in line with the usage habits of most users.
[0292] In other embodiments, after the first display area of the folding screen displays the first interface and the second display area displays the second interface, in response to the user's second operation on the first interface displayed in the first display area, the first display area of the folding screen displays a fourth interface corresponding to the second operation, and the second interface displayed in the second display area remains unchanged; in response to the user's third operation on the second interface displayed in the second display area, the second display area of the folding screen displays a fifth interface corresponding to the third operation, and the fourth interface displayed in the first display area remains unchanged.
[0293] The second interface and the first interface may both be interfaces of the first application (such as the "Taobao" application). Fig.17 As shown in (a) of FIG. 1 , the first display area 1701 of the folding screen displays the home page 1703 of the "Taobao" application, i.e., the first interface; the second display area 1702 of the folding screen displays the search result page 1704 of "hats", i.e., the second interface. The mobile phone can receive the user's third operation on the first interface (such as the user's Fig.17In response to the user's third operation on the home page 1703 of the "Taobao" application, such as Fig.17 As shown in (b) of FIG. 1 , the first display area 1701 of the folding screen displays the “milk” search result page 1706 (i.e., the fourth interface). The second interface displayed in the second display area remains unchanged. Fig.17 As shown in (b) in FIG. 1 , the second display area 1702 still displays the “hat” search result page 1704 , ie, the second interface.
[0294] The mobile phone can receive the fourth operation of the user on the second interface (such as the user Fig.17 In response to the user's fourth operation on the "hat" search result page 1704, as shown in (b) of FIG. Fig.17 As shown in (c) of FIG. 1 , the second display area 1702 of the folding screen displays the product details page 1708 (i.e., the fifth interface). The fourth interface displayed in the first display area remains unchanged. Fig.17 As shown in (c) , the mobile phone can still display the “milk” search result page 1706 , ie, the fourth interface, in the first display area 1701 .
[0295] The second interface may be the interface of the second application, and the first interface may be the interface of the first application. The second application is different from the first application. For example, the first application is the "settings" application, and the second application is the "Taobao" application. Fig.18 As shown in (a) of FIG. 1 , the first display area 1801 of the folding screen displays the WLAN (i.e., WiFi) setting interface 1803 of the "Settings" application, i.e., the first interface; the second display area 1802 displays the "Hat" search result page 1804 of the "Taobao" application, i.e., the second interface. The mobile phone can receive the user's third operation on the first interface (such as the user's Fig.18 In response to the user's third operation on the WLAN setting interface 1803, such as clicking the "return" button 1805 in the WLAN setting interface 1803 shown in (a) of FIG. Fig.18 As shown in (b) of FIG. 1 , the first display area 1801 of the folding screen displays the home page 1806 of the "Settings" application, i.e., the fourth interface. The second interface displayed in the second display area remains unchanged. For example, Fig.18 As shown in (b) in FIG. 1 , the mobile phone may still display the “hat” search result page 1804 , ie, the second interface, in the second display area 1802 .
[0296] The mobile phone can receive the fourth operation of the user on the second interface (such as the user Fig.18In response to the user's fourth operation on the "hat" search result page 1804, as shown in (b) of FIG. Fig.18 As shown in (c) of FIG. 1 , the second display area 1802 of the folding screen displays the product details page 1808 (i.e., the fifth interface). The fourth interface displayed in the first display area remains unchanged. Fig.18 As shown in (c) , the mobile phone can still display the home page 1806 of the “Settings” application in the first display area 1801 , that is, the fourth interface.
[0297] In this embodiment, after the first display area of the folding screen displays the first interface and the second display area displays the second interface, the interfaces displayed in the first display area and the second display area do not affect each other. In this way, the user can open different interfaces in the first display area and the second display area and control the mobile phone to execute different events in parallel.
[0298] In some embodiments, in order to avoid frequent switching of the display content of the mobile phone due to the frequent changes of the angle α between screen A and screen B around P in a short period of time. In some embodiments, if the mobile phone detects that the angle α between screen A and screen B changes from small to large, and the angle α is greater than P after the change, the first display area of the folding screen will not immediately display the first interface, and the second display area will not immediately display the second interface, but will continue to display the first interface on the first screen, and the second screen will be black. At this time, the mobile phone can start the timer, and when the angle α between screen A and screen B is greater than P within the preset time, the first display area of the folding screen displays the first interface, and the second display area displays the second interface.
[0299] In some embodiments, the multiple display areas included in the folding screen of the electronic device in the unfolded state or the non-folding screen in the horizontal state can be set by the user.
[0300] For example, Fig.19 As shown, the setting interface 1901 of the electronic device displays setting controls for the display areas, and the user can set the aspect ratio (i.e., height-to-width ratio) of the first display area and the aspect ratio of the second display area by himself, or the user can select the aspect ratio of the first display area and the aspect ratio of the second display area from the setting interface.
[0301] For example, Fig. 20 As shown in (a) of FIG. 1 , a setting interface 2001 of the mobile phone displays a display area quantity setting control 2002 and a display area range setting control 2003. After the user sets the number of display areas to 2 and clicks the control 2003, as shown in FIG. Fig. 20 As shown in (b) of FIG. 1 , the mobile phone may prompt the user to set the range of the first display area, and the user may drag on the display screen to set the range of the first display area. After the user stops dragging, as shown in FIG. Fig. 20As shown in (c) of FIG. 1 , the mobile phone may display a control 2004 for determining the range of the first display area and a control 2005 for canceling the setting. After the user clicks the control 2004, see Fig. 20 In (d), the mobile phone can determine the range of the first display area and the second display area set by the user.
[0302] For another example, after the user sets the number of display areas to 2 on the setting interface 2001 and clicks the control 2003, Fig.21 As shown, a dividing line 2101 is displayed on the setting interface of the mobile phone, and the user can drag the dividing line 2101 to set the size and aspect ratio of the first display area and the second display area.
[0303] Of course, the user may also set the display area included in the display screen of the mobile phone in other ways, which is not limited in the embodiments of the present application.
[0304] In some other embodiments, the electronic device is a mobile phone. The folding screen of the mobile phone can be the inward folding screen, which can be folded to form a first screen (such as Figure 2 A screen as shown) and a second screen (as shown Figure 2 The back of the first screen is provided with a third screen (such as Figure 2 C screen shown).
[0305] It can be understood that after the inward folding screen is completely folded, the third screen (i.e., the C screen) is visible to the user, while the first screen and the second screen are invisible to the user; therefore, for a mobile phone with this type of inward folding screen, when the folding screen is in a folded state, the interface can be displayed on the third screen; when the folding screen is in an unfolded state, the interface can be displayed on the first screen and the second screen.
[0306] It should be noted that all the above solutions for the outward folding screen can be applied to mobile phones with inward folding screens. However, the difference is that for mobile phones with inward folding screens, when the mobile phone is in the folded state, the interface (such as the above first interface) is displayed on the third screen.
[0307] For example, taking the Taobao application as the first application, the first interface may be a product details page of the Taobao application. Fig.22A (a) in FIG. 1 shows the main view of the mobile phone when the folding screen is in the folded state, that is, the third screen of the mobile phone. Fig.22A As shown in (a) of FIG. 1 , the third screen of the mobile phone displays the first interface 2201 of the "Taobao" application, that is, the product details page. In response to the folding screen changing from the folded state to the unfolded state, as shown in FIG. Fig.22A As shown in (b) , the mobile phone can display the first interface 2201 in the first display area 2202 and the second interface 2204 in the second display area 2203 .
[0308] Among them, for a mobile phone including an inward folding screen, when the mobile phone is in a folded state, the third screen can be controlled to display the first interface; in response to the folding screen changing from a folded state to an unfolded state, the mobile phone can control the folding screen to display the first interface and the second interface on the folding screen (i.e., the first screen and the second screen) in a dual-window mode, that is, the folding screen displays two interfaces in two display areas at the same time. Since the aspect ratio (i.e., the height-to-width ratio) of the first screen and the second screen of the folding screen is similar to the aspect ratio of an ordinary non-folding screen; therefore, both the first screen and the second screen can adapt to the interface layout of the launched application. In this way, in response to the user's operation of unfolding the folding screen, the mobile phone can display the interface of the application normally without restarting the application.
[0309] Moreover, the unfolded folding screen can display the first interface and the second interface at the same time, which can make the display content of the folding screen richer, improve the utilization rate of the folding screen, and enhance the user's visual experience.
[0310] Among them, for non-folding screen electronic devices or folding screen electronic devices in a folded state, when the electronic device changes from a vertical screen state to a horizontal screen state, there may also be a problem that the display area of the electronic device's display screen cannot be fully utilized. For example, take the video playback interface displayed on a mobile phone as an example. Fig. 22B As shown in (a) of FIG. 2 , the mobile phone is in a vertical screen state, and the mobile phone displays a video playback interface 2205. Fig. 22B As shown in (b) of FIG. 1 , the mobile phone is in a horizontal screen state, and the mobile phone displays the video playback interface 2205 in the center. Fig. 22B In the horizontal screen state shown in (b), a part of the display area of the mobile phone display screen does not display specific content, and the display area of the display screen is not fully utilized.
[0311] In order to solve the problem that the display area of the display screen (folding screen or non-folding screen) of an electronic device cannot be fully utilized, an embodiment of the present application provides a method for displaying an application. If the electronic device enters a preset scene, and the interface displayed before the electronic device enters the preset scene is the preset homepage (i.e., main Page) of the first application, or the interface to be displayed after the electronic device enters the preset scene is the preset homepage of the first application, the electronic device can control the first display area of the display screen to display the preset homepage of the above-mentioned first application, and control the second display area of the display screen to display the related pages (i.e., related Page) configured in pairs with the preset homepage. In this way, the electronic device in the preset scene can display the preset homepage and related pages of the first application on the display screen at the same time, which can make the display content of the display screen richer, improve the utilization rate of the display screen, and enhance the user's visual experience.
[0312] It should be noted that, for the detailed description of the above-mentioned preset scenario, the preset homepage of the first application and related pages, please refer to the detailed description in the following embodiments, and the embodiments of this application will not be repeated here.
[0313] The methods in the following embodiments can all be performed in Figure 4 The hardware structure shown is implemented in the electronic device 100. Fig.23A It is another software structure block diagram of the electronic device 100 provided in the embodiment of the present application. The layered architecture can divide the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into three layers, from top to bottom, namely, the application layer (referred to as the application layer), the application framework layer (referred to as the framework layer), and the kernel layer (also called the driver layer).
[0314] The application layer can include a series of application packages. Fig.23A As shown, the application layer may include multiple application packages such as application 1 and application 2. For example, the application package may be an application such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and Launcher. Among them, the above-mentioned applications such as application 1 and application 2 refer to applications that support dual-window display.
[0315] like Fig.23A As shown, the application layer may also include a system user interface (UI), which is responsible for displaying the system interface and is an Android package (APK). The interface function for interacting with the user in the system is also implemented in this APK. In the embodiment of the present application, the user customizes the interactive interface and preset gestures for selecting the related page (related Page) of the first application, which are also implemented in this APK.
[0316] The framework layer provides API and programming framework for the application layer's application program. The application framework layer includes some predefined functions. Fig.23A As shown, the framework layer can include a configuration module, an Activity management module (equivalent to Figure 6 The activity manager AMS shown in the figure) and the window display module (equivalent to Figure 6 The window manager WMS shown.
[0317] The configuration module is used to manage the preset home page (main Page) and related pages (relatedPage) of the application in the application layer.
[0318] In one case, the configuration file in the installation package (APK) of the application includes the above main Page and related Page. Fig.23A As shown, the configuration module can parse the configuration file in the application installation package to obtain and save the main Page and related Page.
[0319] In another case, the configuration module can configure the main page for the application. For example, the configuration module can configure the homepage of the first application as the main page of the application. Alternatively, the configuration module can also determine the main page of the first application from multiple interfaces of the application based on the interface features of each interface of the application. For example, the configuration module can determine an interface that meets preset conditions among multiple interfaces of the application as the main page of the application. Among them, the preset conditions are: including preset interface features, and the number of preset interface features is greater than a preset number threshold. The preset interface features may include preset components or mini-programs.
[0320] The configuration module can call an interface to receive the related page of the application customized by the user through the interactive interface provided by the system UI. The configuration module can also save the user-defined related page. Alternatively, the configuration module can also configure or identify the interface of the next level of the above main page as the related page of the first application.
[0321] In response to the installation or update of the application, the configuration module can parse, configure or identify the main page and related pages of the application and save the main page and related pages of the application. In response to the uninstallation of the application, the configuration module can delete the main page and related pages of the application saved in the configuration module.
[0322] The Activity management module (such as the Activity Manager AMS) is responsible for managing the Activity, starting, switching, and scheduling the components in the system, and managing and scheduling the applications. The window display module (window manager WMS) is used to manage window programs. The kernel layer is the layer between hardware and software. The kernel layer may include display drivers, input / output device drivers (for example, keyboards, touch screens, headphones, speakers, microphones, etc.), camera drivers, audio drivers, and sensor drivers. The kernel layer of a folding screen electronic device may also include a folding driver. The folding driver is used to detect the unfolding and folding of the folding screen.
[0323] Among them, when the user performs an input operation on the electronic device 100 (such as an operation to unfold the folding screen), the kernel layer can generate a corresponding input event (such as a folding screen unfolding event) according to the input operation, and report the event to the framework layer. Alternatively, the sensor driver can drive the sensor to detect the switching of the motion state of the electronic device (such as the horizontal screen state and the vertical screen state), and the kernel layer can generate a corresponding input event (such as the event of the vertical screen state changing to the horizontal screen state) according to the state switching, and report the event to the framework layer.
[0324] The Activity management module (such as) of the framework layer can monitor the scene switching (i.e., determine whether the electronic device enters the preset scene) and the application startup (i.e., determine whether the electronic device starts the application) in response to the above time. If the electronic device enters the preset scene and starts the application, the main Page and related Page of the application can be obtained from the configuration module. The Activity management module can determine whether the current interface of the application is the main Page; if the current interface of the application is the main Page of the application, it can be determined to fill the related Page on the display screen. Among them, the application (such as application 1 or application 2) can call the start Activity interface to start the corresponding Activity.
[0325] For example, suppose A is the main Page Activity of the application, and B is the related PageActivity of the application. Take the electronic device entering the preset scene of "the electronic device is in the first state (such as the non-folding screen electronic device is in the horizontal state or the folding screen is in the unfolded state) and displays the main interface, and in response to the user's click operation on the icon of the first application, the scene of displaying the interface of the first application" as an example. Fig. 23B As shown, the application (such as the APK of the application) can call the startActivity() interface of the framework layer (ie, FWK) to start the main Page Activity (ie Fig. 23B As shown in startActivity(A)). At this time, Fig. 23B As shown, if FWK (such as Activity management module) detects that the currently started Activity is the main Page Activity, and the main Page has a matching relatedPage, FWK can automatically call startActivity() to start the relatedPage Activity (i.e. Fig. 23B startActivity(B) shown).
[0326] Then, the Activity management module can request the window display module (i.e., the window management server WMS) to draw the windows corresponding to the mainPage Activity and relatedPage Activity, and call the display driver to display the interface. The window display module can draw the main Page Activity and relatedPage Activity windows according to the request of the AMS, and then send the drawn window data to the display driver of the kernel layer, which will display the preset homepage and related pages in dual windows on the display screen (such as a folding screen).
[0327] It should be noted that Fig.23A For detailed description of each layer in the software structure shown in FIG. Figure 6 The relevant introduction of the present application embodiment is not repeated here. Taking the above electronic device as a mobile phone as an example, the technical solution provided by the present application embodiment is specifically described.
[0328] For ease of understanding, the embodiments of the present application illustrate the horizontal screen state and the vertical screen state described in the embodiments of the present application.
[0329] Among them, when the user uses a non-folding screen electronic device or a folding screen electronic device in a folded state, the electronic device may be in a horizontal screen state or a vertical screen state. The display screen of the electronic device (including the folding screen in a folded state) may include four sides, including two longer sides that are parallel and equal to each other, which can be called the long sides of the display screen; the four sides also include two shorter sides that are parallel and equal to each other, which can be called the short sides of the display screen. In the horizontal screen state, the long side of the display screen of the electronic device is parallel to the horizontal plane (for example, Fig.24 , that is, the angle between the long side of the display screen and the horizontal plane is 0; or the angle between the long side of the display screen 01 and the horizontal plane 02 is less than or equal to the preset value 1 (for example, Fig.24 As shown in (b) in FIG. 1 ). The preset value 1 is less than or equal to 45°, and the specific value of the preset value 1 can be set according to the actual application scenario. For example, the preset value 1 can be 20°. In the horizontal screen state, the display screen of the electronic device is basically in a horizontal strip shape.
[0330] In the horizontal screen state, the height of the display screen of the electronic device is less than its width, and the aspect ratio of the display screen (i.e., the ratio of the height to the width) is less than 1. The height of the display screen is the length of the side with the smaller angle between the display screen and the vertical plane, and the width of the display screen is the length of the side with the smaller angle between the display screen and the horizontal plane. Among them, the height of the display screen can also be understood as the longitudinal length of the display screen, the width of the display screen can also be understood as the lateral length of the display screen, and the aspect ratio of the display screen can also be understood as the aspect ratio of the display screen (i.e., the ratio of the longitudinal length to the lateral length).
[0331] In order to distinguish the horizontal screen state from the vertical screen state, the embodiment of the present application also introduces the vertical screen state. In the vertical screen state, the long side of the display screen of the electronic device is perpendicular to the horizontal plane (for example, Fig.24 or the angle 04 between the long side 01 of the display screen and the horizontal plane 02 is greater than a preset value 1 (for example, Fig.24 As shown in (d), the preset value 1 is greater than or equal to 45°). In the vertical screen state, the height of the display screen of the electronic device is greater than its width, the aspect ratio of the display screen is greater than 1, and the display screen of the electronic device is basically in the shape of a vertical strip.
[0332] In some embodiments, the electronic device in the embodiments of the present application may be a non-folding screen electronic device or a folding screen electronic device. Take the non-folding screen electronic device or the folding screen electronic device as an example, a mobile phone. The above preset scene is scene 1. The mobile phone enters scene 1 when the non-folding screen mobile phone is in landscape mode and displays the main interface, and receives a user click operation on the icon of the first application, and displays the scene of the interface of the first application. Alternatively, the mobile phone enters the preset scene when the folding screen of the mobile phone is in the unfolded state and displays the main interface, and receives a user click operation on the icon of the first application, and displays the scene of the interface of the first application. Fig.25 As shown, the method for displaying an application may include S2501-S2505.
[0333] S2501: When the display screen of the mobile phone is in a first state, the display screen is controlled to display a main interface of the mobile phone. The main interface includes an icon of a first application. The first state is a horizontal screen state; or, when the display screen is a folding screen, the first state is an unfolded state.
[0334] In one case, the mobile phone is a non-folding screen mobile phone, and the first state is a horizontal screen state. Fig.26 As shown in (a) in FIG. 1 , the mobile phone 2600 is a non-folding screen mobile phone, and the mobile phone 2600 is in a horizontal screen state. Fig.26 As shown in (a) in FIG. 2 , the mobile phone 2600 displays a main interface 2601 , and the main interface 2601 includes an icon 2602 of a first application.
[0335] In another case, the mobile phone is a foldable screen mobile phone, that is, the display screen is a foldable screen. In this case, the display screen is in the first state specifically: the foldable screen is in a folded state and in a horizontal screen state. Alternatively, the display screen is in the first state specifically: the foldable screen is in an unfolded state. For example, take the foldable screen mobile phone in the unfolded state as an example. Fig. 27 As shown in (a), the foldable screen mobile phone 2700 is in an unfolded state, and the foldable screen mobile phone 2700 displays a main interface 2701, and the main interface 2701 includes an icon 2702 of a first application.
[0336] S2502. The mobile phone receives a first operation of a user on an icon of a first application, where the first operation is used to trigger a display screen to display a first interface of the first application.
[0337] For example, the first operation may be a single-click operation. If the mobile phone is not running (including running in the background) the first application when the mobile phone receives the first operation of the user on the icon of the first application, then, in response to the first operation, the mobile phone can start the first application. At this time, the first operation is used to trigger the mobile phone to start the first application and display the homepage of the first application, that is, the first interface is the homepage of the first application. In the embodiment of the present application, "the mobile phone starts the first application in response to the first operation when the first application is not running" is referred to as: the mobile phone cold starts the first application from the main interface (that is, the desktop). In the embodiment of the present application, if the mobile phone cold starts the first application from the main interface, the mobile phone can display the homepage of the first application (that is, the preset homepage) in response to the operation of starting the first application (that is, the first operation), that is, the first interface is the preset homepage.
[0338] If the mobile phone receives the first operation of the user on the icon of the first application, the mobile phone runs the first application in the background; then, in response to the first operation, the mobile phone can display the interface of the first application displayed by the mobile phone when the mobile phone switches the first application from the foreground to the background. In this case, the first interface may be the homepage of the first application, or may not be the homepage of the first application.
[0339] S2503. In response to the first operation, the mobile phone determines whether the first interface is a preset homepage of the first application.
[0340] The mobile phone may determine the preset main page of the first application by any one of the following implementation methods (I) to (III).
[0341] In implementation (I), the main page of the first application is pre-configured in the configuration file of the installation package of the first application. When the mobile phone installs the first application, the configuration file of the installation package of the first application can be parsed to obtain and save the preset homepage of the first application. Generally speaking, the main page configured in the configuration file of the installation package of the first application is the homepage of the first application.
[0342] Of course, the configuration files of the installation packages of some applications may not include the main page of the first application. In this case, the mobile phone can determine the main page of the first application through implementation method (II) or implementation method (III).
[0343] In implementation (II), the mobile phone may configure the main page for the first application. For example, the mobile phone may configure the home page of the first application as the main page of the first application. That is, the main page is the home page of the first application.
[0344] In implementation (III), the mobile phone may identify multiple interfaces of the first application and determine the main page of the first application from the multiple interfaces. Specifically, the preset homepage may be an interface that satisfies a preset condition among the multiple interfaces of the first application. The preset condition is: including preset interface features, and the number of preset interface features is greater than a preset number threshold. For example, the preset interface features may include preset components or mini-programs.
[0345] It should be noted that, in the embodiments of the present application, the priorities of the mainPage described in the above implementation methods (I) to (III) are different. Specifically, the priority of the main Page described in implementation method (I) is higher than the priority of the main Page described in implementation method (II), and the priority of the main Page described in implementation method (II) is higher than the priority of the main Page described in implementation method (III). In other words, if the configuration file of the installation package of the first application includes the mainPage, the mobile phone can preferentially use the main Page as the preset homepage of the first application.
[0346] For example, the preset homepage is the homepage of the first application. From the above description, it can be seen that in response to the user's first operation on the icon of the first application, the first interface of the first application to be displayed by the mobile phone may be the homepage of the first application (i.e., the preset homepage), or may not be the homepage of the first application.
[0347] In the embodiment of the present application, the mobile phone can determine whether to display the preset homepage of the first application and the related pages configured in pair with the preset homepage in a dual window manner by judging whether the first interface is the preset homepage (i.e., main page) of the first application. Specifically, if the first interface is the preset homepage of the first application, the mobile phone can execute S2504; if the first interface is not the preset homepage of the first application, the mobile phone can execute S2505.
[0348] S2504: The mobile phone controls the first display area of the display screen to display the first interface, and controls the second display area of the display screen to display the second interface of the first application. The second interface is a related page configured in pair with the preset homepage.
[0349] The second display area does not overlap with the first display area. It should be noted that the above-mentioned related pages and the preset homepage are configured in pairs. The mobile phone can determine the related page of the first application by any one of the following implementation methods (i) to (iii).
[0350] In implementation (i), the related Page of the first application is pre-configured in the configuration file of the installation package of the first application. When the mobile phone installs the first application, the configuration file of the installation package of the first application can be parsed to obtain and save the related page of the first application. For example, the related Page configured in the configuration file of the installation package of the first application can be any interface of the next level of the homepage of the first application.
[0351] In implementation (ii), the mobile phone can configure a related Page for the first application. For example, the mobile phone can configure any interface at the next level of the homepage of the first application as the related Page of the first application. That is, the related page of the first application is the interface at the next level of the homepage. For another example, the mobile phone can set a blank page as the related Page of the first application. For another example, the mobile phone can set a preset page (such as an interface including a preset logo) as the related Page of the first application.
[0352] In implementation (iii), the user may set the related page of the first application in the mobile phone. The mobile phone may receive the user's setting and set any interface of the first application as the related page of the first application. The method for the mobile phone to receive the user's setting and set the related page for the first application may refer to the subsequent relevant description of the embodiment of the present application, which will not be described in detail in the embodiment of the present application.
[0353] It should be noted that, in the embodiment of the present application, the priorities of the related Pages described in the above implementations (i) to (iii) are different. Specifically, the priority of the related Page described in implementation (ii) is higher than the priority of the related Page described in implementation (i), and the priority of the related Page described in implementation (i) is higher than the priority of the related Page described in implementation (ii). In other words, if the user customizes the related Page of the first application in the mobile phone, the mobile phone can preferentially use the related Page as the related page of the first application.
[0354] S2505. The mobile phone controls the display screen to display the first interface of the first application in a single window.
[0355] by Fig.26 As shown in (a) of FIG. 1 , a non-folding screen mobile phone 2600 in a horizontal screen state is taken as an example. Generally speaking, in response to a user's Fig.26 The first operation of the icon 2602 of the first application shown in (a) of FIG. 2600 may display Fig.26 In the embodiment of the present application, in response to the first operation, the mobile phone 2600 does not directly display the first interface 2603, but executes S2503 to determine whether the first interface 2603 is the main page of the first application.
[0356] If the first interface 2603 is the main page (such as the homepage) of the first application, the mobile phone 2600 may execute S2504. Fig.26 As shown in (c) of FIG. 25 , the mobile phone 2600 can display the mainPage (i.e., the first interface) 2604 of the first application in the first display area a of the display screen, and display the relatedPage (i.e., the second interface) 2605 configured in pair with the main Page in the second display area b of the display screen. If the first interface 2603 is not the main Page (i.e., the homepage) of the first application, the mobile phone 2600 can execute S2505. Fig.26 As shown in (b) , the mobile phone 2600 can display the first interface 2603 in a single window.
[0357] by Fig. 27 As shown in (a) of FIG. 1 , a folding screen mobile phone 2700 in an unfolded state is taken as an example. Generally speaking, in response to a user's Fig. 27 The first operation of the icon 2702 of the first application shown in (a) of FIG. 2700 may display Fig. 27 The first interface 2703 shown in (b) of FIG. 10 . In the embodiment of the present application, in response to the first operation, the mobile phone 2700 does not directly display the first interface 2703 ; instead, it executes S2503 to determine whether the first interface 2703 is the main page of the first application.
[0358] If the first interface 2703 is the main page (such as the home page) of the first application, the mobile phone 2700 may execute S2504. Fig. 27 As shown in (c) of FIG. 25 , the mobile phone 2700 can display the mainPage (i.e., the first interface) 2704 of the first application in the first display area A of the display screen, and display the relatedPage (i.e., the second interface) 2705 configured in pair with the main Page in the second display area B of the display screen. If the first interface 2703 is not the main Page (i.e., the homepage) of the first application, the mobile phone 2700 can execute S2505. Fig. 27 As shown in (b) , the mobile phone 2700 can display the first interface 2703 in a single window.
[0359] The embodiment of the present application provides a method for displaying an application, in which a mobile phone can display a main interface in a landscape state or an expanded state, and in response to a first operation of a user on an icon of a first application, it can be determined whether the first interface displayed by the mobile phone triggered by the first operation is the main page of the first application. If the first interface is the main page of the first application, the mobile phone can display the main page of the first application and the related page configured in pair with the main page in a dual window. In this way, a mobile phone in a landscape state or an expanded state can display two interfaces of the first application on the display screen at the same time, which can make the display content of the display screen richer, improve the utilization rate of the display screen, and enhance the user's visual experience.
[0360] In other embodiments, the electronic device in the embodiments of the present application may be a non-folding screen electronic device or a folding screen electronic device. For example, the non-folding screen electronic device or the folding screen electronic device is a mobile phone. The above preset scene is scene 2. The mobile phone enters scene 2 when the non-folding screen mobile phone changes from a vertical screen state to a horizontal screen state. Or, the mobile phone enters the preset scene when the folding screen of the mobile phone changes from a folded state to an unfolded state. Fig.28 As shown, the method for displaying an application may include S2801-S2804.
[0361] S2801. The display screen of the mobile phone is in a first state, and the display screen is controlled to display a first interface of a first application.
[0362] S2802: In response to the display screen changing from the first state to the second state, the mobile phone determines whether the first interface is a preset homepage of the first application.
[0363] In one case, the mobile phone is a non-folding screen mobile phone, the first state is a vertical screen state, and the second state is a horizontal screen state. Fig.29 As shown in (a) of FIG. 1 , the mobile phone 2900 is a non-folding screen mobile phone, and the mobile phone 2900 is in a vertical screen state. Fig.29 As shown in (a) of FIG. 1 , the mobile phone 2900 displays a first interface 2901 of a first application (such as a news application). Fig.29 (b) or Fig.29 As shown in (c) in FIG. 1 , the mobile phone 2900 is in landscape mode.
[0364] In another case, the mobile phone is a foldable screen mobile phone, that is, the display screen is a foldable screen. In this case, the display screen is in the first state specifically: the foldable screen is in the folded state and in the vertical screen state; the display screen is in the second state specifically: the foldable screen is in the folded state and in the horizontal screen state. For example, Fig.29 The mobile phone 2900 shown in (a) may be a foldable screen mobile phone, and the mobile phone 2900 is in a folded state and in a vertical screen state. Fig.29 As shown in (a) of FIG. 1 , the mobile phone 2900 displays a first interface 2901 of a first application (such as a news application). Fig.29 (b) or Fig.29 As shown in (c) in FIG. 8 , the mobile phone 2900 is in a folded state and in a horizontal state.
[0365] In another case, the mobile phone is a folding screen mobile phone, that is, the display screen is a folding screen. In this case, the first state is the folded state, and the second state is the unfolded state. Fig.30 As shown in (a) in FIG. 3 , the mobile phone 3000 is a folding screen mobile phone, and the mobile phone 3000 is in a folded state. Fig.30 As shown in (a) of FIG. 3 , the mobile phone 3000 displays a first interface 3001 of a first application (such as a news application). Fig.30 (b) or Fig.30 As shown in (c) in FIG. 8 , the mobile phone 3000 is in an unfolded state.
[0366] Specifically, if the first interface is the preset homepage of the first application, the mobile phone can execute S2803; if the first interface is not the preset homepage of the first application, the mobile phone can execute S2804.
[0367] S2803: The mobile phone controls the first display area of the display screen to display the first interface, and controls the second display area of the display screen to display the second interface of the first application. The second interface is a related page configured in pair with the preset homepage.
[0368] The second display area does not overlap with the first display area. It should be noted that the preset homepage and related pages of the first application, as well as the method for the mobile phone to determine whether the first interface is the preset homepage of the first application, can refer to the relevant description in the embodiment of scenario 1, and the embodiment of this application will not be repeated here.
[0369] S2804. The mobile phone controls the display screen to display the first interface of the first application in a single window.
[0370] by Fig.29 As shown in (a) in FIG. 8 , a mobile phone 2600 in a vertical position is taken as an example. Fig.29As shown in (a) of FIG. 1 , the mobile phone 2600 in the vertical screen state displays the first interface 2901 of the first application (such as a news application). Generally speaking, in response to the mobile phone 2600 being Fig.29 The vertical screen state shown in (a) is changed to the horizontal screen state, and the mobile phone 2600 can display Fig.29 In the embodiment of the present application, in response to the mobile phone 2600 being Fig.29 When the vertical screen state shown in (a) is changed to the horizontal screen state, the mobile phone 2600 will not directly display the first interface 2902; instead, S2802 is executed to determine whether the first interface 2901 is the main page of the first application.
[0371] If the first interface 2901 is the main page (such as the home page) of the first application, the mobile phone 2600 may execute S2803. Fig.29 As shown in (c) of FIG. 2 , the mobile phone 2600 can display the mainPage (i.e., the first interface) 2903 of the first application in the first display area a of the display screen, and display the relatedPage (i.e., the second interface) 2904 configured in pair with the main Page in the second display area b of the display screen. If the first interface 2901 is not the main Page (i.e., the homepage) of the first application, the mobile phone 2600 can execute S2804. Fig.29 As shown in (b) , the mobile phone 2600 can display the first interface 2902 in a single window.
[0372] by Fig.30 Take the foldable screen mobile phone 2700 in a folded state as shown in (a) in the figure as an example. Fig.30 As shown in (a) of FIG. 2 , the mobile phone 2700 in the folded state displays the first interface 3001 of the first application (such as a news application). Generally speaking, in response to the mobile phone 2700 being Fig.30 The folded state shown in (a) is changed to the unfolded state, and the mobile phone 3700 can display Fig.30 In the embodiment of the present application, in response to the mobile phone 2700 being Fig.30 When the folded state shown in (a) is changed to the unfolded state, the mobile phone 2700 does not directly display the first interface 3002; instead, it executes S2802 to determine whether the first interface 3001 is the main page of the first application.
[0373] If the first interface 3001 is the main page (such as the homepage) of the first application, the mobile phone 2700 may execute S2803. Fig.30As shown in (c) of FIG. 2 , the mobile phone 2700 can display the mainPage (i.e., the first interface) 3003 of the first application in the first display area A of the display screen, and display the relatedPage (i.e., the second interface) 3004 configured in pair with the main Page in the second display area B of the display screen. If the first interface 3001 is not the main Page (i.e., the homepage) of the first application, the mobile phone 2700 can execute S2804. Fig.30 As shown in (b) , the mobile phone 2700 can display the first interface 3002 in a single window.
[0374] The embodiment of the present application provides a method for displaying an application, in which a mobile phone displays a first interface of a first application in a first state, and in response to the mobile phone changing from the first state to the second state, the mobile phone can determine whether the first interface displayed by the mobile phone triggered by the first operation is the main page of the first application. If the first interface is the main page of the first application, the mobile phone can display the main page of the first application and the related page configured in pair with the main page in a dual window. In this way, a mobile phone in a horizontal screen state or an expanded state can display two interfaces of the first application on the display screen at the same time, which can make the display content of the display screen richer, improve the utilization rate of the display screen, and enhance the user's visual experience.
[0375] In other embodiments, the electronic device in the embodiments of the present application may be a non-folding screen electronic device or a folding screen electronic device. For example, the non-folding screen electronic device or the folding screen electronic device is a mobile phone. The above-mentioned preset scene is scene 3. The mobile phone enters scene 3 when the non-folding screen mobile phone is in landscape mode and the scene of the first application is called in the second application. Alternatively, the mobile phone enters the preset scene when the folding screen of the folding screen mobile phone is in the unfolded state and the mobile phone calls the scene of the first application in the second application. Fig.31A As shown, the method for displaying an application may include S3101-S3105.
[0376] S3101. When the mobile phone is in the first state, the mobile phone controls the display screen to display the interface of the second application.
[0377] In one case, the mobile phone is a non-folding screen mobile phone, and the first state is a horizontal screen state.
[0378] In another case, the mobile phone is a foldable screen mobile phone, that is, the display screen is a foldable screen. In this case, the display screen is in the first state specifically: the foldable screen is in a folded state and in a horizontal screen state.
[0379] In another case, the mobile phone is a folding screen mobile phone, that is, the display screen is a folding screen. In this case, the display screen is in the first state specifically: the folding screen is in the unfolded state.
[0380] S3102: The mobile phone receives a first operation performed by the user on the interface of the second application. The first operation is used to trigger the mobile phone to call the first application to display the first interface of the first application.
[0381] For example, the mobile phone is a foldable screen mobile phone, and the first state is the unfolded state. Fig.31B As shown in (a) of FIG. 3 , the mobile phone displays the home page of the news application (i.e., the first interface of the first application) 3101. At this time, the short message application (i.e., the second application) of the mobile phone receives the short message, such as Fig.31B As shown in (a) of FIG. 1 , the mobile phone may display a prompt message 3102 of the short message in the notification bar. In response to the user clicking on the prompt message 3102, as shown in FIG. Fig.31B As shown in (b) of FIG. 3 , the mobile phone may display an interface 3103 of a short message application (i.e., a second application) to display the short message to the user. Fig.31B As shown in (b) of FIG. 1 , the mobile phone displays the interface of the short message application and can also display a prompt message 3104 for returning to the interface of the news application. The first operation can be a user clicking operation on the prompt message 3104. The first operation is used to trigger the mobile phone to call the news application and display the homepage of the news application.
[0382] S3103. In response to the first operation, the mobile phone determines whether the first interface is a preset homepage of the first application.
[0383] Specifically, if the first interface is the preset homepage of the first application, the mobile phone can execute S3104; if the first interface is not the preset homepage of the first application, the mobile phone can execute S3105.
[0384] S3104: The mobile phone controls the first display area of the display screen to display the first interface, and controls the second display area of the display screen to display the second interface of the first application. The second interface is a related page configured in pair with the preset homepage.
[0385] The second display area does not overlap with the first display area. It should be noted that the preset homepage and related pages of the first application, as well as the method for the mobile phone to determine whether the first interface is the preset homepage of the first application, can refer to the relevant description in the embodiment of scenario 1, and the embodiment of this application will not be repeated here.
[0386] S3105. The mobile phone controls the display screen to display the first interface of the first application in a single window.
[0387] Combining the above example, if Fig.31B The first interface 3101 shown in (a) is the main page of the news application (ie, the first application). Fig.31BThe first operation of the prompt information 3104 shown in (b) is as follows: Fig.30 As shown in (c) of FIG. 1 , the mobile phone can display the first interface 3003 in the first display area A and the second interface 3004 in the second display area B. The second interface 3004 is a related page of the news application. Fig.31B The first interface 3101 shown in (a) is not the main page of the news application (ie, the first application). Fig.31B The first operation of the prompt information 3104 shown in (b) is as follows: Fig.30 As shown in (b), the mobile phone can display the first interface 3002 in a single window.
[0388] The embodiment of the present application provides a method for displaying an application, in which a mobile phone displays the interface of a second application in a first state; in response to a first operation for triggering the mobile phone to call a first application to display a first interface, the mobile phone can determine whether the first interface triggered by the first operation to display the mobile phone is the main Page of the first application. If the first interface is the mainPage of the first application, the mobile phone can display the main Page of the first application and the relatedPage configured in pair with the main Page in a dual window. In this way, a mobile phone in a horizontal or expanded state can display the two interfaces of the first application on the display screen at the same time, which can make the display content of the display screen richer, improve the utilization rate of the display screen, and enhance the user's visual experience.
[0389] In other embodiments, the electronic device in the embodiments of the present application may be a non-folding screen electronic device or a folding screen electronic device. For example, the non-folding screen electronic device or the folding screen electronic device is a mobile phone. The above-mentioned preset scene is scene 4. The mobile phone enters scene 4 when the non-folding screen mobile phone is in landscape mode and exits the scene of displaying multiple applications in dual windows. Alternatively, the mobile phone enters the preset scene when the folding screen of the folding screen mobile phone is in the unfolded state and exits the scene of displaying multiple applications in dual windows. Fig.32 As shown, the method for displaying an application may include S3201-S3204.
[0390] S3201. When the mobile phone is in a first state, a first display area of the display screen is controlled to display a first interface of a first application, and a second display area of the display screen is controlled to display an interface of a second application.
[0391] In one case, the mobile phone is a non-folding screen mobile phone, and the first state is a horizontal screen state.
[0392] In another case, the mobile phone is a foldable screen mobile phone, that is, the display screen is a foldable screen. In this case, the display screen is in the first state specifically: the foldable screen is in a folded state and in a horizontal screen state.
[0393] In another case, the mobile phone is a folding screen mobile phone, that is, the display screen is a folding screen. In this case, the display screen is in the first state specifically: the folding screen is in the unfolded state.
[0394] For example, the mobile phone is a foldable screen mobile phone, and the first state is the unfolded state. Fig.33 As shown in (a), the foldable screen mobile phone 2700 is in the unfolded state, the first display area A of the foldable screen mobile phone 2700 displays the first interface 3301 of the first application (such as a news application), and the second display area B displays the interface 3302 of the second application (such as a settings application).
[0395] S3202: The mobile phone receives a first operation of the user, wherein the first operation is used to trigger the display screen to exit the interface of the second application and only display the first interface.
[0396] Exemplarily, the first operation may be a pre-set gesture. The pre-set gesture is used to trigger the display screen of the mobile phone to exit the interface of the second application and only display the first interface. For example, the pre-set gesture may be an S-shaped gesture, an L-shaped gesture, a √-shaped gesture, etc. Alternatively, the first operation may be a user's touch on the boundary between the first display area and the second display area (such as Fig.21 The dragging operation is used to trigger the display screen of the mobile phone to exit the interface of the second application and only display the first interface.
[0397] S3203. In response to the first operation, the mobile phone determines whether the first interface is a preset homepage of the first application.
[0398] Specifically, if the first interface is the preset homepage of the first application, the mobile phone can execute S3204; if the first interface is not the preset homepage of the first application, the mobile phone can execute S3205.
[0399] S3204: The mobile phone controls the first display area of the display screen to display the first interface, and controls the second display area of the display screen to display the second interface of the first application. The second interface is a related page configured in pair with the preset homepage.
[0400] The second display area does not overlap with the first display area. It should be noted that the preset homepage and related pages of the first application, as well as the method for the mobile phone to determine whether the first interface is the preset homepage of the first application, can refer to the relevant description in the embodiment of scenario 1, and the embodiment of this application will not be repeated here.
[0401] S3205. The mobile phone controls the display screen to display the first interface of the first application in a single window.
[0402] by Fig.33Take the folding screen mobile phone 2700 in the unfolded state as shown in (a) in the figure as an example. Fig.33 As shown in (a) of FIG. 2 , the first display area A of the mobile phone 2700 in the expanded state displays the first interface 3301 of the first application (such as a news application), and the second display area B displays the interface 3302 of the second application (such as a settings application). Generally speaking, in response to the above first operation, the mobile phone 2700 can display the first interface in a single window, such as the mobile phone 3700 can display Fig.33 In the embodiment of the present application, in response to the first operation, the mobile phone 2700 does not directly display the first interface 3303 in a single window, but executes S3203 to determine whether the first interface 3301 is the main page of the first application.
[0403] If the first interface 3301 is the main page (such as the home page) of the first application, the mobile phone 2700 may execute S3204. Fig.33 As shown in (c) of FIG. 2 , the mobile phone 2700 can display the mainPage (i.e., the first interface) 3304 of the first application in the first display area A of the display screen, and display the relatedPage (i.e., the second interface) 3305 configured in pair with the main Page in the second display area B of the display screen. If the first interface 3301 is not the main Page (i.e., the homepage) of the first application, the mobile phone 2700 can execute S3205. Fig.33 As shown in (b) , the mobile phone 2700 can display the first interface 3303 in a single window.
[0404] The embodiment of the present application provides a method for displaying an application, in which a mobile phone displays a first interface of a first application and an interface of a second application in dual windows in a first state; in response to a first operation for triggering the mobile phone to exit displaying the interface of the second application and only display the first interface, the mobile phone can determine whether the first interface displayed by the mobile phone triggered by the first operation is the main page of the first application. If the first interface is the main page of the first application, the mobile phone can display the main page of the first application and the related page configured in pair with the main page in dual windows. In this way, a mobile phone in a horizontal or expanded state can display the two interfaces of the first application on the display screen at the same time, which can make the display content of the display screen richer, improve the utilization rate of the display screen, and enhance the user's visual experience.
[0405] Optionally, in the above preset scenario (such as any one of the scenarios 1 to 4), before executing the above S2503, S2802, S3103 or S3203, the mobile phone can determine whether the first application supports dual-window display. If the first application supports dual-window display, S2503, S2802, S3103 or S3203 can be executed.
[0406] The following combination Fig.34A , illustrating the principles of the methods described in the above scenarios 1 to 4. Fig.34A As shown, after the mobile phone enters the preset scene (i.e., 3410), it can determine whether the first application supports dual-window display (i.e., execute 3420). If the first application supports dual-window display, the mobile phone can determine whether the current window (i.e., the window corresponding to the first interface) is the main Page of the first application (i.e., execute S3430). If the first interface is the main Page of the first application, the Activity position of the first interface can be set in the first display area (such as the display area on the left) (i.e., execute 3440). Then, the mobile phone can call the start Activity() interface to automatically start the second interface (i.e., execute 3450). Among them, the second interface is the related Page of the first application. Finally, the mobile phone can set the Activity position of the second interface in the second display area (such as the display area on the right) (i.e., execute 3460).
[0407] correspond Fig.34A , Fig.34B The principle block diagram of the method provided by the embodiment of the present application is shown. Fig.34B As shown, 34a shows the preset scene entrance provided by the embodiment of the present application. Fig.34A 3410 shown, enter Fig.34B After the preset scene shown, 34b can be executed to identify whether the first interface is the preset homepage (ie main Page) of the first application (ie Fig.34A 3430 shown). Optionally, Fig.34B Before 34b shown, the mobile phone can determine whether the first application supports dual-window display. If the first application supports dual-window display, 34b can be executed. 34b shows three sources of the preset homepage (i.e., mainPage) of the first application, i.e., the three main Pages shown in the above implementation methods (I) to (III). If the first interface is the main Page of the first application, then Fig.34B 34c shown, starts the related page (ie related Page) of the first application, that is Fig.34A3450 is shown. Among them, 34c shows three sources of the related pages (relatedPage) of the first application, namely the three related Pages shown in the above implementations (i) to (ii). Finally, the mobile phone can execute Fig.34B As shown in 34d, a preset homepage is displayed in a first display area (such as a left display area), and related pages are displayed in a second display area (such as a right display area), that is, Fig.34A 3440 and 3460 shown.
[0408] In any of the above scenarios 1 to 4, after the mobile phone controls the first display area of the display screen to display the first interface and controls the second display area of the display screen to display the second interface of the first application, the mobile phone may receive a user's click operation on the Back key in the navigation bar of the mobile phone. The focus interface of the mobile phone is different, and in response to the user's click operation on the Back key, the mobile phone can perform different operations.
[0409] In some embodiments, after the above S2504, S2803, S3104 or S3204, the method of the embodiment of the present application may further include S1 and S2. S1: In response to the user's second operation on the first interface, the mobile phone controls the display screen to display the main interface of the mobile phone. In response to the second operation on the first interface, the mobile phone does not run the first application in the background. S2: In response to the user's second operation on the second interface, the mobile phone controls the display screen to display the main interface of the mobile phone. In response to the second operation on the second interface, the mobile phone runs the first application in the background.
[0410] The second operation includes clicking the Back button in the mobile phone's navigation bar. The navigation bar in this application is a shortcut button bar at the bottom of the mobile phone screen. It usually appears at the bottom of the mobile phone screen in the form of virtual buttons. The navigation bar contains three buttons by default: the Back button, the Home button, and the Recent button. The Back button is used to return to the previous interface, the Home button is used to return to the desktop, and the Recent button is used to display recently used applications. Fig.35 As shown in (a) of FIG. 3 , the navigation bar 3500 includes a Back key 3501, a Home key 3502, and a Recent key 3503. Fig.35 As shown in (a), the first display area A of the mobile phone displays the first interface 3504 of the first application, and the second display area B displays the second interface 3505 of the first application.
[0411] In the embodiment of the present application, the second operation of the user on the first interface may be a click operation (such as a single click operation) of the user on the Back key when the first interface is the focus interface (such as the interface currently operated by the user or the selected interface). The second operation of the user on the second interface may be a click operation (such as a single click operation) of the user on the Back key when the second interface is the focus interface.
[0412] The mobile phone can return to the main interface in response to the second operation on the first interface or the second interface. However, the difference is that since the first interface is the main page of the first application, in response to the second operation on the first interface, the mobile phone will not run the first application in the background after displaying the main interface.
[0413] Specifically, in response to the user's second operation on the first interface, the mobile phone can execute the Activity finish process for the main Page Activity and the related Page Activity to delete the main Page Activity and the related Page Activity. In response to the user's second operation on the second interface, the mobile phone can intercept the Activity finish process and call the moveToBack function to retain the main Page Activity window and the related Page Activity window in the background, that is, the mobile phone can run the first application in the background.
[0414] For example, please refer to Table 1, which shows the control principle of the mobile phone in response to the second operation in the embodiment of the present application.
[0415] Table 1
[0416]
[0417] For example, Fig.35 As shown in (a) of FIG. 1 , the first interface 3504 displayed in the first display area A is the focus interface, that is, the interface in the black frame is the focus interface. The mobile phone executes S1: responding to the user's Fig.35 The click operation of the Back key 3501 shown in (a) (i.e., the second operation on the first interface 3504) can display Fig. 27 The main interface 3701 shown in (a) in FIG.
[0418] For example, Fig.35 As shown in (b) of FIG. 1 , the second interface 3505 displayed in the second display area B is the focus interface, that is, the interface in the black frame is the focus interface. The mobile phone executes S2: responding to the user's Fig.35The click operation of the Back key 3501 shown in (b) (i.e., the second operation on the second interface 3505) can display Fig. 27 The main interface 3701 shown in (a) in FIG.
[0419] However, the difference is that: in response to the user's Fig.35 In response to the user clicking the Back key 3501 shown in (a), the mobile phone will not run the first application in the background; Fig.35 By clicking the Back key 3501 shown in (b) in the figure, the mobile phone can continue to run the first application in the background.
[0420] It should be noted that the mobile phone can display the task window of the application that was recently run and not closed by the mobile phone in response to the user's preset operation on the mobile phone (such as a double-click operation on the Home button 3502 or a single-click operation on the Recent button), so as to determine whether the mobile phone is still running the first application in response to the above second operation. Among them, the specific method for the mobile phone to display the task window of the application that was recently run and not closed by the mobile phone in response to the above preset operation can refer to the above embodiment. Fig.14 The related introduction of the embodiments of the present application will not be repeated here.
[0421] In other embodiments, after the above S2504, S2803, S3104 or S3204, the method of the embodiment of the present application may further include Sa and Sb. Sa: In response to the user's second operation on the first interface, the mobile phone controls the display screen to display the main interface. The second operation includes a click operation on the Back key in the navigation bar of the mobile phone. Among them, in response to the second operation on the second interface, the mobile phone runs the first application in the background. Sb: In response to the user's second operation on the second interface, the mobile phone does not perform any operation, and still controls the display screen to display the first interface in the first display area and the second interface in the second display area.
[0422] Specifically, in response to the user's second operation on the first interface, the mobile phone can call the moveToBack function to retain the main Page Activity window and the related Page Activity window in the background, that is, the mobile phone can run the first application in the background. In response to the user's second operation on the second interface, the mobile phone can run the first application in the background.
[0423] For example, please refer to Table 2, which shows the control principle of the mobile phone in response to the second operation in the embodiment of the present application.
[0424] Table 2
[0425]
[0426] For example, Fig.35As shown in (a) of FIG. 1 , the first interface 3504 displayed in the first display area A is the focus interface, that is, the interface in the black frame is the focus interface. The mobile phone executes Sa: In response to the user's Fig.35 The click operation of the Back key 3501 shown in (a) (i.e., the second operation on the first interface 3504) can display Fig. 27 The main interface 3701 shown in (a) in FIG.
[0427] For example, Fig.35 As shown in (b) of FIG. 1 , the second interface 3505 displayed in the second display area B is the focus interface, that is, the interface in the black frame is the focus interface. The mobile phone executes Sb: In response to the user's Fig.35 The click operation of the Back key 3501 shown in (b) (i.e., the second operation on the second interface 3505) can display Fig. 27 The main interface 3701 shown in (a) of FIG. 10 is shown in FIG. 10 . Alternatively, the mobile phone executes Sb: in response to the user's Fig.35 The click operation of the Back key 3501 shown in (b) (i.e., the second operation on the second interface 3505) can continue to display Fig.35 The interface shown in (b) in the figure, that is, the first interface 3504 is displayed in the first display area A, and the second interface 3505 is displayed in the second display area B.
[0428] It should be noted that, different from the above S1, the mobile phone executes Sa: in response to the user's Fig.35 By clicking the Back key 3501 shown in (a) in the figure, the mobile phone can continue to run the first application in the background.
[0429] The embodiment of the present application here describes a method for a user to customize a related page (i.e., related Page) of a first application in any of the above-mentioned scenarios 1 to 4. Exemplarily, when the mobile phone is in the above-mentioned first state or second state, the third interface of the first application can be displayed. The mobile phone can receive a preset gesture input by the user on the third interface, and the preset gesture is used to configure the related page of the first application. In response to the preset gesture, the mobile phone can configure the third interface as a related page (i.e., related Page) of the first application.
[0430] Exemplarily, the preset gesture may be a three-finger pinch gesture, a two-finger upward slide gesture, a three-finger downward slide gesture, etc. In the following embodiments, the preset gesture is taken as an example of a three-finger pinch gesture.
[0431] The first state may be a horizontal screen state, and the second state may be a vertical screen state; or the first state may be an unfolded state, and the second state may be a folded state.
[0432] It should be noted that when the mobile phone is in a vertical screen state or a folded state, the third interface can be displayed in a single window. Fig.36 As shown in (a) of FIG. 1 , the mobile phone is in a vertical screen state and displays a third interface 3601. In response to the user Fig.36 The mobile phone can set the third interface 3601 as the related page of the first application in response to the preset gesture inputted by the user in (a). Fig.36 The preset gesture inputted by the third interface 3601 shown in (a) of FIG. 1 can display Fig.36 In the prompt information 3602 shown in (b), in response to the user's selection operation of the "yes" option in the prompt information 3602, the mobile phone can set the third interface 3601 as the related Page of the first application.
[0433] When the mobile phone is in landscape mode or expanded mode, the third interface can be displayed in a single window or dual windows. Specifically, the mobile phone displays the third interface in dual windows, which means that the mobile phone displays two interfaces in dual windows, and the third interface is one of the two interfaces.
[0434] For example, Fig.37 As shown in (a) of FIG. 1 , the mobile phone is in an unfolded state, and the third interface 3701 is displayed in a single window. Fig.37 The preset gesture inputted by the third interface 3701 shown in (a) of FIG. 1 can display Fig.37 In the prompt information 3702 shown in (b), in response to the user's selection operation of the "yes" option in the prompt information 3702, the mobile phone can set the third interface 3701 as the related Page of the first application.
[0435] For example, Fig.38 As shown in (a) of FIG. 1 , the mobile phone is in an unfolded state, and displays the third interface 3505 and another interface 3504 in a dual window. Fig.38 The preset gesture inputted by the third interface 3505 shown in (a) of FIG. 1 can be displayed by the mobile phone. Fig.38 In the prompt information 3801 shown in (b), in response to the user's selection operation of the "yes" option in the prompt information 3801, the mobile phone can set the third interface 3505 as the related Page of the first application.
[0436] The mobile phone can save the related Page set by the user for the first application (i.e., customized). Fig.23A As shown, the mobile phone can save user-defined related Pages in the configuration module.
[0437] Some other embodiments of the present application also provide an electronic device, which may include: the above-mentioned folding screen, a memory and one or more processors. The folding screen, the memory and the processor are coupled. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device can execute the various functions or steps executed by the mobile phone in the above-mentioned method embodiment. The structure of the electronic device can refer to Figure 4 The structure of the electronic device 100 is shown.
[0438] Some other embodiments of the present application also provide a device for displaying an application, characterized in that the device can be applied to an electronic device including the above-mentioned folding screen. The device is used to execute each function or step executed by the mobile phone in the above-mentioned method embodiment.
[0439] The present application also provides a chip system, such as Fig.39 As shown, the chip system includes at least one processor 3901 and at least one interface circuit 3902. The processor 3901 and the interface circuit 3902 can be interconnected via lines. For example, the interface circuit 3902 can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 3902 can be used to send signals to other devices (such as processor 3901). Exemplarily, the interface circuit 3902 can read instructions stored in the memory and send the instructions to the processor 3901. When the instructions are executed by the processor 3901, the electronic device can perform the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiments of the present application.
[0440] An embodiment of the present application also provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step executed by the mobile phone in the above-mentioned method embodiment.
[0441] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step executed by the mobile phone in the above method embodiment.
[0442] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0443] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0444] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0445] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0446] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0447] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for displaying an application, characterized in that: Applied to an electronic device including a folding screen, the folding screen can be folded to form at least two display areas, the at least two display areas include a first display area and a second display area, the folding screen is in a folded state, the first display area and the second display area are opposite, a third screen is arranged on the back of the first display area, the electronic device includes a first application, the first application includes a first interface, a second interface, a third interface and a fourth interface, the method includes: When the folding screen is in the folded state, the third screen is controlled to display the first interface; In response to the folding screen changing from the folded state to the unfolded state, controlling the first display area of the folding screen to display the first interface, and controlling the second display area of the folding screen to display the second interface; wherein the second display area does not overlap with the first display area; and the second interface is different from the first interface; receiving a first operation on the first interface displayed in the first display area, and in response to the first operation, controlling the first display area of the folding screen to display the third interface and the second display area to display the second interface, wherein the third interface is different from the first interface; Receive a second operation on the second interface displayed in the second display area, and in response to the second operation, control the second display area of the folding screen to display the fourth interface and the first display area to display the third interface, wherein the fourth interface is different from the second interface.
2. The method according to claim 1, characterized in that The first interface corresponds to a first Activity, the third interface corresponds to a third Activity, and the first Activity and the third Activity are the same or different Activities.
3. The method according to claim 1, characterized in that The second interface corresponds to a second Activity, the fourth interface corresponds to a fourth Activity, and the second Activity and the fourth Activity are the same or different Activities.
4. The method according to claim 1, characterized in that: The first interface is the home page of the first application.
5. The method according to claim 1, characterized in that The method further comprises: receiving a third operation, wherein the third operation is an operation of clicking an icon of the first application on the desktop of the electronic device; In response to a third operation, the first interface of the first application is displayed.
6. The method according to claim 1, characterized in that The second interface is a related page configured in pair with the first interface.
7. The method according to claim 1, characterized in that The first display area and the second display area are pre-configured in the electronic device.
8. The method according to claim 1, characterized in that After controlling the first display area of the folding screen to display the first interface and the second display area of the folding screen to display the second interface of the first application, the method further includes: In response to a fourth operation of the user on the first interface, controlling the first display area and the second display area to display the main interface of the electronic device; wherein, in response to the fourth operation on the first interface, the electronic device does not run the first application in the background, and / or, In response to the fourth operation of the user on the second interface, control the display main interface of the electronic device in the first display area and the second display area; wherein, in response to the fourth operation on the second interface, the electronic device runs the first application in the background.
9. The method according to claim 1, characterized in that: After controlling the first display area of the folding screen to display the first interface and the second display area of the folding screen to display the second interface of the first application, the method further includes: In response to a fourth operation of the user on the first interface or the second interface, the first display area and the second display area are controlled to display a main interface; wherein, in response to the fourth operation, the electronic device runs the first application in the background.
10. The method according to claim 8 or 9, characterized in that: The fourth operation is a click operation on the Back key in the navigation bar of the electronic device.
11. The method according to claim 1, characterized in that: The folded state is a state in which the angle between the first screen and the second screen is less than a preset angle threshold, and the unfolded state is a state in which the angle between the first screen and the second screen is greater than or equal to the preset angle threshold; Alternatively, the folded state is a state in which the angle between the first screen and the second screen is less than or equal to a preset angle threshold, and the unfolded state is a state in which the angle between the first screen and the second screen is greater than the preset angle threshold.
12. An electronic device, characterized in that: The electronic device includes a display screen, a memory and one or more processors; the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the electronic device executes the method as described in any one of claims 1-11.
13. A chip system, characterized in that: The chip system is applied to an electronic device including a display screen; the chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive a signal from a memory of the electronic device and send the signal to the processor, the signal including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device executes the method described in any one of claims 1-11.
14. A computer storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 11.
