CN116414506A - Application display method and electronic equipment - Google Patents

Application display method and electronic equipment Download PDF

Info

Publication number
CN116414506A
CN116414506A CN202310311624.4A CN202310311624A CN116414506A CN 116414506 A CN116414506 A CN 116414506A CN 202310311624 A CN202310311624 A CN 202310311624A CN 116414506 A CN116414506 A CN 116414506A
Authority
CN
China
Prior art keywords
screen
interface
display
application
display area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310311624.4A
Other languages
Chinese (zh)
Inventor
王波
文平
韩国辉
鞠华玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201910398758.8A external-priority patent/CN110286972A/en
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN116414506A publication Critical patent/CN116414506A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1675Miscellaneous details related to the relative movement between the different enclosures or enclosure parts
    • G06F1/1677Miscellaneous details related to the relative movement between the different enclosures or enclosure parts for detecting open or closed state or particular intermediate positions assumed by movable parts of the enclosure, e.g. detection of display lid position with respect to main body in a laptop, detection of opening of the cover of battery compartment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1652Details related to the display arrangement, including those related to the mounting of the display in the housing the display being flexible, e.g. mimicking a sheet of paper, or rollable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the application provides a method for displaying an application and electronic equipment, which relate to the technical field of electronics, and the electronic equipment can display an interface of the application on an unfolded folding screen on the premise that the interface layout of the application is not changed. The electronic device comprises a folding screen, wherein the folding screen can be folded to form at least two screens, the at least two screens comprise a first screen and a second screen, and the first screen and the second screen are opposite; the specific method comprises the following steps: controlling the first screen to display a first interface of a first application when the folding screen is in a folding state; in response to the folding screen being converted from the folded state to the unfolded state, controlling a first display area of the folding screen to display a first interface and a second display area of the folding screen to display a second interface; the second display area is not overlapped with the first display area; the second interface is different from the first interface.

Description

