Interface display method, electronic device, and storage medium
By adjusting the display methods of the inner and outer screens of foldable electronic devices, and adapting to changes in application type and status, the problem of insufficient flexibility in the display interface of foldable electronic devices has been solved, thus improving the user experience.
Patent Information
- Application Number
- PCT/CN2024/096512
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2025-12-04
AI Technical Summary
Currently, the display interface of inward-folding screen electronic devices lacks flexibility after changes in status, resulting in a poor user experience.
By adjusting the interface display methods of the inner and outer screens before and after the state of an inwardly folding screen electronic device changes, based on the application type and state, including displaying different interface element sizes, layouts, and lock screen interfaces, the system avoids application interfaces that are not suitable for display on the outer screen, thereby improving interface flexibility.
It improves the flexibility of the interface display of inward-folding screen electronic devices after changes in status, thus enhancing the user experience.
Smart Images

Figure CN2024096512_04122025_PF_FP_ABST
Abstract
Description
Interface display method, electronic device and storage medium TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of terminals, and in particular to an interface display method, an electronic device and a storage medium. BACKGROUND
[0002] With the development of terminal technology, users have more and more diversified needs for electronic devices, and electronic devices with folding screens, especially inner folding screen electronic devices, are widely welcomed by users.
[0003] An inner folding screen electronic device includes a first display screen and a second display screen, and the first display screen and the second display screen are two independent display screens. The first display screen includes a first display area and a second display area. In a case where an inner folding screen is in a folded state, a display direction of the first display area and a display direction of the second display area are opposite. In a case where the inner folding screen is in an unfolded state, the display direction of the first display area and the display direction of the second display area are the same.
[0004] At present, how to improve the flexibility of the interface display of the inner folding screen electronic device is a problem to be solved.
[0005] SUMMARY
[0006] Embodiments of the present application provide an interface display method, an electronic device and a storage medium. In the method, the electronic device can display different interfaces before and after the state changes. In this way, the flexibility of the interface display of the electronic device can be improved, and the user experience can be improved.
[0007] In a first aspect, an interface display method is provided. The method can be applied to an electronic device such as a mobile phone, and the electronic device includes an inner screen and an outer screen. The size of the inner screen is different from the size of the outer screen. It can be understood that the inner screen and the outer screen are two independent display screens. The above method includes: the electronic device is in an unfolded state, and the electronic device displays a first interface of a first application on the inner screen. Next, in response to an operation of setting the electronic device to a folded state, in a case where the first application is a specified application, the electronic device displays a second interface of the first application on the outer screen, and in a case where the first application is not the specified application, the electronic device displays a first lock screen interface on the outer screen. The second interface is an interface obtained by adapting the first interface to the outer screen. The second interface is an interface obtained by adapting the first interface to the outer screen. It can be understood that the size of the interface elements included in the second interface is different from the size of the interface elements included in the first interface, or the layout of the second interface is different from the layout of the first interface. The interface layout can be understood as the positional relationship and distance relationship between the interface elements included in the interface.
[0008] In the method, after the electronic device is set to the folded state, the electronic device can display different interfaces on the outer screen according to whether the first application is a specified application, so that the flexibility of the electronic device in displaying interfaces can be improved.
[0009] In a possible design of the first aspect, the specified application is specified by a user. Alternatively, the specified application is any one of a navigation application, a communication application, an audio / video playing application, and a communication application. Alternatively, the interface of the specified application includes interface elements that change with time.
[0010] In this design, the specified application is an application suitable for use on the outer screen. For example, the specified application is specified by a user; for another example, the specified application is any one of a navigation application, a communication application, an audio / video playing application, and a communication application; for yet another example, the specified application is an application whose interface includes interface elements that change with time. It can be seen that the non-specified application is an application unsuitable for use on the outer screen. If the non-specified application is used on the outer screen of the mobile phone, the user may not have a better use experience. Therefore, the electronic device displays the first lock screen interface on the outer screen in the case where the first application is not the specified application in response to the operation of setting the electronic device to the folded state, so that the interface unsuitable for the outer screen can be prevented from being displayed on the outer screen of the electronic device, that is, it can be ensured that the electronic device does not display the interface of the application unsuitable for display on the outer screen on the outer screen. In this way, the user cannot use the interface unsuitable for display on the outer screen on the outer screen, and the use experience of the user can be further improved on the basis of improving the flexibility of the electronic device in displaying interfaces.
[0011] In a possible design of the first aspect, after the electronic device displays the first lock screen interface on the outer screen, the method further includes: in response to an unlocking operation on the electronic device, the electronic device displays a desktop on the outer screen.
[0012] In this design, the electronic device displays the desktop on the outer screen in response to the unlocking operation on the electronic device. Compared with some solutions in which the electronic device displays the interface displayed before the unlocking operation on the outer screen in response to the unlocking operation on the electronic device. Through this design, the electronic device can prevent the interface unsuitable for the outer screen from being displayed on the outer screen of the electronic device, that is, it can be ensured that the electronic device does not display the interface of the application unsuitable for display on the outer screen on the outer screen. In this way, the user cannot use the interface unsuitable for display on the outer screen on the outer screen, and the use experience of the user can be further improved on the basis of improving the flexibility of the electronic device in displaying interfaces.
[0013] In an example of the first aspect, the method further includes: when the electronic device is in the unfolded state, the electronic device displays a second lock screen interface on the inner screen, the second lock screen interface including a card of a second application. In response to the operation of setting the electronic device to the folded state, the electronic device displays a third lock screen interface on the outer screen when the second application is a specified application, and displays a fourth lock screen interface on the outer screen when the second application is not the specified application. The third lock screen interface includes the card of the second application, and the fourth lock screen interface does not include the card of the second application.
[0014] The card of the second application is mainly used to display information, and is less likely to change the function of the second application. For example, in response to a triggering operation on the card of the second application, the phone displays an interface of the second application.
[0015] In this design, some applications may be displayed in the form of a card on the lock screen interface. Therefore, when the second application is not the specified application, the electronic device displays the fourth lock screen interface on the outer screen, and the fourth lock screen interface does not include the card of the second application. This can prevent the electronic device from displaying the card of the second application on the outer screen, which is not suitable for display on the outer screen. Therefore, the user experience can be further improved on the basis of improving the flexibility of the electronic device in displaying interfaces.
[0016] In another possible design of the first aspect, the method further includes: when the electronic device is in the unfolded state, the electronic device displays a fifth lock screen interface on the inner screen, the fifth lock screen interface including a touch region of a third application. In response to the operation of setting the electronic device to the folded state, the electronic device displays a sixth lock screen interface on the outer screen when the third application is a specified application, and displays a seventh lock screen interface on the outer screen when the third application is not the specified application. The sixth lock screen interface is an interface obtained by adapting the fifth lock screen interface to the outer screen, and the seventh lock screen interface does not include the touch region of the third application.
[0017] The touch region can be understood as a region in which the function of the third application can be changed. For example, in response to a triggering operation on the touch region of the third application, the phone changes an interface element displayed in the fifth lock screen interface.
[0018] In this design, some applications may display a lock screen interface. For example, the fifth lock screen interface corresponds to the third application, and the fifth interface includes the touch region of the third application. Therefore, when the third application is not the specified application, the electronic device displays the seventh lock screen interface on the outer screen, and the seventh lock screen interface does not include the touch region of the third application. This can prevent the electronic device from displaying the touch region of the third application on the outer screen, which is not suitable for display on the outer screen. Therefore, the user experience can be further improved on the basis of improving the flexibility of the electronic device in displaying interfaces.
[0019] In an example of the first aspect, the first interface includes a first interface element, and the second interface includes a second interface element corresponding to the first interface element; and the second interface element is different from the first interface element in size, or the second interface element is different from the first interface element in layout in the second interface.
[0020] In an example of the first aspect, after the electronic device displays the first lock screen interface on the outer screen, the method further includes: in response to an operation of setting the electronic device to the unfolded state, the electronic device displays the first interface of the first application on the inner screen.
[0021] In this design, after the outer screen displays the first lock screen interface, in response to an operation of setting the electronic device to the unfolded state, the electronic device displays the first interface of the first application on the inner screen. This can enable the user to conveniently manipulate the electronic device to display the first interface of the first application on the inner screen by setting the electronic device to the unfolded state. This can further improve the user experience on the basis of improving the flexibility of the electronic device in displaying interfaces.
[0022] In another example of the first aspect, the state of the application includes an in-process state or a non-in-process state; and in response to an operation of setting the electronic device to the folded state, in the case where the first application is a specified application, the electronic device displays the second interface of the first application on the outer screen includes: in response to an operation of setting the electronic device to the folded state, in the case where the first application is an in-process specified application, the electronic device displays the second interface of the first application on the outer screen. The method further includes: in response to an operation of setting the electronic device to the folded state, in the case where the first application is a non-in-process specified application, the electronic device displays the first lock screen interface on the outer screen.
[0023] In this design, the electronic device can distinguish the state of the application and display different interfaces on the outer screen of the electronic device based on the state of the application, thereby further improving the flexibility of the electronic device in displaying interfaces.
[0024] In a possible design of the first aspect, the first application is a focus application. In response to the operation of setting the electronic device to the folded state, the electronic device displays the second interface of the first application on the outer screen in a case where the first application is the specified application, and displays the first lock screen interface on the outer screen in a case where the first application is not the specified application, including: in response to the operation of setting the electronic device to the folded state, the electronic device obtains a focus application, which is an application corresponding to a top activity. In a case where the focus application is the specified application in the in-process state, the electronic device sends information for drawing a user graphical interface to the focus application. In a case where the focus application is not the specified application in the in-process state, the electronic device sends information for drawing a user graphical interface to a lock screen application. The focus application can be an application corresponding to an activity with the highest priority.
[0025] In a possible design of the first aspect, the display state of the electronic device includes a split-screen display state or a non-split-screen display state. In a case where the focus application is the specified application in the in-process state, the electronic device sends information for drawing a user graphical interface to the focus application, including: in a case where the focus application is the specified application in the in-process state and the electronic device is not in the split-screen display state, the electronic device sends information for drawing a user graphical interface to the focus application. The method further includes: in a case where the focus application is the specified application in the in-process state and the electronic device is in the split-screen display state, the electronic device sets the display state to the non-split-screen display state, and sends information for drawing a user graphical interface to the focus application.
[0026] In a possible design of the first aspect, the electronic device sets the display state of the phone to the non-split-screen display state, including: the electronic device sets an activity of the focus application to the top and sets an activity of a split-screen application to the bottom, the split-screen application having a corresponding relationship with the focus application. The corresponding relationship between the split-screen application and the focus application can be understood as that the split-screen application is an application in which an activity and an activity of the focus application are mounted in the same split-screen node.
[0027] In a possible design of the first aspect, after sending the information for drawing a user graphical interface to the lock screen application, the method further includes: the electronic device shortens the screen-off time of the electronic device. In this design, considering that after displaying the lock screen interface by folding, the user will not continue to use the electronic device, thereby preventing the electronic device from being mistakenly touched by shortening the screen-off time of the electronic device.
[0028] In a possible design of the first aspect, the method further includes: in a case where the focus application is a lock screen application, the electronic device obtains a state of the lock screen application; the state of the lock screen application includes a lock screen covering state or a non-lock screen covering state. Next, in a case where the lock screen application is in the lock screen covering state, the electronic device obtains a target application, which is an application having an association relationship with the lock screen application. Then, in a case where the target application is a specified application, the electronic device sends information about drawing the user interface to the target application; and in a case where the target application is not the specified application, the electronic device sets the state of the lock screen application to the non-lock screen covering state, and sends the information about drawing the user interface to the lock screen application.
[0029] In a possible design of the first aspect, after the electronic device displays the first lock screen interface on the outer screen, the method further includes: the electronic device sets the priority of the activity of the desktop application to the second highest. In this design, the electronic device can display the desktop on the outer screen after receiving a return operation subsequently, by setting the priority of the activity of the desktop application to the second highest, thereby further improving the user experience on the basis of improving the flexibility of the interface display of the electronic device.
[0030] In a possible design of the first aspect, after the electronic device displays the first lock screen interface on the outer screen, the method further includes: the electronic device sets the priority of the activity of the desktop application to the second highest. In this design, the electronic device can display the desktop on the outer screen after receiving a return operation subsequently, by setting the priority of the activity of the desktop application to the second highest, thereby further improving the user experience on the basis of improving the flexibility of the interface display of the electronic device.
[0031] In this method, because the size of the outer screen is different from the size of the inner screen, the outer screen can not be suitable for displaying the interface of the application in split screen mode. Therefore, after the electronic device is set to the unfolded state, the electronic device can not display the interface of the application in split screen mode on the outer screen. In this way, the user experience of the electronic device can be further improved on the basis of improving the flexibility of the interface display of the electronic device.
[0032] In a possible design of the second aspect, the fourth application is a focus application.
[0033] In a possible design of the second aspect, the specified application is specified by a user. Alternatively, the specified application is any one of a navigation application, a communication application, an audio / video playing application, and a communication application. Alternatively, the interface of the specified application includes an interface element that changes with time.
[0034] In another design of the second aspect, the aforementioned fifth interface includes a third interface element, the third interface includes a fourth interface element, and the third interface element corresponds to the fourth interface element. The second interface element has a different size than the first interface element; or, the layout of the second interface element in the second interface differs from the layout of the first interface element in the first interface.
[0035] Thirdly, another interface display method is provided, applicable to electronic devices such as mobile phones. The electronic device includes an inner screen and an outer screen, with the inner screen and outer screen having different sizes. The method includes: When the electronic device is in an unfolded state, the electronic device displays the sixth interface of the sixth application on the inner screen. Next, in response to an operation to set the electronic device to a folded state, the electronic device displays the seventh interface of the sixth application on the outer screen, where the seventh interface is the adapted interface of the sixth interface on the outer screen. Then, when the electronic device is in an unfolded state, the electronic device displays the third interface of the seventh application on the inner screen. Next, in response to an operation to set the electronic device to a folded state, the electronic device displays a lock screen interface on the outer screen. Here, the sixth application and the seventh application are different.
[0036] In this method, after the electronic device is set to a folded state, it can display different interfaces on the outer screen depending on the application displayed on the inner screen. This improves the flexibility of the electronic device's display interface and enhances the user experience.
[0037] In another design within the third aspect, the sixth application mentioned above is a designated application, while the seventh application is not. The designated application can be user-specified. Alternatively, the designated application can be any of the following: a navigation application, a communication application, an audio / video playback application, and a communication application. Alternatively, the interface of the designated application may include interface elements that change over time.
[0038] In this design, non-designated applications are those unsuitable for use on the phone's external screen. This prevents users from using interfaces unsuitable for external screen display; it enhances the user experience while increasing the flexibility of the electronic device's display interface.
[0039] In a fourth aspect, another interface display method is provided, which can be applied to an electronic device such as a mobile phone. The electronic device includes an inner screen and an outer screen, and the size of the inner screen is different from the size of the outer screen. The method includes: when the electronic device is in an unfolded state, the electronic device displays an eighth lock screen interface on the inner screen, and the eighth lock screen interface includes a card of an eighth application. Next, in response to an operation of setting the electronic device to the unfolded state, the electronic device displays a ninth lock screen interface on the outer screen. Then, when the electronic device is in the unfolded state, the electronic device displays a tenth lock screen interface on the inner screen, and the tenth lock screen interface includes a card of a ninth application. Next, in response to an operation of setting the electronic device to the unfolded state, the electronic device displays an eleventh lock screen interface on the outer screen. The eighth application is different from the ninth application, the ninth lock screen interface includes the card of the eighth application, and the eleventh lock screen interface does not include the card of the ninth application. In this method, after the electronic device is set to the folded state, the electronic device can display different interfaces on the outer screen according to the different applications whose cards are displayed on the lock screen interface. Therefore, the flexibility of the electronic device in displaying interfaces can be improved.
[0040] In a possible design of the fourth aspect, the eighth application is a specified application, and the ninth application is not the specified application. The specified application can be specified by a user. Alternatively, the specified application can be any one of a navigation application, a communication application, an audio / video playing application, and a communication application. Alternatively, the interface of the specified application includes an interface element that changes over time.
[0041] In this design, the non-specified application is an application that is not suitable for use on the outer screen of the mobile phone. Therefore, the user cannot use the interface that is not suitable for display on the outer screen on the outer screen, and the user experience can be further improved on the basis of improving the flexibility of the electronic device in displaying interfaces.
[0042] In a fifth aspect, another interface display method is provided, which can be applied to an electronic device such as a mobile phone. The electronic device includes an inner screen and an outer screen, and the size of the inner screen is different from the size of the outer screen. The method includes: when the electronic device is in an unfolded state, the electronic device displays a twelfth lock screen interface on the inner screen, and the twelfth lock screen interface includes a touch control area of a tenth application. Next, in response to an operation of setting the electronic device to the unfolded state, the electronic device displays a thirteenth lock screen interface on the outer screen. Then, when the electronic device is in the unfolded state, the electronic device displays a fourteenth lock screen interface on the inner screen, and the fourteenth lock screen interface includes a touch control area of an eleventh application. Next, in response to an operation of setting the electronic device to the unfolded state, the electronic device displays a fifteenth lock screen interface on the outer screen. The thirteenth lock screen interface includes the touch control area of the tenth application, the fifteenth lock screen interface does not include the touch control area of the eleventh application, and the tenth application is different from the eleventh application.
[0043] In the method, after the electronic device is set to the folded state, the electronic device can display different interfaces on the outer screen according to different applications that display the touch area on the lock screen interface. Thus, the flexibility of the electronic device in displaying interfaces can be improved.
[0044] In a possible design of the fifth aspect, the tenth application is a specified application, and the eleventh application is not the specified application. The specified application can be specified by a user. Alternatively, the specified application can be any one of a navigation application, a communication application, an audio / video playing application, and a communication application. Alternatively, the interface of the specified application includes interface elements that change over time.
[0045] In this design, the non-specified application is an application that is not suitable for use on the outer screen of the mobile phone. Thus, the user cannot use the interface that is not suitable for display on the outer screen on the outer screen, and the user experience can be further improved on the basis of improving the flexibility of the electronic device in displaying interfaces.
[0046] In a sixth aspect, an electronic device is provided. The electronic device includes a memory and one or more processors, and the memory is coupled to the processors. The memory stores computer program codes including computer instructions. When the computer instructions are executed by the processors, the electronic device performs the method provided in the first aspect to the fifth aspect and any possible design of the first aspect to the fifth aspect.
[0047] In a possible design of the sixth aspect, the electronic device further includes an inner screen and an outer screen, and the size of the inner screen is different from the size of the outer screen. It can be understood that the inner screen and the outer screen are two independent display screens.
[0048] In a seventh aspect, a computer readable storage medium is provided. The computer readable storage medium includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the method provided in the first aspect to the fifth aspect and any possible design of the first aspect to the fifth aspect.
[0049] In an eighth aspect, a computer program product including instructions is provided. When the computer program product is executed on an electronic device, the electronic device can perform the method provided in the first aspect to the fifth aspect and any possible design of the first aspect to the fifth aspect.
[0050] In a ninth aspect, a chip system is provided. The chip system is applied to an electronic device, and the chip system includes one or more processors. The processor is configured to invoke computer instructions to cause the electronic device to perform the method provided in the first aspect to the fifth aspect and any possible design of the first aspect to the fifth aspect.
[0051] The technical effects brought by any one of the designs of the second aspect to the ninth aspect can refer to the technical effects brought by different designs in the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0052] FIG. 1A is a schematic diagram of a product form of an electronic device according to an embodiment of the present application;
[0053] FIG. 1B is a schematic diagram of a product form of an electronic device according to an embodiment of the present application;
[0054] FIG. 1C is a schematic diagram of a product form of an electronic device according to an embodiment of the present application;
[0055] FIG. 1D is a schematic diagram of a product form of an electronic device according to an embodiment of the present application;
[0056] FIG. 2 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application;
[0057] FIG. 3 is a schematic diagram of the architecture of an electronic device according to an embodiment of the present application;
[0058] FIG. 4 is a schematic diagram of a set of user graphical interfaces according to an embodiment of the present application;
[0059] FIG. 5 is a schematic diagram of a flow of an interface display method according to an embodiment of the present application;
[0060] FIG. 6 is a schematic diagram of a set of lock screen interfaces according to an embodiment of the present application;
[0061] FIG. 7 is a schematic diagram of the relationship of activities according to an embodiment of the present application;
[0062] FIG. 8 is a schematic diagram of the change of the relationship of activities according to an embodiment of the present application;
[0063] FIG. 9 is a schematic diagram of a logical judgment of an interface display method according to an embodiment of the present application;
[0064] FIG. 10 is a schematic diagram of another flow of an interface display method according to an embodiment of the present application;
[0065] FIG. 11 is a schematic diagram of another flow of an interface display method according to an embodiment of the present application;
[0066] FIG. 12 is a schematic diagram of another set of user graphical interfaces according to an embodiment of the present application;
[0067] FIG. 13 is a schematic diagram of another set of user graphical interfaces according to an embodiment of the present application;
[0068] FIG. 14 is a schematic diagram of another set of user graphical interfaces according to an embodiment of the present application;
[0069] Figure 15 is a schematic diagram of another set of user graphical interfaces provided in an embodiment of this application;
[0070] Figure 16 is a schematic diagram of another set of user graphical interfaces provided in an embodiment of this application;
[0071] Figure 17 is a schematic diagram of another set of user graphical interfaces provided in an embodiment of this application;
[0072] Figure 18 is a schematic diagram of another set of user graphical interfaces provided in an embodiment of this application;
[0073] Figure 19 is a schematic diagram of another set of user graphical interfaces provided in an embodiment of this application;
[0074] Figure 20 is a schematic diagram of another set of user graphical interfaces provided in an embodiment of this application;
[0075] Figure 21 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of this application;
[0076] Figure 22 is a schematic diagram of the chip system provided in an embodiment of this application. Detailed Implementation
[0077] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can represent A or B. "And / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone, where A and B can be singular or plural. Furthermore, in the description of the embodiments of this application, unless otherwise stated, "multiple" refers to two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple. Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0078] In this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being better or more advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner to facilitate understanding.
[0079] The technical solutions disclosed in this application involve the collection, storage, use, processing, transmission, provision, and disclosure of users' personal information, all of which comply with relevant laws and regulations and do not violate public order and good morals.
[0080] With the diversification of user demands for electronic devices, foldable screen electronic devices that combine large screens and convenience have become widely popular. The electronic device includes at least one display screen, such as a first display screen. The first display screen can be a flexible screen, and it includes at least two display areas. For example, the first display screen can move along a folding edge or folding axis to form a first display area and a second display area. It is understood that the aforementioned first display area and second display area can be understood as two different display areas within the same flexible screen.
[0081] For example, consider a first display screen that folds inward (hereinafter referred to as an inward-folding screen). When the inward-folding screen is in the folded state, the display directions of the first display area and the second display area are opposite, and the display direction of the display area is the orientation of the front of the screen. When the inward-folding screen is in the unfolded state, the display directions of the first display area and the second display area are the same.
[0082] In some embodiments, for an electronic device including an inward-folding screen, the electronic device may further include a second display screen. The second display screen is a display screen independent of the aforementioned inward-folding screen (i.e., the first display screen). The deployment position of the first display screen is different from that of the second display screen.
[0083] Furthermore, the folding method of the inward-folding screen can include both vertical and horizontal folding. Vertical folding refers to folding the screen of the electronic device inwards vertically. Horizontal folding refers to folding the screen of the electronic device inwards horizontally. It should be noted that the vertical and horizontal folding methods can be designed according to specific usage requirements, and this application embodiment does not impose any limitations on them.
[0084] Below, taking a mobile phone as an example, we will introduce the unfolded and folded states of a foldable screen in conjunction with Figures 1A and 1B.
[0085] For example, in Figure 1A, the display (folding screen) is in the unfolded state (hereinafter referred to as the unfolded state). In Figure 1B, the display is in the folded state (hereinafter referred to as the folded state). The display can move along the folding axis, switching between the unfolded and folded states.
[0086] It should be understood that in some embodiments, the display being in an unfolded state can be described as the electronic device being in an unfolded state; the display being in a folded state can be described as the electronic device being in a folded state.
[0087] Referring to Figure 1A, the display screen of the electronic device includes a first display screen and a second display screen. The display area of the first display screen includes a first display area and a second display area. In the unfolded state, the first display area and the second display area have the same display direction, while the first display screen and the second display screen face opposite directions.
[0088] The unfolded electronic device can be moved around the folding axis in the 1a and / or 1b directions shown in Figure 1A to obtain the folded electronic device shown in Figure 1B.
[0089] Referring to Figure 1B, with the electronic device in a folded state, the display screen can be moved in directions 1c and / or 1d as shown in Figure 1B, resulting in the electronic device in an unfolded state as shown in Figure 1A. It should be understood that when the electronic device is in a folded state, the display directions of the first display area and the second display area are relative. That is, the first display area overlaps with the second display area.
[0090] In some implementations, the folded and unfolded states of the inward-folding screen can also be distinguished by the angle between the first display area and the second display area. For example, when the angle between the first and second display areas is 180°, the inward-folding screen is in the unfolded state; when the angle is 0°, the inward-folding screen is in the folded state. As another example, when the angle between the first and second display areas is between 180° and 135°, the inward-folding screen is in the unfolded state; when the angle is between 0° and 134°, the inward-folding screen is in the folded state. It is understood that the range of the angle between the first and second display areas when the inward-folding screen is in the folded state, and the range of the angle between the first and second display areas when the inward-folding screen is in the unfolded state, can be adjusted according to actual usage requirements. The specific range can be determined based on the actual usage situation.
[0091] It should be understood that in some embodiments, the second display screen may also be referred to as the outer screen, and the first display screen may also be referred to as the inner screen. Furthermore, in the following embodiments, the inward-folding screen in an unfolded state may also be referred to as the electronic device in an unfolded state; the inward-folding screen in a folded state may also be referred to as the electronic device in a folded state.
[0092] Next, taking a mobile phone as an example, and referring to Figures 1C and 1D, we will introduce the unfolded and folded states of a foldable screen. In Figure 1C, the display screen (foldable screen) is in the unfolded state. In Figure 1D, the display screen is in the folded state. The display screen can move along the folding axis, switching between the unfolded and folded states.
[0093] For example, in FIG1C, the first display screen includes two display areas, such as a first display area and a second display area. Behind the first display screen (not shown in FIG1C, is the second display screen). In the unfolded state, the first display area and the second display area have the same display direction, while the first display screen and the second display screen have opposite display directions.
[0094] The unfolded electronic device can be moved around the folding axis in the 1e and / or 1f directions shown in Figure 1C to obtain the folded electronic device shown in Figure 1D.
[0095] For example, referring to Figure 1D, the electronic device is in a folded state, and the display screen can be moved in the 1g direction and / or 1h direction shown in Figure 1D, resulting in the electronic device in an unfolded state as shown in Figure 1C. It should be understood that when the electronic device is in a folded state, the display directions of the first display area and the second display area are relative. That is, the first display area overlaps with the second display area.
[0096] Currently, improving the flexibility of the display interface of foldable screen electronic devices is an unresolved issue. This is especially true for inward-folding screen electronic devices, where improving the flexibility of the display interface after a state change is crucial. Here, "after a state change" can be understood as either switching from a folded state to an unfolded state, or vice versa.
[0097] In view of this, embodiments of this application provide an interface display method, which can be applied to an electronic device including a first display screen and a second display screen, wherein the first display screen is a foldable screen. In this method, the electronic device can display different interfaces before and after changes in the state of the electronic device. This improves the flexibility of the electronic device's display interface and enhances the user experience.
[0098] The structure and architecture of the electronic devices involved in the embodiments of this application are described below.
[0099] Next, referring to Figure 2, we will introduce the structure of the electronic device.
[0100] Figure 2 shows a schematic diagram of the structure of electronic device 100. Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, display screen 194, etc.
[0101] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0102] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0103] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0104] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0105] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0106] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194. The MIPI interface includes a display serial interface (DSI). In some embodiments, the processor 110 and the display screen 194 communicate via the DSI interface to realize the display function of the electronic device 100.
[0107] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0108] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0109] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0110] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0111] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0112] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses a layered architecture of Android... TM Taking the system as an example, the architecture of electronic device 100 is illustrated.
[0113] After introducing the structure of electronic devices, we will now introduce their architecture.
[0114] Figure 3 is an architectural diagram of an electronic device 100 according to an embodiment of this application.
[0115] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, Android can be used... TM The system is divided into three layers, from top to bottom: the application layer, the middleware layer, and the framework layer. It should be understood that in practical use, the layered architecture can have more or fewer layers. For example, in some other embodiments, Android can be used... TM The system is divided into five layers, from top to bottom: application layer, middleware layer, framework layer, hardware abstraction layer (HAL), and kernel layer. Specifically, for Android... TM The system partitioning method can be configured according to actual usage needs.
[0116] The application layer can include a series of application packages.
[0117] As shown in Figure 3, the application package can include system UI applications, launcher applications, settings applications, and so on. System UI applications manage the display of the electronic device's system-level user interface, such as managing the status bar display, managing the lock screen display, and managing the always-on display (AOD) interface. Launcher applications manage the display of the electronic device's desktop interface; for example, they can manage the desktop layout and wallpaper.
[0118] The middle platform layer, also known as the service layer or middle platform service layer, or simply the middle platform, can include a platform (package) for centralized management of common functions and resources. For example, the middle platform layer may include a perception service middle platform. This perception service middle platform can determine the status of applications based on collected application data. The application status can be either in progress or not in progress. Detailed steps for the perception service middle platform to determine the application status are described below and will not be elaborated upon here.
[0119] The framework layer (FWK) provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The framework layer includes a set of predefined functions.
[0120] As shown in Figure 3, the framework layer can include system services, etc.
[0121] A system server is a process that provides many subsystem services. Each subsystem service runs as a thread, waiting for requests from applications, processing the requests, and then returning the results to the applications. These subsystem services include, for example, the Window Manager Service (WMS), Notification Manager Service (NMS), Activity Manager Service (AMS), Input Manager Service (IMS), and Power Manager Service (PMS).
[0122] WMS can be used for window management, window animation management, surface management, and as a relay station for input systems. NMS enables applications to display notification information in the status bar, which can be used to convey informative messages and can disappear automatically after a short pause without user interaction. AMS can be used for the startup, switching, and scheduling of system components (e.g., activities, services, content providers, and broadcast receivers), as well as the management and scheduling of application processes. IMS can be used to manage system input, such as touchscreen input, keypad input, and sensor input. PSM is used to manage the power of electronic devices, such as whether the screen is on or off.
[0123] The system services may also include a foldable screen management service (FSMS). In some embodiments, the foldable screen management service may also be abbreviated as FMS or FSM. The following description will use FSMS as an example. FSMS is used to manage functions related to the foldable screen of electronic devices. For example, FSMS can manage the display mode of the electronic device; the display mode may include an inner screen display mode or an outer screen display mode. For instance, the foldable screen management service can identify the display mode of the electronic device through the parameter value of display mode; for example, display mode = 1 indicates that the electronic device is in inner screen display mode, and display mode = 2 indicates that the electronic device is in outer screen display mode.
[0124] The external screen display mode of an electronic device can be understood as the device being in a folded state, where the external screen displays the user's graphical interface. Similarly, the internal screen display mode can be understood as the device being in an unfolded state, where the internal screen displays the user's graphical interface. In other words, the internal screen display mode corresponds to the unfolded state, and the external screen display mode corresponds to the folded state.
[0125] For example, the interface display method provided in this application embodiment will be described with reference to the architecture shown in Figure 3. In response to the operation of folding the electronic device, the FSMS sends information indicating that the electronic device has switched to a foldable state to the foldable screen connection module. After receiving the information, the foldable screen connection module obtains the current focus application from the AMS. Next, the foldable screen connection module determines whether the current focus application is a designated application. If the current focus application is not a designated application, the foldable screen connection module sets the lock screen application as the focus application through the AMS; thus, the phone displays the lock screen interface on the outer screen. If the current focus application is a designated application, the foldable screen connection module sends information to the current focus application setting to draw the user graphical interface; thus, the phone displays the interface of the focus application on the outer screen. In this method, the phone can display the interface of different applications on the outer screen, such as the lock screen interface or the interface of the focus application, depending on whether the current focus application is a designated application, thereby improving the flexibility of the phone's display interface.
[0126] For a detailed description of this process, please refer to the following text, which will not be repeated here.
[0127] The following describes the interface display method provided in this application embodiment, taking a mobile phone as an example. The mobile phone has the product form shown in Figures 1A and 1B, the structure shown in Figure 2, and the architecture shown in Figure 3.
[0128] Understandably, user configuration of certain settings can affect some steps in the phone's interface display process. Therefore, before introducing the phone's interface display methods, we will first describe the user's configuration process for these settings.
[0129] As one possible implementation, users can configure the settings through a settings app on their mobile phone.
[0130] For example, referring to Figure 4, the phone displays a desktop 400, which includes a settings application icon 401. Next, in response to a triggering operation on the settings application icon 401, the phone displays the main interface 410 of the settings application. The main interface 410 includes an external screen menu option 411. Then, in response to a triggering operation on the external screen menu option 411, the phone displays an external screen menu 420. The external screen menu 420 includes settings for managing the phone's external screen display. For example, the external screen menu 420 includes a settings option 422 for the external screen wallpaper. As another example, the external screen menu 420 includes a settings option 421 for the closed-flip operation.
[0131] It should be noted that the closing operation can be understood as the user setting the unfolded phone to a folded state. Specifically, the closing operation can be the user moving the phone around the folding axis in the direction 1a or 1b shown in Figure 1A to obtain the folded state of the phone shown in Figure 1B. In some embodiments, the above-mentioned closing operation can also be referred to as: closing the foldable screen, closing the phone, etc.
[0132] Correspondingly, the opening operation can be understood as the user setting the folded phone to an unfolded state. Specifically, the opening operation can be that the user moves the phone around the folding axis in the 1c or 1d direction shown in Figure 1B to obtain the unfolded state of the phone shown in Figure 1A. In some embodiments, the above-mentioned opening operation can also be referred to as: opening the foldable screen, opening the phone, etc.
[0133] Next, referring again to Figure 4, in response to the triggering operation of setting option 421, the phone displays a settings menu 430 regarding the cover-closing operation. The settings menu 430 includes a prompt animation 431, a lock screen option 432, a screen-off option 433, a display switch 434, and an application list 435. The prompt animation 431 demonstrates the aforementioned cover-closing and / or cover-opening operations.
[0134] Lock screen option 432 and screen-off option 433 are used to manage the interface displayed on the phone's external screen after the phone is closed. When lock screen option 432 is selected, the phone can display the lock screen interface after the user closes the phone. When screen-off option 433 is selected, the phone can display the screen-off interface, such as the Always-On Display (AOD) interface, after the user closes the phone.
[0135] The display switch 434 manages whether the phone displays the interface of a specified application after the user closes the phone, provided that the lock screen option 432 is selected. For example, when the lock screen option 432 is selected and the display switch 434 is on, the phone displays the interface of the specified application on the inner screen, and then, in response to the user closing the phone, displays the interface of the specified application on the outer screen. Therefore, when the lock screen option 432 is selected and the display switch 434 is on, the interface of the specified application can switch from being displayed on the inner screen to being displayed on the outer screen in response to the closing operation.
[0136] In some implementations, the mobile phone can record the user's settings for the aforementioned lock screen options, screen off options, and display switch using certain flags.
[0137] For example, when the lock screen option is selected, the closed-screen flag is at its first value; when the screen-off option is selected, the closed-screen flag is at its second value. The first and second values are different. That is, in response to the user's selection of the lock screen option, the phone sets the closed-screen flag to its first value; or, in response to the user's selection of the screen-off option, the phone sets the closed-screen flag to its second value.
[0138] For example, when the display switch is in the "on" state, the display switch flag can be a third value; when the display switch is in the "off" state, the display switch flag can be a fourth value. The third and fourth values are different. That is, in response to the user's operation of setting the display switch to the "on" state, the phone sets the display switch flag to the third value; or, in response to the user's operation of setting the display switch to the "off" state, the phone sets the display switch flag to the fourth value.
[0139] It is understandable that the aforementioned on / off and cover / close flags can be maintained by the phone's settings application.
[0140] In some embodiments, the mobile phone can also determine the state of a specified application and, based on the state of the specified application, determine whether to display the interface of the specified application on the external screen in response to a flip-open operation. The state of the specified application includes a running state or a non-running state. For example, if the specified application is running, the phone displays the interface of the specified application on the internal screen; then, in response to a flip-open operation, the phone displays the interface of the specified application on the external screen. Alternatively, if the specified application is not running, the phone displays the interface of the specified application on the internal screen; then, in response to a flip-open operation, the phone displays the lock screen on the external screen, and the interface of the specified application is not displayed on the external screen.
[0141] Understandably, when an application is in a "in progress" state, it means that the application is performing certain functions or tasks. For example, a navigation application is in a "in progress" state when it is performing a navigation task; a timer application is in a "in progress" state when it is performing a countdown function; a communication application is in a "in progress" state when it is performing a communication function (such as making a phone call, audio / video call, etc.); and an audio / video playback application is in a "in progress" state when it is performing an audio / video playback function.
[0142] As one possible implementation, the state of the above application can be determined by the perception service platform.
[0143] For example, the perception service platform can determine that an application is in progress by receiving information from the application indicating that it is in progress. In other words, in this example, when an application is in progress, it can send information indicating that it is in progress to the perception service platform through a pre-defined interface. The perception service platform then determines that the application is in progress based on this information. Here, "application in progress" can be understood as a navigation application performing a navigation task; a communication application performing a communication function, such as making a phone call, video call, or voice call; or an audio / video playback application performing an audio / video playback function. Furthermore, when the application is not in progress, it can also send information indicating that it is not in progress to the perception service platform through the aforementioned interface.
[0144] For example, the perception service platform can determine the application's state based on the use of mobile phone resources. These resources can include one or more of the following: audio input resources, audio output resources, location resources, foreground resources, camera resources, speaker (earpiece) resources, and location resources. It is understood that when an application is in progress, it uses mobile phone resources. Therefore, the mobile phone can determine the application's state based on its resource usage. It should be noted that in some embodiments, during application runtime, resource usage can be done at the activity level; that is, the application can use mobile phone resources at the activity level. Here, there is a correspondence between activities and applications. Thus, the perception service module can obtain the name or tag of the activity using mobile phone resources, and identify the application occupying those resources through the correspondence between activities and applications. Next, when an application is using mobile phone resources, the perception service platform determines that the application is in progress.
[0145] It is understandable that in actual use, the application's state can also be determined by other modules on the phone. Furthermore, there can be many other ways to determine the application's state. This application's embodiments do not limit this.
[0146] In some embodiments, the outer and inner screens of the phone may have different sizes. Generally, the outer screen is smaller than the inner screen. Furthermore, because the outer screen is smaller, users may not want to use certain applications on it. Therefore, users can configure whether an application is available on the outer screen through settings. It should be understood that in this embodiment, all applications on the phone can be used on the inner screen.
[0147] For example, referring again to Figure 4, the phone displays an external screen menu 420, which also includes an external screen application option 423. Users can configure whether an application is available on the external screen through the external screen application option 423. For instance, a user can trigger the phone to display an application list through the external screen application option 423, select an application from the list, and set the selected application to be available on the external screen.
[0148] In some embodiments, the designated application may be all applications available on the external screen. In other embodiments, the designated application may be only some applications available on the external screen. For example, a user can select a portion of the applications available on the external screen from the application list 435 as the designated application.
[0149] In some implementations, the mobile phone can manage specific applications through a designated application list. For example, a user can set an application as a designated application through the application list 435 mentioned above. Next, the mobile phone adds the application's package name to the designated application list.
[0150] It should be noted that the process shown in Figure 4 uses the user's graphical interface on the phone's inner screen as an example. This means that users configure settings through the inner screen. In actual use, users can also configure settings through the outer screen. It should be understood that the process of configuring settings through the outer screen is similar to that shown in Figure 4, as described in the relevant description above, and will not be repeated here.
[0151] Understandably, in some embodiments, the aforementioned designated applications may be referred to as external screen connectable applications, and the aforementioned list of designated applications may be referred to as the external screen connectable application list.
[0152] In other embodiments, the specified application may also be any application installed on the mobile phone.
[0153] In other embodiments, the specified application may also be one or more of navigation applications, communication applications, timer applications, or audio / video playback applications.
[0154] In some other embodiments, the specified application may also be an application whose interface includes controls that change over time.
[0155] In short, the designated application can be one that provides a relatively high user experience on the outer screen.
[0156] The following describes the interface display method provided in the embodiments of this application, taking the scenario of a closed lid as an example.
[0157] For example, referring to Figure 5, the interface display method provided in this application embodiment may include steps S500-S525.
[0158] S500. In response to the operation of setting the phone to a folded state, the foldable screen continuity module obtains the focus application through AMS.
[0159] The operation of setting the phone to a folded state, as described above, can also be called the operation of cutting off the outer screen, or the operation of folding the phone.
[0160] In some embodiments, the FSMS of the mobile phone can send a screen-switching message based on the operation of setting the phone to a folded state. This screen-switching message can notify other components and modules of the phone that the phone is currently in a folded state. For example, in response to the phone being set to a folded state, the FSMS sends a first message. The first message can be a pre-screen-switching message. In response to the first message, the phone can perform operations such as powering down the inner screen, powering on the outer screen, drawing the user graphical interface to be displayed on the outer screen, and displaying the completed user graphical interface. After the above operations are completed, the FSMS sends a second message; in response to the second message, the phone's outer screen displays the user graphical interface. In some other embodiments, the first and second messages can be in the form of broadcasts, such as a first broadcast and a second broadcast. In other embodiments, the first message can also be referred to as a pre-screen-switching message.
[0161] Based on this, in some embodiments, step S500 may also be that, in response to the pre-screen switching message, the foldable screen transition module obtains the focus application via AMS. Alternatively, in other embodiments, step S500 may also be that, in response to the phone being set to a folded state, the foldable screen transition module obtains the focus application via AMS.
[0162] As is understandable, the aforementioned focused application refers to the application corresponding to the focused activity. The focused activity can be understood as the activity with the highest priority managed by AMS, such as the top activity. It can be used to represent the foreground application of the phone. In other words, the purpose of obtaining the focused application is to determine the foreground application of the phone. Based on this, in some embodiments, the aforementioned foldable screen transition module obtaining the focused application through AMS can also be described as the foldable screen transition module determining the foreground application.
[0163] The focus application can be maintained and managed by AMS. In other words, the foldable screen transition module can obtain the name of the focus activity from AMS. Then, based on the mapping between activity names and applications, the focus application is determined. For example, the foldable screen transition module can obtain the name of the focus activity through a pre-defined AMS interface; next, it determines the focus application based on the mapping between activity names and applications.
[0164] In some embodiments, AMS may also respond to the first message sent by FSMS by setting the top activity to a paused state, that is, the phone stops displaying the interface on the inner screen.
[0165] Specifically, step S500 may include: after the phone is set to folded state, the FSMS sends a pre-screen switching message, and after the folded screen connection module receives the pre-screen switching message, the folded screen connection module obtains the focus application from the AMS.
[0166] Next, after step S500, the phone executes step S501.
[0167] S501. The foldable screen continuity module determines whether the phone is in a locked state based on the focused application.
[0168] Understandably, a mobile phone can manage its lock screen interface through lock screen-related components, such as the Keyguard component. It should be understood that when the phone is in a lock screen state, it may be displaying the lock screen interface, or the screen may be off after displaying the lock screen interface. That is, when the phone is in a lock screen state, Keyguard will be the focused application. Therefore, the foldable screen transition module can determine whether the phone is in a lock screen state based on whether the focused application is Keyguard. In some embodiments, the aforementioned lock screen-related components can be referred to as lock screen applications. It should be noted that even if the lock screen-related components are called lock screen applications, it does not mean that the lock screen application is located at the application layer. In actual use, it can be located at the middle platform layer in Figure 3, or at the framework layer in Figure 3, or at the application layer. Specifically, it depends on the actual usage requirements.
[0169] When the phone is locked, it executes steps S502-S506. That is, when the focused application is KeyGuard, the phone executes steps S502-S506. When the phone is unlocked, it executes steps S521-S525. That is, when the focused application is not KeyGuard, the phone executes steps S521-S525.
[0170] S502. The foldable screen continuity module determines whether the lock screen application has the attribute of displaying the application.
[0171] The aforementioned lock screen application has the attribute of displaying applications. This can be understood as allowing the interfaces of some applications to be displayed within the lock screen, or allowing the interfaces of some applications to be displayed in the form of a lock screen. In other words, when the phone displays the lock screen, the lock screen may include cards related to applications other than the lock screen application, or the application corresponding to the lock screen is an application other than the lock screen application.
[0172] For example, for music playback apps, when the phone is locked, the lock screen of that music playback app (hereinafter referred to as the music lock screen) will be displayed. The music lock screen includes controls related to music playback, allowing users to easily control the music playback process and improving the user experience. As another example, some weather apps can display the weather in card format on the lock screen, allowing users to easily view weather information.
[0173] For example, referring to Figure 6, the mobile phone displays a lock screen interface 600, which includes a weather card 601. The weather card 601 includes weather information. As another example, the mobile phone displays a music lock screen interface 610, which includes information about the music currently playing, such as the name of the music (shown as AAABBB in Figure 6), the lyrics of the music (shown as ccddd, eeff, gg in Figure 6), and some controls related to music playback.
[0174] The phone can respond to a trigger operation on the weather card 601 included in the lock screen interface 600, displaying the weather application interface. The phone can also respond to a trigger operation on the touch area included in the music lock screen interface 610, changing the functions performed by the audio lock screen interface. For example, responding to a trigger operation on the volume control 611, the phone can adjust the volume of the music being played; or responding to a trigger operation on the progress bar 612, the phone can adjust the music playback progress.
[0175] In the following text, for ease of description, when a lock screen application does not have the attribute of displaying an application, the lock screen interface displayed on the phone can be referred to as the system lock screen interface. When a lock screen application has the attribute of displaying an application, the lock screen interface displayed on the phone can be referred to as the application lock screen interface. For example, lock screen interface 600 in Figure 6 above can be referred to as the application lock screen interface, and music lock screen interface 610 in Figure 6 above can be referred to as the application lock screen interface.
[0176] It should be noted that applications that can be displayed on the lock screen have a relatively high display priority. For example, the display priority of applications, from lowest to highest, can include: global display priority, foreground priority, or background priority. The display priority of these applications can be set by the user through relevant configuration options in the settings app, or it can be a preset value.
[0177] As one possible implementation, the foldable screen transition module can determine whether a lock screen application has the attribute of a display application through a preset interface, such as a lock screen display determination interface. Understandably, the aforementioned lock screen display determination interface can determine whether a lock screen application has the attribute of a display application based on the application's priority. For example, the lock screen display determination interface can obtain activities associated with Keyguard. When the application priority corresponding to the activity associated with Keyguard is the global display priority, the lock screen display determination interface determines that the lock screen application has the attribute of a display application; when the application priority corresponding to the activity associated with Keyguard is not the global display priority, the lock screen display determination interface determines that the lock screen application does not have the attribute of a display application.
[0178] The activity associated with Keyguard can be understood as either being mounted on the same node as the activity corresponding to Keyguard, or being mounted on the activity corresponding to Keyguard.
[0179] For example, see Figure 7, which illustrates a tree structure. It is understood that in some implementations, the mobile phone can manage activities using a tree structure. When the activity corresponding to the keyguard is a child node A, activities associated with the keyguard can include child node B, grandchild node A, or grandchild node B. When the activity corresponding to the keyguard is a grandchild node A, activities associated with the keyguard can include grandchild node B. It should be understood that Figure 7 is merely an example; in actual applications, the mobile phone may have more or fewer nodes than shown in the figure. Specifically, the design can be tailored to actual usage requirements.
[0180] In some embodiments, the mobile phone can indicate whether a lock screen application has the attribute of displaying an application through its lock screen overlay state. That is, the state of a lock screen application can include a lock screen overlay state and a non-lock screen overlay state. As one possible implementation, the foldable screen transition module can determine whether a mobile phone lock screen application has the attribute of displaying an application based on its lock screen application state. When the lock screen application is in the lock screen overlay state, it has the attribute of displaying an application; when the lock screen application is not in the lock screen overlay state, it does not have the attribute of displaying an application. For example, the lock screen overlay state can be represented by related flag bits, such as a first flag bit indicating that the lock screen application is in the lock screen overlay state, and a second flag bit indicating that the lock screen application is not in the lock screen overlay state. Another example is that the lock screen overlay state can be represented by parameter values, and these parameter values can be used to record the activity of the application overlaid on the lock screen application. The application overlaid on the lock screen application can be understood as an application displayed on the lock screen interface, such as the weather application corresponding to weather card 601 in Figure 6, or the music playback application corresponding to music lock screen interface 610 in Figure 6.
[0181] If the lock screen application has the attribute of displaying an application, the phone executes step S503, and then executes step S504 or S505 after step S503; if the lock screen application does not have the attribute of displaying an application, the phone executes step S506.
[0182] S503. The foldable screen continuity module determines whether the first application is a designated application. Here, the first application is the application corresponding to the activity associated with Keyguard mentioned above. As one possible implementation, the foldable screen continuity module can determine whether the first application is a designated application from the aforementioned list of designated applications.
[0183] If the first application is the designated application, the phone executes step S504.
[0184] S504. The foldable screen transition module sends information to the first application to draw the application's lock screen interface.
[0185] As one possible implementation, the foldable screen transition module can send information to the first application to draw the application's lock screen interface. Upon receiving this information, the first application can draw the graphical interface and display it, so that the phone displays the application's lock screen interface on the outer screen, such as the lock screen interface of the first application.
[0186] As another possible implementation, the foldable screen transition module can send information for drawing the application lock screen interface to the first application and keyguard. In this way, the first application and keyguard can draw a graphical interface based on the information and display it, and the phone displays the application lock screen interface on the outer screen, such as a lock screen interface including the cards of the first application.
[0187] As can be seen from the above description, when the phone is in an unfolded state, the phone is in a locked state, the phone displays the application lock screen interface on the inner screen, and the application lock screen interface corresponds to the specified application, in response to the phone being set to a folded state, the phone can execute steps S500, S501, S502, S503 and S504, and the phone displays the application lock screen interface on the outer screen.
[0188] If the first application is not the designated application, the phone executes step S505.
[0189] The S505 foldable screen transition module cancels the lock screen application's display attribute via AMS and sends information to the lock screen application to draw the system lock screen interface.
[0190] As one possible implementation, the foldable screen transition module can cancel the application display attribute of the lock screen application through a preset interface, such as the application display switch interface. For example, the application display switch interface can pause the activity of the first application mentioned above. Next, the foldable screen transition module calls the keyguardService.dokeyguardTimeout function, causing Keyguard to draw the system lock screen interface and send it for display. Then, the phone can display the system lock screen interface on the outer screen.
[0191] As can be seen from the above description, when the phone is in the unfolded state, the phone is in the locked screen state, the phone displays the application lock screen interface on the inner screen, and the application corresponding to the application lock screen interface is not the specified application, in response to the phone being set to the folded state, the phone can execute steps S500, S501, S502, S503 and S505, and the phone displays the system lock screen interface on the outer screen.
[0192] If the lock screen application does not have the attribute to display an application, the phone executes step S506.
[0193] S506. The foldable screen transition module sends information to the lock screen application to draw the system lock screen interface.
[0194] As one possible implementation, the foldable screen transition module calls the keyguardService.dokeyguardTimeout function, causing Keyguard to draw and display the system lock screen. In this way, the phone displays the system lock screen on the outer screen.
[0195] As can be seen from the above description, when the phone is in the unfolded state, the phone is in the locked screen state, and the phone displays the system lock screen interface on the inner screen, in response to the phone being set to the folded state, the phone can execute steps S500, S501, S502 and S506, and the phone displays the system lock screen interface on the outer screen.
[0196] Next, we will describe the process of the phone executing steps S521-S525 when the phone is not in a locked state.
[0197] S521. The foldable screen transition module determines whether the focused application is a specified application in progress.
[0198] Understandably, in some embodiments, the foldable screen transition module may only determine whether the focus application is a designated application, or it may only determine whether the focus application is in progress, to decide whether the phone will subsequently display the focus application's interface on the outer screen. That is, in some embodiments, step S521 can be replaced by: the foldable screen transition module determining whether the focus application is a designated application. In other embodiments, step S521 can be replaced by: determining whether the focus application is in progress.
[0199] In some embodiments, the foldable screen transition module can determine whether the focus application is a specified application by referring to the specified application list.
[0200] For example, the foldable screen transition module can determine whether the focused application is a designated application by its name. For instance, the module can determine whether the application name of the focused application is in the aforementioned list of designated applications. If the application name is in the list, the focused application is a designated application. If the application name is not in the list, the focused application is not a designated application.
[0201] In other embodiments, the foldable screen continuity module can obtain the status of a specified application through the aforementioned perception service platform. For example, the foldable screen continuity module can obtain the status of a specified application from the perception service platform by registering a listener.
[0202] As one possible implementation, step S521 may include: the foldable screen continuity module determining whether the focus application is a specified application through a specified application list, and the foldable screen continuity module obtaining the status of the specified application through a perception service platform. If the focus application is not a specified application in progress, the phone executes step S522. If the focus application is a specified application in progress, the phone executes steps S523-S525.
[0203] S522. The foldable screen transition module sends information to the lock screen application to draw the system lock screen interface.
[0204] For example, the foldable screen transition module can call the keyguardService.doKeyguardTimeout function to set the system lock screen application as the foreground application, so that the phone displays the system lock screen interface on the external screen.
[0205] It should be understood that after the system lock screen app is set as a foreground app, the system lock screen app draws the system lock screen interface and displays it. In this way, the phone can display the system lock screen interface on the external screen.
[0206] As can be seen from the above description, when the phone is in the unfolded state, the phone is not in the locked state, and the focused application is not the specified application in progress, in response to the phone being set to the folded state, the phone can execute steps S500, S501, S521 and S522, and the phone displays the system lock screen interface on the outer screen.
[0207] After step S521, if the focus application is a specified application in progress, the phone executes steps S523-S525.
[0208] S523. The foldable screen continuity module determines whether the phone's display state is in split-screen display mode.
[0209] Understandably, a mobile phone's display state can include split-screen display and non-split-screen display. Split-screen display can be understood as the interfaces of two or more applications being displayed on the same screen. Non-split-screen display can be understood as the interface of one application being displayed on one screen. As one possible implementation, the foldable screen transition module can determine whether the phone's display state is split-screen through a preset interface related to querying the phone's display state. In some embodiments, the aforementioned split-screen display state can also be referred to as split-screen mode; the aforementioned non-split-screen display state can also be referred to as non-split-screen mode. For example, the interface related to querying the phone's display state could be the `getWindow` function or the `is in multi windowmode` function.
[0210] When the phone is in split-screen mode, the phone executes step S524.
[0211] The S524 foldable screen continuity module sets the phone's display state to a non-split-screen display state.
[0212] As one possible implementation, the foldable screen transition module acquires the split-screen application; wherein, the split-screen application is an application that has a split-screen correspondence with the focus application. The focus application is then placed at the top of the stack, and the split-screen application at the bottom. Next, the phone disables the display of the split-screen dividing line, for example, by hiding WMShell. This way, the phone will not subsequently display the split-screen mode on the outer screen.
[0213] In this context, a split-screen application's activity and the focused application's activity are mounted on the same split-screen node. In other words, a split-screen application is one where both the activity and the focused application's activity are mounted on the same split-screen node.
[0214] For example, referring to Figure 8, Figure 8 illustrates a tree structure diagram of a mobile phone in split-screen display mode. The mobile phone can maintain its split-screen display mode through split-screen nodes. For example, a split-screen node is attached to node A of the mobile phone, and the activity of the focus application and the activity of the split-screen application are attached to the split-screen node. Then, the mobile phone executes the above step S524; the mobile phone attaches the activity of the focus application to node A, with the activity of the focus application at the top, and the mobile phone attaches the activity of the split-screen application to node A, with the activity of the split-screen application at the bottom. In some embodiments, the above-mentioned node A can be the root node.
[0215] After step S524, the phone executes step S525; or, if the phone's display state is not split-screen display state, the phone executes step S525.
[0216] S525. The foldable screen continuity module sends information to the focus application to draw the user's graphical interface.
[0217] In some embodiments, during the execution of step S525 on the mobile phone, the foldable screen continuity module can set the lock screen application (keyguard) activity to the top. That is, the foldable screen continuity module can set keyguard as the focused application through AMS.
[0218] For example, a mobile phone can use `resumeFocusedTasksTopAactivities` to draw the interface corresponding to the top activity. After the interface corresponding to the top activity is drawn, the mobile phone displays the interface of the focused application on the outer screen.
[0219] As can be seen from the above description, when the phone is in an unfolded state, not in a locked state, in a split-screen display state, and the focus application is a specified application in progress, in response to the phone being set to a folded state, the phone can execute steps S500, S501, S521, S523, S524, and S525. The phone displays the interface of the focus application on the outer screen, and when the phone displays the interface of the focus application on the outer screen, the phone is not in a split-screen display state. Alternatively, when the phone is in an unfolded state, not in a locked state, not in a split-screen display state, and the focus application is a specified application in progress, in response to the phone being set to a folded state, the phone can execute steps S500, S501, S521, S523, and S525. The phone displays the interface of the focus application on the outer screen, and when the phone displays the interface of the focus application on the outer screen, the phone is not in a split-screen display state.
[0220] It is understandable that the above description uses a closed-cover scenario, i.e., switching from an unfolded state to a folded state, as an example to introduce the interface display method. In some other embodiments, the interface display method provided in this application can also be applied to an open-cover scenario, i.e., switching from a folded state to an unfolded state. Specifically, when applied to an open-cover scenario, the triggering condition of step S500 can be replaced with the operation of setting the phone to an unfolded state. The remaining steps can remain unchanged.
[0221] In some other embodiments, after the phone executes the process corresponding to Figure 5 above, while the phone displays the system lock screen, the screen-off time can be shortened. It should be understood that in some usage scenarios, if a user triggers a flip-cover operation on the phone, the user is highly likely not to use the phone afterward. Thus, shortening the screen-off time can alleviate accidental touches.
[0222] As one possible implementation, after step S505 or step S522, the foldable screen transition module can reduce the screen-off time of the phone. For example, this foldable screen transition module can reduce the screen-off time of the phone by 50%, or reduce the screen-off time of the phone by 3 seconds.
[0223] It should be noted that in some embodiments, after the phone executes step S505, the phone cancels the attribute of displaying the lock screen application. Subsequently, in response to the operation of setting the phone to the unfolded state, the foldable screen transition module can restore the attribute of displaying the lock screen application.
[0224] In some embodiments, after step S506, the phone can set the desktop application's activity as the second highest priority activity, so that the phone displays the desktop after the system lock screen is unlocked. In other embodiments, after steps S505, S525, or S522, the phone can also perform the process of setting the desktop application's activity as the second highest priority activity.
[0225] Specifically, the phone can set the priority of the home task to be lower than that of the top task, but greater than or equal to the priority of other tasks.
[0226] Next, the judgment logic process involved in the interface display method provided in the embodiments of this application will be introduced.
[0227] For example, referring to Figure 9, the logical judgment process may include step S900.
[0228] S900. In response to the phone being set to a folded state, the folding screen continuity module determines the folding flag.
[0229] Understandably, the foldable screen transition module can determine the closed-screen flag to ascertain the user's settings for the lock screen or screen-off options mentioned above.
[0230] If the cover-closed flag is at the second value, the phone executes step S901.
[0231] When the cover-closed flag is at its first value, the phone executes step S902.
[0232] S901. The external screen of the phone is off.
[0233] Among these, "screen off" on the external screen of a mobile phone can include displaying the AOD (Always On Demand) interface on the external screen, or not displaying the user's graphical interface on the external screen.
[0234] S902. Foldable screen continuity module determines whether the phone is in a locked state.
[0235] For details, please refer to the description of step S501 above, which will not be repeated here.
[0236] If the phone is locked, the phone executes step S903. If the phone is unlocked, the phone executes step S920.
[0237] S903. The foldable screen continuity module determines whether the lock screen application has the attribute of displaying the application.
[0238] For details, please refer to the description of step S502 above, which will not be repeated here.
[0239] If the lock screen application does not have the attribute to display an application, the phone executes step S904.
[0240] S904. The foldable screen transition module sends information to the lock screen application to draw the system lock screen interface.
[0241] For details, please refer to the description of step S506 above, which will not be repeated here.
[0242] If the lock screen application has the attribute of displaying an application, the phone executes step S905.
[0243] S905. The foldable screen continuity module determines whether the switch display flag is the third value and whether the first application is a specified application in progress.
[0244] As one possible implementation, the foldable screen transition module can obtain the on / off display flag from the settings application.
[0245] When the switch display flag is at the third value and the first application is a specified application in progress, the mobile phone executes step S906.
[0246] S906. The foldable screen transition module sends information to the first application to draw the application's lock screen interface.
[0247] For details, please refer to the description of step S504 above, which will not be repeated here.
[0248] If the switch display flag is not the third value, or if the first application is not the specified application in progress, the phone executes step S907.
[0249] S907. The foldable screen transition module cancels the lock screen application's display attribute via AMS and sends information to the lock screen application to draw the system lock screen interface.
[0250] For details, please refer to the description of step S505 above, which will not be repeated here.
[0251] After step S902, if the phone is not in a locked state, the phone executes step S920.
[0252] S920. The foldable screen continuity module determines whether the switch display flag is a third value and whether the focus application is a specified application in progress.
[0253] If the switch display flag is not a third value, or the focus application is not the specified application in progress, the phone executes step S921.
[0254] S921. The foldable screen transition module sends information to the lock screen application to draw the system lock screen interface.
[0255] For details, please refer to the description of step S522 above, which will not be repeated here.
[0256] If the switch display flag is at the third value and the focused application is the specified application in progress, the phone executes step S922.
[0257] S922. Foldable screen continuity module determines whether the phone is in split-screen display mode.
[0258] For details, please refer to the description of step S523 above, which will not be repeated here.
[0259] When the phone is in split-screen display mode, the phone executes step S923, and then executes step S924 after step S923.
[0260] The S923 foldable screen continuity module sets the phone's display state to a non-split-screen display state.
[0261] For details, please refer to the description of step S524 above, which will not be repeated here.
[0262] If the phone is not in split-screen display mode, the phone executes step S924.
[0263] S924. The foldable screen continuity module sends information to the focus application to draw the user's graphical interface.
[0264] For details, please refer to the description of step S525 above, which will not be repeated here.
[0265] It should be noted that in the judgment logic corresponding to Figure 9, the mobile phone can obtain the user's settings for the aforementioned lock screen option, screen-off option, and display switch through the values of the flag bits. That is, a first value for the "close" flag bit indicates that the lock screen option is selected; a second value for the "close" flag bit indicates that the screen-off option is selected; a third value for the display switch flag bit indicates that the display switch is on; and a fourth value for the display switch flag bit indicates that the display switch is off.
[0266] In some embodiments, in the above-described determination logic, after step S922, the phone can further determine whether the phone is in a floating window display state. If the phone is in a floating window display state, the phone cancels the floating window display state.
[0267] As one possible implementation, step S922 may further include: determining whether the phone is in split-screen display mode and whether it is in floating window display mode. If the phone is in floating window display mode, the phone is in floating window display mode, and then the phone executes step S924. If the phone is in split-screen display mode, the phone executes step S923.
[0268] It should be understood that during the process corresponding to Figure 5 above, after executing some branches, the phone can display the system lock screen. Below, we will describe some of the processes executed by the phone after displaying the system lock screen. As one possible implementation, referring to Figure 10, after executing step S522, the phone can execute steps S1000-S1003.
[0269] S1000. Foldable screen continuity module records unlock count information.
[0270] As one possible implementation, the foldable screen transition module can record the number of times the phone unlocks after the phone displays the system lock screen following the execution of the process corresponding to Figure 5. In other words, the unlock count flag indicates information related to the number of times the phone unlocks after the system lock screen is displayed. For example, the unlock count flag can represent the number of times the phone unlocks after the system lock screen is displayed through its value.
[0271] For example, step S1000 above may include setting the unlock count flag to 0.
[0272] S1001. In response to the user's unlocking operation, the foldable screen continuity module determines the number of unlocking attempts.
[0273] As one possible implementation, in response to a user unlocking the phone, the phone can cancel the display of the system lock screen. For example, the phone can execute the `keyguardGoingAway` function to cancel the display of the system lock screen. After canceling the display of the system lock screen, the foldable screen continuity module checks the unlock count flag.
[0274] When the unlock count flag is 0, that is, when the unlock count information indicates that the phone has been unlocked 0 times since the system lock screen was displayed, the phone executes step S1002.
[0275] S1002. The foldable screen transition module places the desktop application at the top of the stack.
[0276] As one possible implementation, the foldable screen connection module can attach the home task to the top task.
[0277] As another possible implementation, the foldable screen transition module can set the activity corresponding to the desktop application to the top.
[0278] Understandably, the purpose of step S1002 above is to make the desktop application's activity the highest priority activity, that is, to set the desktop application's activity as the top activity. This ensures that the desktop is displayed on the phone subsequently. In other words, the phone displays the desktop after successful unlocking.
[0279] Next, after step S1002, the mobile phone executes step S1003.
[0280] If the unlock count flag is not 0, that is, if the unlock count information indicates that the number of times the phone has been unlocked after displaying the system lock screen is not 0, the phone executes step S1003.
[0281] S1003. The foldable screen continuity module sends information to display the interface corresponding to the activity at the top.
[0282] It is understandable that in some other embodiments, after step S504 or step S505, the mobile phone may also execute the process of steps S1000-S1003. Alternatively, in some other embodiments, after step S506, the mobile phone locks the screen after a timeout and then turns off the screen; or after step S506, the mobile phone receives a user's operation to lock the screen and then turns off the screen, the mobile phone may also execute the process of steps S1000-S1003.
[0283] As can be seen from the process corresponding to Figure 10 above, Figure 10 corresponds to the process of the phone switching from the inner screen display mode to the outer screen display mode, the phone unlocking after displaying the lock screen interface on the outer screen, and then switching from the outer screen display mode to the inner screen display mode, the phone unlocking after displaying the lock screen interface on the inner screen.
[0284] For example, referring to Figure 11, the above process may include steps S1100-S1103.
[0285] S1100. Based on the phone switching display modes and the phone displaying the lock screen interface, the foldable screen continuity module records the number of unlocking times.
[0286] Switching display modes on a mobile phone can be understood as switching from the external screen display mode to the internal screen display mode, or vice versa.
[0287] S1101. In response to the user's unlocking operation, the foldable screen continuity module determines the unlock count information.
[0288] When the unlock count flag is 0, that is, when the unlock count information indicates that the phone has been unlocked 0 times since the system lock screen was displayed, the phone executes step S1102.
[0289] S1102. The foldable screen transition module places the desktop application at the top of the stack.
[0290] If the unlock count flag is not 0, that is, if the unlock count information indicates that the number of times the phone has been unlocked since the system lock screen was displayed is not 0, the phone will execute step S1103.
[0291] S1103. The foldable screen continuity module sends information to display the interface corresponding to the activity at the top.
[0292] Specifically, steps S1100-S1103 are similar to steps S1000-S1003, as can be seen above, and will not be repeated here.
[0293] Next, the interface display method provided in the embodiments of this application will be introduced in conjunction with the user's use of the mobile phone.
[0294] During one user's use of the phone, the screen displays the interface of a non-designated application on the inner screen. Then, in response to the phone being folded, the system lock screen is displayed on the outer screen.
[0295] For example, referring to Figure 12, the phone displays desktop 1200 on the inner screen. Next, in response to the operation of setting the phone to a folded state, the phone displays the system lock screen interface 1210 on the outer screen. In the process corresponding to Figure 12, the phone executes the aforementioned steps S500, S501, and S521; and during the execution of step S521, based on the fact that the focused application is not a specified application in progress, the phone executes step S522. It can be understood that when the phone displays the desktop, the focused application can be a desktop application (e.g., a launcher). Next, after the phone displays the system lock screen interface 1210, the phone does not receive any user operation until it receives an operation from the user to set the phone to an unfolded state, at which point the phone's inner screen displays desktop 1200.
[0296] In other examples, the screen-off time differs when the phone is displaying the home screen (1200) and when it's displaying the system lock screen (1210). The screen-off time is shorter when displaying the system lock screen (1210) than when displaying the home screen (1200). This helps reduce accidental touches.
[0297] During another user interaction with the phone, the inner screen displays the interface of the designated application that is not currently in progress. Next, in response to the phone being folded, the outer screen displays the system lock screen.
[0298] For example, referring again to Figure 12, the phone displays a first interface 1220 on the inner screen. The first interface 1220 is the interface for the timer application. It includes a timer flag 1222, which indicates the countdown time of the timer application's countdown function, and this countdown time does not change with time. The first interface 1220 also includes a start control 1221, which can be used to activate the countdown function of the timer application. Next, in response to setting the phone to a folded state, the phone displays the system lock screen interface 1210 on the outer screen. During the process corresponding to Figure 12, the phone executes steps S500, S501, and S521; and during the execution of step S521, since the focused application is not a specified application in progress, the phone executes step S522. It is understandable that since the timer application is not executing the countdown function, the timer application is not in progress. Next, after the phone displays the system lock screen 1220, the phone does not receive any user input until it receives an input from the user to set the phone to an unfolded state, at which point the phone's inner screen displays the desktop 1220.
[0299] In other examples, the screen-off time differs when the phone is displaying the home screen (1200) and when it's displaying the system lock screen (1210). The screen-off time is shorter when displaying the system lock screen (1210) than when displaying the home screen (1200). This helps reduce accidental touches.
[0300] In another instance of user interaction with the phone, the phone displays the interface of the designated application on the inner screen, where the application is in progress. Next, in response to the phone being folded, the phone displays the interface of the designated application on the outer screen. It should be understood that the interface of the designated application displayed on the outer screen is adapted to the size of the outer screen.
[0301] For example, referring to Figure 13, the phone displays a first interface 1300 on the inner screen. The first interface 1300 is the interface of a timer application. The first interface 1300 includes a timer flag 1302, which indicates the remaining time of the countdown function of the timer application, and the remaining time changes with time. The first interface 1300 also includes a pause control 1301, which can be used to pause the countdown function of the timer application. That is, in response to the triggering operation of the pause control 1301, the timer application pauses the countdown function. Next, in response to the operation of setting the phone to a folded state, the phone displays a second interface 1310 on the outer screen. The second interface 1310 is the interface of the first interface 1300 adapted to the outer screen.
[0302] The second interface is the external screen adaptation of the first interface. It can be understood that the second interface includes the same interface elements as the first interface; however, the size of the interface elements in the second interface differs from the size of the interface elements in the first interface, or the layout of the second interface differs from the layout of the first interface. Interface layout can be understood as the positional and distance relationships between the interface elements.
[0303] It should be noted that the second interface mentioned above includes interface elements that are the same as those in the first interface. These same interface elements should not be interpreted as completely identical interface elements; they may differ slightly in size or dimensions (the number of pixels they occupy on the screen). However, the images and text displayed are similar. In other words, in this embodiment, interface A is the interface of interface B adapted to a certain display screen. It can be understood that interface A includes second interface elements, and interface B includes first interface elements. The second interface elements correspond to the first interface elements, but their sizes differ, and / or the layout of the second interface elements in the second interface differs from the layout of the first interface elements in the first interface. Here, layout can be understood as the positional relationships, distance relationships, etc., of interface elements within the interface.
[0304] In the process corresponding to Figure 13, the mobile phone executes the above steps S500, S501, and S521; and during the execution of step S521, based on the fact that the focused application is a specified application in progress, the mobile phone executes step S523. And during the execution of step S523, based on the fact that the mobile phone's display state is a non-split-screen display state, step S525 is executed.
[0305] During another user interaction with the phone, the inner screen is in split-screen mode, displaying the interfaces of two separate applications. The first application is the one currently in progress and is the focused application. Subsequently, in response to the phone being folded, the outer screen displays the interface of the first application, and the outer screen is in non-split-screen mode.
[0306] For example, referring to Figure 14, the phone displays the interface 1400 of application AA and the interface 1410 of application BB on the inner screen in a split-screen manner. Application AA is the designated application in progress and is the focused application. Next, in response to the operation of setting the phone to a folded state, the phone executes the above steps S500, S501, S521, and S523; during the execution of step S523, based on the phone's display state being a non-split-screen display state, the phone executes steps S524 and S525. Thus, in response to the operation of setting the phone to a folded state, the phone displays the interface 1420 of application AA on the outer screen. It should be noted that since the phone has executed step S524, its display state is a non-split-screen display state. Furthermore, the interface 1420 is the interface of interface 1400 after adaptation on the outer screen.
[0307] During another user interaction with the phone, the system lock screen is displayed on the inner screen. Then, in response to the phone being folded, the system lock screen is displayed on the outer screen.
[0308] For example, referring to Figure 15, the phone displays the system lock screen interface 1500 on the inner screen. Next, in response to the operation of setting the phone to a folded state, the phone executes the above steps S500, S501, S502, and S506. The phone then displays the system lock screen interface 1510 on the outer screen. The system lock screen interface 1510 is the interface of the system lock screen interface 1500 adapted for the outer screen.
[0309] In some examples, the screen-off time differs when the phone displays the system lock screen at 1500 on the inner screen and when it displays the system lock screen at 1510 on the outer screen. The screen-off time is shorter when the phone displays the system lock screen at 1510 than when it displays the system lock screen at 1500. For example, the inner screen may turn off five seconds after displaying the system lock screen at 1500; similarly, the outer screen may turn off two seconds after displaying the system lock screen at 1510. This helps reduce accidental touches and conserves battery power.
[0310] During another user interaction with the phone, the phone displays the app lock screen on the inner screen. Next, in response to the phone being folded, if the first app is the specified app, the phone displays the app lock screen on the outer screen; or, in response to the phone being folded, if the first app is not the specified app, the phone displays the system lock screen on the outer screen.
[0311] For example, referring to Figure 16, the phone displays an application lock screen interface 1600 on the inner screen. The application lock screen interface 1600 includes a weather application card 1601. Next, if the weather application is not the designated application, in response to the operation of setting the phone to a folded state, the phone performs the above steps S500, S501, S502, S503, and S505. The phone then displays a system lock screen interface 1610 on the outer screen. In some examples, after the system lock screen interface 1610 is displayed on the outer screen, in response to the operation of setting the phone to an unfolded state, the phone restores the lock screen application display application attribute, and the phone displays the application lock screen interface 1600 on the inner screen.
[0312] As an example again, referring to Figure 16, the phone displays an application lock screen interface 1600 on the inner screen. The application lock screen interface 1600 includes a weather application card 1601. Next, if the weather application is the designated application, in response to the operation of setting the phone to a folded state, the phone executes the above steps S500, S501, S502, S503, and S504. The phone displays an application lock screen interface 1620 on the outer screen; the application lock screen interface 1620 includes a weather application card 1621. The application lock screen interface 1620 is the interface of the application lock screen interface 1600 adapted to the outer screen.
[0313] For example, referring to Figure 17, the phone displays the lock screen interface 1700 of a music application on the inner screen. The music application lock screen interface 1700 includes information corresponding to the music being played on the phone. Next, if the music application is not the designated application, in response to the operation of setting the phone to a folded state, the phone executes the above steps S500, S501, S502, S503, and S505. The phone then displays the system lock screen interface 1710 on the outer screen. In some examples, after the system lock screen interface 1710 is displayed on the outer screen, in response to the operation of setting the phone to an unfolded state, the phone restores the lock screen application display application attribute, and the phone displays the music application lock screen interface 1700 on the inner screen.
[0314] As an example again, referring to Figure 17, the phone displays the lock screen interface 1700 of the music application on the inner screen. The lock screen interface 1700 of the music application includes information corresponding to the music being played on the phone. Next, if the music application is not the designated application, in response to the operation of setting the phone to a folded state, the phone executes the above steps S500, S501, S502, S503, and S504. The phone displays the lock screen interface 1720 of the music application on the outer screen, which is the interface of the lock screen interface 1700 adapted for the outer screen.
[0315] During another user interaction with the phone, the phone displays the interface of a non-designated application on the inner screen. Next, in response to the user folding the phone, the lock screen is displayed on the outer screen. Then, in response to the user unlocking the phone, the home screen is displayed on the outer screen.
[0316] For example, referring to Figure 18, the phone displays the interface 1820 of a note-taking application on the inner screen; the note-taking application is not a designated application. Next, at the first time point, in response to the operation of setting the phone to a folded state, the phone executes steps S500, S501, S521, and S522, and the phone displays the system lock screen interface 1800 on the outer screen. Next, at the second time point, in response to the operation of unlocking the phone, the phone displays the desktop 1810. During the period from the first time point to the second time point, the phone does not receive an unlock operation. At the second time point, during the process of the phone displaying the desktop 1810 on the outer screen in response to the unlock operation, the phone executes the aforementioned steps S1000, S1001, S1002, and S1003. Furthermore, during the execution of step S1001, based on the fact that the phone did not receive an unlock operation during the period from the first time point to the second time point (i.e., the unlock count was 0), the branch of step S1002 is executed.
[0317] It should be noted that, in the actual use of a mobile phone, the above-mentioned unlocking operation is also called the unlocking operation. This can include two parts: the first part is unlocking the phone, where the user can unlock the screen by entering unlock credentials (such as fingerprint, facial recognition, voice, password, etc.). The second part is canceling the display of the lock screen, where the user can swipe the screen to instruct the phone to cancel the lock screen display and show other interfaces.
[0318] For example, referring to Figure 19, the mobile phone displays a locked system lock screen interface 1900 on the external screen. The locked system lock screen interface 1900 includes a lock flag 1901. The lock flag 1901 indicates that the system lock screen interface 1900 is in a locked state. Next, in response to an operation to unlock the system, the mobile phone displays an unlocked system lock screen interface 1910 on the external screen. The unlocked system lock screen interface 1910 does not include the aforementioned lock flag.
[0319] In some implementations, the system lock screen interface in the locked state may include information indicating that it is in a locked state, such as text descriptions, graphic icons, etc. The system lock screen interface in the unlocked state does not include information indicating that it is in a locked state.
[0320] During another user interaction with the phone, the phone displays the interface of a non-designated application on the inner screen. Next, in response to the user folding the phone, the phone displays the locked system lock screen on the outer screen. Then, in response to the user unlocking the phone, the phone displays the unlocked system lock screen on the outer screen. Finally, in response to the user unfolding the phone, the phone displays the interface of a non-designated application on the inner screen.
[0321] For example, referring to Figure 20, the phone displays the note-taking application interface 2000 on the outer screen; the note-taking application is not a designated application. Next, in response to the operation of setting the phone to a folded state, the phone displays the locked system lock screen interface 2010 on the outer screen. Next, in response to the operation of unlocking the state, the phone displays the unlocked system lock screen interface 2020 on the outer screen. Then, in response to the user's operation of setting the phone to an unfolded state, the phone displays the unlocked system lock screen interface 2030 on the inner screen. Subsequently, in response to the user's swipe operation, the phone displays the note-taking application interface 2000.
[0322] The following description, in conjunction with Figures 12-20 above, further explains the application states provided in the embodiments of this application. It can be understood that an application in a "in progress" state means that the application is performing functions continuously over time. For example, the application's interface includes controls that change over time. The application's interface should be understood as controls provided by the application, and should not include notification bars, top status bars, etc., that might be present during actual display. The aforementioned time-changing controls can be understood as follows: As shown in Figure 13, the first interface 1300 includes a timer flag 1302, which indicates the remaining time of the countdown function of the timer application, and this remaining time changes with time. That is, the timer flag 1302 changes proactively. Another example is the lock screen interface 1700 shown in Figure 17. The music progress bar included in the lock screen interface 1700 changes over time.
[0323] It should be noted that the personal information used in the technical solution of this application is limited to information for which individual consent has been obtained, including but not limited to notifying and reminding users to read the relevant user agreement (notification) and sign the agreement (authorization) which includes authorization of relevant user information before users use the function.
[0324] Based on the algorithmic steps of the various examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementations should not be considered beyond the scope of this application.
[0325] This embodiment can divide the electronic device into functional modules according to the above method example. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated modules can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0326] This application also provides an electronic device, as shown in FIG21, which may include one or more processors 2101, memory 2102 and communication interface 2103.
[0327] The memory 2102, communication interface 2103, and processor 2101 are coupled together. For example, the memory 2102, communication interface 2103, and processor 2101 can be coupled together via bus 2104.
[0328] The communication interface 2103 is used for data transmission with other devices. The memory 2102 stores computer program code. The computer program code includes computer instructions, which, when executed by the processor 2101, cause the electronic device to perform the relevant method steps in the above-described method embodiments of this application.
[0329] The processor 2101 can be a processor or controller, such as a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. The processor can also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0330] Bus 2104 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Bus 2104 can be categorized as an address bus, data bus, control bus, etc. For ease of representation, only one line is used in Figure 21, but this does not imply that there is only one bus or one type of bus.
[0331] This application also provides a chip system, as shown in FIG22, which includes at least one processor 2201 and at least one interface circuit 2202. The processor 2201 and the interface circuit 2202 are interconnected via lines. For example, the interface circuit 2202 can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit 2202 can be used to send signals to other devices (e.g., the processor 2201). Exemplarily, the interface circuit 2202 can read instructions stored in the memory and send the instructions to the processor 2201. When the instructions are executed by the processor 2201, the electronic device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in this application.
[0332] This application also provides a computer-readable storage medium storing computer program code. When the processor executes the computer program code, the electronic device executes the relevant method steps in the above method embodiments.
[0333] This application also provides a computer program product that, when run on a computer, causes the computer to execute the relevant method steps described in the above method embodiments.
[0334] The electronic devices, computer-readable storage media, or computer program products provided in this application are all used to perform the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0335] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0336] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0337] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0338] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0339] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, in essence, or the part that contributes, or all or part of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0340] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An interface display method characterized by, The method is applied to an electronic device including an inner screen and an outer screen, the inner screen has a size different from that of the outer screen, and the method includes: The electronic device is in an unfolded state, and the electronic device displays a first interface of a first application on the inner screen; In response to an operation of setting the electronic device to a folded state, in a case where the first application is a specified application, the electronic device displays a second interface of the first application on the outer screen, and in a case where the first application is not the specified application, the electronic device displays a first lock screen interface on the outer screen; wherein the second interface is an interface of the first interface adapted on the outer screen.
2. The method according to claim 1, characterized in that, After the electronic device displays the first lock screen interface on the outer screen, the method further includes: In response to an unlocking operation on the electronic device, the electronic device displays a desktop on the outer screen.
3. The method according to claim 1 or 2, characterized in that, The method further includes: The electronic device is in an unfolded state, and the electronic device displays a second lock screen interface on the inner screen, the second lock screen interface including a card of a second application; In response to an operation of setting the electronic device to a folded state, in a case where the second application is a specified application, the electronic device displays a third lock screen interface on the outer screen, and in a case where the second application is not the specified application, the electronic device displays a fourth lock screen interface on the outer screen; Wherein, the third lock screen interface includes the card of the second application, and the fourth lock screen interface does not include the card of the second application.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: The electronic device is in an unfolded state, and the electronic device displays a fifth lock screen interface on the inner screen, the fifth lock screen interface including a touch area of a third application; In response to an operation of setting the electronic device to a folded state, in a case where the third application is a specified application, the electronic device displays a sixth lock screen interface on the outer screen, and in a case where the third application is not the specified application, the electronic device displays a seventh lock screen interface on the outer screen; Wherein, the sixth lock screen interface is an interface of the fifth lock screen interface adapted on the outer screen, and the seventh lock screen interface does not include the touch area of the third application.
5. The method of any one of claims 1-4, wherein: The specified application is designated by a user; Or, the specified application includes any one of a navigation application, a communication application, an audio / video playing application, and a communication application; Or, an interface of the specified application includes interface elements that change with time.
6. The method according to any one of claims 1 to 5, characterized in that, The first interface includes first interface elements, and the second interface includes second interface elements corresponding to the first interface elements; wherein the second interface elements have sizes different from those of the first interface elements; or, a layout of the second interface elements in the second interface is different from a layout of the first interface elements in the first interface.
7. The method according to any one of claims 1 to 6, characterized in that, After the electronic device displays the first lock screen interface on the outer screen, the method further includes: In response to an operation of setting the electronic device to an unfolded state, the electronic device displays the first interface of the first application on the inner screen.
8. The method according to any one of claims 1 to 7, characterized in that, The state of the application includes an in-process state or a non-in-process state; and in response to the operation of setting the electronic device to the folded state, in a case where the first application is a specified application, the electronic device displays a second interface of the first application on the outer screen, including: In response to the operation of setting the electronic device to the folded state, in a case where the first application is a specified application in an in-process state, the electronic device displays a second interface of the first application on the outer screen; The method further includes: In response to the operation of setting the electronic device to the folded state, in a case where the first application is a specified application in a non-in-process state, the electronic device displays a first lock screen interface on the outer screen.
9. The method according to any one of claims 1 to 8, characterized in that, The first application is a focus application; and in response to the operation of setting the electronic device to the folded state, in a case where the first application is a specified application, the electronic device displays a second interface of the first application on the outer screen, and in a case where the first application is not a specified application, the electronic device displays a first lock screen interface on the outer screen, including: In response to the operation of setting the electronic device to the folded state, a focus application is obtained, the focus application being an application corresponding to the top activity; In a case where the focus application is a specified application in an in-process state, information for drawing a user graphical interface is sent to the focus application; In a case where the focus application is not a specified application in an in-process state, information for drawing a user graphical interface is sent to a lock screen application.
10. The method of claim 9, wherein, The display state of the electronic device includes a split-screen display state or a non-split-screen display state; In a case where the focus application is a specified application in an in-process state, and the electronic device is not in a split-screen display state, information for drawing a user graphical interface is sent to the focus application; The method further includes: In a case where the focus application is a specified application in an in-process state, and the electronic device is in a split-screen display state, the display state of the electronic device is set to a non-split-screen display state, and information for drawing a user graphical interface is sent to the focus application. The setting of the display state of the electronic device to a non-split-screen display state includes:
11. The method of claim 10, wherein, The activity of the focus application is set to the top, and the activity of a split-screen application is set to the bottom, the split-screen application having a corresponding relationship with the focus application. After the sending of the information for drawing a user graphical interface to the lock screen application, the method further includes:
12. The method according to any one of claims 9-11, characterized in that, Shortening the screen-off time of the electronic device. The method further includes:
13. The method according to any one of claims 9-12, characterized in that, In a case where the focus application is a lock screen application, the state of the lock screen application is obtained; the state of the lock screen application includes a lock screen cover state or a non-lock screen cover state; In a case where the lock screen application is in a lock screen cover state, a target application is obtained, the target application being an application having an association relationship with the lock screen application; In a case where the target application is a specified application, information for drawing a user graphical interface is sent to the target application; In a case where the target application is not the specified application, setting a state of the lock screen application to a non-lock screen covering state, and sending information for drawing a user interface to the lock screen application.
14. The method according to any one of claims 1 to 13, characterized in that, After the electronic device displays the first lock screen interface on the outer screen, the method further includes: Setting a priority of an activity of the desktop application to the second highest.
15. An interface display method characterized by comprising: The method is applied to an electronic device, the electronic device including an inner screen and an outer screen, the inner screen having a different size from the outer screen, and the method including: The electronic device is in an unfolded state, the electronic device displaying a third interface of a fourth application and a fourth interface of a fifth application on the inner screen in a split screen mode, the fourth application being different from the fifth application, and the fourth application being a specified application. In response to an operation of setting the electronic device to a folded state, the electronic device displays a fifth interface of the fourth application on the outer screen, the fifth interface being an interface of the third interface adapted to the outer screen, and an interface of the fifth application not being displayed on the outer screen.
16. The method of claim 15, wherein, The fourth application is a focus application.
17. The method of claim 15 or 16, wherein, The specified application is designated by a user. Alternatively, the specified application includes any one of a navigation application, a communication application, an audio / video playing application, and a communication application. Alternatively, an interface of the specified application includes interface elements that change with time.
18. The method according to any one of claims 15-17, characterized by, The fifth interface includes a third interface element, the third interface includes a fourth interface element, and the third interface element corresponds to the fourth interface element. The second interface element has a different size from the first interface element, or a layout of the second interface element in the second interface is different from a layout of the first interface element in the first interface.
19. An electronic device, characterized in that, The electronic device includes an inner screen and an outer screen, the inner screen having a different size from the outer screen. The electronic device further includes a memory and one or more processors, the memory being coupled to the processors; and wherein the memory stores computer program codes including computer instructions; and when the computer instructions are executed by the processors, the electronic device performs the method of any one of claims 1-18.
20. A computer-readable storage medium, characterized in that, The computer readable storage medium includes computer instructions, which, when executed on an electronic device, cause the electronic device to perform the method of any one of claims 1-18.
21. A computer program product, characterised in that, The computer program product includes instructions, which, when executed on an electronic device, cause the electronic device to perform the method of any one of claims 1-18.
Citation Information
Patent Citations
Display control method, electronic equipment and computer storage medium
CN115268738A
Application interface display method and electronic equipment
CN116225287A
Display method and electronic equipment
CN116450011A
Interface display method and device, electronic equipment and storage medium
CN117420938A