A method for quickly returning to an interface and an electronic device

By popping up multiple activities in the activity stack, users can quickly return to the previous screen, solving the problem of cumbersome interface navigation in applications, improving user experience and reducing device power consumption.

CN115525367BActive Publication Date: 2026-07-10HUAWEI TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2021-06-26
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

In applications, users need to press the back button multiple times to return to previously opened interfaces, which is cumbersome, violates normal perception, and results in a poor user experience.

Method used

By receiving user input, multiple activities in the activity stack can be popped up, allowing for quick return to the previous screen. This supports interfaces from the same application or different applications, and uses preset conditions and controls to instruct user actions, reducing the number of screen switching and improving the interactive experience.

Benefits of technology

It simplifies the user's return process, improves the user experience, reduces flickering and lag caused by interface switching, and lowers device power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115525367B_ABST
    Figure CN115525367B_ABST
Patent Text Reader

Abstract

The application provides a method for quickly returning to an interface and an electronic device. The method is applied to the electronic device, and the method comprises the following steps: displaying a first interface of a first application program, the first interface being associated with a first activity, the first activity being a top activity of a first activity stack, the first activity stack comprising the first activity, a second activity and a third activity; receiving a first user operation; in response to the first user operation, popping up at least two activities of the first activity stack, displaying a second interface of the first application program, the second interface being associated with the second activity; or, in response to the first user operation, popping up at least two activities of the first activity stack, displaying a third interface of a second application program, the third interface being associated with the third activity. The application can quickly return to a user interface opened before a previous interface in response to the first user operation, and the operation is simple and convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic device technology, and in particular to a method for quickly returning to an interface and an electronic device. Background Technology

[0002] An application can include multiple application activities. As a user interacts with the application, it generates multiple activities based on the user's actions, and these activities are sequentially pushed onto a stack in the order they are accessed. When there are many activities in the stack, if a user wants to return to a previously opened screen (such as the application's main screen), they need to press the back button multiple times to navigate through each level. Activities are also popped from the stack in reverse order of access, making the user operation cumbersome. Alternatively, the user can exit the application and reopen it, but this will erase previous actions, requiring the user to repeat the process. This is also cumbersome and violates normal user experience, resulting in a poor user experience. Summary of the Invention

[0003] This application discloses a method and electronic device for quickly returning to an interface, which can quickly return to an interface that was opened before the previous interface, and the operation is simple and convenient.

[0004] In a first aspect, embodiments of this application provide a method for quickly returning to an interface, applied to an electronic device. The method includes: displaying a first interface of a first application, the first interface being associated with a first activity, the first activity being the top activity of a first activity stack, the first activity stack including the first activity, a second activity, and a third activity; receiving a first user operation; responding to the first user operation, popping at least two activities from the first activity stack and displaying a second interface of the first application, the second interface being associated with the second activity; or, responding to the first user operation, popping at least two activities from the first activity stack and displaying a third interface of a second application, the third interface being associated with the third activity.

[0005] In the above method, the electronic device can be used for a first user operation to quickly return to an interface that was opened before the previous interface. This interface can belong to the same application as the currently displayed first interface, such as the user interface of the first application when it is first opened, or it can belong to a different application, such as the main interface of a second application. The user operation is simple and convenient, the return interface is diversified, and the interactive experience is more user-friendly.

[0006] In one possible implementation, before displaying the first interface of the first application, the method further includes: displaying the third interface of the second application; displaying the second interface of the first application, wherein the second activity is entered before the first activity enters the first activity stack, and the third activity is entered before the second activity enters the first activity stack.

[0007] In one possible implementation, before receiving the first user operation, the method further includes: receiving a first number of second user operations, the second user operations being used to return to the previous level interface of the currently displayed interface; the step of popping at least two activities from the first activity stack in response to the first user operation includes: when the first number of second user operations and the first user operation satisfy a first preset condition, in response to the first user operation, popping at least two activities from the first activity stack, the preset condition being that the difference between a first receiving time and the receiving time of the first user operation is less than or equal to a first duration, the first receiving time being the receiving time of the earliest second user operation among the first number of second user operations.

[0008] In some embodiments, when the time period for receiving multiple user operations (a first number of second user operations and a first user operation) is short, the device can quickly return to an interface that was previously opened in the previous interface. For example, if the electronic device receives three return operations in 2 seconds (such as swiping inward from the left edge of the screen), the electronic device can respond to the third return operation by popping at least two activities in the first activity stack and displaying an interface that was previously opened in the previous interface.

[0009] In one possible implementation, before receiving the first user operation, the method further includes: receiving a second number of second user operations, the second user operations being used to return to the previous level interface of the currently displayed interface; when the second number of second user operations meet a second preset condition, displaying a first control, the second preset condition being that the difference between a second receiving time and a third receiving time is less than or equal to a second duration, the second receiving time being the receiving time of the earliest second user operation among the second number of second user operations, and the third receiving time being the receiving time of the latest second user operation among the second number of second user operations; receiving the first user operation includes: receiving the first user operation applied to the first control.

[0010] In some embodiments, when the time period for continuously receiving multiple user operations (a second number of second user operations) is short, the electronic device may display a first control. The first control indicates the user interface to be displayed after the user performs a quick return operation, which is the first user operation applied to the first control. Then, in response to the quick return operation, the electronic device may pop at least two activities from a first activity stack and display an interface that was previously opened, i.e., the user interface indicated by the first control. In some embodiments, the first control indicates the user interface through included text; in other embodiments, the first control is an icon of the application indicating the user interface.

[0011] In one possible implementation, receiving the first user operation includes: receiving the first user operation applied to a first region, wherein the first region is different from the second region, the second region is the region where the second user operation is applied, and the second user operation is used to return to the previous level interface of the currently displayed interface.

[0012] In some embodiments, both the first region and the second region are located on the left side of the screen, with the second region located above the first region.

[0013] In one possible implementation, the first user operation and the second user operation have the same area of ​​effect but different directions of operation. The second user operation is used to return to the previous level of the currently displayed interface. In some embodiments, the second user operation is a horizontal swipe inward from the left edge of the screen, and the first user operation is a swipe inward from the left edge of the screen with the swipe direction diagonally upward.

[0014] In one possible implementation, the first interface includes a second control and a third control, the second control indicating the first application and the third control indicating the second application; the step of popping at least two activities from the first activity stack and displaying the second interface of the first application in response to the first user operation includes: popping at least two activities that enter after the second activity in the first activity stack in response to the first user operation and displaying the second interface; or, the step of popping at least two activities from the first activity stack and displaying the third interface of the second application in response to the first user operation includes: popping at least two activities that enter after the third activity in the first activity stack in response to the first user operation on the third control and displaying the third interface.

[0015] In some embodiments, the second control is the icon of the first application, and the third control is the icon of the second application.

[0016] In some embodiments, the method further includes: when the first interface is displayed, displaying the second control and the third control in response to a sliding operation applied to the first area. In other embodiments, the method further includes: when the first interface is displayed, displaying the second control and the third control in response to a sliding operation applied to the first area and a sliding distance of a preset distance. The first area and the second area are different; the second area is the area where a second user operation is performed, and the second user operation is used to return to the previous level interface of the currently displayed interface.

[0017] In one possible implementation, the step of popping at least two activities from the first activity stack and displaying a second interface of the first application in response to the first user operation includes: popping at least two activities that enter after the second activity in the first activity stack in response to a first type of first user operation and displaying the second interface; or, the step of popping at least two activities from the first activity stack and displaying a third interface of the second application in response to the first user operation includes: popping at least two activities that enter after the third activity in the first activity stack in response to a second type of first user operation and displaying the third interface.

[0018] In some embodiments, the first user operation of the first type and the first user operation of the second type have the same area of ​​action but different directions of operation. In some embodiments, the first user operation of the first type is a sliding operation from the left edge of the screen inward with the sliding direction diagonally upward, and the first user operation of the second type is a sliding operation from the left edge of the screen inward with the sliding direction diagonally downward.

[0019] In this application, users can perform different types of first-user operations based on the information prompted on the interface, thereby quickly returning to different user interfaces, diversifying the use cases and improving the user experience.

[0020] In one possible implementation, the names of the first activity and the second activity include the name of the first application. Before displaying the second interface of the first application, the method further includes: displaying a fourth interface of the second application, the fourth interface being associated with a fourth activity, the name of the fourth activity including the name of the second application, the fourth activity entering the first activity stack before the second activity enters the first activity stack and after the third activity enters the first activity stack; displaying the second interface of the first application includes: when switching from the fourth interface to the second interface, determining that the second activity is an activity associated with the user interface displayed in response to the first user operation acting on the second control; when switching from the fourth interface to the second interface, the top activity of the first activity stack changes from the fourth activity to the second activity, the name of the fourth activity including the name of the application being different from the name of the second activity including the name of the application.

[0021] In some embodiments, the fourth interface is displayed after the third interface, and is the last interface displayed in the user interface of the second application. When the electronic device displays the fourth interface of the second application and then switches to display the second interface of the first application, the electronic device can record the first activity after the package name (i.e., the application name) changes, which is the second activity associated with the second interface of the first application. The recorded second activity can be the top activity of the first activity stack after the execution of the fast return method. That is, the electronic device can respond to the first user operation by popping at least two activities that enter after the second activity in the first activity stack and displaying the second interface.

[0022] In this application, the electronic device can quickly return to the user interface of the first application that was redirected. The first user interface that is opened conforms to the user's usage habits and provides a better user experience.

[0023] In one possible implementation, displaying the second interface of the first application includes: when switching from the fourth interface to the second interface, determining that the third activity is an activity associated with the user interface displayed in response to the first user operation acting on the third control, wherein the third activity is the earliest activity to enter the first activity stack among a plurality of activities whose name includes the name of the second application.

[0024] In some embodiments, the fourth interface is displayed after the third interface, and is the last interface displayed in the user interface of the second application. When the electronic device displays the fourth interface of the second application and then switches to display the second interface of the first application, the electronic device can record the first activity that enters the first activity stack before the package name change, which is the third activity associated with the third interface of the second application. The recorded third activity can be the top activity of the first activity stack after the execution of the fast return method. That is, the electronic device can respond to the first user operation, pop at least two activities that enter after the third activity in the first activity stack, and display the third interface.

[0025] In some embodiments, the third interface serves as the main interface of the second application. Electronic devices can quickly return to the main interface of the second application, conforming to user habits and providing a better user experience.

[0026] In one possible implementation, the method further includes: displaying the first interface and the second interface in a split-screen manner in response to a third user operation applied to the second control; or, the method further includes: displaying the first interface and the third interface in a split-screen manner in response to a fourth user operation applied to the third control.

[0027] In this application, the electronic device can respond to user operations by splitting the screen to display the currently displayed first interface and the user interface that was previously displayed on the previous level interface, making it more flexible to use.

[0028] In one possible implementation, popping at least two activities from the first activity stack in response to the first user operation includes: entering at least two activities in the first activity stack after popping the fifth activity and before the first activity in response to the first user operation, wherein the fifth activity is associated with a fifth interface, and the fifth interface is either the second interface or the third interface; popping the first activity and displaying the fifth interface.

[0029] In this application, when an electronic device pops at least two activities from the first activity stack, it can first pop the activity between the top activity of the first activity stack (i.e., the first activity) and the target fifth activity. At this time, the top activity remains unchanged, and the displayed user interface remains the first interface. Then, the first activity is popped, and the top activity of the stack becomes the fifth activity, and the electronic device displays the fifth interface. In other words, the user-visible user interface directly returns from the first interface to the fifth interface, avoiding problems such as flickering, white screen, and lag caused by multiple switching of the displayed user interface when there are many popped-up activities. This results in smoother performance and a better user experience.

[0030] In one possible implementation, the step of popping up at least two activities that entered the first activity stack after the fifth activity but before the first activity in response to the first user operation includes: in response to the first user operation, performing a destruction method on each of the at least two activities that entered the first activity stack after the fifth activity but before the first activity, wherein the at least two activities that entered the first activity stack after the fifth activity but before the first activity are in a destroyed state, the first activity is in a restored state, and the fifth activity is in a stopped state; popping up the first activity and displaying the fifth interface includes: performing a pause method on the first activity, wherein the first activity is in a paused state; performing a start method and a restart method on the fifth activity, wherein the fifth activity is in a start state; performing a restore method on the fifth activity, wherein the fifth activity is in a restored state; performing a stop method on the first activity, wherein the first activity is in a stopped state; and performing a destruction method on the first activity, wherein the first activity is in a destroyed state.

[0031] In this application, the electronic device only needs to execute the destruction method on at least two activities that enter the first activity stack after the fifth activity and before the first activity, instead of executing the following multiple methods every time the top activity of the stack is popped and the previous level interface is displayed: executing a pause method on the top activity of the stack, executing a start method, a restart method, and a restore method on the activity associated with the previous level interface, and executing a stop method and a destruction method on the top activity of the stack, which greatly reduces the amount of processing and reduces the power consumption of the device.

[0032] In one possible implementation, the method further includes: activating a first function in response to a fifth user operation; the user interface displayed is different in response to the first user operation when the area of ​​action of the first user operation is different, or the user interface displayed is different in response to the first user operation when the operation direction of the first user operation is different.

[0033] In this application, users can choose the implementation method of the quick return function. For example, the quick return user interface will be different when the area of ​​the first user operation is different according to the user's habits, or the quick return user interface will be different when the direction of the first user operation is different according to the user's habits, making it more flexible to use.

[0034] In one possible implementation, before popping at least two activities from the first activity stack in response to the first user action, the method further includes: determining that the number of activities included in the first activity stack is greater than or equal to a preset number threshold.

[0035] In one possible implementation, before popping at least two activities from the first activity stack in response to the first user action, the method further includes: determining that the application of the user interface associated with the activities included in the first activity stack is a preset application.

[0036] In one possible implementation, the method further includes: in response to a sixth user action, determining that the first application and the second application are preset applications.

[0037] In this application, users can choose the preset application for the quick return function, making it more flexible.

[0038] Secondly, embodiments of this application provide another method for quickly returning to an interface, applied to an electronic device. The method includes: displaying a first interface of a first application, the first interface being associated with a first activity, the first activity being the top activity of a first activity stack, the first activity stack including the first activity and a second activity; receiving a first user operation; in response to the first user operation, popping up at least two activities from the first activity stack, and displaying a second interface of the first application, the second interface being associated with the second activity.

[0039] In the above method, the electronic device can be applied to a first user operation, quickly returning to an interface that was opened before the previous level interface, making the user operation simple and convenient, and providing a better user experience.

[0040] In one possible implementation, before displaying the first interface of the first application, the method further includes: displaying the second interface of the first application, wherein the second activity is entered before the first activity enters the first activity stack.

[0041] In one possible implementation, when the first interface of the first application is displayed, the second activity is the bottom activity of the first activity stack.

[0042] In some embodiments, the second interface is the main interface of the first application. The electronic device can quickly return to the main interface of the first application, conforming to user habits and providing a better user experience.

[0043] In one possible implementation, before receiving the first user operation, the method further includes: receiving a first number of second user operations, the second user operations being used to return to the previous level interface of the currently displayed interface; the step of popping at least two activities from the first activity stack in response to the first user operation includes: when the first number of second user operations and the first user operation satisfy a first preset condition, in response to the first user operation, popping at least two activities from the first activity stack, the preset condition being that the difference between a first receiving time and the receiving time of the first user operation is less than or equal to a first duration, the first receiving time being the receiving time of the earliest second user operation among the first number of second user operations.

[0044] In some embodiments, when the time period for receiving multiple user operations (a first number of second user operations and a first user operation) is short, the device can quickly return to an interface that was previously opened in the previous interface. For example, if the electronic device receives three return operations in 2 seconds (such as swiping inward from the left edge of the screen), the electronic device can respond to the third return operation by popping at least two activities in the first activity stack and displaying an interface that was previously opened in the previous interface.

[0045] In one possible implementation, before receiving the first user operation, the method further includes: receiving a second number of second user operations, the second user operations being used to return to the previous level interface of the currently displayed interface; when the second number of second user operations meet a second preset condition, displaying a first control, the second preset condition being that the difference between a second receiving time and a third receiving time is less than or equal to a second duration, the second receiving time being the receiving time of the earliest second user operation among the second number of second user operations, and the third receiving time being the receiving time of the latest second user operation among the second number of second user operations; receiving the first user operation includes: receiving the first user operation applied to the first control.

[0046] In some embodiments, when the time period for continuously receiving multiple user operations (a second number of second user operations) is short, the electronic device may display a first control. The first control indicates the user interface to be displayed after the user performs a quick return operation, which is the first user operation applied to the first control. Then, in response to the quick return operation, the electronic device may pop at least two activities from a first activity stack and display an interface that was previously opened, i.e., the user interface indicated by the first control. In some embodiments, the first control indicates the user interface through included text; in other embodiments, the first control is an icon of the application indicating the user interface.

[0047] In one possible implementation, receiving the first user operation includes: receiving the first user operation applied to a first region, wherein the first region is different from the second region, the second region is the region where the second user operation is applied, and the second user operation is used to return to the previous level interface of the currently displayed interface.

[0048] In some embodiments, both the first region and the second region are located on the left side of the screen, with the second region located above the first region.

[0049] In one possible implementation, the first user operation and the second user operation have the same area of ​​effect but different directions of operation. The second user operation is used to return to the previous level of the currently displayed interface. In some embodiments, the second user operation is a horizontal swipe inward from the left edge of the screen, and the first user operation is a swipe inward from the left edge of the screen with the swipe direction diagonally upward.

[0050] In one possible implementation, the first interface includes a second control for indicating the first application; the step of popping at least two activities from the first activity stack and displaying the second interface of the first application in response to the first user operation includes: popping at least two activities that enter after the second activity in the first activity stack in response to the first user operation applied to the second control, and displaying the second interface.

[0051] In some embodiments, the second control is the icon of the first application.

[0052] In some embodiments, the method further includes: when displaying the first interface, displaying the second control in response to a sliding operation applied to a first area. In other embodiments, the method further includes: when displaying the first interface, displaying a portion of the content of the second control in response to a sliding operation applied to the first area and a sliding distance of a first distance; and displaying the entire content of the second control in response to a sliding operation applied to the first area and a sliding distance of a second distance, wherein the second distance is greater than the first distance. Optionally, the amount of content displayed by the second control is determined based on the sliding distance of the sliding operation. In other embodiments, the method further includes: when displaying the first interface, displaying the second control in response to a sliding operation applied to the first area and a sliding distance of a preset distance. The first area and the second area are different; the second area is the area where a second user operation is performed, and the second user operation is used to return to the previous level of the currently displayed interface.

[0053] In one possible implementation, the second interface includes a fourth control, and the method further includes: in response to a seventh user action performed on the fourth control, determining that the second interface is a user interface displayed in response to the first user action, wherein the first activity stack also includes at least one activity that was entered prior to the second activity.

[0054] In some embodiments, the first control is a newly added control to the second interface; in other embodiments, the first control is a control already existing in the first application.

[0055] In this application, users can select the user interface they have browsed as the user interface displayed in response to the first user's operation, making the operation more flexible.

[0056] In one possible implementation, the method further includes: in response to an eighth user operation, displaying the first interface and the second interface in a split-screen format.

[0057] In this application, the electronic device can respond to user operations by splitting the screen to display the currently displayed first interface and the user interface that was previously displayed on the previous level interface, making it more flexible to use.

[0058] In one possible implementation, the step of popping at least two activities from the first activity stack in response to the first user operation and displaying a second interface of the first application includes: entering at least two activities in the first activity stack after popping the second activity and before popping the first activity in response to the first user operation; popping the first activity and displaying the second interface.

[0059] In this application, when an electronic device pops at least two activities from a first activity stack, it can first pop the activity between the top activity of the first activity stack (i.e., the first activity) and the target second activity. At this point, the top activity remains unchanged, and the displayed user interface remains the first interface. Then, the first activity is popped again, this time with the second activity at the top of the stack, and the electronic device displays the second interface. In other words, the user-visible user interface directly returns from the first interface to the second interface, avoiding flickering, white screen, and lag issues caused by multiple switching of the displayed user interface when there are many popped-up activities. This results in smoother performance and a better user experience.

[0060] In one possible implementation, the step of popping up at least two activities that entered the first activity stack after the second activity but before the first activity in response to the first user operation includes: in response to the first user operation, performing a destruction method on each of the at least two activities that entered the first activity stack after the second activity but before the first activity, wherein the at least two activities that entered the first activity stack after the second activity but before the first activity are in a destroyed state, the first activity is in a restored state, and the second activity is in a stopped state; the step of popping up the first activity and displaying the second interface includes: performing a pause method on the first activity, wherein the first activity is in a paused state; performing a start method and a restart method on the second activity, wherein the second activity is in a start state; performing a restore method on the second activity, wherein the second activity is in a restored state; performing a stop method on the first activity, wherein the first activity is in a stopped state; and performing a destruction method on the first activity, wherein the first activity is in a destroyed state.

[0061] In this application, the electronic device only needs to execute the destruction method on at least two activities that enter the first activity stack after the second activity and before the first activity, instead of executing the following multiple methods every time the top activity of the stack is popped up and the previous level interface is displayed: executing a pause method on the top activity of the stack, executing a start method, a restart method, and a restore method on the activity associated with the previous level interface, and executing a stop method and a destruction method on the top activity of the stack, which greatly reduces the amount of processing and reduces the power consumption of the device.

[0062] In one possible implementation, the method further includes: activating a first function in response to a fifth user operation; the user interface displayed is different in response to the first user operation when the area of ​​action of the first user operation is different, or the user interface displayed is different in response to the first user operation when the operation direction of the first user operation is different.

[0063] In this application, users can choose the implementation method of the quick return function. For example, the quick return user interface will be different when the area of ​​the first user operation is different according to the user's habits, or the quick return user interface will be different when the direction of the first user operation is different according to the user's habits, making it more flexible to use.

[0064] In one possible implementation, before responding to the first user operation, popping at least two activities from the first activity stack, and displaying the second interface of the first application, the method further includes: determining that the number of activities included in the first activity stack is greater than or equal to a preset number threshold.

[0065] In one possible implementation, before responding to the first user operation, popping at least two activities of the first activity stack, and displaying the second interface of the first application, the method further includes: determining that the application of the user interface associated with the activities included in the first activity stack is a preset application.

[0066] In one possible implementation, the method further includes: in response to a ninth user operation, determining that the first application is a preset application.

[0067] In this application, users can choose the preset application for the quick return function, making it more flexible.

[0068] Thirdly, embodiments of this application provide an electronic device, including a transceiver, a processor, and a memory. The memory is used to store a computer program, and the processor calls the computer program to execute the method for quickly returning to the interface provided by the first to second aspects of the embodiments of this application, as well as any implementation of the first to second aspects.

[0069] Fourthly, embodiments of this application provide a computer storage medium storing a computer program, which, when executed by a processor, implements the method for quickly returning to the interface provided by the first to second aspects of the embodiments of this application, and any implementation of the first to second aspects.

[0070] Fifthly, embodiments of this application provide a computer program product that, when run on an electronic device, causes the electronic device to execute the method for quickly returning to the interface provided by the first to second aspects of the embodiments of this application, and any implementation thereof.

[0071] Sixthly, embodiments of this application provide an electronic device that includes the methods or apparatus described in any embodiment of this application. The electronic device is, for example, a chip.

[0072] It should be understood that the descriptions of technical features, technical solutions, beneficial effects, or similar language in this application do not imply that all features and advantages can be achieved in any single embodiment. Rather, it is understood that the description of a feature or beneficial effect means that a specific technical feature, technical solution, or beneficial effect is included in at least one embodiment. Therefore, the descriptions of technical features, technical solutions, or beneficial effects in this specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions, and beneficial effects described in this embodiment can be combined in any suitable manner. Those skilled in the art will understand that embodiments can be implemented without one or more specific technical features, technical solutions, or beneficial effects of a particular embodiment. In other embodiments, additional technical features and beneficial effects may be identified in specific embodiments that do not embody all embodiments. Attached Figure Description

[0073] The accompanying drawings used in the embodiments of this application are described below.

[0074] Figure 1 This is a schematic diagram of an Activity being pushed onto and popped off a stack according to an embodiment of this application;

[0075] Figure 2A This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0076] Figure 2B This is a schematic diagram of the software architecture of an electronic device provided in an embodiment of this application;

[0077] Figures 3-25 These are schematic diagrams illustrating some user interface embodiments provided in this application.

[0078] Figure 26 This is a flowchart illustrating some methods for quickly returning to the interface provided in the embodiments of this application;

[0079] Figures 27-28 This is a schematic diagram illustrating the popping of some Activities provided in the embodiments of this application;

[0080] Figure 29 This example illustrates a schematic diagram of the lifecycle of an Activity. Detailed Implementation

[0081] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.

[0082] This application provides a method for quickly returning to an interface, applied to an electronic device. In response to a single return operation, the electronic device can pop multiple activities from the activity stack to perform operations that return to multiple user interfaces, thus achieving a quick return to the interface. This avoids the user having to perform multiple return operations, making the operation more convenient and improving the user experience.

[0083] In this application, the back operation includes, but is not limited to: operations acting on the back button built into the application, operations acting on the back button in three-button navigation, back operations in gesture navigation (such as swiping inward from the left or right edge of the screen), voice (such as uttering the sound "back"), and gestures (such as spreading your fingers and waving them from left to right). The aforementioned back button can be a virtual button or a physical button.

[0084] In this application, an electronic device can run at least one application, and an application can include at least one application activity. Optionally, an application activity can correspond to a user interface. For ease of description, the embodiments of this application will simply refer to an application activity as an activity or application activity. An application activity can be an activity in the Android system, or it can be an application activity in other operating systems such as iOS. This application does not limit this.

[0085] The following examples use an Activity in the Android system as an example to illustrate the application activity.

[0086] In Android, an Activity is the interface through which users and applications interact. An Activity is where applications draw their user interface. An Activity typically fills the screen, but it can also be smaller and float on top of other Activities. An Activity is something users can directly interact with; it represents a user interface, and can be understood as one Activity corresponding to one user interface. An application can contain multiple user interfaces, which can also be understood as one application containing multiple Activities. When operating an application, it is sometimes necessary to call multiple Activities to complete a task. Each Activity can launch another Activity to perform different operations. For example, after a user launches an email application, they can first enter the application's main interface. The Activity corresponding to the main interface can launch other Activities to provide user interfaces for tasks such as composing and opening emails.

[0087] During application operation, the Android system can manage Activities using a stack, also known as an Activity Stack or Task. Tasks facilitate the linear recording of Activity instances. In the Android open-source project, a Task is actually a dynamic array (ArrayList). The characteristics of a stack are pushing (or entering) and popping, following a Last-In-First-Out (LIFO) principle; that is, an Activity pushed onto the stack first is popped from the stack before any later pushed. A Task can include at least one Activity. Multiple Activities within a Task can be from the same application or from different applications. The first Activity pushed onto a Task and the last popped from it can be considered the bottom-level Activity within the Task, often called the root Activity. The last Activity pushed onto a Task and the first popped from it can be considered the top-level Activity within the Task, often called the top Activity.

[0088] In some embodiments, the root Activity typically corresponds to the application's main screen. The top Activity is usually the running Activity that the user is interacting with; it can also be called the foreground activity. The user interface corresponding to the foreground activity is visible to the user.

[0089] In this application, each time a new Activity is launched, that Activity can be pushed onto a Task, becoming the top Activity of the Task. The user can trigger a back action to return to an Activity that was pushed onto the Task before the top Activity, until the root Activity of the Task is popped. Therefore, the Task can also be called the back stack. A specific example is attached. Figure 1 As shown.

[0090] Please see Figure 1 , Figure 1 This example illustrates a schematic diagram of Activity pushing and popping from a stack.

[0091] like Figure 1As shown, a user can open the first interface corresponding to Activity1 on their electronic device. For example, when a user clicks an application icon on the device's home screen, the device displays the main interface of the application corresponding to that icon. At this time, Activity1 is pushed onto the back stack, becoming the top Activity. The first interface is visible and interactive to the user, and Activity1 is the foreground activity. The user can then open the second interface corresponding to Activity2 on their electronic device. For example, when a user clicks a category option on the main interface, the device displays the interface of the application corresponding to that category. At this time, Activity2 is pushed onto the back stack, becoming the top Activity. The first interface is not interactive to the user, while the second interface is visible and interactive to the user, and Activity2 is the foreground activity.

[0092] like Figure 1 As shown, users can perform a back operation based on their electronic device. For example, when a user clicks the virtual back button on the second screen, the electronic device returns to the first screen. At this time, Activity2 is popped from the back stack, and Activity1 becomes the top Activity on the back stack again. The first screen becomes visible and interactive again, and Activity1 becomes the foreground activity again.

[0093] The electronic devices involved in the embodiments of this application may be user terminal devices such as mobile phones, tablets, handheld computers, and personal digital assistants (PDAs), smart home devices such as smart TVs and smart cameras, wearable devices such as smart bracelets, smartwatches, and smart glasses, or other desktop, laptop, notebook, ultra-mobile personal computer (UMPC), netbook, smart screen, and other devices.

[0094] The following describes an exemplary electronic device 100 according to an embodiment of this application.

[0095] Please see Figure 2A , Figure 2A An exemplary schematic diagram of the hardware structure of electronic device 100 is shown.

[0096] like Figure 2AAs shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0097] 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.

[0098] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

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

[0100] 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.

[0101] 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.

[0102] 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.

[0103] 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.

[0104] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0105] 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.

[0106] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0107] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0108] 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.

[0109] Internal memory 121 can be used to store computer executable program code, which includes instructions. 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. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located in the processor.

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

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

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

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

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

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

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

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

[0118] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. For example, a layered architecture software system can be an Android system or an HMS system. This application embodiment uses a layered architecture Android system as an example to illustrate the software structure of the terminal.

[0119] Figure 2B This is a software structure block diagram of the electronic device 100 according to an embodiment of this application.

[0120] 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, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0121] The application layer can include a series of application packages.

[0122] like Figure 2B As shown, the application package may include applications such as camera, gallery, music, browser, email, shopping app, video app, social app, and messaging app.

[0123] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0124] like Figure 2B As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0125] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0126] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0127] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0128] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0129] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0130] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0131] The application framework layer may also include an Activity Manager Service (AMS). AMS is a system service in Android that controls the proper scheduling and execution of different applications within the system. AMS's main responsibilities include uniformly scheduling Activities of various applications, managing application processes, managing memory, scheduling Tasks, and querying the current system running status, among others. AMS can also be used to execute the methods for quickly returning to the UI provided in this application, such as executing attached... Figures 26-28 The process is shown below.

[0132] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0133] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0134] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0135] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0136] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0137] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0138] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0139] A 2D graphics engine is a graphics engine for 2D drawing.

[0140] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0141] The following example, using the scenario of returning to the desktop from the main interface of a shopping application, illustrates the workflow of the software and hardware of electronic device 100.

[0142] When the display screen 194 shows the main interface of the shopping application, if the pressure sensor 180A and / or the touch sensor 180K receive a swipe operation from the left edge of the screen inward (i.e., a gesture navigation return operation), a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes this swipe operation into a raw input event (including swipe trajectory, swipe coordinates, timestamp, etc.). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. The shopping application can call the interface of the application framework layer, and then, by calling the display driver of the kernel layer, display the desktop of the electronic device 100 through the display screen 194.

[0143] The following describes the application scenarios involved in the embodiments of this application and the user interface embodiments under these scenarios.

[0144] Please see Figure 3 , Figure 3 An example diagram of a user interface is shown.

[0145] like Figure 3As shown, the electronic device can display a user interface 200, which can be the desktop of the electronic device. The user interface 200 can include application icons 220, such as video application 220A, shopping application 220B, social application 220C, gallery 220D, browser 220E, music 220F, email 220G, phone 220H, messaging 220I, and camera 220J, and may also include icons of other applications; this application does not limit this. The electronic device can respond to a user operation (e.g., touch operation) on any application icon, launching the application corresponding to the icon and displaying the main interface of the application corresponding to the icon.

[0146] In some embodiments, assuming a user wants to use the shopping app, the electronic device can receive a user action (e.g., a touch operation) on the shopping app 220B, and in response to the user action, launch the shopping app and display... Figure 4 The user interface 300 shown in (A) is shown.

[0147] Please see Figure 4 , Figure 4 An example is shown in the schematic diagram of a user interface for interface navigation.

[0148] like Figure 4 As shown in (A), the electronic device can display a user interface 300. The user interface 300 may include a search bar 310, shopping option icons 320, and page options 330, wherein:

[0149] Search bar 310 can be used to search for products a user wants to view in a shopping application. Search bar 310 may include an input box 310A and a search control 310B. Input box 310A allows the user to enter the name of the product they want to view. The electronic device can respond to user actions (e.g., touch operations) on search control 310B, search for the entered product name in the shopping application, and display the corresponding search results. For example, if the input in input box 310A is "trousers," the electronic device can display products in the shopping application that include "trousers," such as those with accompanying accessories. Figure 4 The user interface 420 shown in (C) is shown.

[0150] Shopping option icons 320 may include, for example, summer clothing 320A, fresh fruit 320B, travel services 320C, lifestyle services 320D, electrical appliances 320E, and pharmaceuticals and health products 320F, etc., and this application is not limited thereto. Electronic devices can respond to user actions (e.g., touch operations) on any shopping option icon, displaying the user interface of the shopping option corresponding to the icon.

[0151] Page options 330 may include, for example, homepage option 330A, category option 330B, shopping cart option 330C, and my options 330D, etc., and this application does not limit this. When homepage option 330A is selected in user interface 300, it indicates that user interface 300 is the homepage of the shopping application, i.e., the main interface of the shopping application. The electronic device can respond to user operations (e.g., touch operations) on the icons of any option in page options 330, displaying the shopping interface for the option corresponding to the icon.

[0152] In some embodiments, assuming a user wants to view "summer clothing," the electronic device can receive a user operation (e.g., a touch operation) applied to the summer clothing 320A, and in response to the user operation, display a shopping interface corresponding to "summer clothing," for example... Figure 4 The user interface 410 shown in (B) is shown.

[0153] like Figure 4 As shown in (B), the electronic device can display a user interface 410. The user interface 410 may include a back button 411, a page theme 412 (i.e., "Summer Clothing"), shopping option icons 413, and page options 414, wherein:

[0154] The back button 411 can be used to return to the previous level of the current interface. The electronic device can receive user operations (such as touch operations) applied to the back button 411 and, in response to the user operation, display the previous level of the user interface 410.

[0155] Shopping option icons 413 may include, for example, tops 413A, trousers 413B, skirts 413C, cosmetics 413D, shoes 413E, and bags 413F, etc., and this application is not limited thereto. Electronic devices can display the user interface of the shopping option corresponding to any option icon in response to a user operation (e.g., a touch operation) on that icon.

[0156] Page options 414 may include, for example, homepage option 414A, category option 414B, and activity option 414C, etc., and this application is not limited thereto. When category option 414B is selected in the user interface 410, it indicates that the user interface 410 is a category interface for summer clothing. The electronic device can respond to user operations (e.g., touch operations) on the icon of any option in page options 414, displaying the shopping interface for the option corresponding to the icon.

[0157] In some embodiments, assuming a user wants to view "trousers," the electronic device can receive user actions (e.g., touch operations) applied to trousers 413B, and in response to the user actions, display a shopping interface corresponding to "trousers," for example... Figure 4 The user interface 420 shown in (C) is shown.

[0158] like Figure 4 As shown in (C), the electronic device can display a user interface 420. The user interface 420 may include a back button 421, a search bar 422, and a product list 423, wherein the back button 421 is similar to the back button 411 shown in the user interface 410, and will not be described again.

[0159] Search bar 422 can be used to search for products that a user wants to view in a shopping app. The fact that "trousers" has been entered into search bar 422 in user interface 420 indicates that user interface 420 includes a list of products in the shopping app whose product information includes "trousers," i.e., product list 423.

[0160] The product list 423 may include information on multiple products, such as product names: Pants A (not shown), Pants B (not shown), Pants C (not shown), Pants D (not shown), Pants E, Pants F, Pants G, and Pants H. The electronic device can receive user actions (e.g., touch actions) applied to any of the products, and in response to the user actions, display detailed information about the product corresponding to that option.

[0161] In some embodiments, assuming a user wants to view "Pants G", the electronic device can receive a user operation (e.g., a touch operation) on option 423A of "Pants G", and in response to the user operation, display detailed information about "Pants G", such as... Figure 4 The user interface 430 shown in (D) is shown.

[0162] like Figure 4 As shown in (D), the electronic device can display a user interface 430. The user interface 430 may include a back button 431, recommended products 432, detailed information 433 of the product "Pants G", and shopping options. The back button 431 is similar to the back button 411 shown in the user interface 410, and will not be described again.

[0163] Recommended Product 432 is used to display images and prices of other products recommended based on "Pants G," and may include multiple options for these other products, such as Product Option 432A, Product Option 432B, Product Option 432C, and Product Option 432D. The electronic device can respond to a user action (e.g., touch operation) on any option and display detailed information about the product corresponding to that option.

[0164] The detailed information 433 for the product "Pants G" is not shown in the user interface 430. It may include, but is not limited to, the following: price information, shipping costs, monthly sales volume, shipping city, product services, product size and color, product parameters, pictures from multiple angles, and size information.

[0165] Shopping options may include, but are not limited to, stores, favorites, add to cart, and buy now.

[0166] In some embodiments, assuming a user wants to view the product corresponding to product option 432D, the electronic device can receive a user operation (e.g., a touch operation) applied to product option 432D, and in response to the user operation, display detailed information about the product corresponding to that option, for example... Figure 4 The user interface 510 shown in (E) is shown.

[0167] like Figure 4 As shown in (E), the electronic device can display a user interface 510, which is similar to the user interface 430 and may include a back button, detailed information about the product "Dress A", shopping options and recommended products (not shown), etc., which will not be described in detail here.

[0168] The user interface displayed on an electronic device can be from Figure 4 User interface 430 shown in (D) jumps to Figure 4 The user interface 510 shown in (E) can be understood as a process of jumping from one product's user interface to another. During the use of the shopping application, a user may jump between product user interfaces multiple times, for example, from... Figure 4 The user interface 510 of "Dress A" shown in (E) jumps to Figure 4 The user interface 520 for "Dress B" shown in (F) is similar to user interface 510 and user interface 430, and will not be described again.

[0169] In some embodiments, after browsing multiple user interfaces, a user may want to return to a previously viewed user interface, such as an electronic device display. Figure 4 When the user interface 520 shown in (F) appears, the user wants to return to the main interface of the shopping app: Figure 4 User interface 300 is shown in (A). Users typically need to perform multiple back operations to navigate to each previously viewed user interface to achieve their goal, such as repeatedly clicking the back button in a shopping app's user interface or repeatedly performing the back operation in gesture navigation. Specific examples are attached. Figure 5 As shown.

[0170] The following examples illustrate the back operation as a gesture navigation operation (assuming it is a swipe from the left edge of the screen inwards).

[0171] Please see Figure 5 , Figure 5 An exemplary diagram of a return interface is shown.

[0172] like Figure 5As shown in (A), when the electronic device displays the user interface 520, it can receive a return operation (e.g., a swipe operation from the left edge of the screen inwards), and in response to the return operation, the previous level interface of the user interface 520 is displayed: Figure 5 User interface 510 is shown in (B). The above process can be understood as the user performing one return operation, and the electronic device returning to one user interface. When the electronic device displays user interface 520, the user can perform five consecutive return operations, and the electronic device can respond to these five return operations by sequentially returning and displaying: Figure 5 User interface 510 shown in (B) Figure 5 User interface 430 shown in (C) Figure 5 User interface 420 shown in (D) Figure 5 The user interface 410 shown in (E) Figure 5 User interface 300 (F) is shown. This means the user needs to perform five back operations, with the electronic device displaying four different user interfaces before finally returning to the main interface of the shopping application (user interface 300) from user interface 520. This makes the user operation cumbersome and results in a poor user experience.

[0173] In this application, the electronic device can return to multiple user interfaces in response to a single return operation, reducing the number of times the user needs to perform the return operation and making the operation more convenient.

[0174] In some embodiments, when the duration of receiving a first preset number of return operations is less than or equal to a first preset duration, the electronic device may return multiple user interfaces.

[0175] For example, the electronic device displays an attached Figure 5 When the user interface 520 shown in (A) is active, the user can perform two return operations within 1 second. The electronic device can respond to these two return operations by returning to the display sequentially: Figure 5 User interface 510 shown in (B) Figure 5 User interface 430 is shown in (C). When the electronic device displays user interface 430, the user can perform a return operation again within 1 second. The electronic device can respond to this return operation and directly return to the main interface of the shopping application. Figure 5 User interface 300 is shown in (F). That is, the electronic device can return three user interfaces in response to this return operation: Figure 5 User interface 420 shown in (D) Figure 5 The user interface 410 shown in (E) Figure 5 The user interface 300 is shown in (F), but the electronic device only displays the user interface 300.

[0176] The above example illustrates a scenario where the first preset number of times is 3 and the first preset duration is 2 seconds. The electronic device can respond to the third return operation executed within 2 seconds, returning to multiple user interfaces. In the example above, the user only needs to perform 3 return operations to achieve the desired result. Figure 5 The interface that requires five back operations to return to (User Interface 300) reduces the number of steps the user needs to take. Furthermore, in the example above, the electronic device actually returns to five user interfaces, but only displays three, avoiding issues like flickering, white screens, and lag caused by multiple rapid back operations, resulting in a better user experience.

[0177] Not limited to the above example, the electronic device may return multiple user interfaces when the number of return operations received within a first preset time period is greater than or equal to a first preset number.

[0178] Not limited to the above examples, the values ​​of the first preset duration and the first preset number of times can also be other values, and this application does not limit them.

[0179] In some embodiments, when the duration of receiving a second preset number of normal return operations is less than or equal to a second preset duration, the electronic device may display a prompt message, and the user may perform a quick return operation based on the prompt message. The normal return operation is used to return to the previous level interface of the current interface (also known as returning to a user interface), while the quick return operation is used to return to multiple user interfaces. Specific examples are attached. Figure 6 As shown.

[0180] Please see Figure 6 , Figure 6 An example is shown in the user interface diagram of yet another return interface.

[0181] like Figure 6 As shown in (A), when the electronic device displays the user interface 520, the user can perform two return operations within 1 second. The electronic device can respond to these two return operations by returning to the display sequentially: Figure 6 User interface 510 shown in (B) Figure 6 The user interface 430 is shown in (C). Furthermore, in response to a second return operation performed within 1 second, the electronic device can display a first prompt message 434 on the returned user interface 430. The first prompt message 434 may include the text "Return to main interface." In some embodiments, the first prompt message 434 is used to indicate the user interface displayed after the user performs a quick return operation: the main interface of the current application (i.e., the shopping application). The electronic device can receive a click operation on the first prompt message 434, i.e., it can receive a quick return operation, and in response to the quick return operation, directly return to and display the main interface of the shopping application. Figure 6User interface 300 is shown in (F). That is, the electronic device can return to three user interfaces in response to a quick return operation: Figure 6 User interface 420 shown in (D) Figure 6 The user interface 410 shown in (E) Figure 6 The user interface 300 is shown in (F), but the electronic device only displays the user interface 300.

[0182] like Figure 6 As shown, users only need to perform two normal return operations and one quick return operation to achieve the desired result. Figure 5 The interface that requires five normal back operations to return to (User Interface 300) reduces the number of steps the user needs to take. Furthermore, in the example above, the electronic device actually returns to five user interfaces, but only displays three, avoiding flickering, white screen, and lag issues caused by multiple rapid back operations, resulting in a better user experience.

[0183] Not limited to the above example, the electronic device may also display a prompt message for quick return operation when the number of return operations received within a second preset time period is greater than or equal to the second preset number.

[0184] Figure 6 Taking a second preset number of times of 2 times and a second preset duration of 1 second as an example, the specific implementation may also take other values ​​for the second preset duration and the second preset number of times, and this application does not limit them.

[0185] Beyond the quick return operations listed above, quick return operations can also be other user operations that differ from regular return operations. These differences include, but are not limited to, differences in the area of ​​application, the control applied, and the operation method. Specific examples are attached. Figure 7 , Figure 9 As shown.

[0186] Please see Figure 7 , Figure 7 An example diagram of a return operation is shown. Figure 7 (A) shows a schematic diagram of a normal return operation. Figure 7 (B) shows a schematic diagram of the fast return operation.

[0187] like Figure 7As shown, the effective areas of the quick return operation and the normal return operation can be different. The effective area of ​​the normal return operation can be return area 1, while the effective area of ​​the quick return operation can be return area 2. Both return area 1 and return area 2 are located on the left side of the screen, with return area 1 located above return area 2. However, this is not a limitation; in specific implementations, return area 1 can also be located on the left side of the screen, and return area 2 can be located on the right side of the screen. This application does not impose any restrictions on the specific location of the effective areas. An example of the quick return operation is attached. Figure 8 As shown.

[0188] Please see Figure 8 , Figure 8 An exemplary diagram of another return interface is shown.

[0189] like Figure 8 As shown in (A), when the electronic device displays the user interface 520, it can receive a quick return operation (a swipe operation on the return area 2). In response to the quick return operation, it directly returns to the main interface of the shopping application. Figure 8 The user interface 300 is shown in (F). That is, the electronic device can return to five user interfaces in response to a quick return operation: Figure 8 User interface 510 shown in (B) Figure 8 User interface 430 shown in (C) Figure 8 User interface 420 shown in (D) Figure 8 The user interface 410 shown in (E) Figure 8 The user interface 300 is shown in (F), but the electronic device only displays the user interface 300.

[0190] like Figure 8 As shown, users only need to perform a quick return operation once to achieve the attached... Figure 5 The interface that requires five normal back operations to return to (User Interface 300) reduces the number of steps the user needs to take. Furthermore, in the example above, the electronic device actually returns to five user interfaces, but only displays one, avoiding issues like flickering, white screens, and lag caused by multiple rapid back operations, resulting in a better user experience.

[0191] Please see Figure 9 , Figure 9 An example diagram of yet another return operation is shown. Figure 9 (A) shows a schematic diagram of a normal return operation. Figure 9 (B) shows a schematic diagram of the fast return operation.

[0192] like Figure 9As shown, the effective area of ​​the quick return operation and the normal return operation can be the same (both are return areas), but the operation methods can be different. The normal return operation can be a horizontal swipe from the left edge of the screen inwards, while the quick return operation can be a swipe from the left edge of the screen inwards inwards in a diagonally upward direction. It is not limited to this; the swipe distances of the normal return operation and the quick return operation can also be different. This application does not limit the specific operation method. Examples and appendices of the quick return operation are provided. Figure 8 Similarly, the quick return action is replaced by a swipe from the left edge of the screen inwards, with the swipe direction being diagonally upwards.

[0193] In some embodiments, the electronic device may display a prompt message, based on which the user can perform a quick return operation. Exemplarily, the prompt message indicates at least one of the following: the area of ​​effect of the quick return operation, the control used, the operation method, the return interface, and the application corresponding to the return interface; specific examples are attached. Figures 10-11 , Figures 15-16 As shown.

[0194] Please see Figure 10 , Figure 10 An example diagram of yet another return operation is shown.

[0195] like Figure 10 As shown in (A), when the electronic device displays the user interface 520, it can receive a swipe operation applied to the return area 2 with a swipe distance of a first distance. In response to this swipe operation, the electronic device can display a portion of the content of the second prompt information 521 on the user interface 520. In some embodiments, the second prompt information 521 is used to instruct the user to return to the displayed user interface after performing a quick return operation: the main interface of the shopping application, for example, the second prompt information 521 is the icon of the shopping application. The amount of content displayed in the second prompt information 521 is determined according to the swipe distance of the swipe operation. The electronic device can continue to receive the aforementioned swipe operation applied to the return area 2, but at this time the swipe distance changes to a second distance, which is greater than the first distance. In response to this swipe operation, the electronic device can display the entire content of the second prompt information 521 on the user interface 520, as detailed in [link to documentation]. Figure 10 The user interface 520 shown in (B) is shown.

[0196] like Figure 10 As shown in (C), the electronic device can receive user operations (such as touch operations, swipe operations, etc.) applied to the second prompt information 521, that is, it can receive quick return operations and, in response to quick return operations, directly return to display the main interface of the shopping application: Figure 8 The user interface 300 is shown in (F).

[0197] Please see Figure 11 , Figure 11 An example diagram of yet another return operation is shown.

[0198] like Figure 11 As shown in (A), when the electronic device displays the user interface 520, it can receive a sliding operation applied to the return area 2 with a sliding distance of a first distance, at which time the user interface 520 remains unchanged. The electronic device can continue to receive the aforementioned sliding operation applied to the return area 2, but this time the sliding distance changes to a second distance, which is greater than the first distance. In response to this sliding operation, the electronic device can display a second prompt message 521 on the user interface 520, specifically as follows: Figure 11 As shown in (B), the electronic device can continue to receive the sliding operation applied to the return area 2, but the sliding distance is now changed to a third distance, which is greater than the second distance. Therefore, it can receive a fast return operation, as detailed below. Figure 11 As shown in (C). In response to the quick return operation, the electronic device can directly return to the main interface of the shopping application: Figure 8 The user interface 300 is shown in (F).

[0199] In some embodiments, a user can perform specific actions on the user interface while browsing it (this can be referred to as "favoriting the user interface"). The favorited user interface is used to return to the display in response to a quick return operation. Specific examples are as follows. Figure 12 As shown.

[0200] Please see Figure 12 , Figure 12 An exemplary diagram of a particular operation is shown.

[0201] like Figure 12 As shown, the user interface 420 displayed by the electronic device may also include a newly added favorites option 424. The electronic device may determine, in response to a user operation (e.g., a touch operation) acting on the favorites option 424, that the currently displayed user interface 420 is the user interface to be returned to in response to a quick return operation. Understandably, the electronic device may display the favorites option 424 in the user interfaces of all or some of the installed applications, or in the entire user interface or a portion of the user interface of a single application.

[0202] Not limited to this, the user interface can also be collected using existing controls in the application, such as appendices. Figure 8 In the user interface 510 shown in (B), the electronic device can determine that the currently displayed user interface 510 is a return interface in response to a user operation (e.g., a touch operation) performed on the shopping option "favorites".

[0203] In this application, any user interface displayed on the electronic device can be saved.

[0204] In some embodiments, the number of user interfaces that can be saved may be less than or equal to a preset maximum number. Optionally, the electronic device may determine a first number of user interfaces recently saved by the user as user interfaces corresponding to a first number of types of quick return operations, where the first number is equal to the maximum number. For example, assuming that the user has saved user interfaces A, B, and C in sequence while using application A, and assuming that the maximum number is 2, the electronic device may determine user interfaces B and C as user interfaces corresponding to two types of quick return operations.

[0205] In addition to the collection operations listed above, in specific implementations, users can also collect user interfaces through gesture operations such as clenching a fist. This application does not limit the specific implementation method of the collection operation.

[0206] Beyond the scenarios listed above, in practical implementations, electronic devices can also preset a return interface. For example, the preset return interface could be the user interface the first time the application is opened (such as the application's main interface). Electronic devices can also determine the return interface according to preset rules, such as recording the browsing duration of the user interface; user interfaces with a browsing duration greater than or equal to a preset browsing duration are the user interfaces displayed when a quick return operation is performed.

[0207] In some embodiments, the quick return operation can include multiple types, and different types of quick return operations correspond to different user interfaces displayed upon return. Different types of quick return operations may have different operating areas, different operating controls, different operation methods, etc., for example, but not limited to, different scopes, different controls, and different operation methods. Specific examples are attached. Figures 13-16 As shown.

[0208] The following examples illustrate fast return operations, which include two types: a first fast return operation and a second fast return operation.

[0209] Please see Figure 13 , Figure 13 An example diagram of yet another return operation is shown.

[0210] like Figure 13 As shown, the fast return operation can include two types: the first fast return operation and the second fast return operation. These two types of operations can have different scopes, such as... Figure 13 As shown in (A), the effective area of ​​the first fast return operation can be return area 3, as follows: Figure 13As shown in (B), the effective area of ​​the second fast return operation can be return area 4. The effective area of ​​the normal return operation can be return area 1, where return area 1 is located above return area 3 and return area 4, and return area 3 is located above return area 4. However, this is not a limitation. In specific implementations, return area 3 can also be located on the lower left side of the screen, and return area 4 can be located on the lower right side of the screen. This application does not limit the specific location of the effective area.

[0211] Please see Figure 14 , Figure 14 An example diagram of yet another return operation is shown.

[0212] like Figure 14 As shown, the fast return operation can include two types: the first fast return operation and the second fast return operation. The scope of the normal return operation, the first fast return operation, and the second fast return operation can be the same (both are return areas), but their operation methods can differ, such as... Figure 14 As shown in (A), the first quick return operation can be an operation that involves swiping inward from the left edge of the screen in a diagonally upward direction, such as... Figure 14 As shown in (B), the second quick return operation can be a swipe from the left edge of the screen inwards in a diagonally downward direction, while the normal return operation can be a swipe from the left edge of the screen inwards horizontally.

[0213] Please see Figure 15 , Figure 15 An example diagram of yet another return operation is shown.

[0214] like Figure 15 As shown in (A), when the electronic device displays the user interface 520, it can receive a sliding operation applied to the return area 2 with a sliding distance of a first distance, at which time the user interface 520 remains unchanged. The electronic device can continue to receive the aforementioned sliding operation applied to the return area 2, but this time the sliding distance changes to a second distance, which is greater than the first distance. In response to this sliding operation, the electronic device can display a third prompt message 522A, a fourth prompt message 522B, and a fifth prompt message 522C on the user interface 520, as detailed below. Figure 15 As shown in (B). These three prompts correspond to three types of quick return operations, and may include icons and text corresponding to the return interface. The third prompt 522A indicates the return interface as the main interface of the shopping application: user interface 300; the fourth prompt 522B indicates the return interface as the user interface 420 that is saved through the newly added favorites option 424 in Figure 12; and the fifth prompt 522C indicates the return interface as the user interface 510 that is saved through the existing favorites option 511 of the shopping application.

[0215] like Figure 15 As shown in (C), the electronic device can continue to receive the above-mentioned sliding operation. At this time, the sliding direction of the operation changes from horizontal to diagonally upward, and acts on the third prompt message 522A, that is, it can receive the first quick return operation. In response to the first quick return operation, it directly returns to the display user interface 300. Not limited to this, the electronic device can also receive sliding operations for the fourth prompt message 522B or the fifth prompt message 522C to return to the corresponding return interface.

[0216] Please see Figure 16 , Figure 16 An example diagram of yet another return operation is shown.

[0217] like Figure 16 As shown in (A), when the electronic device displays the user interface 520, it can respond to a sliding operation on the return area 2 and display a third prompt message 522A, a fourth prompt message 522B, and a fifth prompt message 522C on the user interface 520. (Detailed description follows.) Figure 15 The prompts are consistent with the prompts. The electronic device can receive user actions applied to any prompt, meaning it can receive quick return actions and, in response, directly return to the return interface corresponding to the displayed and applied prompt. For example, the electronic device can receive a click action applied to the third prompt 522A, meaning it can receive a first quick return action and, in response, directly return to the displayed user interface 300. See the example below for details. Figure 16 (B)

[0218] In some embodiments, the electronic device may respond to user operations by displaying a split-screen view of the current interface and the user interface that was previously opened in the previous interface, as shown in the attached figure. Figures 17-18 As shown.

[0219] Please see Figure 17 , Figure 17 A schematic diagram illustrating an example of a split-screen user interface embodiment is shown.

[0220] like Figure 17 As shown in (A), the electronic device can display a user interface 520, which may include a third prompt message 522A, a fourth prompt message 522B, and a fifth prompt message 522C. The method for triggering the display of the prompt messages is described above. Figure 16 For an explanation of the prompt message, please refer to the appendix. Figure 15 The electronic device can receive a drag operation on the fifth notification message 522C, which drags the fifth notification message 522C to the top of the screen. In response to this drag operation, the electronic device can display a split-screen interface, as shown in the example below. Figure 17 As shown in (B).

[0221] like Figure 17 As shown in (B), the split-screen interface displayed by the electronic device may include two windows: a first window 1810 and a second window 1820, and a movement control 1830 between these two windows. The first window 1810 is used to display the fifth prompt message 522C, the second window 1820 is used to display the user interface 520 (only a portion is shown), and the movement control 1830 is used to adjust the relative size of the first window 1810 and the second window 1820. For example, when the movement control 1830 is moved upwards, the first window 1810 becomes smaller, and the second window 1820 becomes larger. When the electronic device detects that the touch operation (which can also be understood as the aforementioned drag operation) acting on the fifth prompt message 522C has been canceled, it can display the return interface corresponding to the fifth prompt message 522C in the first window 1810: the user interface 510, for details. Figure 17 (C). That is, the electronic device detects the quick return operation corresponding to the fifth prompt information 522C in the first window 1810, so it can directly return to the return interface corresponding to the fifth prompt information 522C in the first window 1810.

[0222] In some embodiments, the user can also Figure 17 In the user interface 520 shown in (C), if the third prompt message 522A or the fourth prompt message 522B is dragged to the first window 1810, the electronic device can display the return interface corresponding to the dragged prompt message in the first window 1810, and display the fifth prompt message 522C on the first window 1810 or the second window 1820.

[0223] In some embodiments, the user can also Figure 17 In the user interface 520 shown in (C), if the third prompt message 522A or the fourth prompt message 522B is clicked, the electronic device can display the return interface corresponding to the clicked prompt message in the second window 1820.

[0224] In some embodiments, the electronic device may receive a quick return operation applied to the second window 1820, such as a touch operation applied to the third prompt information 522A, and in response to the touch operation, return to display the return interface corresponding to the third prompt information 522A, or a touch operation applied to the fourth prompt information 522B, and in response to the touch operation, return to display the return interface corresponding to the fourth prompt information 522B.

[0225] Please see Figure 18 , Figure 18 A schematic diagram of yet another embodiment of a split-screen user interface is shown as an example. Figure 18 The following explanation will be based on an electronic device equipped with a foldable display screen (referred to as a foldable screen).

[0226] like Figure 18 As shown, the foldable screen can be a flexible foldable screen, which can include a first display area and a second display area on both sides of the bending line. The foldable screen can be bent along the bending line. Exemplarily, the foldable screen can be in an unfolded state or a bent state. The foldable screen is in an unfolded state when the bending angle is 180 degrees, and in a bent state when the bending angle is greater than or equal to 0 degrees and less than 180 degrees. It is not limited to these, and may also include other physical states and corresponding angles. This application does not limit the specific physical states and corresponding angles. Figure 18 Let's take a foldable screen with a bending angle of 180 degrees as an example for explanation.

[0227] like Figure 18 As shown in (A), electronic devices can display additional features on foldable screens. Figure 17 The user interface 520 shown in (A) includes the third prompt message 522A, the fourth prompt message 522B, and the fifth prompt message 522C, all of which are located in the first display area. Figure 18 (A) to Figure 18 The process of (C), and the appendix Figure 17 (A) to Figure 17 The process is similar to (C), except that the drag direction for the drag operation applied to the fifth prompt message 522C is different. Figure 18 In this context, the drag-and-drop operation is used to move the fifth notification message 522C from the first display area to the second display area. The display windows in the split-screen mode are also different. Figure 18 In the first display area, the display window used to display the original user interface 520 is the first display area, and the display window used to display the fifth prompt message 522C and the corresponding return interface is the second display area. Figure 18 In the middle, the moving control 1910 is located on the bend line, but its specific function and... Figure 17 The movement control shown is identical to 1830. For detailed procedures, please refer to [link / reference needed]. Figure 17 The explanation is shown below and will not be repeated.

[0228] In some embodiments, the electronic device may receive a quick return operation applied to the first display area, such as a touch operation applied to the third prompt information 522A, and in response to the touch operation, return to display the return interface corresponding to the third prompt information 522A, or a touch operation applied to the fourth prompt information 522B, and in response to the touch operation, return to display the return interface corresponding to the fourth prompt information 522B.

[0229] Figures 17-18 Taking the return screen corresponding to the fifth prompt message 522C as an example, the explanation is as follows: In the actual implementation, the user may also want to return to the return screen corresponding to the third prompt message 522A or the fourth prompt message 522B. The specific process and appendix are detailed below. Figures 17-18 Similarly, I will not elaborate further.

[0230] Not limited to Figure 18 The examples provided illustrate that, in practical implementations, foldable screens can also be split vertically, and this application does not limit the specific display method of the split screen. Foldable screens can also be displays assembled from rigid and flexible screens, chains, and other connecting components. Both sides of the electronic device can be equipped with displays, and this application does not limit the specific structure of the displays.

[0231] In some embodiments, while using an application, a user may jump from the user interface of the current application to the user interface of another application, as shown in the attached examples. Figure 19 As shown.

[0232] Please see Figure 19 , Figure 19 This example illustrates another type of user interface transition.

[0233] like Figure 19 As shown in (A), the electronic device can display a user interface 2510. In some embodiments, the user interface 2510 may be the main interface of the video application displayed by the electronic device in response to a user operation (e.g., a touch operation) on an icon of the video application. Optionally, the icon of the video application may be an icon on the desktop of the electronic device, such as... Figure 3 The video application 220A is shown on the user interface 200. The user interface 2510 may include, for example, a search bar, recommended videos 2511, a list of recommended videos, and page options, etc. The list of recommended videos may include, for example, the names and cover images of multiple videos.

[0234] In some embodiments, assuming a user wants to view "Video E" corresponding to recommended video 2511, the electronic device can receive a user operation (e.g., a touch operation) applied to recommended video 2511, and in response to the user operation, display the content of "Video E" corresponding to recommended video 2511, for example... Figure 19 The user interface 2520 shown in (B) is shown.

[0235] like Figure 19 As shown in (B), the user interface 2520 may include the video content of "Video E" and detailed information (such as name, description, publisher, etc.). The user interface 2520 may also include relevant information about "Video E", such as information about other videos recommended based on "Video E", such as video option 2521 including the name, publisher, cover image, etc. of "Video F".

[0236] In some embodiments, assuming a user wants to view "Video F" corresponding to video option 2521, the electronic device can receive a user operation (e.g., a touch operation) applied to video option 2521, and in response to the user operation, display the content of "Video F" corresponding to video option 2521, such as the attached image. Figure 19 The user interface 2530 shown in (C) is shown.

[0237] like Figure 19 As shown in (C), the user interface 2530 may include the video content of "Video F" and detailed information (such as name, description, publisher, etc.). The user interface 2530 may also include relevant information about "Video F", such as information about other videos recommended based on "Video F" (such as name, publisher, cover image, etc.), and shopping options 2531 for "Video F", which may include an icon and description of a shopping application (including text: "Click to buy the same product as in the video").

[0238] In some embodiments, the electronic device may receive user actions (e.g., touch actions) applied to shopping option 2531, and in response to such user actions, display the user interface of the shopping application associated with "Video F," such as detailed information about the product "Pants G" that appeared in the video content. Figure 19 User interface 430 shown in (D) is Figure 4 The user interface 430 shown in (D) is shown. Figure 19 The user interface 430 shown in (D) can continue to jump to Figure 19 The user interface 510 shown in (E) Figure 19 The user interface 520 shown in (F) describes the process and attachments. Figure 4 User interface 430 shown in (D) jumps to Figure 4 The user interface 510 shown in (E) Figure 4 The jump process of the user interface 520 shown in (F) is the same and will not be described again.

[0239] In some embodiments, the electronic device may respond to different types of quick return operations received by returning to display the user interface of different applications. For example, the electronic device may respond to a first quick return operation by directly returning to display the first user interface opened in a shopping application. Figure 19 As shown in (D) the user interface 430, the electronic device can directly return to the main interface of the video application in response to the received second quick return operation. Figure 19 User interface 2510 shown in (A) is provided in the appendix for a specific example. Figure 20 .

[0240] Please see Figure 20 , Figure 20 An example diagram of yet another return operation is shown.

[0241] like Figure 20 As shown in (A), when the electronic device displays the user interface 520, it can receive a sliding operation applied to the return area 2 with a sliding distance of a first distance, at which time the user interface 520 remains unchanged. The electronic device can continue to receive the aforementioned sliding operation applied to the return area 2, but this time the sliding distance changes to a second distance, which is greater than the first distance. In response to this sliding operation, the electronic device can display a sixth prompt message 523A and a seventh prompt message 523B on the user interface 520, specifically as follows: Figure 20 As shown in (B). These two prompts can be located near the user's finger touch location, such as to the right of the touch location. These two prompts can correspond to two different types of return operations, used to return to the user interface of different applications respectively. These two prompts can include the icon of the application returning to the interface. The sixth prompt 523A includes the icon of the shopping application, and the seventh prompt 523B includes the icon of the video application. The electronic device can receive a touch operation applied to the sixth prompt 523A, specifically as follows: Figure 20 As shown in (C), the touch operation acting on the seventh prompt message 523B is similar. The electronic device can respond to the touch operation acting on the sixth prompt message 523A by returning to the first user interface opened in the shopping application, i.e. Figure 19 The user interface 430 shown in (D) is such that the electronic device can return to the main interface of the video application in response to a touch operation on the seventh prompt message 523B. Figure 19 The user interface 2510 shown in (A) is shown.

[0242] Other examples and appendices Figures 6-18 The example shown is similar to the quick return interface of an application, and will not be illustrated in detail here.

[0243] In some embodiments, the above-mentioned prompt information may be obtained based on the analysis of the return interface, such as the identifier name of the return interface (as shown in the appendix). Figure 6 In the user interface 430 shown in (C), the first prompt message 434 is "Return to main interface", and the corresponding return interface is the main interface of the shopping application. For example, the semantic analysis of the return interface (such as the return interface being the main interface of the shopping application) is used to obtain the following information: Figure 6 When the user interface 520 shown in (A) is displayed, the prompt information may include the product name: "Dress B", for example, obtained from the analysis of the return interface image (e.g., the return interface is attached). Figure 6When the user interface 520 or 530 is shown, the prompt information may include a product image. In other embodiments, the prompt information may also be an icon determined by the electronic device based on the application type of the returned interface, such as an application icon determined from an application icon library (as shown in the attached image). Figures 10-11 In the second prompt message 521, the icon of the shopping application is displayed, and the corresponding return interface is the main interface of the shopping application. This application does not limit the specific expression of the prompt message.

[0244] Not limited to the above examples, electronic devices may also display prompt information in response to received trigger operations. Trigger operations include, for example, a horizontal swipe inward from the right edge of the screen, a long swipe inward from the left edge of the screen, etc. This application does not limit the specific method of triggering the display of prompt information.

[0245] Not limited to the above examples, the quick return operation can also be a long swipe operation with a relatively long swipe distance. This application does not limit the specific type of quick return operation.

[0246] Not limited to the examples above, Figure 4 In the illustrated embodiment, more user interfaces can also be displayed, such as... Figure 4 (A) to Figure 4 There are multiple user interfaces between (D). Figure 4 (D) to Figure 4 There are multiple user interfaces between (F). Therefore, Figure 5 In the illustrated embodiment, the user needs to perform more back operations and return to display more user interfaces before they can return to the previous screen. Figure 5 The user interface 300 is shown in (F). Figure 6 and Figure 8 In the illustrated embodiment, the electronic device can respond to a quick return operation by returning to more user interfaces. Figure 19 Similar to the embodiments shown, this application does not limit the number of user interfaces that have been displayed or the number of user interfaces that have been returned.

[0247] In some embodiments, the ability of an electronic device to return to multiple screens in response to a single back operation (referred to as the quick return function) can be enabled or disabled by default. In other embodiments, the electronic device can also enable or disable the quick return function in response to user interaction, as illustrated in the appendix. Figures 21-25 As shown.

[0248] Please see Figure 21 , Figure 21 An example diagram of yet another user interface is shown.

[0249] like Figure 21As shown, the electronic device can display a user interface 3000. The user interface 3000 may include a page theme 3010 (i.e., "Quick Return to Settings"), a main function option 3020, a first function option 3030, a second function option 3040, and a third function option 3050, wherein:

[0250] The general function option 3020 may include a corresponding function name (i.e., "Quick Return Function"), function description (i.e., "Return to multiple interfaces with one return operation"), and a switch control 3020A. The switch control 3020A is used to turn the Quick Return Function on or off. The electronic device can receive user operations (e.g., touch operations) applied to the switch control 3020A and, in response to the user operations, turn the Quick Return Function on or off.

[0251] In some embodiments, the quick return function may include N types, such as the functions corresponding to the first function option 3030, the second function option 3040, and the third function option 3050. M of these N types of quick return functions may be active simultaneously, or only one type may be active. M and N are positive integers, and N is greater than or equal to M.

[0252] The first function option 3030 may include a corresponding function name (i.e., "multiple normal returns trigger quick return"), a function description (i.e., "when the number of return operations performed in a short period of time is large, the next return operation can return to multiple interfaces"), and a switch control 3030A. The second function option 3040 may include a corresponding function name (i.e., "the return area determines the return interface"), a function description (i.e., "when the area affected by the return operation is different, the user interface that triggers the return is different"), and a switch control 3040A. The third function option 3050 may include a corresponding function name (i.e., "the swiping direction determines the return interface"), a function description (i.e., "when the swiping direction of the return operation is different, the user interface that triggers the return is different"), and a switch control 3050A. The electronic device can receive user operations (e.g., touch operations) applied to any of the switch controls of these three function options, and in response to the user operation, enable or disable the corresponding quick return function. An example of a quick return operation after the function corresponding to the first function option 3030 is enabled can be found in the appendix. Figure 6 .

[0253] In some embodiments, after the function corresponding to the second function option 3040 is enabled, the electronic device can display a detailed description of the function, as detailed in [reference needed]. Figure 22 The illustrated embodiment.

[0254] like Figure 22As shown, when the switch control 3040A of the second function option 3040 is in the on state, the second function option 3040 may also include a guide example 3040B and a return setting 3040C. An example of a quick return operation after the function corresponding to the second function option 3040 is enabled can be found in the appendix. Figure 7 , Figure 8 , Figure 13 Guided Example 3040B and Appendix Figure 7 Similarly, setting 3040C can be used to set the size of different return areas and the corresponding return interfaces for different return areas.

[0255] In some embodiments, after the function corresponding to the third function option 3050 is enabled, the electronic device can display a detailed description of the function, as detailed in [reference needed]. Figure 23 The illustrated embodiment.

[0256] like Figure 23 As shown, when the switch control 3050A of the third function option 3050 is in the ON state, the third function option 3050 may also include a guide example 3050B and a return setting 3050C. An example of a quick return operation after the function corresponding to the third function option 3050 is enabled can be found in the appendix. Figure 9 , Figures 14-16 , Figure 20 Guided Example 3050B and Appendix Figure 14 Similarly, the 3050C setting can be used to adjust the size of the return area, with different swiping directions corresponding to the user interface being returned to.

[0257] In some embodiments, the electronic device may respond to an action on Figure 22 The user operation (e.g., touch operation) for returning to settings on the 3040C is shown. The user interface for returning to settings is displayed. See the example below for details. Figure 24 .

[0258] Please see Figure 24 , Figure 24 An example diagram of yet another user interface is shown.

[0259] like Figure 24 As shown, the user interface 3100 may include a page theme 3110 (i.e., "Return to Settings"), a left-side return area setting 3120, and a right-side return area setting 3130, wherein:

[0260] The left-side return area setting 3120 may include a toggle control 3120A, which can be used to enable or disable the return area at the left edge of the screen. When the toggle control 3120A is enabled in the user interface 3100, return area 1 and return area 2 are displayed at the left edge of the screen. The left-side return area setting 3120 also includes area size settings and return interface settings. The area size settings may include a horizontal size setting bar 3120B and a vertical size setting bar 3120C, which can be used to adjust the horizontal width and vertical width of return area 1 and return area 2, respectively. The return interface settings may include setting options 3120D for the return interface corresponding to return area 1 and setting options 3120E for the return interface corresponding to return area 2.

[0261] The right-side return area setting 3130 includes a switch control 3130A that can be used to enable or disable the return area on the right edge of the screen. The specific settings are similar to those of the left-side return area setting 3120, and will not be described in detail here.

[0262] Figure 23 The settings shown are for the 3050C return settings and Figure 24 The settings shown are similar and will not be repeated.

[0263] In some embodiments, the electronic device may also respond to user actions by enabling other functions such as manually returning to the saved page; see specific examples. Figure 25 .

[0264] Please see Figure 25 , Figure 25 An example diagram of yet another user interface is shown.

[0265] like Figure 25 As shown, the user interface 3000 can be: an electronic device responding to an action on Figure 21 The user interface 3000 shown is a sliding operation (e.g., a sliding operation from bottom to top), which displays the user interface. The user interface 3000 may also include a fourth function option 3060, a fifth function option 3070, and an application option 3080, wherein:

[0266] The fourth function option 3060 may include a corresponding function name (i.e., "Cross-application return"), a function description (i.e., "The quick return operation can quickly return to the main interface of the background application that launched the foreground application"), and a switch control 3060A. The foreground application is the user-visible and interactive application, while the background application is the user-non-interactive application. The fifth function option 3070 may include a corresponding function name (i.e., "Manually favorited return interface"), a function description (i.e., "The quick return operation can quickly return to the user's manually favorited user interface"), and a switch control 3070A. The electronic device can receive user operations (e.g., touch operations) applied to either of the switch controls of these two function options, and in response to the user operation, enable or disable the corresponding quick return function. An example of the quick return operation after the function corresponding to the fourth function option 3060 is enabled can be found in the appendix. Figure 20 After enabling the fifth function option 3070, examples of the favorite and quick return operations can be found in the appendix. Figure 12 , Figure 15 - Figure 16 .

[0267] Application option 3080 may include function switches for quick return functions of multiple applications, such as function switch 3080A for a video application, function switch 3080B for a shopping application, and function switch 3080C for a social application. Any application's function switch is used by the user to enable or disable the quick return function for that application. In some embodiments, the applications in application option 3080 may be those set by the default settings of the electronic device, for example, […]. Figures 3-20 The shopping and video apps shown are examples of apps that allow the quick back function. When using these apps, users can start from user interface A, navigate through multiple user interfaces to another user interface B, and return to user interface A or the interface displayed between A and B requires multiple normal back operations. Apps that typically do not allow the quick back function, such as gallery apps, usually require navigating from user interface C (e.g., a list of pictures) to user interface D (e.g., the image A interface), then returning to user interface C, and then navigating from user interface C to another user interface E (e.g., the image B interface). For other user interfaces navigated from user interface C, returning to user interface C usually requires only a few back operations.

[0268] Not limited to the above examples, users can also set different swipe distances to return to different user interfaces, whether to display prompts, and the specific form of the prompts. This application does not limit the quick return function that users can set.

[0269] Not limited to the examples above, electronic devices may also enable the quick return function by default for certain applications (such as shopping and video applications), or electronic devices may enable the quick return function by default for all applications. This application does not limit the applications for which the quick return function is enabled.

[0270] In addition to the user operations listed above, in specific implementations, the normal return operation and the quick return operation can also have different sliding distances, and different types of quick return operations can also have different sliding distances. This application does not limit the specific form of user operations.

[0271] Based on the appendix Figure 1 , Figures 2A-2B , Figures 3-25 The embodiment shown below will be followed by a description of the method for quickly returning to the interface provided in this application.

[0272] Please see Figure 26 , Figure 26 This application provides a method for quickly returning to the interface. This method can be applied to... Figure 2A The illustrated electronic device 100. This method can be applied to... Figure 2B The electronic device 100 shown. The method may include, but is not limited to, the following steps:

[0273] S101: Electronic device receives normal return operation.

[0274] S102: Electronic device receives fast return operation.

[0275] Specifically, the normal return operation and the quick return operation can, but are not limited to, satisfying at least one of the following: different areas of operation, different controls applied, different operation methods (e.g., different operation directions, different touch distances), etc. See the appendix for specific examples. Figures 3-25 The system includes normal return operations and fast return operations. In some embodiments, after receiving a normal return operation (i.e., S101), the electronic device can jump to S103. In other embodiments, after receiving a fast return operation (i.e., S102), the electronic device can jump to S105.

[0276] S103: The electronic device determines whether the triggering condition for fast return is met.

[0277] In some embodiments, the electronic device may determine whether the time period during which a first preset number of normal return operations are received is less than or equal to a first preset duration. If so, it is determined that the triggering condition for fast return is met; otherwise, it is determined that the triggering condition for fast return is not met. In other embodiments, the electronic device may determine whether the number of normal return operations received within a first preset duration is greater than or equal to a first preset number. If so, it is determined that the triggering condition for fast return is met; otherwise, it is determined that the triggering condition for fast return is not met.

[0278] In some embodiments, when the electronic device determines that the triggering condition for fast return is not met, it may jump to S104. In other embodiments, when the electronic device determines that the triggering condition for fast return is met, it may jump to S105.

[0279] For example, suppose that the electronic device received K normal return operations before executing S101, where K is a positive integer. The earliest normal return operation received among these K normal return operations is the first moment, and the moment when the electronic device executes S101 is the second moment. The triggering conditions for fast return may include, but are not limited to, the difference between the first moment and the second moment being less than or equal to a first preset duration, and / or, (K+1) being less than or equal to a first preset number of times.

[0280] S104: The electronic device executes a normal return method.

[0281] Specifically, when it is determined that a normal return operation is received but the triggering condition for a fast return is not met, the electronic device can return to the previous level of the current interface (i.e., execute the normal return method). See the appendix for a specific example. Figure 5 .

[0282] S105: The electronic device executes the fast return method.

[0283] Specifically, it is determined that a normal return operation is received and the triggering condition for a fast return is met; or, when a fast return operation is received, the electronic device can return to multiple user interfaces and directly return to display the preset return interface. See the appendix for specific examples. Figure 6 - Figure 18 The preset return screen can be any user interface that the electronic device has displayed before the current screen, excluding the previous screen, such as the first opened application screen or the application's main screen. In some embodiments, the preset return screen may belong to the same application's user interface as the current screen; in other embodiments, the preset return screen and the current screen belong to different applications' user interfaces.

[0284] In some embodiments, there may be multiple preset return interfaces. In some embodiments, the quick return operation may include multiple types, and different types of quick return operations correspond to different user interfaces. Different types of quick return operations may, for example, be different in the area they operate on, different in the controls they operate on, or different in the operation method (e.g., different operation directions, different touch distances), etc. In some embodiments, different types of quick return operations correspond to different user interfaces that can be from the same application. For specific examples, please refer to the appendix. Figures 6-18 In other embodiments, it may also be for different applications; specific examples can be found in the appendix. Figures 19-20 .

[0285] In one possible implementation, the electronic device's software system can be the Android system. A user interface displayed on the electronic device can be understood as corresponding to an Activity, and Activities are managed through Tasks. A Task can also be called a back stack. Therefore, opening a user interface can be understood as pushing the Activity corresponding to that user interface onto a Task (i.e., pushing onto the stack). Performing a back operation to return to the previous level of the current screen can be understood as popping the top Activity of the Task (also called the top activity of the stack) (i.e., the Activity corresponding to the current screen) (i.e., popping from the stack). See the appendix for a specific example. Figure 1 .therefore, Figure 26 The quick return method shown is used to return to the preset return screen. It can be understood as follows: the quick return method is used to pop multiple Activities above the Activity corresponding to the preset return screen in the Task, so as to set the Activity corresponding to the preset return screen as the top Activity of the Task.

[0286] In some embodiments, assuming the electronic device runs a first activity stack, when the electronic device displays a second interface of a first application, a second activity associated with the second interface (also referred to as the second activity corresponding to the second interface) is pushed (also referred to as entered) onto the first activity stack. Then, when the electronic device displays the first interface of the first application, the first activity associated with the first interface is pushed onto the first activity stack. For example, see Appendix Figure 4 In the process shown, the electronic device responds to each user operation (used to open / jump to the next level of the currently displayed interface) by sequentially displaying user interface 300, user interface 410, user interface 420, user interface 430, user interface 510, and user interface 520. This means that the Activities corresponding to user interfaces 300, 410, 420, 430, 510, and 520 are pushed onto the first activity stack. For example, if user interface 520 is the first interface (i.e., the currently displayed interface), then the top activity of the first activity stack is the first activity associated with user interface 520. If user interface 300 is, for example, the second interface, then the bottom Activity of the first activity stack (also called the bottom activity) is the second activity associated with user interface 300. However, this is not limited to this; any one of user interfaces 410, 420, and 430 can also be the second interface. The second activity associated with the second interface can be understood as an activity in the stack (i.e., an activity other than the bottom and top activities), but it is understood that the second activity is not associated with user interface 510 (i.e., the parent interface of the currently displayed interface).

[0287] In some embodiments, when an electronic device displays the first interface of a first application, if it determines that a normal return operation has been received and the triggering condition for a quick return is not met, it can return to the previous level interface of the first interface; that is, the electronic device can pop the top activity of the first activity stack. For example, see Appendix Figure 5 As shown in the process, when the electronic device displays user interface 520, it can sequentially return to display user interface 510, user interface 430, user interface 420, user interface 410, and user interface 300 in response to each return operation. That is, it sequentially pops the top activity of the first activity stack until the top activity is the activity associated with user interface 300. For example, the electronic device can execute the normal return method shown in S104. Figure 26 In the illustrated embodiment, the back stack includes more Activities, for example, 20 Activities, arranged from bottom to top (i.e., in the order of entry, or the order in which they were opened): Activity1, Activity2, ..., Activity19, Activity20. When the electronic device determines that it is receiving a normal back operation and the triggering conditions for a quick back are not met, it can pop the top activity of the back stack: Activity20. This can be understood as one Activity being popped from the stack for each normal back operation.

[0288] In some embodiments, when the electronic device displays a first interface of a first application, it receives a first user operation and, in response to the first user operation, pops at least two activities from a first activity stack. Specifically, when the electronic device displays the first interface of the first application, the top activity of the first activity stack is the first activity. In response to the first user operation, the electronic device pops at least two activities that enter after the second activity in the first activity stack and displays a second interface.

[0289] In some embodiments, the first user operation is a normal return operation. When the electronic device receives the first user operation, it determines that the triggering conditions for a fast return are met. For example, with the appended... Figure 5 The user interface shown is an example; user interface 520 is the first interface, and user interface 300 is the second interface. Electronic device display. Figure 5 When user interface 520 is shown in (A), in response to two normal return operations executed within 1 second, user interface 520 and [other interfaces] are popped from the stack consecutively within 1 second. Figure 5The Activity associated with user interface 510 shown in (B) responds to a normal return operation received again within the next second (determined to meet the triggering condition for fast return, which can also be understood as meeting the first preset condition), and pops multiple Activities that were pushed onto the stack after the second Activity associated with user interface 300, that is, pops multiple Activities associated with user interface 430, user interface 420 and user interface 410 from the stack. This can be understood as popping 3 Activities from the stack in one return operation (actually the 3rd normal return operation received).

[0290] In other embodiments, the first user action is a quick return action, for example, see Appendix Figure 6 In the process shown, user interface 520 is the first interface, user interface 300 is the second interface, and the electronic device responds to two normal return operations executed within 1 second (determining that a second number of second user operations satisfy the second preset condition), continuously popping the Activities associated with user interface 510 and user interface 520 from the stack within 1 second, and displaying the first prompt message 434 when displaying user interface 430 (when the second preset condition is satisfied, the first control displayed is, for example, the first prompt message 434). The electronic device can respond to the user operation acting on the first prompt message 434 (i.e., the quick return operation), popping multiple Activities that were pushed onto the stack after the second activity associated with user interface 300, that is, popping multiple Activities associated with user interface 430, user interface 420, and user interface 410 from the stack, which can be understood as popping 3 Activities from the stack in one quick return operation. For example, see Appendix Figure 8 During the process shown, in response to a swipe operation (i.e., a quick back operation) applied to area 2, the electronic device pops multiple Activities that were pushed onto the stack after the second activity associated with user interface 300. Specifically, it pops multiple Activities associated with user interfaces 520, 410, 430, 420, and 410. This can be understood as popping five Activities from the stack in a single quick back operation. For other examples of first user operations, please refer to the appendix. Figure 10-11 , Figures 13-16 .

[0291] For example, the electronic device can execute the fast return method shown in S105. Figure 26In the illustrated embodiment, the backstack includes more Activities, for example, 20 Activities, arranged from bottom to top (i.e., in the order of entry, or the order in which they were opened): Activity1, Activity2, ..., Activity19, Activity20. The first activity is the top activity of the stack: Activity20, and the second activity is the bottom activity of the stack: Activity20. When the electronic device determines that it has received a normal back operation and the triggering conditions for a fast back operation are met, or when it has received a fast back operation, it can pop the Activities (i.e., Activities2, ..., Activity20) that were entered (i.e., above Activity20) after Activity20 in the back stack.

[0292] In some embodiments, the electronic device may preset the top activity of the first activity stack after executing the fast return method (i.e., the second activity mentioned above), for example, preset the bottom activity of the first activity stack before executing the fast return method as the second activity.

[0293] In other embodiments, the electronic device can determine the top activity of the first activity stack (i.e., the second activity mentioned above) after executing the fast return method based on the type of the Activity. Assume that the Activity name includes the application name (package name) and the specific name (Activity tag). Activities belonging to the same application have the same package name but different Activity tags, and different types of Activities have different tags. In some embodiments, the electronic device can record the Activity associated with the user interface receiving a specific operation, for example... Figure 12 In the illustrated embodiment, the electronic device can record the Activity associated with the user interface 420 in response to a user operation acting on the favorite option 424 (e.g., the fourth control is the favorite option 424). In some embodiments, the recorded Activity can be the top activity of the first activity stack after executing the quick return method. For example, the electronic device can record the Activity associated with the application's main interface and the Activity associated with the user interface receiving the specific operation. The electronic device can determine the Activity corresponding to the return interface based on the type of the quick return operation. Specifically, in response to a first quick return operation, the electronic device can pop the Activity above the Activity associated with the application's main interface from the first activity stack, i.e., return to the application's main interface. In response to a second quick return operation, the electronic device can pop the Activity above the Activity associated with the user interface receiving the specific operation from the first activity stack, i.e., return to the user interface receiving the specific operation.

[0294] In other embodiments, assuming the electronic device runs a first activity stack, when the electronic device displays a third interface of a second application, a third activity associated with the third interface is pushed onto the first activity stack. Then, when the electronic device displays a second interface of the first application, a second activity associated with the second interface is pushed onto the first activity stack. Then, when the electronic device displays a first interface of the first application, a first activity associated with the first interface is pushed onto the first activity stack. For example, see the appendix... Figure 19 In the process shown, the electronic device responds to each user operation (used to open / jump to the next level interface of the currently displayed interface) by sequentially displaying the user interface 2510, 2520, 2530 of the video application, 430, 510, and 520 of the shopping application, that is, pushing user interfaces 2510, 2520, 2530, 430, 510, and 520 onto the first activity stack. The shopping application's user interface 520 is, for example, the first interface of the first application (i.e., the currently displayed interface), and the top activity of the first activity stack is the first activity associated with user interface 520. The shopping application's user interface 430 is, for example, the second interface of the first application, and the video application's user interface 2510 is, for example, the third interface of the second application.

[0295] In some embodiments, when the electronic device displays a first interface of a first application, it receives a first user operation. In response to the first user operation, the electronic device may pop at least two activities from a first activity stack to display a second interface of the first application; alternatively, the electronic device may, in response to the first user operation, pop at least two activities from the first activity stack to display a third interface of the second application.

[0296] In some embodiments, the first user operation is a normal return operation. When the electronic device receives the first user operation, it determines that the triggering condition for fast return is met. In other embodiments, the first user operation is a fast return operation. Specific examples are similar to the example above where the first activity stack includes a first activity and a second activity.

[0297] In some embodiments, the types of first user operations received before and before displaying the second interface are different, such as different operation methods including the area of ​​action, the control to be used, the direction of operation, and the sliding distance. Figures 13-14 The first and second fast return operations are shown. For example, Figure 20In the process shown, the user interface 520 of the shopping application is the first interface of the first application, the user interface 430 of the shopping application is the second interface of the first application, and the user interface 2510 of the video application is the third interface of the second application. Electronic device display. Figure 20 When the user interface 520 shown in (B) is displayed, a sixth prompt 523A and a seventh prompt 523B can be displayed (in the first interface, the second control included is, for example, the sixth prompt 523A, and the third control is, for example, the seventh prompt 523B). The sixth prompt 523A is an icon for a shopping application, used to indicate the shopping application, and the seventh prompt 523B is an icon for a video application, used to indicate the video application. The electronic device can respond to a touch operation on the sixth prompt 523A and return to display the first opened user interface in the shopping application, namely user interface 430 (i.e., the second interface). In other words, the electronic device can pop multiple Activities that have been pushed onto the stack after the second activity associated with user interface 430, that is, pop the two Activities associated with user interface 520 and user interface 510 from the stack. This can be understood as popping two Activities from the stack in a quick return operation. The electronic device can respond to the touch operation acting on the seventh prompt message 523B and return to display the first user interface opened in the video application, that is, the main interface of the video application, i.e., user interface 2510 (i.e., the third interface). In other words, the electronic device can pop multiple Activities that are pushed onto the stack after the third activity associated with user interface 2510, i.e., pop multiple Activities associated with user interface 520, user interface 510, user interface 430, user interface 2530, and user interface 2520 from the stack. This can be understood as popping 5 Activities from the stack in a single fast return operation.

[0298] In some embodiments, the electronic device can determine the top activity of the first activity stack (i.e., the second or third activity mentioned above) after executing the fast back method, based on the application corresponding to the Activity. Assume that the Activity name includes the application name (referred to as the package name) and the specific name (referred to as the Activity tag), and Activities belonging to the same application have the same package name. In some embodiments, the electronic device can identify whether the package name of an Activity in the first activity stack has changed. Optionally, the electronic device can record the first Activity after the package name change; alternatively, the electronic device can also record the first Activity pushed onto the stack before the package name change; alternatively, the recorded Activity can be the top activity of the first activity stack after executing the fast back method. For example, Figure 19In the illustrated embodiment, when the electronic device displays the user interface 2530 of the video application, it can respond to a user operation on the shopping option 2531 and display the user interface 430 of the shopping application. At this time, the package name of the top activity of the first activity stack changes from the package name of the video application to the package name of the shopping application. The electronic device can then record the first Activity after the package name change: the second activity associated with the user interface 430, and can also record the first Activity pushed onto the stack before the package name change: the third activity associated with the user interface 2510 (i.e., the bottom activity of the first activity stack). The electronic device can determine the Activity corresponding to the return interface based on the type of quick return operation. Specifically, in response to the first quick return operation, the electronic device can pop the Activity above the second activity in the first activity stack, i.e., return to the user interface 430 of the shopping application. In response to the second quick return operation, the electronic device can pop the Activity above the third activity in the first activity stack, i.e., return to the user interface 2510 of the video application.

[0299] In some embodiments, the electronic device may record the time and number of Activities popped from the first activity stack, so as to determine whether the triggering condition for fast return is met based on the recorded information when a normal return operation is received. A specific example is shown below (the following example uses Activity1 as the default return interface for illustration):

[0300] Example 1: Suppose an electronic device receives K normal return operations, where K is a positive integer. In response to each return operation, the electronic device pops the top Activity from the first activity stack, which can be understood as executing K S101, S103, and S104 operations. The electronic device can record the time of each Activity pop, assuming the recorded pop times are [t1, t2, ..., t(K)]. Then, assuming the electronic device receives the (K+1)th normal return operation at time t(K+1), it can determine whether (t(K+1) - t(K)) is less than or equal to a first preset duration. If the electronic device determines that (t(K+1) - t(K)) is less than or equal to the first preset duration, then the trigger condition for a fast return is met. Therefore, in response to the (K+1)th normal return operation, the electronic device can pop multiple Activities above Activity1 corresponding to the preset return interface from the first activity stack. In some embodiments, this can be understood as the execution of the (K+1)th S101 and S103, and the execution of one S105.

[0301] Example 2: Suppose the electronic device receives K normal return operations, where K is a positive integer. In response to each return operation, the electronic device pops the top Activity from the first activity stack, which can be understood as executing K S101, S103, and S104 operations. The electronic device can record the time of each Activity pop, assuming the recorded pop times are [t1, t2, ..., t(K)]. Then, the electronic device receives the (K+1)th normal return operation, pops the top Activity from the first activity stack, and records the pop time t(K+1). If the electronic device determines that (t(K+1) - t(K)) is less than or equal to a first preset duration, then the trigger condition for a fast return is met. Therefore, in response to the (K+1)th normal return operation, the electronic device can pop multiple Activities above Activity1 corresponding to the preset return interface from the first activity stack. In some embodiments, this can be understood as the execution of the (K+1)th S101 and S103, and the execution of one S105.

[0302] Not limited to this, in other examples, when the electronic device determines that the triggering conditions for quick return are met, it may also display a prompt message (e.g., the first control) for the user to determine whether to perform the quick return operation. When the user determines to perform the quick return operation, the electronic device may execute S102 and S103.

[0303] In some embodiments, prior to S101 and / or S102, the method may further include: determining that the number of Activities in the first activity stack is greater than or equal to a preset number threshold. This can be understood as the back stack having an Activity count greater than or equal to the preset number threshold, where the fast return method shown in this application can be applied.

[0304] In some embodiments, before S101 and / or S102, the method may further include: determining that the application of the user interface associated with an Activity in the first activity stack is an application that can enable the quick return function (hereinafter referred to as a preset application); optionally, determining that the application of the user interface associated with any Activity in the first activity stack is a preset application; optionally, determining that the application of the user interface associated with the top activity of the first activity stack after executing the quick return method is a preset application. Optionally, assuming that the name of an Activity includes the name of the application (hereinafter referred to as the package name) and the specific name (hereinafter referred to as the Activity tag), and that Activities belonging to the same application have the same package name but different Activity tags, then when determining the preset application, the electronic device can determine whether the package name of the Activity is the package name of the preset application. It can be understood that the preset application on the electronic device can apply the quick return method shown in this application. Optionally, the preset application can be some or all of the applications on the electronic device.

[0305] Appendix Figure 26 At least one of the steps is optional, for example, including only S102 and S105, or only S101 and S104, or excluding S102. It is not limited to this; it may also include S101 and S103, and the method may further include: if it is determined that the electronic device meets the trigger condition for fast return, i.e., if the determination result of S103 is yes, the electronic device may display a prompt message. Alternatively, before S101 and / or S102, the method may further include: the electronic device displaying a prompt message. The prompt message is used to indicate a fast return operation. Examples of prompt messages can be found in the appendix. Figure 6 , Figures 10-11 , Figures 15-18 , Figure 20 .

[0306] Understandably, Figure 26 Examples of the methods shown can be found in the appendix. Figures 3-25 The illustrated embodiment.

[0307] In this application, if a user wants to return to the preset return screen, the user only needs to perform a few normal return operations, or perform a quick return operation, to return to the preset return screen. See the appendix for specific examples. Figures 27-28 .

[0308] The following example uses a back stack containing 20 Activities, with the default return screen corresponding to Activity1 at the bottom of the back stack.

[0309] Please see Figure 27 , Figure 27This example illustrates a schematic diagram of an Activity popping from the stack.

[0310] like Figure 27 As shown, assume the trigger condition for quick return is: the duration of receiving 5 normal return operations is less than or equal to 3 seconds. When the back stack includes 20 Activities, the electronic device can receive 4 normal return operations from the user within 2 seconds. In response to each normal return operation, the top Activity of the back stack is popped, i.e., returning from the current display screen to the previous screen. At this time, the top Activity of the back stack is 16, and the electronic device can receive the fifth normal return operation from the user within 1 second. The electronic device determines that the difference between the reception time of the 4th and 5th normal return operations is less than or equal to 1 second, i.e., the trigger condition for quick return is met. In response to the 5th normal return operation, the electronic device can pop multiple Activities above Activity1 corresponding to the preset return screen from the back stack. The multiple Activities above Activity1 are Activity2, Activity3, ..., Activity15, Activity16, these 15 Activities. At this time, the top Activity of the back stack is Activity1, and the electronic device can display the preset return screen. Users only need to perform 5 normal return operations to achieve the same result as the user interface that would normally require 19 normal return operations to return to the displayed interface, making the operation simple.

[0311] In some embodiments, the electronic device may, in response to a quick back operation, pop multiple Activities above the Activity corresponding to the preset back screen from the back stack sequentially according to the last-in-first-out (LIFO) principle. This scheme can be referred to as the first pop scheme. In other embodiments, the electronic device may, in response to a quick back operation, first pop multiple Activities between the Activity corresponding to the preset back screen and the top Activity from the back stack, and then pop the top Activity. This pop scheme can be referred to as the second pop scheme. Specific examples can be found in the appendix. Figure 28 .

[0312] Please see Figure 28 , Figure 28 This example illustrates yet another instance of Activity popping from the stack.

[0313] like Figure 28As shown, when the back stack contains 20 Activities, the electronic device can respond to the user's quick back operation by popping 18 Activities from the back stack between Activity1 (the Activity corresponding to the preset back screen) and the top Activity (i.e., Activity20). In some embodiments, these 18 Activities—Activity19, Activity18, ..., Activity3, and Activity2—are popped sequentially according to the last-in-first-out (LIFO) principle. During this process, the top Activity of the back stack remains Activity20, meaning the user interface displayed by the electronic device remains the user interface corresponding to Activity20. Then, the electronic device can continue to pop Activity20 from the stack. At this point, the top Activity of the back stack becomes Activity1, and the electronic device can display the preset back screen.

[0314] Not limited to Figure 28 In the example shown, in a specific implementation, the 18 Activities, Activity19, Activity18, ..., Activity3, and Activity2, can be popped from the stack in a last-in-first-out (LIFO) manner, or they can be popped in any order. This application does not limit this.

[0315] Not limited to Figure 28 As shown in the example, in a specific implementation, the electronic device can also respond to a user's normal back operation (and determine that the triggering conditions for fast back are met) by popping multiple Activities from the back stack between the Activity corresponding to the preset return screen and the top Activity, for example... Figure 27 In the context of the back stack, when the top Activity is 16, the electronic device can respond to the user's fifth normal back operation by popping 14 Activities between the preset back screen Activity1 and the top Activity (i.e., Activity16) from the back stack, and then popping Activity16 from the stack.

[0316] In some embodiments of the Android system, when a user enters, exits, or returns to an application (which can also be understood as opening, exiting, or returning to the user interface), the Activity corresponding to the user interface goes through different states in its lifecycle, and the Android system calls a series of methods within that lifecycle. This can be understood as each Activity having its own lifecycle; see the appendix for specific examples. Figure 29 .

[0317] Please see Figure 29 , Figure 29 This example illustrates a schematic diagram of the lifecycle of an Activity.

[0318] like Figure 29 As shown, the entire lifecycle can be understood as starting from the creation method `onCreated()` and ending with the destruction method `onDestroy()`. During this time, the user can see the Activity, or the corresponding user interface, from the start method `onStart()` to the stop method `onStop()`. The user can also interact with the Activity, or interact with its corresponding user interface, from the resume method `onResume()` to the pause method `onPause()`. In addition, the lifecycle can include the restart method `onRestart()`. In other words, the lifecycle can include seven methods, as illustrated in the following example:

[0319] The onCreated() method is called when the Activity is created, and it is usually used to perform some initialization settings.

[0320] The onStart() method is called when the Activity is ready to be displayed on the screen. After it is called, the Activity becomes visible.

[0321] The onResume() method is called when the Activity gains focus and begins interacting with the user.

[0322] The pause method onPause() is called when the current Activity is partially covered by another Activity or when the screen is locked.

[0323] The onStop() method is called when the Activity is not visible to the user.

[0324] The destruction method onDestroy() is called when the Activity is about to be destroyed.

[0325] The restart method onRestart() is called when the Activity is restarted from a stopped state.

[0326] like Figure 29 As shown, an Activity enters different states after different method calls are executed. Its lifecycle can include five states, illustrated in the following example:

[0327] Created state: The state of the Activity after the onCreated() method is executed. When the Activity is in the current state, it is invisible to the user and cannot be interacted with by the user.

[0328] Started State: The state of the Activity after the onStart() method is executed. In this state, the Activity is visible to the user but cannot be interacted with. Specifically, when the Activity is in the Created state, the onStart() method executes and the Activity enters the Started state. When the Activity is in the Stopped state, the onRestart() and onStart() methods are executed sequentially, and the Activity enters the Started state.

[0329] Resumed state: Also known as running state. This is the state of the Activity after the onResume() method is executed. In this current state, the Activity is visible to the user and can interact with them. Before onResume() is executed, the Activity can be in the Started or Paused state.

[0330] Paused state: The state of the Activity after the onPause() method is executed. When the Activity is in the current state, it is visible to the user but cannot be interacted with by the user.

[0331] Stopped state: The state of the Activity after the onStop() method is executed. When the Activity is in the current state, it is not visible to the user and cannot be interacted with by the user.

[0332] Destroyed state: The state of the Activity after the onDestroy() method is executed. When the Activity is in the current state, it is invisible to the user and cannot be interacted with by the user.

[0333] The following embodiments illustrate how methods call lifecycle methods for different Activities, with the method carrying the Activity's identifier. This application uses Activity(i) as the Activity's identifier, where i is a positive integer. For example, suppose... Figure 1In the context of Activity1, the lifecycle methods called can be represented as: onCreated(Activity1), onStart(Activity1), onResume(Activity1), onPause(Activity1), onStop(Activity1), onDestroy(Activity1), and onRestart(Activity1).

[0334] For example, in the appendix Figure 1 When Activity1 is launched for the first time and pushed onto the back stack, the methods onCreated(Activity1), onStart(Activity1), and onResume(Activity1) can be called sequentially. This results in Activity1's states being Created, Started, and Resumed, respectively. In other words, when Activity1 is the top Activity in the back stack, its state is Resumed, visible to the user, and interactive. When Activity2 is launched for the first time and pushed onto the back stack, the methods onPause(Activity1), onCreated(Activity2), onStart(Activity2), onResume(Activity2), and onStop(Activity1) can be called sequentially for both Activity1 and Activity2. At this point, Activity2 is the top Activity in the back stack, its state is Resumed, visible to the user, and interactive, while Activity1 is stopped, invisible to the user, and not interactive. Then, when the user performs a back operation and Activity2 is popped from the stack, the methods onPause(Activity2), onRestart(Activity1), onStart(Activity1), onResume(Activity1), onStop(Activity2), and onDestroy(Activity2) can be called sequentially for Activity1 and Activity2. Activity2 is destroyed, and Activity1 becomes the top Activity in the back stack again.

[0335] In some embodiments, when using the first pop-out scheme, the electronic device can respond to the user's quick return operation by popping multiple Activities above the Activity corresponding to the preset return interface from the back stack in sequence according to the last-in-first-out principle. That is, Activity20, Activity19, ..., Activity3, Activity2 are popped out of the stack in sequence so that Activity1 becomes the top Activity, which is visible to the user and can be interacted with. Taking Activity20 as an example, the methods onPause(Activity20), onRestart(Activity19), onStart(Activity19), onResume(Activity19), onStop(Activity20), and onDestroy(Activity20) can be called sequentially for Activity20 and Activity19. This process needs to be executed 18 times. Therefore, when using the first pop-out scheme, the electronic device needs to call the lifecycle methods (19 × 6) times to make Activity1 the top Activity.

[0336] In some embodiments, such as Figure 28As shown, when using the second pop-out scheme, the electronic device can respond to the user's quick return operation by popping 18 Activities from the back stack between the preset return interface Activity1 and the top Activity (i.e., Activity20). In some embodiments, these 18 Activities—Activity19, Activity18, ..., Activity3, and Activity2—are popped sequentially according to the last-in-first-out principle. The electronic device can then call the lifecycle methods onDestroy(Activity19), onDestroy(Activity18), ..., onDestroy(Activity3), and onDestroy(Activity2) in sequence, for a total of 18 lifecycle method calls. During this process, the top Activity in the back stack remains Activity20, meaning the user interface displayed by the electronic device remains the user interface corresponding to Activity20. Then, the electronic device can continue to pop Activity20 from the stack. The electronic device can then sequentially call the lifecycle methods onPause(Activity20), onRestart(Activity1), onStart(Activity1), onResume(Activity1), onStop(Activity20), and onDestroy(Activity20) for Activity20 and Activity1, calling a total of 6 lifecycle methods. Therefore, using the second popping scheme, the electronic device needs to call (18+6) lifecycle methods to make Activity1 the top Activity.

[0337] Understandably, (18+6) is much smaller than (19×6). The power consumption of the electronic device using the second pop-out scheme is significantly less than that using the first pop-out scheme, for example, reducing power consumption by 90%. Furthermore, when the electronic device uses the first pop-out scheme, a single quick return operation causes the displayed user interface to jump sequentially from the user interface corresponding to Activity20 to the preset return interface corresponding to Activity1. This means the electronic device actually displays 20 user interfaces (loading the necessary images, videos, and other data for each of these 20 user interfaces). However, due to the rapid jump speed (short jump time), the user-visible user interface may experience flickering, white screens, or stuttering. In contrast, when the electronic device uses the second pop-out scheme, a single quick return operation causes the displayed user interface to jump directly from the user interface corresponding to Activity20 to the preset return interface corresponding to Activity1. This means the electronic device actually displays two user interfaces, resulting in smoother performance and a better user experience.

[0338] For example, Appendix Figure 8 In the illustrated embodiment, when the electronic device displays user interface 520, user interface 520 is associated with the top activity of the first activity stack. Assuming user interface 300 is associated with the bottom activity of the first activity stack, the Activities included in the first activity stack, in order from bottom to top (i.e., the order in which they were entered), are user interface 300, user interface 410, user interface 420, user interface 430, user interface 510, and the Activity associated with user interface 520. The electronic device can respond to the user's quick return operation by popping multiple Activities between the top and bottom activities of the stack, that is, by executing the onDestroy() method on each of the multiple Activities between the top and bottom activities. For example, the methods onDestroy(Activity associated with user interface 510), onDestroy(Activity associated with user interface 430), onDestroy(Activity associated with user interface 420), and onDestroy(Activity associated with user interface 410) can be called sequentially. Then, the electronic device can pop the top activity from the stack and display user interface 300, which involves sequentially calling the methods onPause(the activity associated with user interface 520), onRestart(the activity associated with user interface 300), onStart((the activity associated with user interface 300), onResume((the activity associated with user interface 300), onStop(the activity associated with user interface 520), and onDestroy(the activity associated with user interface 520). Other examples of user interfaces that quickly return are similar and will not be described further.

[0339] Not limited to the above example, the 18 Activities, namely Activity19, Activity18, ..., Activity3, and Activity2, can be popped from the stack in a last-in-first-out (LIFO) manner. The electronic device can call the methods onDestroy(Activity2), onDestroy(Activity3), ..., onDestroy(Activity18), and onDestroy(Activity19) in sequence, or in any other order. This application does not limit this.

[0340] The Activity corresponding to the preset return screen returned by the quick return method and the top Activity of the Task can also contain only one Activity.

[0341] The above embodiment uses Activity1, located at the bottom of the back stack, corresponding to the preset return interface returned by the quick return method, as an example. In the specific implementation, any Activity in the back stack corresponding to the preset return interface returned by the quick return method, excluding the top Activity, such as Activity(2), Activity(5), etc.

[0342] In this application, "Activity" can be understood as a user interface, such as a user interface displayed on the entire display screen, or a user interface displayed on an area of ​​the display screen excluding the status bar. A user interface can be an interface displayed by an electronic device in response to received user actions, such as... Figure 4 In the illustrated embodiment, when the electronic device displays the user interface 300, it can switch to displaying the user interface 400 in response to a touch operation applied to the summer clothing 320A.

[0343] Those skilled in the art will understand that implementing all or part of the processes in the methods of the above embodiments can be accomplished by a computer program using computer program-related hardware. This computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing computer program code, such as read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A method for quickly returning to an interface, characterized in that, Applied to electronic devices, the method includes: The first interface of the first application is displayed. The first interface is associated with a first activity. The first activity is the top activity of the first activity stack. The first activity stack includes the first activity, the second activity, and the third activity. Receive the first user's operation; In response to the first user operation, at least two activities in the first activity stack are popped up, and a second interface of the first application is displayed, the second interface being associated with the second activity; or, in response to the first user operation, at least two activities in the first activity stack are popped up, and a third interface of the second application is displayed, the third interface being associated with the third activity; In response to a fifth user operation, the first function is activated; the first function is activated when the first user operation performs a large number of return operations in a short period of time, and the next return operation of the first user operation returns multiple interfaces; or, the first function is activated when the effective area of ​​the first user operation is different, and the user interface displayed in response to the first user operation is different; or, the first function is activated when the operation direction of the first user operation is different, and the user interface displayed in response to the first user operation is different.

2. The method as described in claim 1, characterized in that, Before displaying the first interface of the first application, the method further includes: Display the third interface of the second application; The second interface of the first application is displayed, the second activity is entered before the first activity enters the first activity stack, and the third activity is entered before the second activity enters the first activity stack.

3. The method as described in claim 1 or 2, characterized in that, Before receiving the first user operation, the method further includes: receiving a first number of second user operations, wherein the second user operations are used to return to the previous level interface of the currently displayed interface; The response to the first user action, popping at least two activities from the first activity stack, includes: When the first number of second user operations and the first user operation meet the first preset condition, in response to the first user operation, at least two activities in the first activity stack are popped. The preset condition is that the difference between the first receiving time and the receiving time of the first user operation is less than or equal to the first duration. The first receiving time is the receiving time of the earliest second user operation among the first number of second user operations.

4. The method as described in claim 1 or 2, characterized in that, Before receiving the first user operation, the method further includes: Receive a second number of second user operations, the second user operations being used to return to the previous level of the currently displayed interface; When the second number of second user operations meet the second preset condition, the first control is displayed. The second preset condition is that the difference between the second receiving time and the third receiving time is less than or equal to the second duration. The second receiving time is the receiving time of the earliest second user operation among the second number of second user operations, and the third receiving time is the receiving time of the latest second user operation among the second number of second user operations. The receiving of the first user operation includes: receiving the first user operation applied to the first control.

5. The method as described in claim 1 or 2, characterized in that, The receiving of the first user operation includes: The system receives the first user operation applied to the first area, where the first area and the second area are different. The second area is the area where the second user operation is applied, and the second user operation is used to return to the previous level of the currently displayed interface.

6. The method as described in claim 1 or 2, characterized in that, The first interface includes a second control and a third control, wherein the second control is used to indicate the first application and the third control is used to indicate the second application; The step of popping at least two activities from the first activity stack and displaying the second interface of the first application in response to the first user operation includes: popping at least two activities that enter after the second activity in the first activity stack in response to the first user operation applied to the second control, and displaying the second interface; or, The step of responding to the first user operation by popping up at least two activities in the first activity stack and displaying the third interface of the second application includes: responding to the first user operation applied to the third control by popping up at least two activities that enter after the third activity in the first activity stack and displaying the third interface.

7. The method as described in claim 6, characterized in that, The names of the first activity and the second activity include the name of the first application. Before displaying the second interface of the first application, the method further includes: Displays a fourth interface of the second application, which is associated with a fourth activity. The name of the fourth activity includes the name of the second application. The fourth activity is entered before the second activity enters the first activity stack and after the third activity enters the first activity stack. The second interface displaying the first application includes: When switching from the fourth interface to the second interface, it is determined that the second activity is the activity associated with the user interface displayed in response to the first user operation performed on the second control; when switching from the fourth interface to the second interface, the top activity of the first activity stack changes from the fourth activity to the second activity, and the name of the application included in the name of the fourth activity is different from the name of the application included in the name of the second activity.

8. The method as described in claim 7, characterized in that, The second interface displaying the first application includes: When switching from the fourth interface to the second interface, the third activity is determined to be the activity associated with the user interface displayed in response to the first user operation acting on the third control, and the third activity is the activity that first entered the first activity stack among a plurality of activities whose name includes the name of the second application.

9. The method as described in claim 6, characterized in that, The method further includes: in response to a third user operation acting on the second control, displaying the first interface and the second interface in a split-screen manner; or, The method further includes: in response to a fourth user operation acting on the third control, displaying the first interface and the third interface in a split-screen manner.

10. The method as described in claim 1 or 2, characterized in that, The response to the first user action, popping at least two activities from the first activity stack, includes: In response to the first user operation, at least two activities enter the first activity stack after the fifth activity pops up and before the first activity, the fifth activity is associated with the fifth interface, and the fifth interface is the second interface or the third interface; The first activity pops up, displaying the fifth interface.

11. The method as described in claim 10, characterized in that, The response to the first user action, which involves popping up the fifth activity but before the first activity, includes at least two activities entering the first activity stack: In response to the first user operation, at least two activities that entered the first activity stack after the fifth activity and before the first activity are executed using a destruction method. The at least two activities that entered the first activity stack after the fifth activity and before the first activity are in a destroyed state, the first activity is in a restored state, and the fifth activity is in a stopped state. The pop-up of the first activity and the display of the fifth interface include: The first activity is paused; The start method and restart method are executed on the fifth activity, and the fifth activity is in the start state; The recovery method is executed on the fifth activity, and the fifth activity is in a recovery state; The stop method is executed on the first activity, and the first activity is in a stopped state; The destruction method is executed on the first activity, and the first activity is in a destroyed state.

12. The method as described in claim 1 or 2, characterized in that, Before popping at least two activities from the first activity stack in response to the first user action, the method further includes: It is determined that the number of activities included in the first activity stack is greater than or equal to a preset number threshold.

13. The method as described in claim 1 or 2, characterized in that, Before popping at least two activities from the first activity stack in response to the first user action, the method further includes: The application of the user interface associated with the activities included in the first activity stack is determined to be a preset application.

14. The method as described in claim 13, characterized in that, The method further includes: In response to the sixth user action, the first application and the second application are determined to be preset applications.

15. A method for quickly returning to an interface, characterized in that, Applied to electronic devices, the method includes: The first interface of the first application is displayed. The first interface is associated with a first activity. The first activity is the top activity of the first activity stack. The first activity stack includes the first activity and a second activity. Receive the first user's operation; In response to the first user operation, at least two activities in the first activity stack are popped up, and a second interface of the first application is displayed, wherein the second interface and the second activity are associated. In response to a fifth user operation, the first function is activated; the first function is activated when the first user operation performs a large number of return operations in a short period of time, and the next return operation of the first user operation returns multiple interfaces; or, the first function is activated when the effective area of ​​the first user operation is different, and the user interface displayed in response to the first user operation is different; or, the first function is activated when the operation direction of the first user operation is different, and the user interface displayed in response to the first user operation is different.

16. The method as described in claim 15, characterized in that, Before displaying the first interface of the first application, the method further includes: The second interface of the first application is displayed, and the second activity is entered before the first activity enters the first activity stack.

17. The method as described in claim 15 or 16, characterized in that, When the first interface of the first application is displayed, the second activity is the bottom activity of the first activity stack.

18. The method as described in claim 15 or 16, characterized in that, Before receiving the first user operation, the method further includes: receiving a first number of second user operations, wherein the second user operations are used to return to the previous level interface of the currently displayed interface; The step of popping at least two activities from the first activity stack in response to the first user operation includes: when the first number of second user operations and the first user operation meet a first preset condition, at least two activities from the first activity stack are popped in response to the first user operation, wherein the preset condition is that the difference between the first receiving time and the receiving time of the first user operation is less than or equal to a first duration, and the first receiving time is the receiving time of the earliest second user operation among the first number of second user operations.

19. The method as described in claim 15 or 16, characterized in that, Before receiving the first user operation, the method further includes: Receive a second number of second user operations, the second user operations being used to return to the previous level of the currently displayed interface; When the second number of second user operations meet the second preset condition, the first control is displayed. The second preset condition is that the difference between the first receiving time and the second receiving time is less than or equal to the second duration. The first receiving time is the receiving time of the earliest second user operation among the first number of second user operations, and the second receiving time is the receiving time of the latest second user operation among the second number of second user operations. The receiving of the first user operation includes: receiving the first user operation applied to the first control.

20. The method as described in claim 15 or 16, characterized in that, The receiving of the first user operation includes: The system receives the first user operation applied to the first area, where the first area and the second area are different. The second area is the area where the second user operation is applied, and the second user operation is used to return to the previous level of the currently displayed interface.

21. The method as described in claim 15 or 16, characterized in that, The first interface includes a second control, which is used to indicate the first application; The step of responding to the first user operation by popping up at least two activities from the first activity stack and displaying the second interface of the first application includes: In response to the first user action applied to the second control, at least two activities that enter after the second activity in the first activity stack are popped up, and the second interface is displayed.

22. The method as described in claim 15 or 16, characterized in that, The second interface includes a fourth control, and the method further includes: In response to a seventh user action acting on the fourth control, the second interface is determined to be a user interface displayed in response to the first user action, and the first activity stack also includes at least one activity that was entered prior to the second activity.

23. The method as described in claim 15 or 16, characterized in that, The method further includes: In response to the eighth user's action, the first interface and the second interface are displayed in a split-screen format.

24. The method as described in claim 15 or 16, characterized in that, The step of responding to the first user operation by popping up at least two activities from the first activity stack and displaying the second interface of the first application includes: In response to the first user action, at least two activities are entered into the first activity stack after the second activity is displayed and before the first activity is displayed; The first activity pops up, and the second interface is displayed.

25. The method as described in claim 24, characterized in that, The response to the first user action, which involves popping up the second activity but before the first activity, includes at least two activities that enter the first activity stack: In response to the first user operation, at least two activities that entered the first activity stack after the second activity and before the first activity are executed using a destruction method. The at least two activities that entered the first activity stack after the second activity and before the first activity are in a destroyed state, the first activity is in a restored state, and the second activity is in a stopped state. The pop-up of the first activity and display of the second interface includes: The first activity is paused; The start method and restart method are executed on the second activity, and the second activity is in the start state; The recovery method is executed on the second activity, and the second activity is in a recovery state; The stop method is executed on the first activity, and the first activity is in a stopped state; The destruction method is executed on the first activity, and the first activity is in a destroyed state.

26. The method as described in claim 15 or 16, characterized in that, Before responding to the first user operation, popping at least two activities from the first activity stack, and displaying the second interface of the first application, the method further includes: It is determined that the number of activities included in the first activity stack is greater than or equal to a preset number threshold.

27. The method as described in claim 15 or 16, characterized in that, Before responding to the first user operation, popping at least two activities from the first activity stack, and displaying the second interface of the first application, the method further includes: The application of the user interface associated with the activities included in the first activity stack is determined to be a preset application.

28. The method as described in claim 27, characterized in that, The method further includes: In response to the ninth user's action, the first application is determined to be a preset application.

29. An electronic device, characterized in that, The device includes a transceiver, a processor, and a memory, wherein the memory stores a computer program, and the processor invokes the computer program to perform the method as described in any one of claims 1-28.

30. A computer storage medium, characterized in that, The computer storage medium stores a computer program, which, when executed by a processor, implements the method described in any one of claims 1-28.