Application display method and electronic equipment
The present application claims priority from the chinese invention patent application filed on 14 th 2019, at 05 th month, with application number 201910398758.8, application name "a method for folding screen display application and electronic device", the entire contents of which are incorporated herein by reference.
Technical Field
The embodiment of the application relates to the technical field of electronics, in particular to a method for displaying application and electronic equipment.
Background
With the continuous development of electronic devices, more and more electronic devices with display screens are widely used in daily life and work of people, such as mobile phones with display screens. And it is not difficult to find that with the development of screen technology, the display screen of the electronic device is becoming larger and larger, so as to provide the user with richer information and bring better use experience to the user.
However, the display screen of the electronic device is too large, which may seriously affect portability. Accordingly, the folding-screen electronic devices (such as folding-screen mobile phones) proposed in recent years are the direction of development of future electronic devices.
Wherein the folded screen may be folded into at least two screens (e.g., a first screen and a second screen). After the folding screen is folded, the electronic device may display an interface of the application on one screen (e.g., the first screen). In general, the aspect ratio (i.e., aspect ratio) of the first panel of the folded screen is similar to that of a conventional non-folded screen, such as an aspect ratio of 16:9, 18:9, 20:9, or 16:10, as may be conventional; most of the current applications are designed for non-folding screens, with the interface layout adapted to the non-folding screen. Therefore, after the folding screen is folded, the first screen can normally display each application interface. I.e. the folded screen after folding (i.e. the first screen) is adapted to the interface layout of the application.
After the folding screen is unfolded, the display area of the folding screen comprises at least two screens, and the aspect ratio of the unfolded folding screen can be 1:1 or 16:18. At this point, the interface layout of the application cannot fit the unfolded folding screen. Thus, when the electronic device displays the application interface on the unfolded folding screen, the problem of interface layout disorder may exist.
Disclosure of Invention
The embodiment of the application provides a method for displaying an application and electronic equipment, wherein the electronic equipment can display an interface of the application on an unfolded folding screen on the premise that the interface layout of the application is not changed.
In order to achieve the above purpose, the embodiment of the application adopts the following technical scheme:
in a first aspect, embodiments of the present application provide a method of displaying an application, which may be applied to an electronic device including a folding screen. The folding screen is foldable to form at least two screens, including a first screen and a second screen. The first screen and the second screen are opposite in a folded state. The method for displaying the application comprises the following steps: controlling the first screen to display a first interface when the folding screen is in a folding state; and in response to the folding screen being converted from the folding state to the unfolding 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 is not overlapped with the first display area. The second interface is different from the first interface.
The folding state is a state that the included angle between the first screen and the second screen is smaller than a preset angle threshold value; the unfolding state is a state that the included angle between the first screen and the second screen is larger than or equal to a preset angle threshold value. Or the folding state is a state that the included angle between the first screen and the second screen is smaller than or equal to a preset angle threshold value; the unfolding state is a state that the included angle between the first screen and the second screen is larger than a preset angle threshold value.
In this embodiment of the present application, in response to the electronic device transitioning from the folded state to the unfolded state, the folding screen may display the first interface and the second interface 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., aspect ratio) of the first and second screens of the folded screen is similar to that of a conventional non-folded screen; thus, both the first screen and the second screen may be adapted to the interface layout of the launched application. Thus, in response to the operation of unfolding the folding screen by the user, the electronic device can normally display the interface of the application without restarting the application.
And moreover, the unfolded folding screen can display the first interface and the second interface at the same time, so that the display content of the folding screen is richer, the utilization rate of the folding screen can be improved, and the visual experience of a user is improved.
With reference to the first aspect, in one possible design manner, the electronic device may further be converted from an unfolded state to a folded state. The controllable first screen may display the first interface or the second interface in response to the folding screen transitioning from the unfolded state to the folded state.
In combination with the first aspect, in another possible design manner, the first display area is a display area corresponding to the first screen, and the second display area is a display area corresponding to the second screen. Specifically, the folding screen is folded along a folding edge or a folding axis to form a first screen and a second screen. The first display area and the second display area take a folding edge or a folding axis as a boundary, 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, with the folded edge of the folding screen as a boundary, when the user faces the unfolded folding screen, the left side of the folded edge on the folding screen is a first display area, and the right side of the folded edge on the folding screen is a second display area; or the right side of the folding edge on the folding screen is a first display area, and the left side of the folding edge on the folding screen is a second display area. Thus, the usage habit of most users on the folding screen electronic equipment is more satisfied.
With reference to the first aspect, in another possible design manner, the first display area and the second display area are preconfigured in the electronic device; alternatively, the first display area and the second display area are set by a user in the electronic device.
With reference to the first aspect, in another possible design manner, the first interface and the second interface are both interfaces of the first application. The second interface is a home page of the first application; alternatively, the second interface is the interface of the upper level of the first interface; alternatively, the second interface is the interface of the next level of the first interface.
The first interface may be a home page of the first application, or may not be a home page of the first application.
In the case where the first interface is not the home page of the first application, the second interface may be the home page of the first application; alternatively, the second interface may be an interface of a layer above the first interface in the interfaces of the first application; alternatively, 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.
In the case that the first interface is the first page of the first application, the second interface may be any interface of the next level of the first application; alternatively, the second interface may be any interface other than the home page among the interfaces of the first application; alternatively, 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.
And storing record items of each interface according to the sequence of displaying each interface of the first application in the activity record of the first application.
With reference to the first aspect, in another possible design manner, the first interface is an interface of the first application, and the second interface is an interface of the second application. The second application is different from the first application. The second application may be any one of one or more applications that the electronic device has recently run and has not been closed, in addition to the first application.
With reference to the first aspect, in another possible design manner, the method of the embodiment of the application may further include: in the unfolded state of the folding screen, receiving a first operation of a first interface displayed in a first display area by a user, wherein the first operation is used for triggering the first display area to display a third interface; and responding to the first operation, displaying a third interface on the first display area of the folding screen, wherein the interface displayed on the second display area is unchanged, namely the second interface is still displayed on the second display area.
With reference to the first aspect, in another possible design manner, the method of the embodiment of the application may further include: receiving a second operation of a second interface displayed in a second display area by a user when the folding screen is in an unfolding state, wherein the second operation is used for triggering the second display area to display a fourth interface; and responding to the second operation, controlling the second display area of the folding screen to display a fourth interface, wherein the interface displayed by the first display area is unchanged, i.e. the first display area still displays a third interface.
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 may respectively receive and respond to the operation of the user.
In a second aspect, embodiments of the present application provide a method of displaying an application, which may be applied to an electronic device including a folding screen. The folding screen is foldable to form at least two screens, including a first screen and a second screen. The first screen and the second screen are opposite in a folded state, and the method for displaying the application comprises the following steps: controlling the first screen to display a first interface when the folding screen is in a folding state; responsive to the folding screen transitioning from the folded state to the unfolded state, the first display area and the second display area of the folding screen as a whole, centrally displaying the first interface; wherein the second display area is not overlapped with the first display area; the method comprises the steps that a folding screen receives first operation of a user on a first interface, and the first operation is used for triggering the folding screen to display a second interface; and responding to the first operation, controlling the first display area of the folding screen to display a first interface, and controlling the second display area to display a second interface. It should be noted that the folding screen according to the second aspect of the embodiments of the present application is an out-folded folding screen.
In the embodiment of the application, in response to the folding screen being converted from the folding state to the unfolding state, the first display area and the second display area of the folding screen are controlled to be used as a whole, and the first interface is displayed centrally. That is, in response to the folding screen transitioning from the folded state to the unfolded state, the folding screen may be controlled to display the first interface in a single window mode. The interface layout of the first interface is not changed, so that the electronic equipment can normally display the interface of the application without restarting the application.
Further, in response to a first operation input by a user on the first interface displayed centrally for triggering the folding screen to display the second interface, the folding screen may display the first interface and the second interface in a dual-window mode, that is, the folding screen displays both interfaces simultaneously in both display areas. Since the aspect ratio (i.e., aspect ratio) of the first and second screens of the folded screen is similar to that of a conventional non-folded screen; thus, both the first screen and the second screen may be adapted to the interface layout of the launched application. Thus, in response to the operation of unfolding the folding screen by the user, the electronic device can normally display the interface of the application without restarting the application.
And moreover, the unfolded folding screen can display the first interface and the second interface at the same time, so that the display content of the folding screen is richer, the utilization rate of the folding screen can be improved, and the visual experience of a user is improved.
It should be noted that the first interface and the second interface described in the second aspect and any of the possible designs thereof are interfaces of the same application (e.g. the first application).
With reference to the second aspect, in one possible design manner, the method of the embodiment of the application may further include: and controlling the first screen to display the first interface or the second interface in response to the folding screen being changed from the unfolded state to the folded state.
With reference to the second aspect, in another possible design manner, the method of the embodiment of the present application may further include: in the unfolded state, receiving a second operation of the first interface displayed in the first display area by a user, wherein the second operation is used for triggering the first display area to display a third interface; and responding to the first operation, controlling the first display area of the folding screen to display a third interface, and controlling the second display area to display a second interface.
With reference to the second aspect, in another possible design manner, the method of the embodiment of the present application may further include: receiving a third operation of a second interface displayed in a second display area by a user when the folding screen is in an unfolding state, wherein the second operation is used for triggering the second display area to display a fourth interface; and responding to the third operation, controlling the second display area of the folding screen to display a fourth interface, and displaying the third interface by the first display area.
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 may respectively receive and respond to the operation of the user.
In a third aspect, embodiments of the present application provide a method of displaying an application, which may be applied to an electronic device including a folding screen. The folding screen is foldable to form at least two screens, including a first screen and a second screen. The first screen and the second screen are opposite in the folded state. The back of the first screen is provided with a third screen. The method for displaying the application comprises the following steps: the folding screen is in a folding state, and the third screen is controlled to display a first interface; in response to the folding screen being converted from the folded state to the unfolded state, controlling a first display area of the folding screen to display a first interface and a second display area of the folding screen to display a second interface; wherein the second display area is not overlapped with the first display area. The second interface is different from the first interface.
It will be appreciated that the third screen is visible to the user and the first and second screens are not visible to the user as the folding screen is fully folded. Thus, for an electronic device having such a folding screen, the interface may be displayed on the third screen when the folding screen is in the folded state; when the folding screen is in the unfolded state, an interface can be displayed on the first screen and the second screen.
In the embodiment of the application, in response to the folding screen being converted from the folding state to the unfolding state, the first interface is displayed by the third screen, and the first interface and the second interface are displayed on the first screen and the second screen in a double-window mode, namely, the folding screen simultaneously displays the two interfaces in the two display areas. Since the aspect ratio (i.e., aspect ratio) of the first and second screens of the folded screen is similar to that of a conventional non-folded screen; thus, both the first screen and the second screen may be adapted to the interface layout of the launched application. Thus, in response to the operation of unfolding the folding screen by the user, the electronic device can normally display the interface of the application without restarting the application.
And moreover, the unfolded folding screen can display the first interface and the second interface at the same time, so that the display content of the folding screen is richer, the utilization rate of the folding screen can be improved, and the visual experience of a user is improved.
With reference to the third aspect, in one possible design manner, the third screen is controlled to display the first interface or the second interface in response to the folded screen being converted from the unfolded state to the folded state. It will be appreciated that since the folding screen is fully folded, the third screen is visible to the user, while the first and second screens are not visible to the user; thus, after the folding screen is changed from the unfolded state to the folded state, the third screen may display the first interface or the second interface.
It should be noted that, in the third aspect of the present application and any possible design manner of the third aspect, the first interface and the second interface may refer to the description of the first aspect and any possible design manner of the first aspect, and the embodiment of the present application is not repeated here.
With reference to the third aspect, in another possible design manner, the method of the embodiment of the present application may further include: in the unfolded state of the folding screen, receiving a first operation of a first interface displayed in a first display area by a user, wherein the first operation is used for triggering the first display area to display a third interface; and responding to the first operation, controlling the first display area of the folding screen to display a third interface, wherein the interface displayed by the second display area is unchanged, i.e. the second display area still displays the second interface.
With reference to the third aspect, in another possible design manner, the method of the embodiment of the present application may further include: receiving a second operation of a second interface displayed in a second display area by a user when the folding screen is in an unfolding state, wherein the second operation is used for triggering the second display area to display a fourth interface; and responding to the second operation, controlling the second display area of the folding screen to display a fourth interface, wherein the interface displayed by the first display area is unchanged, i.e. the first display area still displays a third interface.
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 may respectively receive and respond to the operation of the user.
In a fourth aspect, embodiments of the present application provide an electronic device that includes a folding screen, a memory, and one or more processors. The folding screen is foldable to form at least two screens, including a first screen and a second screen. The first screen and the second screen are opposite in the folded state. The folding screen, memory, and processor are coupled. The memory is used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device performs: the processor is used for controlling the first screen to display a first interface when the folding screen is in a folding state; the processor is also used for controlling the first display area of the folding screen to display a first interface and controlling the second display area of the folding screen to display a second interface in response to the folding screen being converted from the folding state to the unfolding state; wherein the second display area is not overlapped with the first display area; the second interface is different from the first interface.
With reference to the fourth aspect, in one possible design manner, the processor is further configured to control the first screen to display the first interface or the second interface in response to the folding screen being changed from the unfolded state to the folded state.
It should be noted that, the first interface and the second interface described in the fourth aspect of the present application and any one of the possible designs thereof may refer to the description of the second interface in the first aspect and any one of the possible designs thereof, which is not repeated herein in the embodiments of the present application.
With reference to the fourth aspect, in another possible design manner, the processor is further configured to receive, in an unfolded state of the folding screen, a first operation of a first interface displayed in the first display area by a user, where the first operation is used to trigger the first display area to display a third interface; and the processor is also used for responding to the first operation, controlling the first display area of the folding screen to display a third interface, and controlling the second display area to display a second interface.
With reference to the fourth aspect, in another possible design manner, the processor is further configured to receive, in an unfolded state of the folding screen, a second operation of a second interface displayed in a second display area by a user, where the second operation is used to trigger the second display area to display a fourth interface; and the processor is also used for responding to the second operation, controlling the second display area of the folding screen to display a fourth interface, and controlling the first display area to display a third interface.
In a fifth aspect, embodiments of the present application provide an electronic device that includes a folding screen, a memory, and one or more processors. The folding screen is foldable to form at least two screens, including a first screen and a second screen. The first screen and the second screen are opposite in the folded state. The folding screen, memory, and processor are coupled. The memory is used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device performs: the processor is used for controlling the first screen to display a first interface when the folding screen is in a folding state; the processor is further used for controlling the first display area and the second display area of the folding screen to be used as a whole for centrally displaying the first interface in response to the folding screen being converted from the folding state to the unfolding state; wherein the second display area is not overlapped with the first display area; the processor is also used for receiving a first operation of the user on the first interface, and the first operation is used for triggering the folding screen to display the second interface; and the processor is also used for responding to the first operation, controlling the first display area of the folding screen to display a first interface, and controlling the second display area to display a second interface.
With reference to the fifth aspect, in one possible design manner, the processor is further configured to control the first screen to display the first interface or the second interface in response to the folding screen changing from the unfolded state to the folded state.
With reference to the fifth aspect, in another possible design manner, the processor is further configured to receive, in an unfolded state of the folding screen, a second operation of the first interface displayed in the first display area by the user, where the second operation is used to trigger the first display area to display a third interface; and the processor is also used for responding to the first operation, controlling the first display area of the folding screen to display a third interface, and controlling the second display area to display a second interface.
With reference to the fifth aspect, in another possible design manner, the processor is further configured to receive, in an unfolded state of the folding screen, a third operation of a second interface displayed in the second display area by a user, where the second operation is used to trigger the second display area to display a fourth interface; and the processor is also used for responding to the third operation, controlling the second display area of the folding screen to display a fourth interface, and controlling the first display area to display a third interface.
In a sixth aspect, embodiments of the present application provide an electronic device that includes a folding screen, a memory, and one or more processors. The folding screen is foldable to form at least two screens, including a first screen and a second screen. The first screen and the second screen are opposite in the folded state. A third screen is arranged 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 that includes computer instructions that, when executed by the processor, the electronic device performs: the processor is used for controlling the third screen to display the first interface when the folding screen is in the folding state; the processor is also used for controlling the first display area of the folding screen to display a first interface and controlling the second display area of the folding screen to display a second interface in response to the folding screen being converted from the folding state to the unfolding state; wherein the second display area is not overlapped with the first display area; the second interface is different from the first interface.
With reference to the sixth aspect, in one possible design manner, the processor is further configured to control the third screen to display the first interface or the second interface in response to the folding screen changing from the unfolded state to the folded state.
It should be noted that, the first interface and the second interface described in the sixth aspect of the present application and any one of the possible design manners thereof may refer to the description of the second interface in the third aspect of the present application and any one of the possible design manners thereof, which is not repeated herein in the embodiments of the present application.
It should be noted that, in the second aspect of the present application, the first display area, the second display area, the unfolded state and the folded state described in any one of the possible designs of the second aspect of the present application may be referred to for related description in the first aspect of the present application and any one of the possible designs of the first aspect of the present application, which is not repeated herein.
In a seventh aspect, embodiments of the present application provide a method for displaying an application, where the method may be applied to an electronic device, the method including: controlling a display screen of the electronic equipment to display a main interface of the electronic equipment under the first state, wherein the main interface comprises icons of a first application; receiving a first operation of a user on an icon of a first application, wherein the first operation is used for triggering a display screen to display a first interface of the first application; and responding to the first operation, if the first interface is a preset homepage of the first application, controlling a first display area of the display screen to display the first interface, and controlling a second display area of the display screen to display a second interface of the first application. The second interface is a related page configured in pairs with a preset homepage; the second display area is not overlapped with the first display area.
Wherein the first state is a landscape state. Alternatively, the display is a folding screen and the first state is an unfolded state. The unfolding state is a state that the included angle between the first screen and the second screen of the folding screen is larger than or equal to a preset angle threshold value; the horizontal screen state is a state that the included angle between the long side of the display screen and the horizontal plane is smaller than a preset value.
In this embodiment of the present application, when the electronic device may display the main interface in the landscape screen state or the unfolded state, in response to a first operation of the icon of the first application by the user, it may be determined whether the first operation triggers the first interface displayed by the electronic device to be a preset homepage (i.e. main Page) of the first application. If the first interface is a main Page of the first application, the electronic device may display the main Page of the first application and related pages (i.e., related pages) configured in pairs with the main Page in a dual window. Therefore, the electronic equipment in the horizontal screen state or the unfolding state can display the two interfaces of the first application on the display screen at the same time, so that the display content of the display screen is richer, the utilization rate of the display screen can be improved, and the visual experience of a user is improved.
In an eighth aspect, embodiments of the present application provide a method for displaying an application, where the method may be applied to an electronic device, the method including: controlling a display screen of the electronic equipment to display a first interface of a first application under a first state; responding to the display screen to be converted into a second state from the first state, and if the first interface is a preset homepage (i.e. main Page) of the first application, controlling a first display area of the display screen to display the first interface, and controlling a second display area of the display screen to display a second interface of the first application; the second interface is a related Page (i.e. related Page) configured in pairs with the preset homepage; the second display area is not overlapped with the first display area.
Wherein the first state is a portrait screen state and the second state is a landscape screen state. The horizontal screen state is a state that the included angle between the long side of the display screen and the horizontal plane is smaller than a preset value, and the vertical screen state is a state that the included angle between the long side of the display screen and the horizontal plane is larger than or equal to the preset value. Or the display screen is a folding screen, the first state is a folding state, and the second state is an unfolding state; the unfolding state is a state that the included angle between the first screen and the second screen of the folding screen is larger than or equal to a preset angle threshold value, and the folding state is a state that the included angle between the first screen and the second screen is smaller than the preset angle threshold value.
In this embodiment of the present application, the electronic device displays a first interface of a first application in a first state, and in response to the electronic device being converted from the first state to a second state, the electronic device may determine whether the first interface displayed by the electronic device is a main Page of the first application triggered by the first operation. If the first interface is a main Page of the first application, the electronic device may display the main Page of the first application and a related Page configured in pairs with the main Page in a dual window. Therefore, the electronic equipment in the horizontal screen state or the unfolding state can display the two interfaces of the first application on the display screen at the same time, so that the display content of the display screen is richer, the utilization rate of the display screen can be improved, and the visual experience of a user is improved.
In a ninth aspect, embodiments of the present application provide a method for displaying an application, where the method may be applied to an electronic device. The display screen of the electronic equipment is in a horizontal screen state, and the horizontal screen state is a state that the included angle between the long side of the display screen and the horizontal plane is smaller than a preset value. Or the display screen of the electronic device is a folding screen, and the display screen is in an unfolding state, wherein the unfolding state is a state that the included angle between the first screen and the second screen of the folding screen is larger than or equal to a preset angle threshold value. The method may include: controlling the display screen to display an interface of the second application; receiving a first operation of a user on an interface of a second application, wherein the first operation is used for triggering a display screen to display the first interface of the first application; and responding to the first operation, if the first interface is a preset homepage (i.e. main Page) of the first application, controlling a first display area of the display screen to display the first interface, and controlling a second display area of the display screen to display a second interface of the first application. The second interface is a related Page (i.e. related Page) configured in pairs with the preset homepage; the second display area is not overlapped with the first display area.
In the embodiment of the application, the electronic device displays an interface of the second application in the first state; and responding to a first operation for triggering the electronic equipment to call the first application to display the first interface, and judging whether the first operation triggers the first interface displayed by the electronic equipment to be a main Page of the first application or not by the electronic equipment. If the first interface is a main Page of the first application, the electronic device may display the main Page of the first application and a related Page configured in pairs with the main Page in a dual window. Therefore, the electronic equipment in the horizontal screen state or the unfolding state can display the two interfaces of the first application on the display screen at the same time, so that the display content of the display screen is richer, the utilization rate of the display screen can be improved, and the visual experience of a user is improved.
In a tenth aspect, embodiments of the present application provide a method for displaying an application, where the method may be applied to an electronic device. The display screen of the electronic equipment is in a horizontal screen state, and the horizontal screen state is a state that the included angle between the long side of the display screen and the horizontal plane is smaller than a preset value. Or the display screen of the electronic device is a folding screen, and the display screen is in an unfolding state, wherein the unfolding state is a state that the included angle between the first screen and the second screen of the folding screen is larger than or equal to a preset angle threshold value. The method may include: controlling a first display area of the display screen to display a first interface of a first application, and controlling a second display area of the display screen to display an interface of a second application; receiving a first operation of a user, wherein the first operation is used for triggering the display screen to exit from displaying the interface of the second application, and only displaying the first interface; and responding to the first operation, if the first interface is a preset homepage (i.e. main Page) of the first application, controlling a first display area of the display screen to display the first interface, and controlling a second display area of the display screen to display a second interface of the first application. The second interface is a related Page (i.e. related Page) configured in pairs with the preset homepage; the second display area is not overlapped with the first display area.
In the embodiment of the application, the electronic device displays a first interface of a first application and an interface of a second application in a first state in a double window; and in response to the first operation for triggering the electronic device to exit the interface for displaying the second application, displaying only the first interface, the electronic device can judge whether the first interface displayed by the electronic device triggered by the first operation is a main Page of the first application. If the first interface is a main Page of the first application, the electronic device may display the main Page of the first application and a related Page configured in pairs with the main Page in a dual window. Therefore, the electronic equipment in the horizontal screen state or the unfolding state can display the two interfaces of the first application on the display screen at the same time, so that the display content of the display screen is richer, the utilization rate of the display screen can be improved, and the visual experience of a user is improved.
With reference to any one of the seventh to tenth aspects, in one possible design manner, the preset homepage is preconfigured in a configuration file of an installation package of the first application. Alternatively, the preset homepage is a home page of the first application. Or, the preset homepage is an interface meeting preset conditions among a plurality of interfaces of the first application, wherein the preset conditions are as follows: the method comprises the steps of presetting interface characteristics, wherein the number of the preset interface characteristics is larger than a preset number threshold, and the preset interface characteristics comprise preset components or applets.
In combination with any one of the seventh to tenth aspects, in another possible design manner, the relevant page is preconfigured in a configuration file of an installation package of the first application. Alternatively, the relevant page is the next level interface to the home page. The relevant page is set by the user in the electronic device.
In combination with any one of the seventh to tenth aspects, in another possible design manner, the method may further include: the display screen is in a first state or a second state, and a third interface of the first application is displayed; wherein the first state is a horizontal screen state and the second state is a vertical screen state; alternatively, the first state is an expanded state and the second state is a collapsed state; receiving a preset gesture input by a user on a third interface, wherein the preset gesture is used for configuring a related page of the first application; in response to the preset gesture, the third interface is configured to be a relevant page of the first application.
In combination with any one of the seventh to tenth aspects, in another possible design manner, after the first interface is displayed in the first display area of the control display screen and the second interface of the first application is displayed in the second display area of the control display screen, the method may further include: responding to a second operation of the first interface by a user, wherein the second operation comprises clicking operation of a Back key in a navigation bar of the electronic equipment, and controlling the display screen to display a main interface; wherein, in response to a second operation on the first interface, the electronic device does not run the first application in the background; responding to a second operation of the user on the second interface, and controlling the display screen to display the main interface; wherein, in response to a second operation on the second interface, the electronic device runs the first application in the background.
In combination with any one of the seventh to tenth aspects, in another possible design manner, after the first interface is displayed in the first display area of the control display screen and the second interface of the first application is displayed in the second display area of the control display screen, the method may further include: and responding to a second operation of the first interface or the second interface by the user, wherein the second operation comprises clicking operation of a Back key in a navigation bar of the electronic equipment, and controlling the display screen to display the main interface. Wherein the electronic device runs the first application in the background in response to the second operation on the first interface.
In an eleventh aspect, embodiments of the present application provide an electronic device that includes a display screen, a memory, and one or more processors. The display, the memory, and the processor are coupled. The memory is used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device performs the following operations: and the processor is used for controlling the display screen to display the main interface of the electronic equipment when the display screen is in the first state. The main interface includes an icon of a first application. The processor is also used for receiving a first operation of a user on an icon of the first application, and the first operation is used for triggering the display screen to display a first interface of the first application; the processor is further used for responding to the first operation, controlling a first display area of the display screen to display the first interface and controlling a second display area of the display screen to display a second interface of the first application if the first interface is a preset homepage of the first application; the second interface is a related page configured in pairs with a preset homepage; the second display area is not overlapped with the first display area;
It should be noted that, the detailed descriptions of the first state, the horizontal screen state, and the extended state of the eleventh aspect, and the beneficial effects achieved by the electronic device may refer to the detailed description in the seventh aspect, and embodiments of the present application are not repeated herein.
In a twelfth aspect, embodiments of the present application provide an electronic device that 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, which includes computer instructions. When the processor executes the computer instructions, the electronic device performs the following operations: and the processor is used for controlling the display screen to display a first interface of the first application when the display screen is in the first state. The processor is further configured to, in response to the display screen being changed from the first state to the second state, 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 if the first interface is a preset homepage of the first application. The second interface is a related page configured in pairs with a preset homepage; the second display area is not overlapped with the first display area.
It should be noted that, the detailed descriptions 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, and the beneficial effects achieved by the electronic device may refer to the detailed description of the eighth aspect, which is not repeated herein in this embodiment of the present application.
In a thirteenth aspect, embodiments of the present application provide an electronic device that includes a display screen, a memory, and one or more processors. The display, the memory, and the processor are coupled. The display screen of the electronic device is in a horizontal screen state or an unfolding state. The memory is used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device performs the following operations: and the processor is used for controlling the display screen to display the interface of the second application. The processor is further configured to receive a first operation of the user on the interface of the second application, where the first operation is used to trigger the display screen to display the first interface of the first application. And the processor is also used for responding to the first operation, 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 if the first interface is a preset homepage of the first application. The second interface is a related page configured in pairs with a preset homepage; the second display area is not overlapped with the first display area.
It should be noted that, for the detailed description of the landscape screen state and the unfolded state in the thirteenth aspect, reference may be made to the detailed description in the ninth aspect, and the beneficial effects that can be achieved by the electronic device, which are not repeated herein in this embodiment of the present application.
In a fourteenth aspect, embodiments of the present application provide an electronic device that includes a display screen, a memory, and one or more processors. The display, the memory, and the processor are coupled. The display screen of the electronic device is in a horizontal screen state or an unfolding state. The memory is used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device performs the following operations: and the processor is used for 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. And the processor is also used for receiving a first operation of the user, wherein the first operation is used for triggering the display screen to exit from displaying the interface of the second application and only displaying the first interface. And the processor is also used for responding to the first operation, 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 if the first interface is a preset homepage of the first application. The second interface is a related page configured in pairs with a preset homepage; the second display area is not overlapped with the first display area.
It should be noted that, for the detailed description of the horizontal screen state and the extended state in the fourteenth aspect, reference may be made to the detailed description in the tenth aspect, and the beneficial effects that can be achieved by the electronic device, which are not repeated herein in this embodiment of the present application.
The details of the preset homepage and related pages in any one of the eleventh aspect to the fourteenth aspect may refer to the description in the possible design manners in any one of the seventh aspect to the tenth aspect, and embodiments of the present application are not repeated herein.
With reference to any one of the eleventh aspect to the fourteenth aspect, in one possible design manner, the processor is further configured 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 configured to receive a preset gesture input by the user on the third interface, where the preset gesture is used to configure a relevant page of the first application. The processor is further configured to configure the third interface to be a relevant page of the first application in response to the preset gesture.
In combination with any one of the eleventh aspect to the fourteenth aspect, in another possible implementation manner, the processor is further configured to control, 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, to control the display screen to display the main interface in response to a second operation of the first interface or the second interface by a user.
The second operation includes clicking a Back key in a navigation bar of the electronic device. The processor does not run the first application in the background in response to the second operation on the first interface. The processor runs the first application in the background in response to a second operation on the second interface.
In combination with any one of the eleventh aspect to the fourteenth aspect, in another possible implementation manner, the processor is further configured to control, 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, to control the display screen to display the main interface in response to a second operation of the first interface or the second interface by a user. Wherein, in response to the second operation, the processor runs the first application in the background. The second operation includes a click operation on a Back key in a navigation bar of the electronic device.
In a fifteenth aspect, embodiments of the present application provide an apparatus for displaying an application, where the apparatus may be applied to an electronic device including a folding screen, the apparatus being configured to perform a method according to the first aspect, the second aspect, the third aspect, the seventh aspect, the eighth aspect, the ninth aspect or the tenth aspect and any one of its possible designs.
In a sixteenth aspect, embodiments of the present application provide a chip system for use in an electronic device including a folding screen. The system-on-chip includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a wire. The interface circuit is for receiving a signal from a memory of the electronic device and transmitting the signal to the processor, the signal including computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device performs the method according to the first, second, third, seventh, eighth, ninth or tenth aspect and any one of its possible designs.
In a seventeenth aspect, embodiments of the present application provide a computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method according to the first, second, third, seventh, eighth, ninth or tenth aspect and any one of its possible designs.
In an eighteenth aspect, embodiments of the present application provide a computer program product for, when run on a computer, causing the computer to perform the method as set forth in the first, second, third, seventh, eighth, ninth or tenth aspects and any one of their possible designs.
It may be appreciated that the electronic device according to any one of the fourth, fifth, sixth, eleventh and fourteenth aspects and any one of the possible designs thereof, the apparatus according to the fifteenth aspect, the chip system according to the sixteenth aspect, the computer storage medium according to the seventeenth aspect and the computer program product according to the eighteenth aspect may refer to the benefits of any one of the first, second, third, seventh, eighth, ninth or tenth aspects and any one of the possible designs thereof.
Drawings
Fig. 1 is a schematic view of a folding screen according to an embodiment of the present application;
FIG. 2 is a schematic view of another folding screen according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an example of a prior art folding screen display application interface;
fig. 4 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 5A is a schematic diagram of calculating an included angle α between a screen a and a screen B according to an embodiment of the present application;
FIG. 5B is a schematic illustration of an example geographic coordinate system provided in an embodiment of the present application;
Fig. 6 is a schematic diagram of an example software architecture of an electronic device according to an embodiment of the present application;
FIG. 7 is a flowchart of a method for displaying an application according to an embodiment of the present application;
fig. 8 is an example schematic diagram of an application interface displayed by a folding screen according to an embodiment of the present application;
FIG. 9 is a schematic diagram illustrating an example of an application interface displayed by another folding screen according to an embodiment of the present application;
FIG. 10A is a schematic diagram of an example display area according to an embodiment of the present disclosure;
FIG. 10B is a schematic illustration of an example of an application interface displayed by another folding screen according to an embodiment of the present application;
FIG. 11 is a schematic illustration of an example of an application interface displayed by another folding screen according to an embodiment of the present application;
FIG. 12 is a schematic diagram of an example of a first recording stack according to an embodiment of the present application;
FIG. 13 is a schematic illustration of an example of an application interface displayed by another folding screen according to an embodiment of the present application;
FIG. 14 is a schematic illustration of an example of another application interface provided by an embodiment of the present application;
FIG. 15 is a schematic illustration of an example of an application interface for another folding screen display provided in an embodiment of the present application;
FIG. 16 is an example schematic view of another folding screen displayed application interface provided in an embodiment of the present application;
FIG. 17 is a schematic illustration of an example of an application interface for another folding screen display provided in an embodiment of the present application;
FIG. 18 is a schematic illustration of an example of an application interface for another folding screen display provided in an embodiment of the present application;
fig. 19 is a schematic view of an example of a setting interface of a display area according to an embodiment of the present application;
fig. 20 is a schematic diagram of an example of a setting interface of a display area according to an embodiment of the present application;
fig. 21 is a schematic diagram of an example of a setting interface of a display area according to an embodiment of the present application;
FIG. 22A is a schematic illustration of an example application interface of another folding screen display provided in an embodiment of the present application;
FIG. 22B is a schematic illustration of an example application interface for a non-folding screen display according to an embodiment of the present application;
fig. 23A is a schematic diagram of an example of a software architecture of another electronic device according to an embodiment of the present application;
fig. 23B is a schematic diagram of a call principle of a preset page and a related page according to an embodiment of the present application;
FIG. 24 is a schematic diagram of a landscape screen state and a portrait screen state according to an embodiment of the present application;
FIG. 25 is a flowchart of another method for displaying an application according to an embodiment of the present application;
fig. 26 is an example schematic diagram of an application interface displayed by an electronic device in a landscape state according to an embodiment of the present application;
FIG. 27 is a schematic illustration of an example application interface displayed by a folding screen in an unfolded state according to an embodiment of the present application;
FIG. 28 is a flowchart of another method for displaying an application according to an embodiment of the present application;
fig. 29 is a schematic diagram of an example of an application interface displayed by an electronic device that is converted from a portrait state to a landscape state according to an embodiment of the present application;
FIG. 30 is a schematic illustration of an example of a folding screen display application interface from a folded state to an unfolded state according to an embodiment of the present application;
FIG. 31A is a flowchart of another method for displaying an application according to an embodiment of the present application;
FIG. 31B is a schematic illustration of an example application interface displayed by a folding screen in an unfolded state according to an embodiment of the present application;
FIG. 32 is a flowchart of another method for displaying an application according to an embodiment of the present application;
FIG. 33 is a schematic diagram of an example application interface displayed by a folding screen in an unfolded state according to an embodiment of the present application;
FIG. 34A is a flow chart diagram of a method for displaying an application provided in an embodiment of the present application;
FIG. 34B is a functional block diagram of a method for displaying an application provided in an embodiment of the present application;
FIG. 35 is a schematic illustration of an example application interface displayed by a folding screen in an unfolded state according to an embodiment of the present application;
FIG. 36 is a schematic diagram of an example interface for setting a relevant page of an application according to an embodiment of the present application;
FIG. 37 is an exemplary interface diagram of a related page of another setup application according to an embodiment of the present application;
FIG. 38 is an exemplary interface diagram of a related page of another setup application provided in an embodiment of the present application;
fig. 39 is a schematic diagram of a chip system according to an embodiment of the present application.
Detailed Description
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
The embodiment of the application provides a method for displaying an application, which can be applied to electronic equipment with a folding screen. The folding screen is foldable to form at least two screens. For example, the folding screen may be folded along a fold edge or fold axis to form a first screen and a second screen. I.e. the at least two screens comprise a first screen and a second screen.
Folding screens in embodiments of the present application can be divided into two categories. One type is an outward folding screen (called outward folding screen for short), and the other type is an inward folding screen (called inward folding screen for short). The first screen and the second screen are formed by folding a folding screen. After the outward folding screen is folded, the first screen and the second screen are opposite. After the inward folding screen is folded, the first screen is opposite to the second screen.
For example, please refer to fig. 1, which illustrates a schematic product form of an electronic device 100 with an out-folded screen according to an embodiment of the present application. In fig. 1, (a) is a schematic view of the fully unfolded outward folding screen. The out-folded panel may be folded along the fold edges in directions 101a and 101B shown in fig. 1 (a), and may form an a-panel (i.e., a first panel) and a B-panel (i.e., a second panel) shown in fig. 1 (B). The out-turned folding screen can be folded along the folding edge in the directions 102a and 102b shown in fig. 1 (b), and the out-turned folding screen in the folded state shown in fig. 1 (c) can be formed. As shown in fig. 1 (c), after the folding screen of the electronic device 100 is completely folded, the a screen and the B screen are opposite to each other, and are visible to the user.
It will be appreciated that for an electronic device having an out-folded folding screen, the interface may be displayed on either the first screen or the second screen when the folding screen is in the folded state; when the folding screen is in the unfolded state, an 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 may refer to the description in the following embodiments, and will not be repeated here.
For another example, please refer to fig. 2, which illustrates a schematic product form of an electronic device 100 with an invaginated folding screen according to an embodiment of the present application. Fig. 2 (a) is a schematic view of the fully unfolded state of the inward folding screen. The inwardly folded screen may be folded along the fold edges in accordance with directions 201a and 201B shown in fig. 2 (a) to form an a screen (i.e., a first screen) and a B screen (i.e., a second screen) shown in fig. 2 (B). The inner folding screen may be folded along the folding edge in accordance with directions 202a and 202b shown in fig. 2 (b), and may be formed into an outer folding screen in a folded state shown in fig. 2 (c). As shown in fig. 2 (c), after the folding screen of the electronic device 100 is fully folded, the a screen and the B screen are opposite and invisible to the user. Wherein, after the folded screen is completely folded, the screen a is opposite to the screen B, and the black line 203 shown in (c) of fig. 2 is a line on the contact surface of the screen a and the screen B.
It should be noted that, the back of the first screen or the second screen of the invaginated folding screen provided in the embodiment of the present application may also be provided with a display screen, which may be referred to as a third screen. For example, as shown in fig. 2 (b), a C screen (i.e., a third screen) may be provided on the back of the a screen (i.e., the first screen). As shown in fig. 2 (C), after the inward folding screen is completely folded, the C-screen is opposite to be visible to the user. It will be appreciated that for an electronic device having such an inwardly folded folding screen, the interface may be displayed on the third screen when the folding screen is in the folded state; when the folding screen is in the unfolded state, an interface can be displayed on the first screen and the second screen.
In general, the included angle α of the first and second panels of the folding screen (including the inward folding screen and the outward folding screen) has a value ranging from [0 °,180 ° ]. In the embodiment of the application, if alpha is 0 degrees and P, the electronic device can determine that the folding screen is in a folding state; if alpha epsilon (P, 180 DEG ], the electronic device can determine that the folding screen is in an unfolded state or if alpha epsilon [0 DEG, 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. Wherein P is a preset angle threshold. P may be determined based on usage habits of a large number of users using the folding screen; alternatively, P may be set by the user in the electronic device.
In some embodiments, the user may want to use the first screen and the second screen as a whole (i.e., as a complete display screen) when the angle α between the first screen and the second screen is greater than 90 ° according to the usage habits of most users. Therefore, the preset angle threshold P in the embodiment of the present application may be greater than 90 °. The 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 °, 150 °, or the like.
It should be noted that, at least two screens formed after the folding screen (including the inner folding screen and the outer folding screen) in the embodiment of the application are folded may be a plurality of screens that exist independently, or may be a complete screen of an integral structure, and only are folded to form at least two portions.
For example, the folding screen may be a flexible folding screen. The flexible folding screen comprises folding edges made of flexible materials. Part or all of the flexible folding screen is made of flexible materials. The at least two panels formed after the flexible folding panel is folded are one complete panel of unitary construction, but folded to form at least two sections.
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 plurality of screens is a plurality of individual display screens. The plurality of screens may be connected in turn by a folding shaft. Each screen can rotate around a folding shaft connected with the screen, so that the folding of the multi-screen folding screen is realized.
In fig. 1 and fig. 2, the folding screen is a flexible folding screen, and the folding screen in the embodiment of the present application is described. In addition, in the subsequent embodiments of the present application, the method provided in the embodiments of the present application will be described by taking the case that the folding screen is a flexible folding screen as an example.
In order to solve the problem that when the electronic device displays the application interface on the folding screen in the unfolded state, the interface layout is possibly disordered. In some solutions, the electronic device may display the application interface in a partial area of the unfolded folding screen without changing the interface layout of the application. For example, the electronic device 100 may display the home page 301 of the "panning" application in the display manner shown in fig. 3. As shown in fig. 3, the home page of the "panning" application is displayed in the left half area of the folding screen.
Although the display mode shown in fig. 3 is adopted to display the application interface on the unfolded folding screen, the interface layout of the application is not required to be matched with the unfolded folding screen, and the interface layout can be prevented from being disordered. However, the display area of the unfolded folding screen is larger, and the display area occupied by the application interface is smaller, so that the display content of the folding screen is single, and the display area of the folding screen cannot be fully utilized. And also affect the visual experience of the user.
In other solutions, some applications may design multiple interface layouts. For example, application 1 may include: an interface layout that fits with a display screen having an aspect ratio of 18:9, and an interface layout that fits with a display screen having an aspect ratio of 1:1. However, when the application switches interface layouts, the application needs to be restarted. For example, assume that when the folded screen is folded, the aspect ratio of the first screen is 18:9 and the aspect ratio of the unfolded folded screen is 1:1. When the folding screen is folded, the first screen displays interface 1 of application 1 (rather than application 1 being the first page), at which point the interface layout of application 1 adapts to an aspect ratio of 18:9. In response to a user's operation to expand the folding screen, the electronic device needs to restart application 1 to adapt the interface layout of application 1 to the aspect ratio 1:1. After the application is restarted, the electronic device displays the home page of the application, but not the interface (such as interface 1) displayed by the electronic device when the folding screen is folded, so that the user experience is affected.
In order to solve the above problems, an embodiment of the present application provides a method for displaying an application. Take the above-mentioned fold-out folding screen as an example. When the folding screen is in a folding state, the first screen can display a first interface of a first application; in response to a user operation to expand the folding screen (i.e., the folding screen transitions from the folded state to the expanded state), a first display area of the folding screen (e.g., a display area corresponding to the first screen) may display a first interface, and a second display area (e.g., a display area corresponding to the second screen) may display a second interface. The second interface may be an interface of the first application or an interface of another application.
It will be appreciated that the aspect ratio (i.e., aspect ratio) of the first and second screens of the folded screen is similar to that of a conventional non-folded screen; thus, both the first screen and the second screen may be adapted to the interface layout of the launched application. Thus, in response to the operation of unfolding the folding screen by the user, the electronic device can normally display the interface of the application without restarting the application.
And moreover, the unfolded folding screen can display the first interface and the second interface at the same time, so that the display content of the folding screen is richer, the utilization rate of the folding screen can be improved, and the visual experience of a user is improved.
For example, 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, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, or the like, including the above-mentioned folding screen, and the embodiments of the present application do not limit the specific form of the electronic device.
The implementation of the examples of the present application will be described in detail below with reference to the accompanying drawings.
Fig. 4 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application. As shown in fig. 4, the electronic device 100 may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (universal serial bus, USB) interface 430, a charge 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, keys 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identity module (subscriber identification module, SIM) card interface 495, etc. Among other things, 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, and the like.
It is to be understood that the structure illustrated in the present embodiment does not constitute a specific limitation on the electronic apparatus 100. In other embodiments, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 410 may include one or more processing units, such as: the processor 410 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 410 for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may hold instructions or data that the processor 410 has just used or recycled. If the processor 410 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided, reducing the latency of the processor 410 and thus improving the efficiency of the system.
In some embodiments, processor 410 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only illustrative, and does not limit the structure of the electronic device 100. In other embodiments, the electronic device 100 may also employ different interfaces in the above embodiments, or a combination of interfaces.
The charge management module 440 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 440 may receive a charging input of a wired charger through the USB interface 430. In some wireless charging embodiments, the charge management module 440 may receive wireless charging input through a wireless charging coil of the electronic device 100. The battery 442 may be charged by the charge management module 440, and the electronic device may be powered by the power management module 441.
The power management module 441 is configured to connect the battery 442, the charge management module 440 and the processor 410. The power management module 441 receives input from the battery 442 and/or the charge management module 440 to power the processor 410, the internal memory 421, the external memory, the display screen 494, the camera 493, the wireless communication module 460, and the like. The power management module 441 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 441 may also be disposed in the processor 410. In other embodiments, the power management module 441 and the charge management module 440 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 450, the wireless communication module 460, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 450 may provide a solution for wireless communication, including 2G/3G/4G/5G, as applied to the electronic device 100. The mobile communication module 450 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 450 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 450 may amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate the electromagnetic waves. In some embodiments, at least some of the functional modules of the mobile communication module 450 may be disposed in the processor 410. In some embodiments, at least some of the functional modules of the mobile communication module 450 may be disposed in the same device as at least some of the modules of the processor 410.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating 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. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 470A, receiver 470B, etc.), or displays images or video through display screen 494. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 450 or other functional module, independent of the processor 410.
The wireless communication module 460 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 460 may be one or more devices that integrate at least one communication processing module. The wireless communication module 460 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 410. The wireless communication module 460 may also receive a signal to be transmitted from the processor 410, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 450 of electronic device 100 are coupled, and antenna 2 and wireless communication module 460 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions via a GPU, a display screen 494, and an application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 410 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 494 is used to display images, videos, and the like. The display screen 494 is the above-described fold-out screen. Alternatively, the display screen 494 may include the above-described fold-in screen that is foldable to form a first screen (e.g., a screen shown in (B) of fig. 2) and a second screen (e.g., B screen shown in (B) of fig. 2), and a third screen (e.g., C screen shown in (C) of fig. 2).
The display screen 494 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like.
Electronic device 100 may implement capture functionality through an ISP, camera 493, video codec, GPU, display screen 494, and application processor, among others.
The ISP is used to process the data fed back by the camera 493. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, an ISP may be provided in the camera 493.
The camera 493 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred 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 the like format. In some embodiments, electronic device 100 may include 1 or N cameras 493, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 420 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 410 through an external memory interface 420 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 421 may be used to store computer-executable program code that includes instructions. The processor 410 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 421. For example, in the present embodiment, the processor 410 may display corresponding display contents on the display screen 484 (i.e., the folding screen) in response to a first operation or a second operation of the user on the display screen 494 (i.e., the folding screen) by executing instructions stored in the internal memory 421. The internal memory 421 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 421 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functions through an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 470 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 470 may also be used to encode and decode audio signals. In some embodiments, the audio module 470 may be disposed in the processor 410, or some functional modules of the audio module 470 may be disposed in the processor 410. Speaker 470A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 470A. A receiver 470B, also referred to as a "earpiece," is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be heard by placing receiver 470B in close proximity to the human ear. Microphone 470C, also referred to as a "microphone" or "microphone," is used to convert sound signals into electrical signals. When making a call or sending a voice message or when it is desired to trigger the electronic device 100 to perform certain functions by a voice assistant, the user may sound near the microphone 470C through his mouth, inputting a sound signal to 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, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 470C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The headphone interface 470D is for connecting a wired headphone. Earphone interface 470D may be a USB interface 430 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 480A is used for sensing a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 480A may be disposed on display screen 494. The pressure sensor 480A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor 480A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 494, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 480A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 480A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 480B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 480B. The gyro sensor 480B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 480B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 480B may also be used for navigation, somatosensory of game scenes. In the embodiment of the present application, the display screen 494 of the electronic device 100 may be folded to form a plurality of screens. A gyroscopic sensor 480B may be included in each screen for measuring the orientation (i.e., directional vector of orientation) of the corresponding screen. The electronic device 100 may determine the included angle between adjacent screens based on the measured angular change in the orientation of each screen.
It should be noted that in embodiments of the present application, a folding screen (e.g., the display screen 494 described above) of the electronic device 100 may be folded to form multiple screens. A gyroscopic sensor (such as gyroscopic sensor 480B described above) may be included in each screen for measuring the orientation (i.e., the directional vector of the orientation) of the corresponding screen. For example, in connection with FIG. 1 above, display screen 494 of electronic device 100 may be folded to form a screen A and a screen B, and gyro sensor 480B may be included in each of the screens A and B for measuring the orientation of the screens A and B, respectively. The electronic device 100 may determine the included angle of the adjacent screens according to the measured angular change of the orientation of each screen.
Illustratively, the folding screen of the electronic device 100 may be folded to form the A-screen and the B-screen shown in FIG. 5A. The screen A is provided with a gyroscope sensor A, and the screen B is provided with a gyroscope sensor B. Here, a principle that the gyro sensor a measures the orientation of the a-screen (i.e., the direction vector of the orientation), the gyro sensor B measures the orientation of the B-screen (i.e., the direction vector of the orientation), and a principle that the electronic apparatus 100 calculates the angle α between the a-screen and the B-screen from the orientation of the a-screen and the orientation of the B-screen will be described.
Wherein the coordinate system of the gyro sensor is a geographical coordinate system. As shown in fig. 5B, the origin O of the geographic coordinate system is at the point where the vehicle (i.e., the device containing the gyroscopic sensor, such as electronic device 100) is located, the x-axis points east (E) along the local latitude line, the y-axis points north (N) along the local meridian, and the z-axis points upward along the local geographic perpendicular line, and forms a right-hand rectangular coordinate system with the x-axis and the y-axis. The plane formed by the x axis and the y axis is a local horizontal plane, and the plane formed by the y axis and the z axis is a local meridian plane. Thus, it can be appreciated that the coordinate system of the gyroscopic sensor is: the gyroscope sensor is taken as an origin O, an x-axis along the direction of the local latitude line to the east, a y-axis along the direction of the local meridian to the north, and a z-axis along the direction of the local geographic plumb line (namely the opposite direction of the geographic plumb line).
The electronic device can measure and obtain the direction vector of the orientation of each screen in the coordinate system of the gyroscope sensor arranged in each screen by using the gyroscope sensor arranged in each screen. For example, referring to a side view of the electronic device as shown in fig. 5A, a direction vector of the orientation of the screen a in the coordinate system of the gyro sensor a measured by the electronic device is a vector z1, and a direction vector of the orientation of the screen B in the coordinate system of the gyro sensor B is a vector z2. The electronic device uses formula (1):
Figure SMS_1
the angle θ between the vector z1 and the vector z2 can be calculated.
As can be seen from fig. 5A, since the vector z1 is perpendicular to the a-screen and the vector z2 is perpendicular to the B-screen, the included angle α=180° - θ between the a-screen and the B-screen can be obtained. Namely, the electronic device can determine the included angle alpha between the A screen and the B screen according to the direction vector (i.e. the vector z 1) of the orientation of the A screen in the coordinate system of the gyroscope sensor A and the direction vector (i.e. the vector z 2) of the orientation of the B screen in the coordinate system of the gyroscope sensor B.
Although the positions of the gyro sensors provided in the a-screen and the B-screen do not overlap, that is, the origins of the coordinate systems of the a-screen and the B-plane gyro sensors do not overlap, the x-axis, the y-axis, and the z-axis of the two coordinate systems are parallel, and thus the coordinate systems of the gyro sensors provided in the a-screen and the B-screen can be considered to be parallel. Thus, although the vector z1 and the vector z2 are not in the same coordinate system, the axes of the two coordinate systems are parallel, and therefore, the angle θ between the vector z1 and the vector z2 can be calculated by the above formula (1).
In some embodiments, the angle alpha between the A screen and the B screen can be measured by matching with one or more other sensors. For example, one acceleration sensor may be provided in each of the folding screens. The electronic device 100 (e.g., the processor 410) may measure the motion acceleration of each screen as it is rotated using an acceleration sensor; and then calculating the rotation angle of one screen relative to the other screen according to the measured motion acceleration, namely the included angle alpha between the screen A and the screen B.
In other embodiments, the gyro sensor may be a virtual gyro sensor formed by combining a plurality of other sensors. The virtual gyroscope sensor can be used for calculating the included angle between adjacent screens of the folding screen, namely the included angle alpha between the screen A and the screen B.
The air pressure sensor 480C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 480C, aiding in positioning and navigation.
The magnetic sensor 480D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 480D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 480D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 480E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications. It should be noted that in the embodiment of the present application, the display screen 494 of the electronic device 100 may be folded to form a plurality of screens. An acceleration sensor 480E may be included in each screen for measuring the orientation (i.e., the directional vector of the orientation) of the corresponding screen.
A distance sensor 480F for measuring distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 480F to achieve fast focus.
Proximity light sensor 480G may include, for example, a Light Emitting Diode (LED) and a light detector, for example, 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 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 may use the proximity light sensor 480G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically extinguish the screen for power saving. The proximity light sensor 480G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 480L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display screen 494 based on the perceived ambient light level. The ambient light sensor 480L may also be used to automatically adjust white balance during photographing. Ambient light sensor 480L may also cooperate with proximity light sensor 480G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 480H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 480J detects temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 480J. For example, when the temperature reported by temperature sensor 480J exceeds a threshold, electronic device 100 performs a reduction in performance of a processor located in the vicinity of temperature sensor 480J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 442 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 442 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 480K, also referred to as a "touch panel". The touch sensor 480K may be disposed on the display screen 494, and the touch sensor 480K and the display screen 494 form a touch screen, which is also called a "touch screen". The touch sensor 480K is used to detect a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display screen 494. In other embodiments, the touch sensor 480K may also be disposed on the surface of the electronic device 100 at a different location than the display screen 494.
Bone conduction sensor 480M may acquire a vibration signal. In some embodiments, bone conduction sensor 480M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 480M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 480M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 470 may parse out a voice signal based on the vibration signal of the sound part vibration bone block obtained by the bone conduction sensor 480M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beat signals acquired by the bone conduction sensor 480M, so that a heart rate detection function is realized.
The keys 490 include a power-on key, a volume key, etc. The keys 490 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 491 may generate a vibration cue. The motor 491 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 491 may also correspond to different vibration feedback effects by touch operations applied to different areas of the display screen 494. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 492 may be an indicator light, which may be used to indicate a state of charge, a change in charge, an indication message, a missed call, a notification, or the like.
The SIM card interface 495 is used to connect to a SIM card. The SIM card may be inserted into the SIM card interface 495 or removed from the SIM card interface 495 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 495 may support Nano SIM cards, micro SIM cards, etc. The same SIM card interface 495 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 495 may also be compatible with different types of SIM cards. The SIM card interface 495 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, 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.
The methods in the following embodiments may be implemented in the electronic device 100 having the above-described hardware structure.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this embodiment, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 6 is a software block diagram of the electronic device 100 according to the embodiment of the present application. The layered architecture may divide the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into three layers, from top to bottom, an application layer (abbreviated as application layer), an application framework layer (abbreviated as framework layer), and a kernel layer (also referred to as driver layer).
The application layer may include a series of application packages, among other things. As shown in fig. 6, the application layer may include a plurality of application packages such as application 1 and application 2. For example, the application package may be a camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, desktop start (counter), etc. application.
The Framework layer (i.e., framework layer) provides an application programming interface (application programming interface, API) and programming Framework for the application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 6, the framework layer may include a window manager (window manager service, WMS) and an activity manager (activity manager service, AMS), etc. Optionally, the framework layer may also include a content provider, a view system, a telephony manager, a resource manager, a notification manager, etc. (not shown in the figures).
Wherein the window manager WMS is used to manage the window program. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The Activity manager AMS is responsible for managing Activity, starting, switching, scheduling, managing and scheduling applications of each component in the system, and the like. The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver. The kernel layer is a layer between hardware and software. The kernel layer may contain display drivers, input/output device drivers (e.g., keyboard, touch screen, headphones, speakers, microphones, etc.), camera drivers, audio drivers, and sensor drivers, among others.
The kernel layer may generate a corresponding input event (e.g., a folding screen unfolding event) according to the input operation (e.g., an operation of unfolding a folding screen) by a user on the electronic device 100, and report the event to the application framework layer. The window mode (such as a multi-window mode, a single window mode, or a full screen mode) and the window position and size of the application are set by the activity management server AMS of the application framework layer. And the window management server WMS of the application program framework layer draws a window according to the setting of the AMS, then sends window data to the display driver of the kernel layer, and displays a corresponding application interface on the folding screen by the display driver. When the folding screen of the electronic device 100 is in a folded state, the electronic device 100 displays the application interface in a full-screen mode. For example, as shown in (a) of fig. 8, when the folding screen is in a folded state, the interface of the "panning" application is displayed in full screen mode. When the folding screen of the electronic device 100 is in an unfolded state, the electronic device 100 displays the application interface in a multi-window mode or a single-window mode. For example, as shown in fig. 8 (c), when the folding screen is in the unfolded state, two interfaces of the "panning" application are displayed in the double window mode. For example, as shown in (b) of fig. 13, when the folding screen is in the unfolded state, the home page of the "panning" application is displayed in the single window mode.
The display scheme provided by the embodiment of the application is based on the free window (freeform) characteristic of google and a multi-window multi-task infrastructure. The display flow provided in the embodiment of the present application may be referred to fig. 6. As shown in fig. 6, in an embodiment of the present application, the Activity manager AMS may include an Activity native management module and an Activity extension module. The Activity native management module is used for managing Activity and is responsible for starting, switching and scheduling all components in the system, managing and scheduling application programs and the like. The Activity extension module is used for setting a window mode and the attribute of the window according to the folding state or the unfolding state of the folding screen.
The attributes of the window may include the position and size of the Activity window, and the visible attribute of the Activity window (i.e., the state of the Activity window). When the position of the Activity window is that 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 information such as width and height in the application starting config. The visible property of the Activity window may be true or false. When the visual property of the Activity window is true, the Activity window is visible to the user, i.e. the display driver displays the content of the Activity window. When the visual attribute of the Activity window is false, the visual attribute indicates that the Activity window is invisible to the user, that is, the display driver will not display the content of the Activity window.
Wherein an application (e.g., application 1 or application 2) may invoke a launch Activity interface to launch a corresponding Activity. The Activity manager AMS may request the window manager WMS to draw a window corresponding to the Activity in response to the invocation of the application, and invoke the display driver to implement the display of the interface.
It will be appreciated that during the process of displaying the application interface by the electronic device 100, the folding screen of the electronic device 100 may be switched from the folded state to the unfolded state, or vice versa. At this time, the folding driving (input/output device driving) of the driving layer can detect the folding event input by the user. In this embodiment of the present application, the folding event may be triggered by a user controlling the operation of the folding screen to transition from the folded state to the unfolded state, which is referred to as folding event 1. Alternatively, the folding event may be triggered by a user controlling the folding screen to transition from the unfolded state to the folded state, referred to as folding event 2. The folding driver may report folding events to the window manager WMS of the framework layer (i.e. the application framework layer).
The window manager WMS may monitor for a folding event and may determine a switching display (display) size after monitoring for the folding event. The window manager WMS transmits a display change event to the activity manager AMS, and the activity manager AMS sets a window mode and a window attribute. When the window manager WMS listens to the folding event 1, it may determine that the display becomes large, 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 attribute. When the window manager WMS listens to the folding event 2, it may determine that the display becomes small, 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 the multi-window mode or the single-window mode to the full-screen mode and adjust the attribute of the window.
After the Activity window mode and attribute are set by the Activity manager AMS, the window manager WMS may be requested to draw a window, and the display driver may be invoked to display the drawn window content, thereby presenting the interface to the user.
For example, in response to the above-described display change event 1, the activity manager AMS requests the window manager WMS to draw a window and invokes the display driver display interface may be: the folding screen is unfolded, and an application interface (corresponding to a single window mode) is centrally displayed, wherein the size of the application interface is the same as that of the application interface displayed when the folding screen is in a folding state. Alternatively, in response to the display change event 1, the interface of the display driver display may be: the folding screen expands and displays two application interfaces (corresponding to a multi-window mode, such as a dual-window mode). The two application interfaces comprise one application interface displayed when the folding screen is in a folded state, and the size of the one application interface is unchanged. In response to the display change event 2, the activity manager AMS requests the window manager WMS to draw a window and invokes the display driver display interface may be: the electronic device displays one application interface full screen in the folded state (corresponding to full screen mode).
In the following, the electronic device is taken as a mobile phone, the folding screen of the mobile phone is the folding screen, and the folding screen can be folded to form a first screen (such as an a screen) and a second screen (such as a B screen) for example, so that the technical scheme provided by the embodiment of the application is specifically described. As shown in fig. 7, the method of displaying an application may include S701-S702:
s701, controlling the first screen to display a first interface by the mobile phone when the folding screen is in a folding state.
In this embodiment of the present invention, when the folding screen is in a folded state, the first screen is used as a main screen to display a main interface or an application interface (such as the first interface) of the mobile phone, and the second screen may be a black screen.
When the folding screen is in a folding state, an included angle alpha epsilon [0 DEG, P ] between a first screen (such as an A screen) and a second screen (such as a B screen) of the mobile phone is formed. When the mobile phone is in an unfolding state, an included angle alpha epsilon (P, 180 degrees) between an A screen and a B screen of the folding screen is formed.
Or when the folding screen is in a folding state, the included angle alpha epsilon [0 DEG, P between the first screen (such as A screen) and the second screen (such as B screen) of the mobile phone. When the mobile phone is in an unfolding state, an included angle alpha epsilon [ P,180 DEG ] between an A screen and a B screen of the folding screen.
Wherein, P is a preset angle threshold. P may be determined based on usage habits of a large number of users using the folding screen; alternatively, P may be set by the user in the handset.
In some embodiments, when α >90 °, the likelihood 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 °. The range of the preset angle threshold P may be (90 °,180 °). The larger P, the higher the likelihood that the user will 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 °, 150 °, or the like.
The mobile phone can calculate the included angle alpha of the screen A and the screen B in real time, and detect the change of the included angle alpha. When the included angle alpha between the screen A and the screen B is detected to be changed from small to large and the included angle alpha after the change is larger than P, the mobile phone can determine that the folding screen is changed from the folding state to the unfolding state. For a specific method for calculating the included angle α between the screen a and the screen B by the mobile phone, reference may be made to the method for calculating the included angle α by the electronic device 100 in the foregoing embodiment, which is not repeated herein.
It should be noted that, when the included angle α=0° between the first screen and the second screen is below, the folding screen is in the folded state; when the included angle α=180° between the first screen and the second screen, the folded screen is in the unfolded state, which is an example, and the method of the embodiment of the present application is described. The first interface may be an interface of the first application.
Illustratively, the first application described above is an "naughty" application. The first interface may be an item detail page of the "panning" application. Fig. 8 (a) shows a front view of the mobile phone, i.e., a first screen of the mobile phone, when the folding screen is in a folded state. Fig. 8 (b) shows a rear view of the mobile phone, i.e., a second screen of the mobile phone, when the folding screen is in a folded state. As shown in fig. 8 (a), the first screen displays a first interface 801 of the "panning" application, i.e., an item detail page. As shown in (b) of fig. 8, the second screen is a black screen.
Wherein the first interface is an interface of a first application. The first interface may be a home page of the first application; alternatively, the first interface may not be the home page of the first application.
In the application scenario (1) of the embodiment of the present application, the first interface is not a home page of the first application. The first interface is any interface except for a first page of the first application in the interfaces of the first application. For example, the first interface may be item detail page 801 shown in fig. 8 (a), item detail page 801 not being the home page of the "panning" application.
In the application scenario (2) of the embodiment of the present application, the first interface may be a home page of the first application. For example, the first interface may be the first interface 901 shown in (a) in fig. 9. The first interface 901 is the home page of the "panning" application. The first interface of the mobile phone displaying the first application may include the following case (1) and case (2).
Case (1): the home page of the first application is displayed by responding to the clicking operation (such as the clicking operation) of the icon of the first application in the main interface (i.e. the desktop) of the mobile phone after the mobile phone exits the operation of the first application (i.e. stops at the interface where the mobile phone displays the first application and the background stops operating the first application). Or after the mobile phone is started, the home page of the first application is displayed for the first time in response to a clicking operation (such as a clicking operation) of a user on an icon of the first application in a main interface (i.e. a desktop) of the mobile phone.
For example, the mobile phone may display a home page 901 of the "panning" application shown in (a) of fig. 9, i.e., a first interface, in response to a click operation (e.g., a single click operation) of an icon of the "panning" application in a main interface (i.e., a desktop) of the mobile phone by a user.
Case (2): the mobile phone can respond to the return operation of the user on the interface of the next level of the first application, and display the first application.
For example, the home page 901 of the "panning" application shown in fig. 9 (a), i.e., the first interface, may be displayed by the mobile phone in response to a return operation of the search result page 903 shown in fig. 9 (b) by the user (e.g., a click operation of the "return" button 904 by the user). Wherein the handset may display a search results page 903 in response to a user clicking (e.g., clicking) a search button 902 in a home page 901 of the "panning" application. Item detail page 903 is the next-level interface to the home page 901 of the "panning" application. The detailed description of the hierarchical relationship between the interfaces may refer to the following related description of the embodiments of the present application, which are not described herein.
S702, responding to the folding screen to be converted into an unfolding state from a folding state, controlling a first display area of the folding screen to display a first interface by the mobile phone, and displaying a second interface by a second display area.
Wherein 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.
In some embodiments, the first display area is a display area corresponding to the first screen and the second display area is a display area corresponding to the second screen. Specifically, the folding edge of the folding screen is taken as a boundary, when a user faces the unfolded folding screen, the left side of the folding edge on the folding screen is a first display area, and the right side of the folding edge on the folding screen is a second display area; or the right side of the folding edge on the folding screen is a first display area, and the left side of the folding edge on the folding screen is a second display area. Thus, the usage habit of most users on the folding screen electronic equipment is more satisfied.
Taking the left side of the folding edge on the folding screen as a first display area, the right side of the folding edge on the folding screen as a second display area as an example. As shown in (a) of fig. 10A, a boundary L1 between the first display area and the second display area coincides with the folded 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. For example, as shown in fig. 8 (c), the boundary L between the first display area 803 and the second display area 804 coincides with the folded edge of the folding screen. The first display area 803 corresponds to a first screen, and the second display area 804 corresponds to a second screen.
In other embodiments, the dimensions (including width and height) of the first display area and the second display area may be preconfigured in the mobile phone. Alternatively, the width and height of the first display area and the second display area may be set in the mobile phone by the user. The method for setting the first display area and the second display area by the user may be described with reference to fig. 19 to 21, which will not be described herein. In this embodiment, the size of the first display area and the size of the second display area may be the same or different.
For example, as shown in (b) of fig. 10A, the size of the first display area and the size of the second display area are the same. In fig. 10A (b), the first display area and the second display area are bounded by a boundary L2, the height of the first display area and the height of the second display area are the same, and the width of the first display area and the width of the second display area are both the length x.
As another example, as shown in (c) of fig. 10A, the size of the first display area and the size of the second display area are different. In fig. 10A (c), the first display area and the second display area are bounded by a boundary L3, and the first display area is smaller than the second display area.
As another example, as shown in (d) of fig. 10A, the size of the first display area and the size of the second display area are different. In fig. 10A (d), the first display area and the second display area are bounded by a boundary L4, and the first display area is larger than the second display area.
It should be noted that, in the following embodiments, the method of the embodiments of the present application will be described by taking an example in which the boundary between the first display area and the second display area is a folded edge, the right side of the folded edge is the second display area, and the left side of the folded 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.
In this embodiment of the present application, the second interface may be an interface of the first application, and the second interface is different from the first interface. Alternatively, the second interface may be an interface of a second application, the second application being different from the first application.
In some embodiments, the second interface may be an interface of the first application, the second interface being different from the first interface. In this embodiment, the handset may determine the second interface in the following manner.
In combination with the application scenario (1), the first interface is not the first page of the first application. In an implementation (1) of the application scenario (1), the second interface may be a home page of the first application.
For example, take the example that the first application is a "panning" application. The home page of the "panning" application is interface 802 shown in fig. 8 (c). Suppose that the handset displays item detail page 801 shown in fig. 8 (a), i.e., the first interface. In response to the folding screen being transitioned from the folded state to the unfolded state, as shown in fig. 8 (c), 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 home page of the "panning" application.
In implementation (2) of the application scenario (1), the second interface may be an interface of a level above the first interface. The embodiment of the application describes the hierarchical relationship between different interfaces:
in the embodiment of the application, different interfaces of the same application can be divided into an upper layer and a lower layer. The mobile phone can 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.
For example, different interfaces of the same application may correspond to the same Activity (Activity) or may correspond to different activities. When different interfaces correspond to the same Activity, the interfaces may correspond to the same hierarchy. When different interfaces correspond to different Activity activities, the interfaces correspond to different hierarchies. In response to a user operation on one interface, the interface may invoke another interface.
When the actively invoked interface corresponds to the same Activity as the invoked interface, the actively invoked interface and the invoked interface may correspond to the same hierarchy. For example, the actively invoked interface may be the "hot spot" interface 1001 shown in fig. 10B, and the invoked interface may be the "video" interface displayed by the mobile phone after the user clicks the "video" button shown in fig. 10B. The "video" interface and the "hot spot" interface 1001 correspond to the same Activity and to the same hierarchy. When the actively-called interface corresponds to different activities with the called interface, the called interface is the next level of the actively-called interface. For example, the active invocation interface may be the search results page 903 shown in FIG. 9 (b). In response to a user clicking on the "cap" search term 905 in the search results page 903, the handset may display the item detail page 801 shown in fig. 8 (a). Item detail page 801 is the invoked interface. The search results page 903 and the product details page 801 correspond to different activities, and the search results page 903 is a hierarchical interface on the product details page 801.
In one technical scheme, the process of calling interfaces by the mobile phone can be realized through a stack of first-in and last-out. For example, when the mobile phone calls and displays interface 1, interface 1 is pushed onto the stack; when the interface 1 calls the interface 2, the interface 2 is stacked; when the user returns to interface 1 from current interface 2, current interface 2 pops up. In addition, when the mobile phone detects a return operation of the user on the current interface, the mobile phone responds to the operation to return to the interface of the current interface.
For another example, the mobile phone is preset with a hierarchy relationship between different activities, the hierarchy of the interface corresponding to the Activity at the level is also high, and the hierarchy of the interface corresponding to the Activity at the level is also low. For example, in the "panning" application, the level of the Activity corresponding to the home page is highest, and the level of the Activity corresponding to the search result page is higher than the level of the Activity corresponding to the item detail page.
Based on the hierarchical relationship between interfaces, the search result page 903 shown in (b) in fig. 9 is the interface of the upper hierarchy of the item detail page 801 shown in (a) in fig. 8.
For example, the mobile phone displays 1101 (i.e., item detail page) of the first interface shown in (a) in fig. 11. In response to the folding screen transitioning from the folded state shown in fig. 11 (a) to the unfolded state shown in fig. 11 (b), the handset controls the first display area 1103 of the folding screen to display a first interface 1101 and the second display area 1104 to display a second interface 1102 (i.e., a search results page, an interface of the upper level of the item detail page).
In the implementation (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.
Generally, after a user clicks an icon of a first application on a main interface (i.e., a desktop) of the mobile phone, the mobile phone displays a first page of the first application, an Activity record (Activity record) of the first application may be generated, and a record item for the first page is saved in the Activity record. And responding to the operation of the user on the first page or any interface of the first application, and when the mobile phone displays another interface of the first application, storing the record item of the other interface in the activity record of the first application. Wherein the handset can record the activity record of the application through a first-in-last-out stack (referred to as a first record stack). The pointer of the first record stack of the first application points to the record item at the stack top, and when the mobile phone displays the interface of the first application, the interface corresponding to the record item pointed by the pointer is displayed.
For example, after the mobile phone responds to the clicking operation of the icon of the first application in the main interface (i.e. desktop) of the mobile phone by the user and displays the first page of the first application, the mobile phone can generate the first record stack shown in (a) in fig. 12. Wherein, the first record stack shown in fig. 12 (a) includes the record item of the interface 1 (i.e., the first page of the first application), and the pointer points to the record item of the interface 1. In response to the user's operation in the interface 1, the mobile phone may display the interface 2 and press the record item corresponding to the interface 2 in the first record stack, resulting in the first record stack shown in (b) in fig. 12. In the first record stack shown in fig. 12 (b), the pointer points to the record item of the interface 2. In response to a return operation input by the user at the interface 2, the mobile phone may display the interface 1 and press the record item corresponding to the interface 1 in the first record stack, to obtain the first record stack shown in (c) in fig. 12. In the first record stack shown in fig. 12 (c), the pointer points to the record item of interface 1 at the top of the stack. In response to the user's operation in the interface 1, the mobile phone may display the interface 3 and press the record item corresponding to the interface 3 in the first record stack, resulting in the first record stack shown in (d) of fig. 12. In the first recording stack shown in fig. 12 (d), the pointer points to the entry of interface 3 at the top of the stack. In response to the user's operation in the interface 3, the mobile phone may display the interface 4 and press the record item corresponding to the interface 4 in the first record stack, resulting in the first record stack shown in (e) in fig. 12. In the first record stack shown in fig. 12 (e), the pointer points to the record item at interface 4 at the top of the stack.
In combination with the above example, in response to the folding screen transitioning from the folded state to the unfolded state, the handset may move the top pointer of the first recording stack downward such that the pointer points to the next entry at the top of the stack. At this time, the interface corresponding to the record item pointed by the pointer is the second interface, and the record item at the stack top is the first interface. The mobile phone can display a first interface corresponding to the record item at the top of the stack in a first display area of the folding screen, and display a second interface corresponding to the record item pointed by the pointer in a second display area. Or, the mobile phone can display a first interface corresponding to the record item at the top of the stack in the second display area of the folding screen, and display a second interface corresponding to the record item pointed by the pointer in the first display area. For example, the record item of the first record stack may store the identifier of the corresponding interface.
In combination with the case (1) of the application scenario (2), the first interface is a first page of the first application, and only a record item of the first page of the first application is saved in the first activity record of the first application. For example, as shown in (a) in fig. 12, only the entry of the interface 1 is included in the first recording stack. In this case, in response to the folding screen being changed from the folded state to the unfolded state, the mobile phone cannot find the record items of the interfaces other than the first interface from the activity records of the first application.
Based on this, in the implementation (a) of the case (1), in response to the folding screen being changed from the folded state to the unfolded state, the mobile phone controls the first display area and the second display area of the folding screen as a whole, centering the first interface, that is, the folding screen displays the first interface in a single window.
For example, the first screen displays 1301 of the first interface shown in fig. 13 (a) (i.e., the home page of the "panning" application). And, only the record item of the first page of the "Taobao" application is saved in the first activity record of the "Taobao" application. In this case, in response to the folding screen being transitioned from the folded state shown in fig. 13 (a) to the unfolded state shown in fig. 13 (b), the mobile phone may control the folding screen to display the above-described first interface 1301 in a single window. For example, the handset may display a first interface 1301 shown in fig. 13 (b).
In implementation (b) of case (1), the second interface may be any interface of the next hierarchy of the home page of the first application.
In the implementation manner (c) of the case (1), the mobile phone may be preset in the case (1), and the second interface may be any interface except the home page in the interfaces of the first application.
In combination with the case (2) of the application scenario (2), although the first interface is the first page of the first application, the mobile phone stores the record items of other interfaces of the first application in the activity record of the first application. In this case, the second interface may be an interface corresponding to a previous record item of the record items corresponding to the first interface in the activity record of the first application. The specific method for determining the second interface by the mobile phone may refer to the detailed description in the implementation mode (3) of the application scenario (1), which is not repeated herein in the embodiment of the present application.
Assume that when a user faces an unfolded folding screen, the left side of the folding edge on the folding screen is a first display area, and the right side of the folding edge on the folding screen is a second display area. In S702, in response to the folding screen being changed from the folded state to the 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 enable the display mode to be in line with the use habit of most users when the first interface and the second interface are displayed on the folding screen, the use experience of the users is improved. The embodiment of the application provides the following scheme:
in response to the folding screen being changed from the folded state to the unfolded state, if the layer level of the first interface is higher than the layer level of the second interface, the mobile phone can control the first display area (i.e. the display area on the left side) of the folding screen to display the first interface, and the second display area (i.e. the display area on the right side) to display the second interface; if the layer level of the second interface is higher than the layer 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 displays the first interface; if the second interface and the first interface are the same-level interface, the mobile phone can control the first display area of the folding screen to display the first interface, and the second display area displays the second interface. Therefore, when the hierarchy of the interface displayed in the second display area on the right side is lower than or equal to that of the interface displayed in the first display area on the left side, the comparison and operation of users can be realized, and the use habit of most users can be met.
In other embodiments, the second interface is an interface of a second application, the second application being different from the first application. The second application is any one of one or more applications that the handset has recently run and has not been closed, in addition to the first application. The mobile phone not closing the second application means that the mobile phone runs the second application in the background.
For example, assume that applications that have been recently run and not closed by a cell phone include a "dial" application, a "setup" application, and a "WeChat" application. The mobile phone may display the application task window interface 401 shown in fig. 14 in response to a preset operation (e.g., a double click operation on the Home key) of the mobile phone by the user. The application task window interface 401 includes task windows of applications that have been recently run by the mobile phone and have not been closed, such as a task window 402 of a "dial-up" application "setting" application task window 403 and a task window 404 of a "WeChat" application. The first application is a "WeChat" application. The second application may then be a "dial-up" application or a "setup" application.
As shown in fig. 15 (a), the handset displays a first interface 1501 of the first application, i.e., one interface of the "WeChat" application. In response to the folding screen transitioning from the folded state shown in fig. 15 (a) to the unfolded state shown in fig. 15 (b), the handset 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 "setup" application described above.
In some embodiments, the second interface is an interface of a second application. In this embodiment, in response to the folding screen transitioning from the folded state to the unfolded state, the handset may control the first display area (i.e., the left display area) to display a first interface and the second display area (i.e., the right display area) to display a second interface. Therefore, the first interface of the first application is displayed in the first display area on the left side, and the second interface of the second application is displayed in the second display area on the right side, so that the use habit of most users can be met.
Further, as shown in fig. 7, after S702, the method in the embodiment of the present application may further include S703:
s703, in response to the folding screen being converted from the unfolding state to the folding state, the mobile phone controls the first screen to display the first interface or the second interface.
For example, in response to the folding screen transitioning from the unfolded state shown in fig. 15 (b) to the folded state shown in fig. 15 (a), the first screen may display the first interface 1501 shown in fig. 15 (a). Of course, the first interface 1501 shown in fig. 15 (a) may be replaced with the second interface 1502 shown in fig. 15 (b).
The mobile phone can calculate the included angle alpha of the screen A and the screen B in real time, and detect the change of the included angle alpha. When the included angle alpha between the screen A and the screen B is detected to be smaller from the large value and the included angle alpha after the change is smaller than P, the mobile phone can determine that the folding screen is converted from the unfolding state to the folding state. For a specific method for calculating the included angle α between the screen a and the screen B by the mobile phone, reference may be made to the method for calculating the included angle α by the electronic device 100 in the foregoing embodiment, which is not repeated herein.
In the embodiment of the application, in response to the folding screen being converted from the folded state to the unfolded state, the mobile phone can control the folding screen to display the first interface and the second interface in a double-window mode, namely, the folding screen displays two interfaces in two display areas simultaneously. Since the aspect ratio (i.e., aspect ratio) of the first and second screens of the folded screen is similar to that of a conventional non-folded screen; thus, both the first screen and the second screen may be adapted to the interface layout of the launched application. Thus, in response to the operation of unfolding the folding screen by the user, the mobile phone can normally display the interface of the application without restarting the application.
And moreover, the unfolded folding screen can display the first interface and the second interface at the same time, so that the display content of the folding screen is richer, the utilization rate of the folding screen can be improved, and the visual experience of a user is improved.
As an alternative, in some embodiments, S702 may be replaced with S702a:
s702a, in response to the folding screen being converted from the folding state to the unfolding state, the mobile phone can control the folding screen to display the first interface in a single window.
When the folding screen is in an unfolding state, the folding screen displays a first interface through a single window, which can be specifically: the first interface is centrally displayed by the first display area and the second display area of the folding screen as a whole.
For example, the handset displays 1301 of the first interface shown in fig. 13 (a) (i.e., the home page of the "panning" application). In response to the folding screen transitioning from the folded state shown in fig. 13 (a) to the unfolded state shown in fig. 13 (b), the mobile phone-controllable folding screen may display the first interface 1301 in a single window. For example, the folding screen may display a first interface 1301 shown in fig. 13 (b).
It should be noted that, unlike the implementation (a) of the above case (1), it is: the first interface in this embodiment may be any interface of the first application, and is not limited to the home page of the first application.
Further, after S702a, the method in the embodiment of the present application may further include: in response to the folding screen transitioning from the unfolded state to the folded state, the mobile phone may control the first screen to display the first interface. For example, in response to the folding screen transitioning from the unfolded state shown in fig. 13 (b) to the folded state shown in fig. 13 (a), the mobile phone may control the first screen to display 1301 the first interface shown in fig. 13 (a).
In the embodiment of the application, in response to the folding screen being converted 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 is not changed, so that the mobile phone can normally display the interface of the application without restarting the application.
After S702a, the mobile phone may receive a first operation of the first interface displayed in the first display area by the user. The first operation is used for triggering the first display area to display a third interface of the first application. And responding to a first operation of the first interface of the user, the mobile phone can 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 third interface. The detailed description of the first display area and the second display area may refer to the description in the above embodiments, which are not repeated herein.
For example, the mobile phone displays a first interface 1601 shown in fig. 16 (a) as a single window, such as a home page of the "panning" application. Generally, in response to a click operation (e.g., a single click operation) of the "search" button 1602 in the first interface 1601, a search result interface, i.e., a third interface, may be displayed in a single window. In this embodiment, in response to the clicking operation (such as the clicking operation) of the "search" button 1602 in the first interface 1601 by the user, the mobile phone may control the folding screen to display the first interface and the third interface simultaneously in a double window. As shown in fig. 16 (b), the first display area 1604 of the folding screen displays a first interface and the second display area displays a third interface 1603, i.e., a search result interface.
Optionally, after S702a, in response to the first operation of the user on the first interface, if the level of the first interface is higher than that of the third interface, the mobile phone may control the first display area (i.e. the left display area) of the folding screen to display the first interface, and the second display area (i.e. the right display area) to display the third interface; if the level of the third interface is higher than that 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 displays the first interface; if the third interface and the first interface are the same-level interface, the mobile phone can control the first display area of the folding screen to display the first interface, and the second display area displays the third interface. Therefore, when the hierarchy of the interface displayed in the second display area on the right side is lower than or equal to that of the interface displayed in the first display area on the left side, the comparison and operation of users can be realized, and the use habit of most users can be met.
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, responding to a second operation of the first interface displayed in the first display area by a user, 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 is unchanged; and responding to a third operation of the second interface displayed in the second display area by the user, displaying a fifth interface corresponding to the third operation in the second display area of the folding screen, wherein a fourth interface displayed in the first display area is unchanged.
The second interface and the first interface may both be interfaces of a first application (e.g., a "panning" application). For example, as shown in fig. 17 (a), the first display area 1701 of the folding screen displays a home page 1703 of the "panning" application, i.e., a first interface; the second display area 1702 of the collapsed screen displays a "hat" search results page 1704, the second interface. The handset may receive a third operation of the user on the first interface (e.g., a click operation of the "search" button 1705 shown in fig. 17 (a)) by the user. In response to a third operation by the user of the home page 1703 of the "panning" application, as shown in fig. 17 (b), the first display area 1701 of the folding screen displays a "milk" search results page 1706 (i.e., a fourth interface). While the second interface displayed by the second display area is unchanged. For example, as shown in FIG. 17 (b), the second display region 1702 still displays a "hat" search results page 1704, i.e., a second interface.
The handset may receive a fourth operation by the user on the second interface (e.g., a user click operation on a "cap" search term in the "cap" search results page 1704 shown in fig. 17 (b)). In response to a fourth operation by the user on the "hat" search results page 1704, the second display area 1702 of the collapsed screen displays an item detail page 1708 (i.e., a fifth interface), as shown in FIG. 17 (c). While the fourth interface displayed by the first display area is unchanged. For example, as shown in fig. 17 (c), the mobile phone may still display a "milk" search results page 1706, i.e., a fourth interface, in the first display area 1701.
The second interface may be an interface of the second application and the first interface is an interface of the first application. The second application is different from the first application. For example, the first application is a "setup" application and the second application is a "panning" application. As shown in fig. 18 (a), the first display area 1801 of the folding screen displays a WLAN (i.e., wiFi) setup interface 1803 of the "setup" application, i.e., a first interface; the second display area 1802 displays a "hat" search results page 1804, i.e., a second interface, for the "panning" application. The handset may receive a third operation by the user on the first interface (e.g., a click operation by the user on the "back" button 1805 in the WLAN setup interface 1803 shown in fig. 18 (a)). In response to a third operation of the WLAN setup interface 1803 by the user, as shown in (b) of fig. 18, the first display area 1801 of the folding screen displays a home page 1806 of the "setup" application, i.e., a fourth interface. While the second interface displayed by the second display area is unchanged. For example, as shown in fig. 18 (b), the cell phone may still display a "hat" search results page 1804, i.e., a second interface, in the second display area 1802.
The cell phone may receive a fourth operation by the user on the second interface (e.g., a user clicking on the "cap" search term in the "cap" search results page 1804 shown in fig. 18 (b)). In response to a fourth operation by the user of the "hat" search results page 1804, as shown in fig. 18 (c), the second display area 1802 of the folding screen displays an item detail page 1808 (i.e., a fifth interface). While the fourth interface displayed by the first display area is unchanged. For example, as shown in fig. 18 (c), the mobile phone may still display a first page 1806 of the "setup" application, that is, a fourth interface, in the first display area 1801.
In this embodiment, the first display area of the folding screen displays the first interface, and after the second display area displays the second interface, the interfaces displayed by the first display area and the second display area do not affect each other. Therefore, 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.
In some embodiments, in order to avoid frequent switching of the display content of the mobile phone due to frequent change of the included angle α between the a screen and the B screen around P in a short time. In some embodiments, if the mobile phone detects that the included angle α between the a screen and the B screen is changed from small to large, and the included 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 is black. At this time, the mobile phone can start a timer, and when the included angle α between the screen a and the screen B is greater than P in the preset time, the first display area of the folding screen displays the first interface, and the second display area displays the second interface.
In some embodiments, the plurality of display areas included in the folded screen or the unfolded screen of the landscape screen state of the electronic device in the unfolded state may be user-set.
For example, as shown in fig. 19, a setting control of a display area is displayed on the setting interface 1901 of the electronic device, the user may set the aspect ratio of the first display area (i.e., the aspect ratio) and the aspect ratio of the second display area by himself or the user may select the aspect ratio of the first display area and the aspect ratio of the second display area from the setting interface.
As another example, as shown in (a) of fig. 20, a display area number setting control 2002 and a range setting control 2003 of a display area are displayed on the setting interface 2001 of the mobile phone. After the user sets the number of display areas to 2 and clicks the control 2003, the mobile phone may prompt the user to set the range of the first display area, as shown in (b) of fig. 20, and the user may drag on the display screen to set the range of the first display area. After the user stops dragging, the handset may display a control 2004 to determine the extent of the first display area and a control 2005 to cancel the setting, as shown in (c) of fig. 20. After the user clicks the control 2004, referring to (d) in fig. 20, the handset can determine the extent of the first display area and the second display area set by the user.
For another example, after the user sets the number of display areas to 2 on the setting interface 2001 and clicks the control 2003, as shown in fig. 21, a boundary 2101 is displayed on the setting interface of the mobile phone, and the user can drag the boundary 2101 to set the size and aspect ratio of the first display area and the second display area.
Of course, the user may set the display area included in the display screen of the mobile phone in other manners, which is not limited in the embodiments of the present application.
In other embodiments, the electronic device is a mobile phone. The folding screen of the mobile phone may be the folded-in folding screen, where the folded-in folding screen may be folded to form a first screen (a screen shown in fig. 2) and a second screen (B screen shown in fig. 2), and a third screen (C screen shown in fig. 2) is disposed on the back of the first screen.
It will be appreciated that the third screen (i.e., the C-screen) is visible to the user, while the first and second screens are not visible to the user, since the invaginated folding screen is fully folded; thus, for a cell phone with such an inwardly folded folding screen, the interface may be displayed on the third screen when the folding screen is in the folded state; when the folding screen is in the unfolded state, an interface can be displayed on the first screen and the second screen.
It should be noted that all the above solutions of the folding out screen can be applied to a mobile phone comprising the folding in screen. However, unlike a cell phone that includes an invaginated folding screen, the cell phone displays an interface (such as the first interface described above) on a third screen in the folded state.
Illustratively, the "Taobao" application of the first application described above is taken as an example. The first interface may be an item detail page of the "panning" application. Fig. 22A (a) shows a front view of the mobile phone, i.e., a third screen of the mobile phone, when the folding screen is in a folded state. As shown in fig. 22A (a), the third screen of the handset displays a first interface 2201 of the "panning" application, i.e., an item detail page. In response to the folding screen transitioning from the folded state to the unfolded state, as shown in (b) of fig. 22A, the mobile phone may display a first interface 2201 in a first display area 2202 and a second interface 2204 in a second display area 2203.
For a mobile phone comprising an inward folding screen, when the mobile phone is in a folding state, the third screen can be controlled to display a first interface; in response to the folding screen being transitioned from the folded state to the unfolded state, the mobile phone may 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, i.e., the folding screen displays both interfaces simultaneously on both display areas. Since the aspect ratio (i.e., aspect ratio) of the first and second screens of the folded screen is similar to that of a conventional non-folded screen; thus, both the first screen and the second screen may be adapted to the interface layout of the launched application. Thus, in response to the operation of unfolding the folding screen by the user, the mobile phone can normally display the interface of the application without restarting the application.
And moreover, the unfolded folding screen can display the first interface and the second interface at the same time, so that the display content of the folding screen is richer, the utilization rate of the folding screen can be improved, and the visual experience of a user is improved.
For an electronic device with a non-folding screen or a folding screen in a folding state, when the electronic device is changed from a vertical screen state to a horizontal screen state, there may be a problem that a display area of a display screen of the electronic device cannot be fully utilized. For example, a mobile phone is taken as an example to display a video playing interface. As shown in fig. 22B (a), the mobile phone is in a portrait state, and the mobile phone displays a video playing interface 2205. As shown in fig. 22B (B), the mobile phone is in a landscape state, and the mobile phone displays the video playing interface 2205 centrally. However, in the landscape state shown in (B) of fig. 22B, a part of the display area of the display of the mobile phone does not display specific contents, and the display area of the display is not fully utilized.
In order to solve the problem that a display area of a display screen (a folding screen or a non-folding screen) of an electronic device cannot be fully utilized, an embodiment of the application provides a method for displaying an application. If the electronic device enters the 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 first application and control the second display area of the display screen to display the related Page (i.e., related Page) configured in pairs with the preset homepage. Therefore, the electronic equipment in the preset scene can display the preset homepage and the related pages of the first application on the display screen at the same time, so that the display content of the display screen is richer, the utilization rate of the display screen can be improved, and the visual experience of a user is improved.
It should be noted that, in the foregoing preset scenario, the detailed description of the preset homepage and the related pages of the first application may refer to the detailed description in the following embodiments, which are not repeated herein.
The methods in the following embodiments may be implemented in the electronic device 100 having the hardware configuration shown in fig. 4. Fig. 23A is another software architecture block diagram of the electronic device 100 provided in an embodiment of the present application. The layered architecture may divide the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into three layers, from top to bottom, an application layer (abbreviated as application layer), an application framework layer (abbreviated as framework layer), and a kernel layer (also referred to as driver layer).
The application layer may include a series of application packages, among other things. As shown in fig. 23A, the application layer may include a plurality of application packages such as application 1 and application 2. For example, the application package may be a camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, and Launcher, among others. The applications 1 and 2 refer to applications supporting dual window display.
As shown in fig. 23A, the application layer may further include a System (System) User Interface (UI), where the System UI (i.e., system UI) is responsible for displaying a System Interface, and is an installation Package (APK) of a System. Wherein, the interface function of the system for interacting with the user is also realized in the APK. In this embodiment of the present application, the user self-defines the interactive interface and the preset gesture of the related Page (i.e. the related Page) of the first application are also implemented in this APK.
The Framework layer (i.e., framework layer) provides APIs and programming frameworks for application programs (i.e., applications) of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 23A, the framework layer may include a configuration module, an Activity management module (corresponding to the Activity manager AMS shown in fig. 6), and a window display module (corresponding to the window manager WMS shown in fig. 6).
The configuration module is used for managing preset homepages (main pages) and related pages (related pages) of the application in the application layer.
In one case, the above main Page and related Page are included in a configuration file in an application's installation package (APK). Thus, as shown in fig. 23A, the configuration module may parse the configuration file in the installation package of the application to obtain and store the main Page and the related Page.
In another case, the configuration module may configure a main Page for the application. For example, the configuration module may configure a first application's home Page as the main Page of the application. Or, the configuration module may further determine, according to interface features of each interface of the application, a main Page of the first application from multiple interfaces of the application. For example, the configuration module may determine, as a main Page of the application, an interface satisfying a preset condition among a plurality of interfaces of the application. Wherein, the preset conditions are: the method comprises the steps of presetting interface characteristics, wherein the number of the preset interface characteristics is larger than a preset number threshold value. The preset interface feature may include a preset component or applet.
The configuration module can call an interface and receive a related Page of an application customized by an interactive interface provided by a user through a system UI. The configuration module may also store a user-defined related Page. Alternatively, the configuration module may also configure or identify the interface of the next level of the main Page as a related Page of the first application.
The configuration module can analyze, configure or identify the main Page and the related Page of the application and store the main Page and the related Page of the application in response to the installation or update of the application. In response to the uninstallation of the application, the configuration module may delete the main Page and the related Page of the application saved in the configuration module.
The Activity management module (such as an Activity manager AMS) is responsible for managing the Activity, and for starting, switching, scheduling each component in the system, managing and scheduling the application programs, and the like. The window display module (window manager WMS) is used to manage the window program. The kernel layer is a layer between hardware and software. The kernel layer may contain display drivers, input/output device drivers (e.g., keyboard, touch screen, headphones, speakers, microphones, etc.), camera drivers, audio drivers, and sensor drivers, among others. The core layer of the folding screen electronic device may also include a folding driver. The folding drive is used to detect the unfolding and folding of the folding screen.
The kernel layer may generate a corresponding input event (e.g., a folding screen unfolding event) according to the input operation (e.g., an operation of unfolding the folding screen) by the user on the electronic device 100, and report the event to the frame layer. Alternatively, the sensor driver may drive the sensor to detect a switch of a motion state (such as a landscape state and a portrait state) of the electronic device, and the kernel layer may generate a corresponding input event (such as a portrait state to a landscape state event) according to the switch of the state, and report the event to the frame layer.
The Activity management module of the framework layer (for example) responds to the time, and can monitor the switching of the listening scene (i.e. judge whether the electronic device enters a preset scene) and the starting of the application (i.e. judge whether the electronic device starts the application). If the electronic device enters a preset scene and an application is started, main Page and related Page of the application can be obtained from the configuration module. The Activity management module can judge whether the current interface of the application is a main Page or not; if the current interface of the application is a main Page of the application, it may be determined to populate the display with the requested Page. Wherein an application (e.g., application 1 or application 2) may invoke a start Activity interface to launch a corresponding Activity.
For example, suppose a is main Page Activity of an application and B is related Page Activity of the application. Taking the example that the electronic device enters a preset scene as a scene of displaying the interface of the first application when the electronic device is in a first state (such as that the electronic device with a non-folding screen is in a horizontal screen state or that the folding screen is in an unfolding state) and responding to the clicking operation of the icon of the first application by a user. As shown in fig. 23B, an application (e.g., APK of the application) may call the startActivity () interface of the framework layer (i.e., FWK) to launch main Page Activity (i.e., startActivity (A) shown in fig. 23B). At this time, as shown in fig. 23B, if the FWK (e.g. Activity management module) detects that the currently started Activity is main Page Activity and the main Page has a matched related Page, the FWK may automatically call startActivity () to start relatedPage Activity (i.e. startActivity (B) shown in fig. 23B).
Then, the Activity management module may request the window display module (i.e., the window management server WMS) to draw the windows corresponding to main Page Activity and relatedPage Activity, and call the display driver to implement the display of the interface. The window display module may draw main Page Activity and relatedPage Activity windows according to the AMS request, and then send the drawn window data to the display driver of the kernel layer, where the display driver displays the preset homepage and related pages in a double window on a display screen (such as a folding screen).
It should be noted that, for the detailed description of each layer in the software structure shown in fig. 23A, reference may be made to the related description of fig. 6 in the above embodiment, and this embodiment is not repeated here. Taking the electronic device as an example of a mobile phone, the technical scheme provided by the embodiment of the application is specifically described.
For ease of understanding, the embodiments of the present application will be described herein with respect to a landscape screen state and a portrait screen state described in the embodiments of the present application.
When a user uses the electronic device with a non-folding screen or a folding screen in a folding 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 the folded state) may include four sides including two longer sides that are parallel to each other and equal to each other, which may be referred to as a long side of the display screen; the four sides also comprise two short sides which are parallel and equal to each other and can be called short sides of the display screen. In the landscape state, the long side of the display screen of the electronic device is parallel to the horizontal plane (for example, as shown in (a) of fig. 24), that is, the angle between the long side of the display screen and the horizontal plane is 0; or the angle 03 of the long side 01 of the display screen with the horizontal plane 02 is smaller than or equal to a preset value 1 (for example, as shown in (b) of fig. 24). The preset value 1 is smaller than or equal to 45 °, and a specific value of the preset value 1 may be set according to an actual application scenario, for example, the preset value 1 may be 20 °. In the landscape state, the display screen of the electronic device is basically in a landscape bar shape.
In the landscape state, the height of the display screen of the electronic device is smaller than the width, and the aspect ratio (i.e., the ratio of the height to the width) of the display screen is smaller than 1. The height of the display screen is the length of the side with the smaller included 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 included angle between the display screen and the horizontal plane. The height of the display screen may be understood as the longitudinal length of the display screen, the width of the display screen may be understood as the lateral length of the display screen, and the aspect ratio of the display screen may be understood as the aspect ratio (i.e., the ratio of the longitudinal length to the lateral length) of the display screen.
In order to distinguish the horizontal screen state from the vertical screen state, the embodiment of the present application also describes the vertical screen state. In the portrait state, the long side of the display screen of the electronic device is perpendicular to the horizontal plane (for example, as shown in (c) in fig. 24); or the angle 04 of the long side 01 of the display screen with the horizontal plane 02 is greater than a preset value 1 (for example, as shown in (d) of fig. 24, 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 equipment is larger than the width, the aspect ratio of the display screen is larger than 1, and the display screen of the electronic equipment is basically in a vertical bar shape.
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. The non-folding screen electronic device or the folding screen electronic device is exemplified by a mobile phone. The preset scene is scene 1. The mobile phone entering the scene 1 means that: when the non-folding screen mobile phone is in a horizontal screen state and displays the main interface, the clicking operation of a user on the icon of the first application is received, and the scene of the interface of the first application is displayed. Or, entering the preset scene by the mobile phone means that: when the folding screen of the mobile phone is in an unfolding state and displays the main interface, clicking operation of a user on an icon of the first application is received, and a scene of the interface of the first application is displayed. As shown in fig. 25, the method of displaying an application may include S2501 to S2505.
S2501, controlling the display screen to display a main interface of the mobile phone when the display screen of the mobile phone is in a first state. The main interface includes an icon of a first application. Wherein the first state is a landscape state; alternatively, the display is a folding screen and the first state is an unfolded state.
In one case, the mobile phone is a non-folding screen mobile phone, and the first state is a horizontal screen state. For example, as shown in fig. 26 (a), the cell phone 2600 is a non-folding screen cell phone, and the cell phone 2600 is in a landscape screen state. As shown in fig. 26 (a), the mobile phone 2600 displays a main interface 2601, and the main interface 2601 includes an icon 2602 of the first application.
In another case, the mobile phone is a folding screen mobile phone, i.e. the display screen is a folding screen. In this case, the display is in the first state specifically: the folding screen is in a folding state and in a transverse screen state. Alternatively, the display screen is in the first state specifically: the folding screen is in an unfolded state. For example, a folding screen phone is in an unfolded state. As shown in fig. 27 (a), the folding screen phone 2700 is in an unfolded state, and the folding screen phone 2700 displays a main interface 2701, the main interface 2701 including an icon 2702 of the first application.
S2502, the mobile phone receives a first operation of a user on an icon of a first application, wherein the first operation is used for triggering a display screen to display a first interface of the first application.
For example, the first operation may be a click operation. If the mobile phone receives a first operation of the icon of the first application by the user, the mobile phone does not run (including background running) the first application; then, in response to the first operation, the mobile phone may launch the first application. At this time, the first operation is used to trigger the mobile phone to start the first application, and display the first page of the first application, that is, the first interface is the first page of the first application. In this embodiment of the present application, the "the mobile phone starts the first application in response to the first operation without running the first application" is referred to as: the handset cold starts the first application from the main interface (i.e., desktop). In this embodiment of the present application, if the mobile phone cold-starts the first application from the main interface, the mobile phone may display a home page (i.e., a preset home page) of the first application in response to an operation (i.e., a first operation) of starting the first application, that is, the first interface is the preset home page.
If the mobile phone receives a first operation of a user on an icon of a first application, the mobile phone operates the first application in the background; then, in response to the first operation, the mobile phone can display an interface of the first application displayed by the mobile phone when the mobile phone switches the first application from the foreground operation to the background operation. In this case, the first interface may or may not be the first page of the first application.
S2503, responding to the first operation, and judging whether the first interface is a preset homepage of the first application by the mobile phone.
The mobile phone may determine a preset homepage (main Page) of the first application through any one of the following implementation (I) -implementation (III).
In implementation (I), the main Page of the first application is pre-configured in a configuration file of an 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 analyzed, and a preset homepage of the first application is obtained and stored. In general, a main Page configured in a configuration file of an installation package of a first application is a home Page of the first application.
Of course, the configuration file of the installation package of some applications may not include the main Page of the first application. In this case, the handset may determine the main Page of the first application through implementation (II) or implementation (III).
In Implementation (II), a main Page may be configured by the handset for the first application. For example, the handset may configure the first application's home Page as the first application's main Page. I.e. main Page is the first Page of the first application.
In Implementation (III), a plurality of interfaces of the first application may be identified by the mobile phone, and a main Page of the first application may be determined from the plurality of interfaces. Specifically, the preset homepage may be an interface satisfying a preset condition among a plurality of interfaces of the first application. The preset conditions are as follows: the method comprises the steps of presetting interface characteristics, wherein the number of the preset interface characteristics is larger than a preset number threshold value. For example, the preset interface feature may include a preset component or applet.
It should be noted that, in the embodiment of the present application, the priorities of main pages in the above-mentioned implementation (I) -implementation (III) are different. Specifically, the priority of the main Page in the implementation (I) is higher than the priority of the main Page in the implementation (II), and the priority of the main Page in the implementation (II) is higher than the priority of the main Page in the implementation (III). That is, if the configuration file of the installation package of the first application includes a main Page, the mobile phone may preferentially use the main Page as a preset homepage of the first application.
Illustratively, the preset homepage is a home page of the first application. From the above description, it is clear that: the mobile phone responds to the first operation of the icon of the first application by the user, and the first interface of the first application to be displayed by the mobile phone may be the home page of the first application (i.e. a preset homepage) or may not be the home page of the first application.
In this embodiment, the mobile phone may determine whether to display the preset homepage of the first application and the related pages configured in pairs with the preset homepage in a dual-window manner by determining whether the first interface is the preset homepage (i.e., main Page) of the first application. Specifically, if the first interface is a preset homepage of the first application, the mobile phone may execute S2504; if the first interface is not the preset homepage of the first application, the handset may perform S2505.
S2504, the mobile phone controls a first display area of the display screen to display a first interface, and controls a second display area of the display screen to display a second interface of the first application. The second interface is a related page configured in pairs with a preset homepage.
Wherein the second display area is not overlapped with the first display area. It should be noted that the related pages and the preset homepage are configured in pairs. The mobile phone may determine a related Page (related Page) of the first application through any one of the following implementations (i) -implementation (iii).
In implementation (i), the related Page of the first application is pre-configured in a configuration file of an 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 analyzed, and the relevant page of the first application is obtained and stored. For example, a related Page configured in the configuration file of the installation package of the first application may be any next-level interface of the first application's top Page.
In implementation (ii), the related Page may be configured for the first application by the handset. For example, the handset may configure any of the next-level interfaces of the first application's home Page as a related Page for the first application. I.e. the relevant page of the first application is the next level interface of the first page. For another example, the handset may set a blank Page as the related Page of the first application. For another example, the mobile phone may set a preset Page (e.g., an interface including a preset identifier) as a related Page of the first application.
In implementation (iii), the related Page of the first application may be set in the handset by the user. The mobile phone can receive the setting of the user, and set any interface of the first application as a related Page of the first application. The method for setting the related Page for the first application by receiving the user setting by the mobile phone may refer to the subsequent related description of the embodiment of the present application, which is not described herein.
It should be noted that, in the embodiment of the present application, the priority of the related pages in the above-described implementation (i) -implementation (iii) is different. Specifically, the priority of the related Page in implementation (ii) is higher than the priority of the related Page in implementation (i), and the priority of the related Page in implementation (i) is higher than the priority of the related Page in implementation (ii). That is, if the user has customized the related Page of the first application in the mobile phone, the mobile phone may preferentially use the related Page as the related Page of the first application.
S2505, the mobile phone controls the display screen to display a first interface of the first application in a single window.
Taking the non-folding screen mobile phone 2600 in the landscape screen state as shown in fig. 26 (a) as an example. In general, in response to a first operation by a user of icon 2602 of a first application shown in fig. 26 (a), handset 2600 may display a first interface 2603 shown in fig. 26 (b). 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; instead, S2503 is executed to determine whether the first interface 2603 is a main Page of the first application.
If the first interface 2603 is a main Page (e.g., home Page) of the first application, the cell phone 2600 can execute S2504. For example, as shown in fig. 26 (c), the mobile phone 2600 may display a main Page (i.e., a first interface) 2604 of a first application in a first display area a of the display screen, and display a related Page (i.e., a second interface) 2605 configured in pairs with the main Page in a second display area b of the display screen. If the first interface 2603 is not a main Page (e.g., home Page) of the first application, handset 2600 can execute S2505. As shown in fig. 26 (b), the cell phone 2600 may display the first interface 2603 in a single window.
Taking the folding screen phone 2700 in the unfolded state as an example, as shown in fig. 27 (a). In general, in response to a first operation of the icon 2702 of the first application shown in (a) of fig. 27 by the user, the mobile phone 2700 may display a first interface 2703 shown in (b) of fig. 27. 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, S2503 is executed to determine whether first interface 2703 is a main Page of the first application.
If the first interface 2703 is a main Page (e.g., home Page) of the first application, the mobile phone 2700 can execute S2504. For example, as shown in fig. 27 (c), the mobile phone 2700 may display a main Page (i.e., a first interface) 2704 of the first application in a first display area a of the display screen, and display a related Page (i.e., a second interface) 2705 configured in pairs with the main Page in a second display area B of the display screen. If the first interface 2703 is not a main Page (e.g., home Page) of the first application, the handset 2700 can execute S2505. As shown in (b) of fig. 27, the mobile phone 2700 may display the first interface 2703 in a single window.
The embodiment of the application provides a display method of an application, when a mobile phone can display a main interface in a horizontal screen state or an unfolding state, the mobile phone can respond to a first operation of a user on an icon of a first application, and whether the first operation triggers the first interface displayed by the mobile phone to be a main Page of the first application or not can be judged. If the first interface is a main Page of the first application, the mobile phone can display the main Page of the first application and a related Page configured in pairs with the main Page in a double window. Therefore, the mobile phone in the horizontal screen state or the unfolding state can display two interfaces of the first application on the display screen at the same time, so that the display content of the display screen is richer, the utilization rate of the display screen can be improved, and the visual experience of a user is improved.
In other embodiments, the electronic device in embodiments of the present application may be a non-folding screen electronic device or a folding screen electronic device. The non-folding screen electronic device or the folding screen electronic device is exemplified by a mobile phone. The preset scene is scene 2. The mobile phone entering the scene 2 means that: the non-folding screen mobile phone is changed from a vertical screen state to a horizontal screen state. Or, entering the preset scene by the mobile phone means that: the folding screen of the mobile phone is changed from the folding state to the unfolding state. As shown in fig. 28, the method of displaying an application may include S2801-S2804.
S2801, controlling the display screen to display a first interface of a first application when the display screen of the mobile phone is in a first state.
And S2802, responding to the display screen to be changed from the first state to the second state, and judging whether the first interface is a preset homepage of the first application by the mobile phone.
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. For example, as shown in fig. 29 (a), the cell phone 2900 is a non-folding screen cell phone, and the cell phone 2900 is in a portrait screen state. As shown in fig. 29 (a), the cell phone 2900 displays a first interface 2901 for a first application (e.g., news application). As shown in fig. 29 (b) or fig. 29 (c), the cellular phone 2900 is in a landscape state.
In another case, the mobile phone is a folding screen mobile phone, i.e. the display screen is a folding screen. In this case, the display is in the first state specifically: the folding screen is in a folding state and in a vertical screen state; the display screen is in the second state specifically: the folding screen is in a folding state and in a transverse screen state. For example, the cell phone 2900 shown in (a) of fig. 29 may be a folding screen cell phone, the cell phone 2900 being in a folded state and in a portrait state. As shown in fig. 29 (a), the cell phone 2900 displays a first interface 2901 for a first application (e.g., news application). As shown in fig. 29 (b) or fig. 29 (c), the cellular phone 2900 is in a folded state and in a landscape state.
In another case, the mobile phone is a folding screen mobile phone, i.e. the display screen is a folding screen. In this case, the first state is a folded state, and the second state is an unfolded state. For example, as shown in fig. 30 (a), the mobile phone 3000 is a folding screen mobile phone, and the mobile phone 3000 is in a folded state. As shown in fig. 30 (a), the mobile phone 3000 displays a first interface 3001 of a first application (e.g., news application). As shown in fig. 30 (b) or fig. 30 (c), the mobile phone 3000 is in an expanded state.
Specifically, if the first interface is a preset homepage of the first application, the mobile phone may execute S2803; if the first interface is not the preset homepage of the first application, the handset may perform S2804.
S2803, the mobile phone controls a first display area of the display screen to display a first interface, and controls a second display area of the display screen to display a second interface of the first application. The second interface is a related page configured in pairs with a preset homepage.
Wherein the second display area is not overlapped with the first display area. It should be noted that, the preset homepage and the related page of the first application, and the method for determining whether the first interface is the preset homepage of the first application by the mobile phone may refer to the related description in the embodiment of the scenario 1, which is not described herein.
And S2804, the mobile phone controls the display screen to display a first interface of the first application in a single window.
Taking the mobile phone 2600 in the portrait state as shown in fig. 29 (a) as an example. As shown in fig. 29 (a), the cell phone 2600 in the portrait state displays a first interface 2901 of a first application (e.g., news application). In general, in response to cell phone 2600 transitioning from the portrait state shown in (a) of fig. 29 to the landscape state, cell phone 2600 may display a first interface 2902 shown in (b) of fig. 29. In the embodiment of the present application, in response to the mobile phone 2600 transitioning from the portrait state shown in (a) of fig. 29 to the landscape state, the mobile phone 2600 does not directly display the first interface 2902; instead, execution S2802 determines whether first interface 2901 is a main Page of the first application.
If first interface 2901 is a main Page (e.g., home Page) of the first application, handset 2600 can execute S2803. For example, as shown in fig. 29 (c), the mobile phone 2600 may display a main Page (i.e., a first interface) 2903 of the first application in a first display area a of the display screen, and display a related Page (i.e., a second interface) 2904 configured in pairs with the main Page in a second display area b of the display screen. If first interface 2901 is not a main Page (e.g., home Page) of the first application, handset 2600 can execute S2804. As shown in fig. 29 (b), cell phone 2600 may display first interface 2902 in a single window.
Taking the folding screen phone 2700 in the folded state as shown in fig. 30 (a) as an example. As shown in fig. 30 (a), the mobile phone 2700 in a folded state displays a first interface 3001 of a first application (e.g., news application). In general, in response to the transition of the cell phone 2700 from the folded state shown in (a) of fig. 30 to the unfolded state, the cell phone 3700 can display the first interface 3002 shown in (b) of fig. 30. In the embodiment of the present application, in response to the mobile phone 2700 being changed from the folded state shown in (a) of fig. 30 to the unfolded state, the mobile phone 2700 does not directly display the first interface 3002; instead, S2802 is executed to determine whether the first interface 3001 is a main Page of the first application.
If the first interface 3001 is a main Page (e.g., home Page) of the first application, the handset 2700 may execute S2803. For example, as shown in fig. 30 (c), the mobile phone 2700 may display a main Page (i.e., a first interface) 3003 of the first application in a first display area a of the display screen, and display a related Page (i.e., a second interface) 3004 configured in pairs with the main Page in a second display area B of the display screen. If the first interface 3001 is not a main Page (e.g., home Page) of the first application, the handset 2700 may execute S2804. As shown in (b) of fig. 30, the mobile phone 2700 may display the first interface 3002 in a single window.
The embodiment of the application provides a display method of an application, wherein a mobile phone displays a first interface of the first application in a first state, and in response to the mobile phone being converted from the first state to a second state, the mobile phone can judge whether the first interface displayed by the mobile phone triggered by the first operation is a main Page of the first application. If the first interface is a main Page of the first application, the mobile phone can display the main Page of the first application and a related Page configured in pairs with the main Page in a double window. Therefore, the mobile phone in the horizontal screen state or the unfolding state can display two interfaces of the first application on the display screen at the same time, so that the display content of the display screen is richer, the utilization rate of the display screen can be improved, and the visual experience of a user is improved.
In other embodiments, the electronic device in embodiments of the present application may be a non-folding screen electronic device or a folding screen electronic device. The non-folding screen electronic device or the folding screen electronic device is exemplified by a mobile phone. The preset scene is scene 3. The mobile phone entering the scene 3 means that: and calling the scene of the first application in the second application when the non-folding screen mobile phone is in the horizontal screen state. Or, entering the preset scene by the mobile phone means that: the folding screen of the folding screen mobile phone is in an unfolding state, and the mobile phone calls a scene of the first application in the second application. As shown in fig. 31A, the method of displaying an application may include S3101-S3105.
S3101, when the mobile phone is in the first state, the mobile phone controls the display screen to display an interface of the second application.
In one case, the mobile phone is a non-folding screen mobile phone, and the first state is a horizontal screen state.
In another case, the mobile phone is a folding screen mobile phone, i.e. the display screen is a folding screen. In this case, the display is in the first state specifically: the folding screen is in a folding state and in a transverse screen state.
In another case, the mobile phone is a folding screen mobile phone, i.e. the display screen is a folding screen. In this case, the display is in the first state specifically: the folding screen is in an unfolded state.
S3102, the mobile phone receives a first operation of a user on an interface of the second application. The first operation is used for triggering the mobile phone to call the first application to display a first interface of the first application.
Illustratively, the mobile phone is a folding screen mobile phone, and the first state is an unfolded state. As shown in (a) of fig. 31B, the mobile phone displays a top page 3101 of the news application (i.e., a first interface of the first application). At this time, the short message application (i.e., the second application) of the mobile phone receives the short message, and as shown in (a) of fig. 31B, the mobile phone may display a prompt 3102 of the short message in the notification bar. In response to the clicking operation of the prompt 3102 by the user, as shown in fig. 31B (B), the mobile phone may display an interface 3103 of a short message application (i.e., a second application) to present the short message to the user. As shown in fig. 31B (B), the mobile phone may display a prompt 3104 for returning to the interface of the news application, in addition to displaying the interface of the short message application. The first operation may be a click operation of the prompt 3104 by the user. The first operation is used for triggering the mobile phone to call the news application and displaying a top page of the news application.
S3103, responding to the first operation, the mobile phone judges whether the first interface is a preset homepage of the first application.
Specifically, if the first interface is a preset homepage of the first application, the mobile phone may execute S3104; if the first interface is not the preset homepage of the first application, the handset may execute S3105.
S3104, the mobile phone controls a first display area of the display screen to display a first interface, and controls a second display area of the display screen to display a second interface of the first application. The second interface is a related page configured in pairs with a preset homepage.
Wherein the second display area is not overlapped with the first display area. It should be noted that, the preset homepage and the related page of the first application, and the method for determining whether the first interface is the preset homepage of the first application by the mobile phone may refer to the related description in the embodiment of the scenario 1, which is not described herein.
S3105, the mobile phone controls the display screen to display a first interface of the first application in a single window.
In connection with the above example, if the first interface 3101 shown in (a) of fig. 31B is a main Page of a news application (i.e., first application), in response to the first operation of the prompt 3104 shown in (B) of fig. 31B by the user, the mobile phone may display the first interface 3003 in the first display area a and the second interface 3004 in the second display area B, as shown in (c) of fig. 30. The second interface 3004 is a related Page of the news application. If the first interface 3101 shown in fig. 31B is not a main Page of a news application (i.e., first application), the mobile phone may display the first interface 3002 in a single window as shown in fig. 30B in response to the first operation of the alert information 3104 shown in fig. 31B by the user.
The embodiment of the application provides a display method of an application, wherein a mobile phone displays an interface of a second application in a first state; responding to a first operation for triggering the mobile phone to call a first application to display a first interface, the mobile phone can judge whether the first operation triggers the first interface displayed by the mobile phone to be a main Page of the first application. If the first interface is a main Page of the first application, the mobile phone can display the main Page of the first application and a related Page configured in pairs with the main Page in a double window. Therefore, the mobile phone in the horizontal screen state or the unfolding state can display two interfaces of the first application on the display screen at the same time, so that the display content of the display screen is richer, the utilization rate of the display screen can be improved, and the visual experience of a user is improved.
In other embodiments, the electronic device in embodiments of the present application may be a non-folding screen electronic device or a folding screen electronic device. The non-folding screen electronic device or the folding screen electronic device is exemplified by a mobile phone. The above-mentioned preset scene is scene 4. The mobile phone entering the scene 4 means: and when the non-folding screen mobile phone is in a horizontal screen state, the double-window scene displaying a plurality of applications is withdrawn. Or, entering the preset scene by the mobile phone means that: the folding screen of the folding screen mobile phone is in an unfolding state, and the double window is withdrawn to display scenes of a plurality of applications. As shown in fig. 32, the method of displaying an application may include S3201-S3204.
S3201, when the mobile phone is in a first state, controlling a first display area of the display screen to display a first interface of a first application, and controlling a second display area of the display screen to display an interface of a second application.
In one case, the mobile phone is a non-folding screen mobile phone, and the first state is a horizontal screen state.
In another case, the mobile phone is a folding screen mobile phone, i.e. the display screen is a folding screen. In this case, the display is in the first state specifically: the folding screen is in a folding state and in a transverse screen state.
In another case, the mobile phone is a folding screen mobile phone, i.e. the display screen is a folding screen. In this case, the display is in the first state specifically: the folding screen is in an unfolded state.
Taking the mobile phone as a folding screen mobile phone, the first state is an unfolding state as an example. As shown in fig. 33 (a), the folding screen mobile phone 2700 is in an unfolded state, and a first display area a of the folding screen mobile phone 2700 displays a first interface 3301 of a first application (e.g., a news application) and a second display area B displays an interface 3302 of a second application (e.g., a setup application).
S3202, the mobile phone receives a first operation of a user. The first operation is used for triggering the display screen to exit from displaying the interface of the second application, and only the first interface is displayed.
For example, the first operation may be a preset gesture. The preset gesture is used for triggering the display screen of the mobile phone to exit from the interface for displaying the second application, and only the first interface is displayed. For example, the predetermined gesture may be an S-shaped gesture, an L-shaped gesture, a v-shaped gesture, or the like. Alternatively, the first operation may be a drag operation of a user on a boundary line of the first display area and the second display area (a boundary line 2101 shown in fig. 21). The dragging operation is used for triggering the display screen of the mobile phone to exit from the interface for displaying the second application, and only the first interface is displayed.
S3203, responding to the first operation, and judging whether the first interface is a preset homepage of the first application by the mobile phone.
Specifically, if the first interface is a preset homepage of the first application, the mobile phone may execute S3204; if the first interface is not the preset homepage of the first application, the handset may perform S3205.
S3204, the mobile phone controls a first display area of the display screen to display the first interface, and controls a second display area of the display screen to display a second interface of the first application. The second interface is a related page configured in pairs with a preset homepage.
Wherein the second display area is not overlapped with the first display area. It should be noted that, the preset homepage and the related page of the first application, and the method for determining whether the first interface is the preset homepage of the first application by the mobile phone may refer to the related description in the embodiment of the scenario 1, which is not described herein.
S3205, the mobile phone controls the display screen to display a first interface of the first application in a single window.
Taking the folding screen phone 2700 in the unfolded state as shown in fig. 33 (a) as an example. As shown in fig. 33 (a), a first display area a of the mobile phone 2700 in an expanded state displays a first interface 3301 of a first application (e.g., a news application), and a second display area B displays an interface 3302 of a second application (e.g., a setup application). In general, in response to the first operation described above, the handset 2700 may display the first interface in a single window, as the handset 3700 may display the first interface 3303 shown in (b) of 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; instead, S3203 is executed to determine whether the first interface 3301 is a main Page of the first application.
If the first interface 3301 is a main Page (e.g., home Page) of the first application, the mobile phone 2700 may execute S3204. For example, as shown in fig. 33 (c), the mobile phone 2700 may display a main Page (i.e., a first interface) 3304 of the first application in a first display area a of the display screen, and display a related Page (i.e., a second interface) 3305 configured in pairs with the main Page in a second display area B of the display screen. If the first interface 3301 is not a main Page (e.g., home Page) of the first application, the mobile phone 2700 may execute S3205. As shown in (b) of fig. 33, the mobile phone 2700 may display the first interface 3303 in a single window.
The embodiment of the application provides a display method of an application, wherein a mobile phone displays a first interface of a first application and an interface of a second application in a first state through double windows; and responding to a first operation for triggering the mobile phone to exit from the interface for displaying the second application and displaying only the first interface, and judging whether the first interface displayed by the mobile phone triggered by the first operation is a main Page of the first application or not by the mobile phone. If the first interface is a main Page of the first application, the mobile phone can display the main Page of the first application and a related Page configured in pairs with the main Page in a double window. Therefore, the mobile phone in the horizontal screen state or the unfolding state can display two interfaces of the first application on the display screen at the same time, so that the display content of the display screen is richer, the utilization rate of the display screen can be improved, and the visual experience of a user is improved.
Optionally, in the preset scenario (e.g., any one of scenario 1-scenario 4), before executing S2503, S2802, S3103 or S3203, the mobile phone may determine whether the first application supports dual window display. If the first application supports dual window display, S2503, S2802, S3103, or S3203 may be performed.
The principle of the method described in the above-described scenario 1-scenario 4 is described below with reference to fig. 34A. As shown in fig. 34A, after the mobile phone enters the preset scene (i.e., 3410), it may be determined whether the first application supports dual window display (i.e., executing 3420). If the first application supports dual-window display, the mobile phone may determine whether the current window (i.e., the window corresponding to the first interface) is a main Page of the first application (i.e., execute S3430). If the first interface is a main Page of the first application, the Activity location of the first interface may be set in a first display area (e.g., a left display area) (i.e., execution 3440). The handset may then invoke the start Activity () interface, automatically launching the second interface (i.e., executing 3450). Wherein the second interface is a related Page of the first application. Finally, the handset may set the Activity location of the second interface in a second display area (e.g., the display area on the right) (i.e., execution 3460).
Fig. 34B is a schematic block diagram of a method according to an embodiment of the present application, corresponding to fig. 34A. As shown in fig. 34B, 34a illustrates a preset scene entry provided in an embodiment of the present application. After the mobile phone executes 3410 shown in fig. 34A and enters the preset scenario shown in fig. 34B, the mobile phone may execute 34B to identify whether the first interface is a preset homepage (i.e., main Page) of the first application (i.e., 3430 shown in fig. 34A). Alternatively, before 34B shown in fig. 34B, the mobile phone may determine whether the first application supports dual window display. If the first application supports dual window display, 34b may be performed. 34b shows three sources of the preset homepage (i.e., main Page) of the first application, namely, three main pages shown in the above-described implementation (I) -implementation (III). If the first interface is a main Page of the first application, 34c shown in FIG. 34B may be executed, and the relevant Page (i.e., the related Page) of the first application is launched, 3450 shown in FIG. 34A. Three sources of related pages (related pages) of the first application are shown in 34c, namely the three related pages shown in the above-described implementation (i) -implementation (iii). Finally, the handset may execute 34d shown in fig. 34B, display a preset homepage in a first display area (e.g., left display area), and display related pages in a second display area (e.g., right display area), that is, 3440 and 3460 shown in fig. 34A.
In any one of the above scenes 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 click operation of a Back key in a navigation bar of the mobile phone by the user. The focus interfaces of the mobile phones are different, and the mobile phones can execute different operations in response to clicking operations of the Back keys by users.
In some embodiments, after S2504, S2803, S3104, or S3204 described above, the method of embodiments of the present application may further include S1 and S2. S1: and responding to the second operation of the user on the first interface, and controlling the display screen to display the main interface of the mobile phone by the mobile phone. Wherein, in response to the second operation on the first interface, the mobile phone does not run the first application in the background. S2: and responding to the second operation of the user on the second interface, and controlling the display screen to display the main interface of the mobile phone by the mobile phone. And responding to the second operation of the second interface, and running the first application in the background by the mobile phone.
The second operation comprises clicking operation of the Back key in the navigation bar of the mobile phone. The Navigation Bar in the application is a shortcut button Bar at the bottom of the mobile phone screen, and generally appears at the bottommost end of the mobile phone screen in the form of virtual keys, and the Navigation Bar defaults to include three buttons of Back key, home key and Recent (license) key. The Back key is used for returning to the previous interface, the Home key is used for returning to the desktop, and the count key is used for displaying the application program which is used recently. As shown in fig. 35 (a), the navigation bar 3500 includes a Back key 3501, a Home key 3502, and a return key 3503. As shown in fig. 35 (a), the first display area a of the mobile phone displays a first interface 3504 of a first application, and the second display area B displays a second interface 3505 of the first application.
In this embodiment of the present application, the second operation of the user on the first interface may be a click operation (such as a clicking operation) of the Back key by the user when the first interface is a focus interface (such as an interface currently operated by the user or a selected interface). The second operation of the second interface by the user may be a click operation (such as a clicking operation) of the Back key by the user when the second interface is a focus interface.
The mobile phone responds to the second operation on the first interface or the second interface and can return to the main interface. However, the difference is that: since the first interface is a main Page of the first application; therefore, in response to the second operation of the user on the first interface, the mobile phone does not run the first application in the background after displaying the main interface.
Specifically, in response to the second operation of the first interface by the user, the handset may execute the Activity finish flow for main Page Activity and related Page Activity to delete main Page Activity and related Page Activity. And responding to the second operation of the user on the second interface, the mobile phone can intercept the Activity finish flow, call a moveToBack function, and reserve a main Page Activity window and a related Page Activity window in the background, namely, the mobile phone can operate the first application in the background.
For example, please refer to table 1, which illustrates a control principle of the mobile phone in response to the second operation in the embodiment of the present application.
TABLE 1
Figure SMS_2
For example, as shown in (a) of fig. 35, the first interface 3504 displayed in the first display region a is a focus interface, that is, the interface in the black wire frame is a focus interface. The mobile phone executes S1: in response to a click operation of the Back key 3501 shown in fig. 35 (a) (i.e., a second operation of the first interface 3504) by the user, a main interface 3701 shown in fig. 27 (a) can be displayed.
As another example, as shown in (B) of fig. 35, the second interface 3505 displayed in the second display region B is a focus interface, that is, the interface in the black line frame is a focus interface. And S2, the mobile phone executes: in response to a click operation of the Back key 3501 shown in (b) of fig. 35 by the user (i.e., a second operation of the second interface 3505), the main interface 3701 shown in (a) of fig. 27 can be displayed.
However, the difference is that: in response to a click operation of the Back key 3501 shown in fig. 35 (a), the mobile phone does not run the first application in the background; and in response to the user's click on the Back key 3501 shown in fig. 35 (b), the handset can continue to run the first application in the background.
It should be noted that, the mobile phone may display a task window of an application that has been recently run and not closed by the mobile phone in response to a preset operation (such as a double click operation on the Home key 3502 or a single click operation on the license key) of the mobile phone by a user, so as to determine whether the mobile phone is still running the first application in response to the second operation. The specific method for displaying the task window of the application that has been recently run and not closed by the mobile phone in response to the preset operation may refer to the description of fig. 14 related to the above embodiment, which is not repeated herein.
In other embodiments, after S2504, S2803, S3104, or S3204 described above, the method of embodiments of the present application may further include Sa and Sb. Sa: and responding to the second operation of the user on the first interface, and controlling the display screen to display the main interface by the mobile phone. The second operation includes a click operation on the Back key in the navigation bar of the handset. And responding to the second operation of the second interface, and running the first application in the background by the mobile phone. Sb: and responding to the second operation of the user on the second interface, and controlling the display screen to display the first interface in the first display area and display the second interface in the second display area without any operation by the mobile phone.
Specifically, in response to the second operation of the user on the first interface, the mobile phone may call a moveToBack function, and a main Page Activity window and a related Page Activity window are reserved in the background, that is, the mobile phone may run the first application in the background. And responding to the second operation of the user on the second interface, and running the first application in the background by the mobile phone.
For example, please refer to table 2, which illustrates a control principle of the mobile phone in response to the second operation in the embodiment of the present application.
TABLE 2
Figure SMS_3
For example, as shown in (a) of fig. 35, the first interface 3504 displayed in the first display region a is a focus interface, that is, the interface in the black wire frame is a focus interface. The mobile phone executes Sa: in response to a click operation of the Back key 3501 shown in fig. 35 (a) (i.e., a second operation of the first interface 3504) by the user, a main interface 3701 shown in fig. 27 (a) can be displayed.
As another example, as shown in (B) of fig. 35, the second interface 3505 displayed in the second display region B is a focus interface, that is, the interface in the black line frame is a focus interface. The mobile phone executes Sb: in response to a click operation of the Back key 3501 shown in (b) of fig. 35 by the user (i.e., a second operation of the second interface 3505), the main interface 3701 shown in (a) of fig. 27 can be displayed. Alternatively, the handset performs Sb: in response to the user's click operation of the Back key 3501 shown in fig. 35 (i.e., the second operation of the second interface 3505), the interface shown in fig. 35 (B), i.e., the first interface 3504 is displayed in the first display region a and the second interface 3505 is displayed in the second display region B, may be continued.
Note that, unlike S1 described above, it is: the mobile phone executes Sa: in response to the user's click operation of the Back key 3501 shown in fig. 35 (a), the mobile phone can continue to run the first application in the background.
The embodiment of the present application describes a method for customizing a related Page (i.e., a related Page) of a first application in any one of the above scenes 1 to 4. In an exemplary embodiment, the mobile phone is in the first state or the second state, and may display a third interface of the first application. The mobile phone can receive a preset gesture input by a user on the third interface, wherein the preset gesture is used for configuring a relevant page of the first application. In response to the preset gesture, the mobile phone may configure the third interface as a related Page (i.e., a related Page) of the first application.
For example, the preset gesture may be a gesture of pinching three fingers, a gesture of sliding up two fingers, a gesture of sliding down three fingers, etc. In the following embodiments, a gesture in which the preset gesture is a pinch gesture is taken as an example.
The first state may be a horizontal screen state, and the second state may be a vertical screen state; alternatively, the first state is an expanded state and the second state is a collapsed state.
It should be noted that, when the mobile phone is in the vertical screen state or the folded state, the third interface may be displayed in a single window. For example, as shown in fig. 36 (a), the mobile phone is in a portrait state, and the mobile phone displays a third interface 3601. In response to a preset gesture input by the user at the third interface 3601 shown in fig. 36 (a), the mobile phone may set the third interface 3601 as a related Page of the first application. Optionally, in response to a preset gesture input by the user on the third interface 3601 shown in (a) in fig. 36, the mobile phone may display the prompt information 3602 shown in (b) in fig. 36, and in response to a selection operation of the yes option in the prompt information 3602 by the user, the mobile phone may set the third interface 3601 as a related Page of the first application.
The mobile phone is in a horizontal screen state or an unfolding state, and the third interface can be displayed in a single window or a double window. The mobile phone displays a third interface through double windows, specifically: the mobile phone displays two interfaces in a double window, and the third interface is one of the two interfaces.
For example, as shown in fig. 37 (a), the mobile phone is in an expanded state, and the third interface 3701 is displayed in a single window. In response to a preset gesture input by the user at the third interface 3701 shown in fig. 37 (a), the mobile phone may display the prompt message 3702 shown in fig. 37 (b), and in response to a selection operation of the yes option in the prompt message 3702 by the user, the mobile phone may set the third interface 3701 as a related Page of the first application.
As another example, as shown in fig. 38 (a), the mobile phone is in an expanded state, and the third interface 3505 and the other interface 3504 are displayed in double windows. In response to a preset gesture input by the user on the third interface 3505 shown in fig. 38 (a), the mobile phone may display the prompt 3801 shown in fig. 38 (b), and in response to a selection operation of the yes option in the prompt 3801 by the user, the mobile phone may set the third interface 3505 as a related Page of the first application.
The mobile phone can store a related Page set (i.e., customized) for the first application by the user. For example, as shown in fig. 23A, the handset may save a user-defined related Page in the configuration module.
Still further embodiments of the present application provide an electronic device, which may include: the folding screen, a memory and one or more processors. The folding screen, memory, and processor are coupled. The memory is for storing computer program code, the computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device may perform the functions or steps performed by the mobile phone in the above-described method embodiments. The structure of the electronic device may refer to the structure of the electronic device 100 shown in fig. 4.
Still further embodiments of the present application provide an apparatus for displaying applications, which is characterized in that the apparatus may be applied to an electronic device including the above-mentioned folding screen. The device is used for executing each function or step executed by the mobile phone in the method embodiment.
Embodiments of the present application also provide a chip system, as shown in fig. 39, that includes at least one processor 3901 and at least one interface circuit 3902. The processor 3901 and the interface circuit 3902 may be interconnected by wires. For example, interface circuit 3902 may be used to receive signals from other devices (e.g., a memory of an electronic apparatus). For another example, interface circuit 3902 may be used to send signals to other devices (e.g., processor 3901). The interface circuit 3902 may, for example, read instructions stored in a memory and send the instructions to the processor 3901. The instructions, when executed by the processor 3901, may cause the electronic device to perform the various steps of the embodiments described above. Of course, the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
The embodiment of the application also provides a computer storage medium, which comprises computer instructions, when the computer instructions run on the electronic device, the electronic device is caused to execute the functions or steps executed by the mobile phone in the embodiment of the method.
The present application also provides a computer program product, which when run on a computer, causes the computer to perform the functions or steps performed by the mobile phone in the above-mentioned method embodiments.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (30)

1. A method of displaying an application, for application to an electronic device comprising a folded screen, the folded screen being foldable to form at least two screens, the at least two screens comprising a first screen and a second screen, the folded screen in a folded state, the first screen and the second screen facing away from each other, the method comprising:
the folding screen is in the folding state, and the first screen is controlled to display a first interface;
in response to the folding screen being converted from a folding state to an unfolding state, controlling a first display area of the folding screen to display the first interface and controlling a second display area of the folding screen to display a second interface; wherein the second display area is not overlapped with the first display area; the second interface is different from the first interface;
the folding state is a state that the included angle between the first screen and the second screen is smaller than a preset angle threshold value, and the unfolding state is a state that the included angle between the first screen and the second screen is larger than or equal to the preset angle threshold value; or the folding state is a state that the included angle between the first screen and the second screen is smaller than or equal to a preset angle threshold value, and the unfolding state is a state that the included angle between the first screen and the second screen is larger than the preset angle threshold value.
2. The method according to claim 1, wherein the method further comprises:
and controlling the first screen to display the first interface or the second interface in response to the folding screen being converted from the unfolding state to the folding state.
3. The method of claim 1 or 2, wherein the first display area is a display area corresponding to the first screen and the second display area is a display area corresponding to the second screen; or alternatively, the process may be performed,
the first display area and the second display area are preconfigured in the electronic equipment; or alternatively, the process may be performed,
the first display area and the second display area are set by a user in the electronic device.
4. A method according to any one of claims 1-3, wherein the first interface and the second interface are both interfaces of a first application;
the second interface is a home page of the first application; or alternatively, the process may be performed,
the second interface is the interface of the upper layer of the first interface; or alternatively, the process may be performed,
the second interface is the interface of the next level of the first interface.
5. A method according to any of claims 1-3, wherein the first interface is an interface of a first application and the second interface is an interface of a second application, the second application being different from the first application;
The second application is any one of one or more applications that the electronic device has recently run and has not been closed, in addition to the first application.
6. The method according to any one of claims 1-5, further comprising:
the folding screen receives a first operation of a user on the first interface displayed in the first display area in the unfolded state, wherein the first operation is used for triggering the first display area to display a third interface;
and responding to the first operation, controlling the first display area of the folding screen to display the third interface, and controlling the second display area to display the second interface.
7. The method of claim 6, wherein the method further comprises:
receiving a second operation of the second interface displayed by the second display area by the user in the unfolded state of the folding screen, wherein the second operation is used for triggering the second display area to display a fourth interface;
and responding to the second operation, controlling the second display area of the folding screen to display the fourth interface, and controlling the first display area to display the third interface.
8. A method of displaying an application, for application to an electronic device comprising a folded screen, the folded screen being foldable to form at least two screens, the at least two screens comprising a first screen and a second screen, the folded screen in a folded state, the first screen and the second screen facing away from each other, the method comprising:
the folding screen is in the folding state, and the first screen is controlled to display a first interface;
responsive to the folding screen transitioning from the folded state to an unfolded state, controlling a first display area and a second display area of the folding screen as a whole to centrally display the first interface; wherein the second display area is not overlapped with the first display area;
the folding screen receives a first operation of a user on the first interface, wherein the first operation is used for triggering the folding screen to display a second interface;
responding to the first operation, controlling the first display area of the folding screen to display the first interface, and controlling the second display area to display the second interface;
the folding state is a state that the included angle between the first screen and the second screen is smaller than a preset angle threshold value, and the unfolding state is a state that the included angle between the first screen and the second screen is larger than or equal to the preset angle threshold value; or the folding state is a state that the included angle between the first screen and the second screen is smaller than or equal to a preset angle threshold value, and the unfolding state is a state that the included angle between the first screen and the second screen is larger than the preset angle threshold value.
9. The method of claim 8, wherein the method further comprises:
and controlling the first screen to display the first interface or the second interface in response to the folding screen being converted from the unfolding state to the folding state.
10. The method of claim 8 or 9, wherein the first display area is a display area corresponding to the first screen and the second display area is a display area corresponding to the second screen; or alternatively, the process may be performed,
the first display area and the second display area are preconfigured in the electronic equipment; or alternatively, the process may be performed,
the first display area and the second display area are set by a user in the electronic device.
11. The method according to any one of claims 8-10, further comprising:
receiving a second operation of the first interface displayed by the first display area by a user in the unfolded state of the folding screen, wherein the second operation is used for triggering the first display area to display a third interface;
and responding to the first operation, controlling the first display area of the folding screen to display the third interface, and controlling the second display area to display the second interface.
12. The method of claim 11, wherein the method further comprises:
receiving a third operation of the second interface displayed by the second display area by a user in the unfolded state of the folding screen, wherein the second operation is used for triggering the second display area to display a fourth interface;
and responding to the third operation, controlling the second display area of the folding screen to display the fourth interface, and controlling the first display area to display the third interface.
13. A method of displaying an application, characterized in that it is applied to an electronic device comprising a folding screen, said folding screen being foldable to form at least two screens, said at least two screens comprising a first screen and a second screen, said folding screen being in a folded state, said first screen being opposite said second screen, a third screen being provided on a back side of said first screen, said method comprising:
the folding screen controls the third screen to display a first interface in the folding state;
in response to the folding screen being converted from the folding state to the unfolding state, controlling a first display area of the folding screen to display the first interface, and controlling a second display area of the folding screen to display a second interface; wherein the second display area is not overlapped with the first display area; the second interface is different from the first interface;
The folding state is a state that the included angle between the first screen and the second screen is smaller than a preset angle threshold value, and the unfolding state is a state that the included angle between the first screen and the second screen is larger than or equal to the preset angle threshold value; or the folding state is a state that the included angle between the first screen and the second screen is smaller than or equal to a preset angle threshold value, and the unfolding state is a state that the included angle between the first screen and the second screen is larger than the preset angle threshold value.
14. The method of claim 13, wherein the method further comprises:
and in response to the folding screen being converted from the unfolding state to the folding state, controlling the third screen to display the first interface or the second interface.
15. The method of claim 13 or 14, wherein the first display area is a display area corresponding to the first screen and the second display area is a display area corresponding to the second screen; or alternatively, the process may be performed,
the first display area and the second display area are preconfigured in the electronic equipment; or alternatively, the process may be performed,
the first display area and the second display area are set by a user in the electronic device.
16. The method of any one of claims 13-15, wherein the first interface and the second interface are both interfaces of a first application;
the second interface is a home page of the first application; or alternatively, the process may be performed,
the second interface is the interface of the upper layer of the first interface; or alternatively, the process may be performed,
the second interface is the interface of the next level of the first interface.
17. The method of any of claims 13-15, wherein the first interface is an interface of a first application and the second interface is an interface of a second application, the second application being different from the first application;
the second application is any one of one or more applications that the electronic device has recently run and has not been closed, in addition to the first application.
18. The method according to any one of claims 13-17, further comprising:
the folding screen receives a first operation of a user on the first interface displayed in the first display area in the unfolded state, wherein the first operation is used for triggering the first display area to display a third interface;
and responding to the first operation, controlling the first display area of the folding screen to display the third interface, and controlling the second display area to display the second interface.
19. The method of claim 18, wherein the method further comprises:
receiving a second operation of the second interface displayed by the second display area by the user in the unfolded state of the folding screen, wherein the second operation is used for triggering the second display area to display a fourth interface;
and responding to the second operation, controlling the second display area of the folding screen to display the fourth interface, and controlling the first display area to display the third interface.
20. The method of any of claims 13-19, wherein after the 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 method further comprises:
responding to a third operation of the first interface by a user, wherein the third operation comprises clicking operation of a Back key in a navigation bar of the electronic equipment, and the first display area and the second display area are controlled to display a 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;
controlling the first display area and the second display area to display the main interface in response to the third operation of the second interface by the user; wherein, in response to the third operation on the second interface, the electronic device runs the first application in the background.
21. The method of any of claims 13-19, wherein after the 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 method further comprises:
responding to a third operation of the first interface or the second interface by a user, wherein the third operation comprises a click operation of a Back key in a navigation bar of the electronic equipment, and the first display area and the second display area are controlled to display a main interface; wherein, in response to the third operation, the electronic device runs the first application in the background.
22. A method of displaying an application, for application to an electronic device, the method comprising:
controlling a display screen of the electronic equipment to display a main interface of the electronic equipment in a first state, wherein the main interface comprises an icon of a first application; wherein the first state is a landscape state; alternatively, the display screen is a folding screen, and the first state is an unfolding state;
receiving a first operation of a user on an icon of the first application, wherein the first operation is used for triggering the display screen to display a first interface of the first application;
Responding to the first operation, and controlling the display screen to display the first interface;
receiving a second operation of the user on the first interface, wherein the second operation is used for triggering the display screen to display a second interface;
and responding to the second operation, controlling a first display area of the display screen to display the first interface, and controlling a second display area to display the second interface.
23. A method of displaying an application, for application to an electronic device, the method comprising:
controlling a display screen of the electronic equipment to display a main interface of the electronic equipment in a first state, wherein the main interface comprises an icon of a first application; wherein the first state is a landscape state; alternatively, the display screen is a folding screen, and the first state is an unfolding state;
receiving a first operation of a user on an icon of the first application, wherein the first operation is used for triggering the display screen to display a first interface of the first application;
responding to the first operation, and if the first interface is a preset homepage of the first application, controlling a first display area of the display screen to display the first interface, and controlling a second display area of the display screen to display a second interface of the first application; the second interface is a related page configured in pairs with the preset homepage; the second display area is not overlapped with the first display area;
The unfolding state is a state that the included angle between the first screen and the second screen of the folding screen is larger than or equal to a preset angle threshold value; the horizontal screen state is a state that the included angle between the long side of the display screen and the horizontal plane is smaller than a preset value.
24. A method of displaying an application, for application to an electronic device, the method comprising:
controlling a display screen of the electronic equipment to display a first interface of a first application under a first state;
responding to the display screen to be converted from the first state to the second state, and if the first interface is a preset homepage of the first application, controlling a first display area of the display screen to display the first interface and controlling a second display area of the display screen to display a second interface of the first application; the second interface is a related page configured in pairs with the preset homepage; the second display area is not overlapped with the first display area;
wherein the first state is a vertical screen state and the second state is a horizontal screen state; the horizontal screen state is a state that the included angle between the long side of the display screen and the horizontal plane is smaller than a preset value, and the vertical screen state is a state that the included angle between the long side of the display screen and the horizontal plane is larger than or equal to the preset value;
Or the display screen is a folding screen, the first state is a folding state, and the second state is an unfolding state; the unfolding state is a state that the included angle between the first screen and the second screen of the folding screen is larger than or equal to a preset angle threshold value, and the folding state is a state that the included angle between the first screen and the second screen is smaller than the preset angle threshold value.
25. The method for displaying the application is characterized by being applied to electronic equipment, wherein a display screen of the electronic equipment is in a horizontal screen state, and the horizontal screen state is a state that the included angle between the long side of the display screen and the horizontal plane is smaller than a preset value; or the display screen of the electronic equipment is a folding screen, and is in an unfolding state, wherein the unfolding state is a state that the included angle between a first screen and a second screen of the folding screen is larger than or equal to a preset angle threshold value; the method comprises the following steps:
controlling the display screen to display an interface of a second application;
receiving a first operation of a user on an interface of the second application, wherein the first operation is used for triggering the display screen to display a first interface of the first application;
responding to the first operation, and if the first interface is a preset homepage of the first application, controlling a first display area of the display screen to display the first interface, and controlling a second display area of the display screen to display a second interface of the first application; the second interface is a related page configured in pairs with the preset homepage; the second display area is not overlapped with the first display area.
26. The method for displaying the application is characterized by being applied to electronic equipment, wherein a display screen of the electronic equipment is in a horizontal screen state, and the horizontal screen state is a state that the included angle between the long side of the display screen and the horizontal plane is smaller than a preset value; or the display screen of the electronic equipment is a folding screen, and is in an unfolding state, wherein the unfolding state is a state that the included angle between a first screen and a second screen of the folding screen is larger than or equal to a preset angle threshold value; the method comprises the following steps:
controlling a first display area of the display screen to display a first interface of a first application, and controlling a second display area of the display screen to display an interface of a second application;
receiving a first operation of a user, wherein the first operation is used for triggering the display screen to exit from displaying the interface of the second application, and only displaying the first interface;
responding to the first operation, and if the first interface is a preset homepage of the first application, controlling a first display area of the display screen to display the first interface, and controlling a second display area of the display screen to display a second interface of the first application; the second interface is a related page configured in pairs with the preset homepage; the second display area is not overlapped with the first display area.
27. An electronic device comprising a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; the memory is for storing computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of any of claims 1-26.
28. A chip system, wherein the chip system is applied to an electronic device comprising a display screen; the system-on-chip includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a circuit; the interface circuit is configured to receive a signal from a memory of the electronic device and to send the signal to the processor, the signal including computer instructions stored in the memory; the electronic device, when executing the computer instructions, performs the method of any of claims 1-26.
29. A computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of claims 1-26.
30. A computer program product, characterized in that the computer program product, when run on a computer, causes the computer to perform the method according to any of claims 1-26.
CN202310311624.4A 2019-05-14 2019-10-18 Application display method and electronic equipment Pending CN116414506A (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201910398758.8A CN110286972A (en) 2019-05-14 2019-05-14 A kind of method and electronic equipment of Folding screen display application
CN2019103987588 2019-05-14
CN201910996394.3A CN111949345B (en) 2019-05-14 2019-10-18 Application display method and electronic equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201910996394.3A Division CN111949345B (en) 2019-05-14 2019-10-18 Application display method and electronic equipment

Publications (1)

Publication Number Publication Date
CN116414506A true CN116414506A (en) 2023-07-11

Family

ID=73289340

Family Applications (6)

Application Number Title Priority Date Filing Date
CN202310300201.2A Pending CN116414505A (en) 2019-05-14 2019-10-18 Application display method and electronic equipment
CN202310311624.4A Pending CN116414506A (en) 2019-05-14 2019-10-18 Application display method and electronic equipment
CN202310300314.2A Pending CN116795465A (en) 2019-05-14 2019-10-18 Application display method and electronic equipment
CN202310278189.XA Pending CN116382530A (en) 2019-05-14 2019-10-18 Application display method and electronic equipment
CN202310305080.0A Pending CN116521290A (en) 2019-05-14 2019-10-18 Application display method and electronic equipment
CN202310298619.4A Pending CN116400991A (en) 2019-05-14 2019-10-18 Application display method and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202310300201.2A Pending CN116414505A (en) 2019-05-14 2019-10-18 Application display method and electronic equipment

Family Applications After (4)

Application Number Title Priority Date Filing Date
CN202310300314.2A Pending CN116795465A (en) 2019-05-14 2019-10-18 Application display method and electronic equipment
CN202310278189.XA Pending CN116382530A (en) 2019-05-14 2019-10-18 Application display method and electronic equipment
CN202310305080.0A Pending CN116521290A (en) 2019-05-14 2019-10-18 Application display method and electronic equipment
CN202310298619.4A Pending CN116400991A (en) 2019-05-14 2019-10-18 Application display method and electronic equipment

Country Status (2)

Country Link
CN (6) CN116414505A (en)
WO (1) WO2020228735A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117176856A (en) * 2021-04-30 2023-12-05 荣耀终端有限公司 Terminal equipment and method for multi-window display

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102370169B1 (en) * 2015-10-13 2022-03-04 엘지전자 주식회사 Flexible display device and operating method thereof
CN107728901B (en) * 2017-10-24 2020-07-24 Oppo广东移动通信有限公司 Interface display method and device and terminal
CN109582266A (en) * 2018-11-30 2019-04-05 维沃移动通信有限公司 A kind of display screen operating method and terminal device
CN109348020B (en) * 2018-11-30 2021-01-26 维沃移动通信(杭州)有限公司 Photographing method and mobile terminal
CN110286972A (en) * 2019-05-14 2019-09-27 华为技术有限公司 A kind of method and electronic equipment of Folding screen display application
CN110324464A (en) * 2019-05-17 2019-10-11 华为技术有限公司 A kind of application display method and electronic equipment

Also Published As

Publication number Publication date
CN116414505A (en) 2023-07-11
WO2020228735A1 (en) 2020-11-19
CN116521290A (en) 2023-08-01
CN116400991A (en) 2023-07-07
CN116382530A (en) 2023-07-04
CN116795465A (en) 2023-09-22

Similar Documents

Publication Publication Date Title
CN111949345B (en) Application display method and electronic equipment
US11450322B2 (en) Speech control method and electronic device
CN112217923B (en) Display method of flexible screen and terminal
CN115866121B (en) Application interface interaction method, electronic device and computer readable storage medium
CN110456951B (en) Application display method and electronic equipment
WO2020134869A1 (en) Electronic device operating method and electronic device
CN110543287B (en) Screen display method and electronic equipment
CN112714901B (en) Display control method of system navigation bar, graphical user interface and electronic equipment
CN112506386B (en) Folding screen display method and electronic equipment
CN111669459B (en) Keyboard display method, electronic device and computer readable storage medium
CN114546190A (en) Application display method and electronic equipment
CN110633043A (en) Split screen processing method and terminal equipment
US20230205417A1 (en) Display Control Method, Electronic Device, and Computer-Readable Storage Medium
CN114281439A (en) Screen splitting method and device and electronic equipment
CN113641271A (en) Application window management method, terminal device and computer readable storage medium
WO2020228735A1 (en) Method for displaying application, and electronic device
CN114173005B (en) Application layout control method and device, terminal equipment and computer readable storage medium
CN117009005A (en) Display method, automobile and electronic equipment
CN116339569A (en) Split screen display method, folding screen device and computer readable storage medium
CN116700556A (en) Card generation method and related device
CN117311580A (en) Screen splitting method and foldable electronic equipment
CN116974658A (en) Interface layout method and device
CN112230793A (en) Display method of electronic equipment with flexible screen and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination