WO2022268085A1 - 一种快速返回界面的方法及电子设备 - Google Patents
一种快速返回界面的方法及电子设备 Download PDFInfo
- Publication number
- WO2022268085A1 WO2022268085A1 PCT/CN2022/100212 CN2022100212W WO2022268085A1 WO 2022268085 A1 WO2022268085 A1 WO 2022268085A1 CN 2022100212 W CN2022100212 W CN 2022100212W WO 2022268085 A1 WO2022268085 A1 WO 2022268085A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- activity
- interface
- user
- user operation
- stack
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 252
- 230000000694 effects Effects 0.000 claims abstract description 805
- 230000004044 response Effects 0.000 claims abstract description 166
- 230000006870 function Effects 0.000 claims description 109
- 238000004590 computer program Methods 0.000 claims description 16
- 230000006378 damage Effects 0.000 claims description 6
- 230000000875 corresponding effect Effects 0.000 description 98
- 238000010586 diagram Methods 0.000 description 37
- 230000008569 process Effects 0.000 description 29
- 230000009471 action Effects 0.000 description 18
- 230000009191 jumping Effects 0.000 description 9
- 230000005236 sound signal Effects 0.000 description 9
- 238000007726 management method Methods 0.000 description 8
- 238000005452 bending Methods 0.000 description 6
- 230000009286 beneficial effect Effects 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 230000002452 interceptive effect Effects 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 238000013528 artificial neural network Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 239000002537 cosmetic Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000003814 drug Substances 0.000 description 1
- 230000008014 freezing Effects 0.000 description 1
- 238000007710 freezing Methods 0.000 description 1
- 235000021022 fresh fruits Nutrition 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000008571 general function Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 230000007480 spreading Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04886—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0631—Item recommendations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0641—Shopping interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0641—Shopping interfaces
- G06Q30/0643—Graphical representation of items or shoppers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2200/00—Indexing scheme relating to G06F1/04 - G06F1/32
- G06F2200/16—Indexing scheme relating to G06F1/16 - G06F1/18
- G06F2200/161—Indexing scheme relating to constructional details of the monitor
- G06F2200/1614—Image rotation following screen orientation, e.g. switching from landscape to portrait mode
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04803—Split screen, i.e. subdividing the display area or the window area into separate subareas
Definitions
- the present application relates to the technical field of electronic equipment, in particular to a method for quickly returning to an interface and electronic equipment.
- An application can include multiple application activities (Activity).
- Activity When the user is using the application, the application will generate multiple activities according to the user's operations, and the multiple activities will enter the stack in sequence according to the access sequence.
- the number of activities in the stack is large, if the user wants to return to a previously opened interface (such as the main interface of the application), it is necessary to trigger the return key multiple times to return step by step, and the activities will also follow the reverse order of the access order. Popping the stack, the user operation is cumbersome. Alternatively, the user can directly exit the application and reopen the application, but the previous operation records will be lost, and the user may need to re-operate. The operation is cumbersome and violates normal perception, and the user experience is poor.
- the embodiment of the present application discloses a method for quickly returning to an interface and an electronic device, which can quickly return to an interface that was opened before the upper-level interface, and the operation is simple and convenient.
- an embodiment of the present application provides a method for quickly returning to an interface, which is applied to an electronic device, and the method includes: displaying a first interface of a first application program, the first interface is associated with a first activity, and the The first activity is the top activity of the first activity stack, and the first activity stack includes the first activity, the second activity and the third activity; receiving a first user operation; in response to the first user operation, popping At least two activities of the first activity stack display a second interface of the first application program, and the second interface is associated with the second activity; or, in response to the first user operation, pop up the At least two activities of the first activity stack are used to display a third interface of the second application program, and the third interface is associated with the third activity.
- the electronic device can be applied to a first user operation to quickly return to an interface that was opened before the upper-level interface.
- This interface can belong to the same application program as the currently displayed first interface, such as the first application
- the user interface opened by the program for the first time may also belong to a different application program from the current display interface, such as the main interface of the second application program, which is simple and convenient for users to operate, and the return interface is diversified, and the interactive experience is more friendly.
- the method before displaying the first interface of the first application, further includes: displaying the third interface of the second application; displaying the third interface of the first application In the second interface, 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 of.
- the method before receiving the first user operation, further includes: receiving a first number of second user operations, where the second user operations are used to return to the previous level of the current display interface Interface: popping up at least two activities of the first activity stack in response to the first user operation, comprising: when the first number of the second user operations and the first user operations satisfy the first When a preset condition is met, at least two activities of the first activity stack are popped up in response to the first user operation, and the preset condition is the difference between the first receiving moment and the receiving moment of the first user operation The value is less than or equal to a first duration, and the first receiving moment is the receiving moment of the second user operation received earliest among the first number of second user operations.
- the electronic device may receive 3 consecutive return operations within 2 seconds (such as sliding inward from the left edge of the screen), and the electronic device may respond to the third return operation by popping up at least two activities of the first activity stack and displaying the previous one.
- An interface opened before the level interface when multiple user operations (the first number of second user operations and one first user operation) are continuously received for a short period of time, it is possible to quickly return to an interface that was opened before the upper-level interface, such as the electronic
- the device may receive 3 consecutive return operations within 2 seconds (such as sliding inward from the left edge of the screen), and the electronic device may respond to the third return operation by popping up at least two activities of the first activity stack and displaying the previous one.
- An interface opened before the level interface when multiple user operations (the first number of second user operations and one first user operation) are continuously received for a short period of time, it is possible to quickly return to an interface that was opened before the upper-level interface, such as the electronic
- the device may receive 3 consecutive return operations within 2 seconds (such as sliding inward
- the method before receiving the first user operation, further includes: receiving a second number of second user operations, where the second user operations are used to return to the previous level of the current display interface interface; when the second quantity of the second user operations satisfies a second preset condition, the first control is displayed, and the second preset condition is that the difference between the second receiving moment and the third receiving moment is less than or is equal to the second duration, the second receiving moment is the receiving moment of the second user operation received earliest among the second number of second user operations, and the third receiving moment is the second number of second user operations
- the receiving time of the second user operation received latest among the second user operations; the receiving the first user operation includes: receiving the first user operation acting on the first control.
- the electronic device may display a first control, and the first control is used to indicate that the user performs a quick return operation.
- the quick return operation is the first user operation acting on the first control.
- the electronic device may pop up at least two activities of the first activity stack in response to the fast return operation, and display an interface opened before the upper level interface, that is, the user interface indicated by the first control.
- the first control indicates the user interface through included text, and in other embodiments, the first control is an icon of an application program of the indicated user interface.
- the receiving the first user operation includes: receiving the first user operation acting on the first area, the first area is different from the second area, and 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 interface of the current display interface.
- both the first area and the second area are located on the left side of the screen, and the second area is located on the upper side of the first area.
- the first user operation and the second user operation have the same effective area and different operation directions, and the second user operation is used to return to the upper-level interface of the current display interface.
- the second user operation is an operation of sliding inward from the left edge of the screen horizontally
- the first user operation is an operation of sliding inward from the left edge of the screen and the sliding direction is diagonally upward.
- the first interface includes a second control and a third control
- the second control is used to indicate the first application program
- the third control is used to indicate the second The application program
- the second control is an icon of the first application program
- the third control is an icon of the second application program
- the method further includes: when the first interface is displayed, displaying the second control and the third control in response to a sliding operation acting on the first area. In some 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 acting on the first area and the sliding distance being a preset distance .
- the first area is different from the second area, and the second area is an area on which a second user operation is performed, and the second user operation is used to return to a previous interface of the current display interface.
- the popping up at least two activities of the first activity stack and displaying the second interface of the first application in response to the first user operation includes: responding to the first A type of first user operation, popping up at least two activities entered after the second activity in the first activity stack, and displaying the second interface; or, in response to the first user operation, popping up
- the at least two activities of the first activity stack displaying the third interface of the second application program include: responding to the first user operation of the second type, popping up the third activity in the first activity stack and then entering at least two activities to display the third interface.
- the action area of the first type of first user operation and the second type of first user operation are the same, and the operation directions are different.
- the first type of first user operation is from the left side of the screen The edge slides inward and the sliding direction is diagonally upward
- the second type of first user operation is an operation of sliding inward from the left edge of the screen and the sliding direction is diagonally downward.
- the user can perform different types of first user operations based on the information prompted by the interface, so as to quickly return to different user interfaces, diversify usage scenarios, and provide better user experience.
- the names of the first activity and the second activity include the name of the first application, and before the display of the second interface of the first application, the The method further includes: displaying a fourth interface of the second application, the fourth interface is associated with a fourth activity, the name of the fourth activity includes the name of the second application, and the fourth activity It is entered before the second activity enters the first activity stack and after the third activity enters the first activity stack; the displaying the second interface of the first application program includes : when switching from the fourth interface to the second interface, determining that the second activity is an activity associated with the displayed user interface in response to the first user operation acting on the second control; When the fourth interface is switched 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 fourth activity includes the name of the application program The name of the application included in the name of the second activity is different.
- the fourth interface is displayed after the third interface, and is the last displayed interface in the user interface of the second application program, and the fourth interface of the second application program displayed on the electronic device jumps to display as the first interface.
- the electronic device may record the first activity after the package name (ie, the name of the application program) is changed, that is, the second activity associated with the second interface of the first application program.
- the recorded second activity may be the top activity of the first activity stack after executing the fast return method, that is, the electronic device may respond to the first user operation and pop up at least two activities entered after the second activity in the first activity stack. an activity to display the second interface.
- the electronic device can quickly return to the user interface of the jumping first application program, and the first opened user interface conforms to the user's usage habits, and the user experience is better.
- the displaying the second interface of the first application program includes: when switching from the fourth interface to the second interface, determining that the third activity is a response When acting on the first user operation of the third control, an activity associated with the displayed user interface, the third activity is the earliest activity among the activities whose name includes the name of the second application program. The activity of the first activity stack.
- the fourth interface is displayed after the third interface, and is the last displayed interface in the user interface of the second application program, and the fourth interface of the second application program displayed on the electronic device jumps to display as the first interface.
- the electronic device may record the first activity that enters the first activity stack before the package name is changed, that is, the third activity associated with the third interface of the second application program.
- the recorded third activity may be the top activity of the first activity stack after executing the fast return method, that is, the electronic device may respond to the first user operation and pop up at least two activities entered after the third activity in the first activity stack. an activity to display the third interface.
- the third interface is the main interface of the second application program.
- the electronic device can quickly return to the main interface of the second application program, which conforms to the user's usage habits and provides a better user experience.
- 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 split screens; or, the method The method further includes: displaying the first interface and the third interface in split screens in response to a fourth user operation acting on the third control.
- the electronic device in response to user operations, can split-screen display the first currently displayed interface and a user interface displayed before the upper-level interface, which is more flexible to use.
- the popping up at least two activities of the first activity stack in response to the first user operation includes: popping up all activities after the fifth activity in response to the first user operation Enter at least two activities in the first activity stack 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, and display the fifth interface.
- the electronic device pops up at least two activities of the first activity stack
- the activity between the top activity of the first activity stack that is, the first activity
- the fifth activity of the target can be popped first.
- the activity remains unchanged, and the displayed user interface also remains as the first interface, and then the first activity pops up.
- the activity on the top of the stack is the fifth activity, and the electronic device displays the fifth interface. That is to say, the user interface visible to the user is directly returned from the first interface to the fifth interface, avoiding flickering, white screen, freeze, etc. caused by multiple switching of the displayed user interface when there are at least two pop-up activities. Problems, smooth performance, better user experience.
- popping up at least two activities that enter the first activity stack after the fifth activity and before the first activity includes: responding to the The first user operation, respectively execute the destruction method on at least two activities that enter the first activity stack after the fifth activity and before the first activity, and enter after the fifth activity before the first activity
- At least two activities in the first activity stack are in a destroyed state, the first activity is in a recovery state, and the fifth activity is in a stopped state
- the first activity is popped up to display the fifth interface, It includes: executing a suspend method on the first activity, where the first activity is in a paused state; executing a start method and a restart method on the fifth activity, where the fifth activity is in a start state; executing the fifth activity
- a resume method the fifth activity is in a resume state; a stop method is executed on the first activity, and the first activity is in a stop state; a destroy method is executed on the first activity, and the first activity is in a destroy state.
- 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 popping the top activity every time, displaying
- execute the following multiple methods implement the pause method for the activity at the top of the stack, execute the start method, restart method, and restore method for the activities associated with the upper-level interface, and execute the stop method and destroy method for the activity at the top of the stack.
- the amount of processing is greatly reduced and the power consumption of the device is reduced.
- the method further includes: in response to a fifth user operation, enabling a first function; when the first function has different action areas of the first user operation, responding to the first function Different user interfaces are displayed for a user operation, or, when the first function is that the operation direction of the first user operation is different, the user interfaces displayed in response to the first user operation are different.
- the user can choose the implementation method of the quick return function. For example, according to the usage habits, the user interface of the first user operation is different when the action area of the first user operation is different, or the operation direction of the first user operation can be selected according to the usage habits. At the same time, the user interface for quick return is different, and the use is more flexible.
- the method before popping at least two activities of the first activity stack in response to the first user operation, the method further includes: determining the activities included in the first activity stack The number of is greater than or equal to the preset number threshold.
- the method before popping at least two activities of the first activity stack in response to the first user operation, the method further includes: determining the activities included in the first activity stack
- the application program of the associated user interface is a default application.
- the method further includes: in response to a sixth user operation, determining the first application program and the second application program as preset applications.
- the user can choose the preset application that applies the quick return function by himself, which is more flexible to use.
- the embodiment of the present application provides another method for quickly returning to an interface, which is applied to an electronic device, and the method includes: displaying a first interface of a first application program, the first interface is associated with the first activity, and the The first activity is the top activity of the first activity stack, the first activity stack includes the first activity and the second activity; receiving a first user operation; in response to the first user operation, popping up the first activity At least two activities of an activity stack display a second interface of the first application program, and the second interface is associated with the second activity.
- the electronic device can be applied to a first user operation to quickly return to an interface that was opened before the upper-level interface.
- the user operation is simple and convenient, and the user experience is better.
- the method before displaying the first interface of the first application program, the method further includes: displaying the second interface of the first application program, and the second activity is in the The first activity entered before entering the first activity stack.
- the second activity is a bottom activity of the first activity stack.
- 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 program, which conforms to the user's usage habits and provides a better user experience.
- the method before receiving the first user operation, further includes: receiving a first number of second user operations, where the second user operations are used to return to the previous level of the current display interface Interface: popping up at least two activities of the first activity stack in response to the first user operation, comprising: when the first number of the second user operations and the first user operations satisfy the first When a preset condition is met, at least two activities of the first activity stack are popped up in response to the first user operation, and the preset condition is the difference between the first receiving moment and the receiving moment of the first user operation The value is less than or equal to a first duration, and the first receiving moment is the receiving moment of the second user operation received earliest among the first number of second user operations.
- the electronic device may receive 3 consecutive return operations within 2 seconds (such as sliding inward from the left edge of the screen), and the electronic device may respond to the third return operation by popping up at least two activities of the first activity stack and displaying the previous one.
- An interface opened before the level interface when multiple user operations (the first number of second user operations and one first user operation) are continuously received for a short period of time, it is possible to quickly return to an interface that was opened before the upper-level interface, such as the electronic
- the device may receive 3 consecutive return operations within 2 seconds (such as sliding inward from the left edge of the screen), and the electronic device may respond to the third return operation by popping up at least two activities of the first activity stack and displaying the previous one.
- An interface opened before the level interface when multiple user operations (the first number of second user operations and one first user operation) are continuously received for a short period of time, it is possible to quickly return to an interface that was opened before the upper-level interface, such as the electronic
- the device may receive 3 consecutive return operations within 2 seconds (such as sliding inward
- the method before receiving the first user operation, further includes: receiving a second number of second user operations, where the second user operations are used to return to the previous level of the current display interface interface; when the second quantity of the second user operations satisfies a second preset condition, the first control is displayed, and the second preset condition is that the difference between the second receiving moment and the third receiving moment is less than or is equal to the second duration, the second receiving moment is the receiving moment of the second user operation received earliest among the second number of second user operations, and the third receiving moment is the second number of second user operations
- the receiving time of the second user operation received latest among the second user operations; the receiving the first user operation includes: receiving the first user operation acting on the first control.
- the electronic device may display a first control, and the first control is used to indicate that the user performs a quick return operation.
- the quick return operation is the first user operation acting on the first control.
- the electronic device may pop up at least two activities of the first activity stack in response to the quick return operation, and display an interface opened before the upper level interface, that is, the user interface indicated by the first control.
- the first control indicates the user interface through included text, and in other embodiments, the first control is an icon of an application program of the indicated user interface.
- the receiving the first user operation includes: receiving the first user operation acting on the first area, the first area is different from the second area, and 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 interface of the current display interface.
- both the first area and the second area are located on the left side of the screen, and the second area is located on the upper side of the first area.
- the first user operation and the second user operation have the same effective area and different operation directions, and the second user operation is used to return to the upper-level interface of the current display interface.
- the second user operation is an operation of sliding inward from the left edge of the screen horizontally
- the first user operation is an operation of sliding inward from the left edge of the screen and the sliding direction is diagonally upward.
- the first interface includes a second control, and the second control is used to indicate the first application program; in response to the first user operation, popping up the first
- the at least two activities of the activity stack displaying the second interface of the first application program, include: popping up the first activity stack in the first activity stack in response to the first user operation acting on the second control For at least two activities entered after the second activity, the second interface is displayed.
- the second control is an icon of the first application.
- the method further includes: when the first interface is displayed, displaying the second control in response to a sliding operation acting on the first area. In some other embodiments, the method further includes: when the first interface is displayed, displaying part of the content of the second control in response to a sliding operation that acts on the first area and whose sliding distance is the first distance; A sliding operation that acts on the first area and whose sliding distance is a second distance displays all content of the second control, and the second distance is greater than the first distance.
- the content displayed by the second control is more or less determined according to the sliding distance of the sliding operation.
- the method further includes: when the first interface is displayed, displaying the second control in response to a sliding operation acting on the first area with a sliding distance of a preset distance.
- the first area is different from the second area
- the second area is an area affected by the second user operation
- the second user operation is used to return to the upper-level interface of the current display interface.
- the second interface includes a fourth control
- the method further includes: in response to a seventh user operation acting on the fourth control, determining that the second interface is The user interface displayed when the first user operates, the first activity stack further includes at least one activity entered before the second activity.
- the first control is a newly added control on the second interface, and in other embodiments, the first control is an existing control in the first application program.
- the user can select the browsed user interface as the user interface displayed in response to the operation of the first user, and the operation is more flexible.
- the method further includes: in response to an eighth user operation, displaying the first interface and the second interface in split screens.
- the electronic device in response to user operations, can split-screen display the first currently displayed interface and a user interface displayed before the upper-level interface, which is more flexible to use.
- the popping up at least two activities of the first activity stack and displaying the second interface of the first application in response to the first user operation includes: responding to the The first user operation pops up at least two activities that enter the first activity stack after the second activity and before the first activity; pops up the first activity to display the second interface.
- the electronic device pops up at least two activities of the first activity stack
- the activity between the top activity of the first activity stack that is, the first activity
- the second activity of the target can be popped first.
- the activity remains unchanged, and the displayed user interface also remains as the first interface, and then the first activity pops up, at this time, the activity on the top of the stack is the second activity, and the electronic device displays the second interface. That is to say, the user interface visible to the user returns directly from the first interface to the second interface, avoiding flickering, white screen, freeze, etc. caused by multiple switching of the displayed user interface when there are at least two pop-up activities Problems, smooth performance, better user experience.
- popping up at least two activities that enter the first activity stack after the second activity and before the first activity include: responding After the first user operation, respectively execute the destruction method on at least two activities that enter the first activity stack after the second activity and before the first activity, and the first activity after the second activity At least two activities that entered the first activity stack before are in a destroyed state, the first activity is in a recovery state, and the second activity is in a stopped state; the pop-up of the first activity displays the second
- the interface includes: executing a suspend method on the first activity, the first activity is in a suspended state; executing a start method and a restart method on the second activity, and the second activity is in a start state;
- the activity executes the restore method, the second activity is in the resume state;
- the stop method is executed on the first activity, the first activity is in the stop state;
- the destroy method is executed on the first activity, and the first activity is in the destroy state state.
- 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 popping the top activity every time, displaying
- execute the following multiple methods implement the pause method for the activity at the top of the stack, execute the start method, restart method, and restore method for the activities associated with the upper-level interface, and execute the stop method and destroy method for the activity at the top of the stack.
- the amount of processing is greatly reduced and the power consumption of the device is reduced.
- the method further includes: in response to a fifth user operation, enabling a first function; when the first function has different action areas of the first user operation, responding to the first function Different user interfaces are displayed for a user operation, or, when the first function is that the operation direction of the first user operation is different, the user interfaces displayed in response to the first user operation are different.
- the user can choose the implementation method of the quick return function. For example, according to the usage habits, the user interface of the first user operation is different when the action area of the first user operation is different, or the operation direction of the first user operation can be selected according to the usage habits. At the same time, the user interface for quick return is different, and the use is more flexible.
- the method before popping up at least two activities of the first activity stack in response to the first user operation and displaying the second interface of the first application program, the method further The method includes: determining that the number of activities included in the first activity stack is greater than or equal to a preset number threshold.
- the method before popping up at least two activities of the first activity stack in response to the first user operation and displaying the second interface of the first application program, the method further The method includes: determining that an application program of a user interface associated with an activity included in the first activity stack is a preset application.
- the method further includes: the method further includes: in response to a ninth user operation, determining that the first application program is a preset application.
- the user can choose the preset application that applies the quick return function by himself, which is more flexible to use.
- an embodiment of the present application provides an electronic device, including a transceiver, a processor, and a memory, the memory is used to store a computer program, and the processor invokes the computer program to execute the first aspect of the embodiment of the application to the second aspect, and the method for quickly returning to the interface provided by any implementation manner from the first aspect to the second aspect.
- the embodiment of the present application provides a computer storage medium, the computer storage medium stores a computer program, and when the computer program is executed by a processor, the first aspect to the second aspect of the embodiment of the present application, and the first A method for quickly returning to the interface provided by any implementation manner from the aspect to the second aspect.
- the embodiment of the present application provides a computer program product, which, when the computer program product is run on the electronic device, causes the electronic device to execute the first aspect to the second aspect, and the first aspect to the second aspect of the embodiment of the present application.
- the method for quickly returning to the interface provided by any implementation of the second aspect.
- the embodiments of the present application provide an electronic device, where the electronic device includes executing the method or apparatus introduced in any embodiment of the present application.
- the aforementioned electronic device is, for example, a chip.
- Fig. 1 is a schematic diagram of stacking and unstacking of an activity Activity provided by the embodiment of the present application;
- FIG. 2A is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application.
- FIG. 2B is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application.
- FIGS 3-25 are schematic diagrams of some user interface embodiments provided by the embodiments of the present application.
- Fig. 26 is a schematic flowchart of some methods for quickly returning to the interface provided by the embodiment of the present application.
- Figure 27- Figure 28 is a schematic diagram of popping some activities provided by the embodiment of the present application.
- FIG. 29 exemplarily shows a schematic diagram of an Activity life cycle.
- the embodiment of the present application provides a method for quickly returning to an interface, which is applied to an electronic device.
- the electronic device can pop multiple activities in the activity task stack (referred to as the activity stack) (Activity Stack) to perform the operation of returning to multiple user interfaces, that is, to achieve the effect of quickly returning to the interface , to prevent the user from repeatedly performing the return operation, making the operation more convenient and improving the user experience.
- Activity stack activity task stack
- the return operation is, for example but not limited to: the operation acting on the built-in return key of the application, the operation acting on the return key in the three-key navigation, the return operation in the gesture navigation (such as from the left or right edge of the screen Swipe inwards), speech (like making a sound: "Back"), gestures (like spreading your fingers and swiping from left to right).
- the above return key may be a virtual key or a physical key.
- an electronic device may run at least one application, and one application may include at least one application program activity.
- an application program activity may correspond to a user interface.
- this embodiment of the present application simply refers to an application program activity as an activity, or an application activity.
- the application activity may be an activity in the Android system, or an application activity in other operating systems such as IOS, which is not limited in this application.
- the application program activity is an Activity in the Android system as an example for illustration.
- Activity is an interface for interaction between users and application programs in the Android system.
- Activity is where the application draws the interface. Activities usually fill the screen, but can also be smaller than the screen and float on top of other activities.
- An Activity is something that users can interact with intuitively, and can be represented as a user interface. It can be understood that an Activity corresponds to a user interface.
- An application can contain multiple user interfaces, and it can also be understood that an application can contain multiple activities. When operating an application, it is occasionally necessary to call multiple Activities to fulfill the requirements.
- Each Activity can start another Activity to perform different operations. For example, after starting an email application, the user can first enter the application's main interface, and the activity corresponding to the main interface can start other activities to provide a user interface for performing tasks such as writing and opening emails.
- the Andord system can use the stack to manage the Activity, which can be called the Activity Stack (Activity Stack), or Task, which is convenient for linearly recording Activity examples.
- Task is actually a dynamic array (array list) in the Android open source project.
- the characteristics of the stack are push (also called entry) and pop, and the principle of first in last out is adopted, that is, the activity that is pushed into the stack first (also called into the stack) pops out of the stack before the activity that is pushed into the stack later.
- a Task can include at least one Activity.
- the multiple activities in a task can be activities included in the same application, or activities included in different applications.
- the first activity that is pushed into a task and the last that pops up a task can be understood as the activity at the bottom of the task, which can be called the root activity, and the activity that is the last to be pushed into a task and the first to pop up a task can be understood as The activity at the top of the task can be called the top activity.
- the root Activity usually corresponds to the main interface of the application.
- the top activity is usually the activity that is running and 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.
- Task can also be called a rollback stack (back stack).
- back stack A specific example is shown in Figure 1 below.
- FIG. 1 exemplarily shows a schematic diagram of an Activity being pushed into a stack and popped out of a stack.
- the user may open the first interface corresponding to Activity1 based on the electronic device. For example, when the user clicks an application icon on the desktop of the electronic device, the electronic device displays the main interface of the application corresponding to the application icon. At this point, Activity1 is pushed into the rollback stack and becomes the top Activity of the rollback stack. The first interface is visible and interactive to the user, and Activity1 is the foreground activity. The user may continue to open the second interface corresponding to Activity2 based on the electronic device. For example, when the user clicks on the category option on the main interface, the electronic device displays the application interface corresponding to the category option. At this point, Activity2 is pushed into the rollback stack and becomes the top Activity of the rollback stack. Users of the first interface cannot interact, users of the second interface are visible and interactive, and Activity2 is the foreground activity.
- the user may perform a return operation based on the electronic device. For example, when the user clicks a virtual return key on the second interface, the electronic device returns to display the first interface. At this point, Activity2 is popped out of the rollback stack, and Activity1 becomes the top Activity of the rollback stack again. The first interface becomes visible and interactive to the user again, and Activity1 becomes the foreground activity again.
- the electronic devices involved in the embodiments of the present application may be user terminal devices such as mobile phones, tablet computers, handheld computers, personal digital assistants (Personal Digital Assistant, PDA), smart home devices such as smart TVs and smart cameras, smart bracelets, smart watches, etc. , smart glasses and other wearable devices, or other desktops, laptops, notebooks, ultra-mobile personal computers (Ultra-mobile Personal Computer, UMPC), netbooks, smart screens and other devices.
- PDA Personal Digital Assistant
- smart home devices such as smart TVs and smart cameras, smart bracelets, smart watches, etc.
- smart glasses and other wearable devices or other desktops, laptops, notebooks, ultra-mobile personal computers (Ultra-mobile Personal Computer, UMPC), netbooks, smart screens and other devices.
- FIG. 2A schematically shows a schematic diagram of a hardware structure of the electronic device 100 .
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
- the illustrated components can be realized in hardware, software or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processing unit
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller video codec
- digital signal processor digital signal processor
- baseband processor baseband processor
- neural network processor neural-network processing unit
- the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is a cache memory.
- the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
- processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input and output
- subscriber identity module subscriber identity module
- SIM subscriber identity module
- USB universal serial bus
- the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
- the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
- the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
- the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos and the like.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
- the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
- the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
- the NPU is a neural-network (NN) computing processor.
- NN neural-network
- Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
- the internal memory 121 may be used to store computer-executable program codes including instructions.
- the internal memory 121 may include an area for storing programs and an area for storing data.
- the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
- the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
- the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
- the audio module 170 may also be used to encode and decode audio signals.
- the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
- Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
- Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
- Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
- the receiver 170B can be placed close to the human ear to receive the voice.
- the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
- the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
- the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
- pressure sensor 180A may be disposed on display screen 194 .
- pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
- a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
- the electronic device 100 determines the intensity of pressure according to the change in capacitance.
- the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
- the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
- touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
- the touch sensor 180K is also called “touch device”.
- the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to the touch operation can be provided through the display screen 194 .
- the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
- the keys 190 include a power key, a volume key and the like.
- the key 190 may be a mechanical key. It can also be a touch button.
- the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
- a software system with a layered architecture may be an Android system or an HMS system.
- the embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the terminal.
- FIG. 2B is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
- the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
- the application layer can consist of a series of application packages.
- the application package may include applications such as camera, gallery, music, browser, email, shopping application, video application, social networking application, and information.
- applications such as camera, gallery, music, browser, email, shopping application, video application, social networking application, and information.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
- a window manager is used to manage window programs.
- the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
- Content providers are used to store and retrieve data and make it accessible to applications.
- Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
- the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
- the view system can be used to build applications.
- a display interface can consist of one or more views.
- a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
- the phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
- the notification manager is used to notify the download completion, message reminder, etc.
- the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
- prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
- the application framework layer can also include an activity manager service (AMS).
- AMS is a system service of the Android system, which is used to control the reasonable scheduling and operation of different applications in the system.
- the main responsibilities of AMS include uniformly scheduling the activities of each application, managing the process of the application, managing memory, scheduling tasks, querying the current running status of the system, and so on.
- AMS can also be used to implement the method of quickly returning to the interface provided by this application, for example, execute the processes shown in Figure 26- Figure 28 below.
- the Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
- the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
- the application layer and the application framework layer run in virtual machines.
- the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
- the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
- 2D graphics engine is a drawing engine for 2D drawing.
- the kernel layer is the layer between hardware and software.
- the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
- the display screen 194 displays the main interface of the shopping application
- the pressure sensor 180A and/or the touch sensor 180K receive an operation of sliding inward from the left edge of the screen (ie, the return operation of gesture navigation)
- the corresponding hardware interrupt is sent to the kernel layer .
- the kernel layer processes the sliding operation into an original input event (including sliding track, sliding coordinates, time stamp and other information).
- Raw input events are stored at the kernel level.
- the application framework layer obtains the original 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 display the desktop of the electronic device 100 through the display screen 194 by calling the display driver of the kernel layer.
- FIG. 3 exemplarily shows a schematic diagram of a user interface.
- the electronic device may display a user interface 200, and the user interface 200 may be a desktop of the electronic device.
- User interface 200 may include application icons 220, which may include, for example, video application 220A, shopping application 220B, social application 220C, gallery 220D, browser 220E, music 220F, email 220G, phone 220H, messaging 220I, and camera. 220J, etc., may also include icons of other applications, which is not limited in this application.
- the electronic device may respond to a user operation (such as a touch operation) on an icon of any application, start the application corresponding to the icon, and display the main interface of the application corresponding to the icon.
- the electronic device may receive a user operation (such as a touch operation) acting on the shopping application 220B, and in response to the user operation, start the shopping application, and display the information shown in (A) of FIG. 4 .
- the user interface 300 shown.
- FIG. 4 exemplarily shows a schematic diagram of a user interface for interface jumping.
- the electronic device may display a user interface 300 .
- User interface 300 may include a search bar 310, shopping options icons 320, and page options 330, wherein:
- the search bar 310 can be used to search for items that the user wants to view in the shopping application.
- the search bar 310 may include an input box 310A and a search control 310B.
- the input box 310A may be used for the user to input the product name to be viewed. Find the product name entered by the user in the product, and display the corresponding search result. For example, when the content entered in the input box 310A is "pants", the electronic device may display the products whose product information includes "pants" on the shopping application, such as displaying the user interface 420 shown in (C) of FIG. 4 below.
- the shopping option icon 320 may include, for example, summer clothing 320A, fresh fruit 320B, travel service 320C, life service 320D, electrical product 320E, medicine and health care 320F, etc., which is not limited in this application.
- the electronic device may display a user interface of a shopping option corresponding to the icon in response to a user operation (such as a touch operation) on an icon of any shopping option.
- Page options 330 may include, for example, home page options 330A, category options 330B, shopping cart options 330C, and my options 330D, etc., which are not limited in this application.
- the homepage option 330A in the user interface 300 is selected, which means that the user interface 300 is the homepage of the shopping application, that is, the main interface of the shopping application.
- the electronic device may display a shopping interface of the option corresponding to the icon.
- the electronic device may receive a user operation (such as a touch operation) acting on summer clothing 320A, and in response to the user operation, display a shopping interface corresponding to "summer clothing", For example, the user interface 410 shown in (B) of FIG. 4 .
- the electronic device may display a user interface 410 .
- User interface 410 may include a back key 411, a page theme 412 (ie, "Summer Clothing"), a shopping options icon 413, and page options 414, wherein:
- the return key 411 can be used to return to the previous interface of the current interface.
- the electronic device may receive a user operation (such as a touch operation) acting on the return key 411 , and in response to the user operation, display an upper-level interface of the user interface 410 .
- Shopping option icons 413 may include, for example, tops 413A, trousers 413B, skirts 413C, cosmetics 413D, shoes 413E, bags 413F, etc., which are not limited in this application.
- the electronic device may display a user interface of the shopping option corresponding to the icon in response to a user operation (for example, a touch operation) on the icon of any option.
- the page options 414 may include, for example, a home page option 414A, a classification option 414B, and an activity option 414C, etc., which are not limited in this application.
- the classification option 414B in the user interface 410 is selected, indicating that the user interface 410 is a classification interface for summer clothing.
- the electronic device may display a shopping interface of the option corresponding to the icon.
- the electronic device may receive a user operation (such as a touch operation) acting on the pants 413B, and in response to the user operation, display a shopping interface corresponding to "pants", For example, the user interface 420 shown in (C) of FIG. 4 .
- a user operation such as a touch operation
- the electronic device may display a user interface 420 .
- the user interface 420 may include a return key 421 , a search bar 422 and a product list 423 , wherein: the return key 421 is similar to the return key 411 shown in the user interface 410 , and will not be repeated here.
- the search bar 422 can be used to search for items that the user wants to view in the shopping application. “Trousers” has been entered in the search bar 422 in the user interface 420 , which means that the user interface 420 includes a product list on the shopping application whose product information includes “pants”, that is, the product list 423 .
- Commodity list 423 may include information of a plurality of commodities, for example commodity names: trousers A (not shown), trousers B (not shown), trousers C (not shown), trousers D (not shown) , trousers E, trousers F, trousers G, trousers H.
- the electronic device may receive a user operation (such as a touch operation) acting on an option of any commodity, and in response to the user operation, display detailed information of the commodity corresponding to the option.
- the electronic device may receive a user operation (such as a touch operation) acting on the option 423A of "pants G), and in response to the user operation, display "pants G".
- a user operation such as a touch operation
- G for example, the user interface 430 shown in (D) of FIG. 4 .
- the electronic device may display a user interface 430 .
- the user interface 430 may include a return key 431 , a recommended product 432 , detailed information 433 of the product “pants G” and shopping options, wherein: the return key 431 is similar to the return key 411 shown in the user interface 410 , and will not be repeated here.
- the recommended product 432 is used to display pictures and prices of other products recommended according to “pants G”, and may include options of these other products, such as product options 432A, 432B, 432C and 432D.
- the electronic device may display detailed information of a commodity corresponding to the option.
- the detailed information 433 of the commodity "pants G" is not shown in the user interface 430, for example but not limited to include: price information, courier fee, monthly sales volume, delivery city, commodity service, commodity size and color, commodity parameters , pictures from multiple angles and size information, etc.
- Shopping options may include, but are not limited to, options such as Shop, Save, Add to Cart, and Buy Now.
- the electronic device may receive a user operation (such as a touch operation) acting on the product option 432D, and in response to the user operation, display the details of the product corresponding to the option. information, such as the user interface 510 shown in (E) of FIG. 4 .
- a user operation such as a touch operation
- the electronic device can display a user interface 510, which is similar to the user interface 430 and can include a return key, detailed information of the product "dress A", shopping options and recommended products (not shown). ) etc., no more details.
- the user interface displayed by the electronic device can jump from the user interface 430 shown in (D) of FIG. 4 to the user interface 510 shown in (E) of FIG. Jump to another item's user interface.
- the user may jump to the user interface of the commodity multiple times, for example, from the user interface 510 of "dress A" shown in (E) of Figure 4, jump to the (F) of Figure 4 ) of the user interface 520 for "Dress B".
- the user interface 520 is similar to the user interface 510 and the user interface 430 and will not be repeated here.
- the user after the user has browsed through multiple user interfaces, he wants to return to a previously browsed user interface. For example, when the electronic device displays the user interface 520 shown in (F) of FIG. 4 , the user wants to return to The main interface of the shopping application: the user interface 300 shown in (A) of FIG. 4 . Users usually need to perform multiple return operations, returning and jumping to each browsed user interface to achieve the goal, such as clicking the return button in the user interface of the shopping application multiple times, such as performing the return operation in gesture navigation multiple times, specifically An example is shown in Figure 5 below.
- FIG. 5 exemplarily shows a schematic diagram of a user interface of a return interface.
- the electronic device when the electronic device displays the user interface 520, it may receive a return operation (such as a sliding operation from the left edge of the screen inwardly), and in response to the return operation, display the upper level of the user interface 520 Interface: the user interface 510 shown in (B) of FIG. 5 .
- a return operation such as a sliding operation from the left edge of the screen inwardly
- display the upper level of the user interface 520 Interface the user interface 510 shown in (B) of FIG. 5 .
- the above process can be understood as that the user performs a return operation, and the electronic device returns a user interface.
- the electronic device displays the user interface 520, the user can continuously perform 5 return operations, and the electronic device can respond to the 5 return operations and return to display in turn: the user interface 510 shown in (B) of FIG. ), the user interface 430 shown in FIG. 5(D), the user interface 410 shown in FIG.
- the electronic device can return to multiple user interfaces in response to one return operation, reducing the number of return operations performed by the user and making the operation more convenient.
- the electronic device may return to multiple user interfaces.
- the electronic device when the electronic device displays the user interface 520 shown in (A) of FIG. 5 above, the user may perform 2 consecutive return operations within 1 second, and the electronic device may return to display the : the user interface 510 shown in (B) of FIG. 5 , and the user interface 430 shown in (C) of FIG. 5 .
- the electronic device displays the user interface 430, the user can perform another return operation within 1 second, and the electronic device can directly return to display the main interface of the shopping application in response to the return operation: the user shown in (F) of FIG. 5 Interface 300. That is to say, the electronic device may return three user interfaces in response to the returning operation: the user interface 420 shown in (D) of FIG. 5 , the user interface 410 shown in (E) of FIG. 5 , and the ( F) shows the user interface 300, but the electronic device only displays the user interface 300.
- the above example is described by taking the first preset number of times as 3 times and the first preset duration as 2 seconds as an example.
- the electronic device may return to multiple user interfaces in response to the third return operation performed within 2 seconds.
- the user only needs to perform 3 return operations to reach the interface shown in Figure 5 above which requires 5 return operations: user interface 300 , which reduces the steps of user operations.
- the electronic device actually returns 5 user interfaces, but only returns and displays 3 user interfaces, so as to avoid problems such as flickering, white screen, and freeze caused by multiple rapid return operations, and improve user experience. feel better.
- the electronic device may return to multiple user interfaces when the number of return operations received within the first preset time period is greater than or equal to the first preset number of times.
- the values of the first preset duration and the first preset times may also be other values, which are not limited in this application.
- the electronic device may display prompt information, and the user may perform a quick return operation based on the prompt information, wherein the normal return operation It is used to return to the upper-level interface of the current interface (also referred to as returning to a user interface), and the quick return operation is used to return to multiple user interfaces, as shown in Figure 6 below for a specific example.
- FIG. 6 exemplarily shows a schematic diagram of another user interface of a return interface.
- the electronic device when the electronic device displays the user interface 520, the user may perform two consecutive return operations within 1 second, and the electronic device may return to the display sequentially in response to the two return operations: The user interface 510 shown in (B) and the user interface 430 shown in (C) of FIG. 6 .
- the electronic device may display the first prompt information 434 on the returned user interface 430 in response to the second returning operation performed within 1 second.
- the first prompt information 434 may include the text: "return to the main interface".
- the first prompt information 434 is used to indicate the user interface displayed after the user performs the fast return operation: the current application (that is, the shopping application) Main interface.
- the electronic device can receive a click operation acting on the first prompt information 434, that is, it can receive a quick return operation, and in response to the quick return operation, directly return to display the main interface of the shopping application: the user interface 300 shown in (F) of FIG. 6 . That is to say, the electronic device may return three user interfaces in response to the quick return operation: the user interface 420 shown in (D) of FIG. 6 , the user interface 410 shown in (E) of FIG. ) shows the user interface 300, but the electronic device only displays the user interface 300.
- the user only needs to perform 2 normal return operations and 1 quick return operation to reach the interface in Figure 5 above that requires 5 normal return operations to return: user interface 300, which reduces the time required for user operations. step.
- the electronic device actually returns 5 user interfaces, but only returns and displays 3 user interfaces, so as to avoid problems such as flickering, white screen, and freeze caused by multiple rapid return operations, and improve user experience. feel better.
- the electronic device displays prompt information for a quick return operation.
- Fig. 6 is illustrated by taking the second preset number of times as 2 times and the second preset duration as 1 second as an example.
- the values of the second preset duration and the second preset times can also be other values , which is not limited in this application.
- the quick return operation can also be other user operations that are different from the normal return operation.
- the quick return operation and the normal return operation have different functional areas, different functional controls, and different operation methods, etc. , specific examples are shown in Figure 7 and Figure 9 below.
- FIG. 7 exemplarily shows a schematic diagram of a return operation.
- A) of FIG. 7 shows a schematic diagram of a normal return operation
- B) of FIG. 7 shows a schematic diagram of a quick return operation.
- the action areas of the fast return operation and the normal return operation may be different, the action area of the normal return operation may be return area 1 , and the action area of the fast return operation may be return area 2 .
- Both return area 1 and return area 2 are located on the left side of the screen, and return area 1 is located on the upper side of return area 2, but it is not limited to this.
- return area 1 may also be located on the left side of the screen, and return area 2 may be located on the right side of the screen , the application does not limit the specific location of the action area.
- An example of a quick return operation is shown in Figure 8 below.
- FIG. 8 exemplarily shows a schematic diagram of another user interface of a return interface.
- FIG. 8(F) shows the user interface 300. That is to say, the electronic device may return five user interfaces in response to the quick return operation: the user interface 510 shown in (B) of FIG. 8 , the user interface 430 shown in (C) of FIG. ), the user interface 410 shown in FIG. 8(E), and the user interface 300 shown in FIG. 8(F), but the electronic device only displays the user interface 300.
- the user only needs to perform one quick return operation to reach the interface shown in FIG. 5 that requires five normal return operations: the user interface 300 , which reduces the steps of user operations.
- the electronic device actually returns 5 user interfaces, but only returns and displays 1 user interface, so as to avoid problems such as flickering, white screen, and freezing caused by multiple rapid return operations, and improve user experience. feel better.
- FIG. 9 exemplarily shows a schematic diagram of another returning operation.
- (A) of FIG. 9 shows a schematic diagram of a normal return operation
- FIG. 9(B) shows a schematic diagram of a quick return operation.
- the quick return operation and the normal return operation can have the same action area (both return areas), but the operation methods can be different.
- the normal return operation can be an operation of sliding horizontally from the left edge of the screen inward
- the quick return operation It can be an operation of sliding inward from the left edge of the screen and the sliding direction is diagonally upward. It is not limited thereto, and the sliding distances of the normal return operation and the fast return operation may also be different, and the present application does not limit the specific operation mode.
- the example of the quick return operation is similar to Figure 8 above, except that the quick return operation is replaced by an inward slide from the left edge of the screen, and the sliding direction is diagonally upward.
- the electronic device may display prompt information, and the user may perform a quick return operation based on the prompt information.
- the prompt information is used to indicate at least one of the following: the action area of the quick return operation, the action control, the operation mode, the return interface, and the application corresponding to the return interface. Specific examples are shown in Figures 10-11, 15-16 shown.
- FIG. 10 exemplarily shows a schematic diagram of another returning operation.
- the electronic device when the electronic device displays the user interface 520, it can receive a sliding operation acting on the return area 2 and the sliding distance is the first distance, and in response to the sliding operation, the electronic device can display the user interface 520 Part of the content of the second prompt information 521 is displayed.
- the second prompt information 521 is used to instruct the user to return to the displayed user interface after performing the quick return operation: the main interface of the shopping application, for example, the second prompt information 521 is an icon of the shopping application.
- the displayed content of the second prompt information 521 is determined according to the sliding distance of the sliding operation.
- the electronic device may continue to receive the aforementioned sliding operation on the return area 2 , but at this time the sliding distance is changed to a second distance, and the second distance is greater than the first distance.
- the electronic device may display all content of the second prompt information 521 on the user interface 520 , for details, refer to the user interface 520 shown in (B) of FIG. 10 .
- the electronic device can receive a user operation (such as a touch operation, a sliding operation, etc.) acting on the second prompt information 521, that is, it can receive a quick return operation, and directly return to the display in response to the quick return operation.
- a user operation such as a touch operation, a sliding operation, etc.
- the main interface of the shopping application the user interface 300 shown in (F) of FIG. 8 .
- FIG. 11 exemplarily shows a schematic diagram of another returning operation.
- the electronic device when the electronic device displays the user interface 520, it may receive a sliding operation acting on the return area 2 and the sliding distance is the first distance, and the user interface 520 remains unchanged at this time. The electronic device may continue to receive the aforementioned sliding operation on the return area 2 , but at this time the sliding distance is changed to a second distance, and the second distance is greater than the first distance. In response to the sliding operation, the electronic device may display second prompt information 521 on the user interface 520 , as specifically shown in (B) of FIG. 11 .
- the electronic device can continue to receive the above-mentioned sliding operation acting on the return area 2, but at this time the sliding distance is changed to the third distance, and the third distance is greater than the second distance, that is, it can receive the fast return operation, as shown in (C) of Figure 11 Show.
- the electronic device may directly return to display the main interface of the shopping application: the user interface 300 shown in (F) of FIG. 8 .
- the user can perform specific operations on the user interface during the process of browsing the user interface (which can be called a favorite user interface), and the favorite user interface is used to return to the display in response to the quick return operation, and specific examples are as follows Figure 12 shows.
- FIG. 12 exemplarily shows a schematic diagram of a specific operation.
- the user interface 420 displayed by the electronic device may further include a newly added favorite option 424 .
- the electronic device may, in response to a user operation (such as a touch operation) acting on the favorite option 424, determine that the currently displayed user interface 420 is the user interface returned to display in response to the fast return operation. It can be understood that the electronic device may display the favorite option 424 on the user interface of all or part of the installed applications, and the electronic device may display the favorite option 424 on the entire user interface or part of the user interface of an application.
- the user interface can also be collected through the existing controls in the application program, for example, in the user interface 510 shown in (B) of FIG. For example, a touch operation), and determine that the currently displayed user interface 510 is a return interface.
- any user interface displayed by the electronic device can be favorited.
- the number of bookmarkable user interfaces may be less than or equal to a preset maximum number.
- the electronic device may determine the first number of user interfaces most recently favorited by the user as user interfaces corresponding to returning to the display for the first number of types of fast return operations, and the first number is equal to the maximum number. For example, assuming that the user has favorited user interfaces A, B, and C in sequence during the process of using application A, and assuming that the maximum number is 2, the electronic device may determine user interface B and user interface C as two types The quick return operation of corresponds to return to the displayed user interface.
- the user can also collect the user interface through gesture operations such as a fist gesture. This application does not limit the specific implementation of the collection operation.
- the electronic device may also preset the return interface, for example, the preset return interface is the user interface (such as the application main interface) opened for the first time by the current application.
- the electronic device can also determine the return interface according to preset rules, such as recording the browsing time of the user interface, and the user interface whose browsing time is greater than or equal to the preset browsing time is the user interface corresponding to the quick return operation.
- the fast return operation may include multiple types. Different types of fast return operations correspond to different user interfaces for returning. Different, etc., specific examples are shown in Figure 13- Figure 16 below.
- the fast return operation includes two types: a first fast return operation and a second fast return operation as an example for illustration.
- FIG. 13 exemplarily shows a schematic diagram of another return operation.
- the quick return operation may include two types: a first quick return operation and a second quick return operation, and the operating areas of these two types of operations may be different, as shown in (A) of Figure 13, the first quick return operation
- the action area of a quick return operation may be the return area 3, as shown in (B) of FIG. 13
- the action area of the second quick return operation may be the return area 4 .
- the effective area of the normal return operation can be the return area 1, wherein the return area 1 is located on the upper side of the return area 3 and the return area 4, and the return area 3 is located on the upper side of the return area 4. It is not limited thereto. In specific implementation, It may also be that the return area 3 is located at the lower left side of the screen, and the return area 4 is located at the lower right side of the screen. This application does not limit the specific positions of the active areas.
- FIG. 14 exemplarily shows a schematic diagram of another return operation.
- the fast return operation may include two types: a first fast return operation and a second fast return operation.
- the common return operation, the first quick return operation and the second quick return operation can have the same action areas (both return areas), but the operation modes can be different, as shown in (A) of Figure 14, the first quick return operation can be Swipe inward from the left edge of the screen and the sliding direction is diagonally upward, as shown in (B) of Figure 14, the second quick return operation can be sliding inward from the left edge of the screen and the sliding direction is diagonally downward operation, and the normal return operation can be an operation of sliding horizontally inward from the left edge of the screen.
- FIG. 15 exemplarily shows a schematic diagram of another return operation.
- the electronic device when the electronic device displays the user interface 520, it may receive a sliding operation acting on the return area 2 and the sliding distance is the first distance, and the user interface 520 remains unchanged at this time. The electronic device may continue to receive the aforementioned sliding operation on the return area 2 , but at this time the sliding distance is changed to a second distance, and the second distance is greater than the first distance. In response to the sliding operation, the electronic device may display third prompt information 522A, fourth prompt information 522B, and fifth prompt information 522C on the user interface 520 , as shown in (B) of FIG. 15 .
- the three prompt messages may respectively correspond to three types of quick return operations, and may include icons and text corresponding to the return interface.
- the return interface indicated by the third prompt information 522A is the main interface of the shopping application: the user interface 300, and the return interface indicated by the fourth prompt information 522B is: the user interface 420 collected by the newly added favorite option 424 in FIG. 12 , the fifth prompt The return interface indicated by the information 522C is: the user interface 510 collected through the existing collection option 511 of the shopping application.
- the electronic device can continue to receive the above-mentioned sliding operation.
- the sliding direction of the sliding operation is changed from horizontal to diagonal upward, and acts on the third prompt information 522A, that is, it can receive the first quick return operation, in response to the first quick return operation, directly return to display the user interface 300 .
- the electronic device may also receive a sliding operation on the fourth prompt information 522B or the fifth prompt information 522C to return to the corresponding return interface.
- FIG. 16 exemplarily shows a schematic diagram of another return operation.
- the electronic device when the electronic device displays the user interface 520, it can respond to the sliding operation acting on the return area 2, and display the third prompt information 522A, the fourth prompt information 522B, the fifth prompt information on the user interface 520.
- the specific description of the prompt information 522C is consistent with the prompt information in FIG. 15 .
- the electronic device can receive a user operation acting on any prompt information, that is, it can receive a quick return operation, and in response to the quick return operation, directly return to the return interface corresponding to the displayed and active prompt information.
- the electronic device may receive a click operation acting on the third prompt information 522A, that is, it may receive the first fast return operation, and directly return to display the user interface 300 in response to the first fast return operation.
- a click operation acting on the third prompt information 522A that is, it may receive the first fast return operation, and directly return to display the user interface 300 in response to the first fast return operation.
- the electronic device may display the current interface and the user interface opened before the previous interface in split screens in response to user operations, specific examples are shown in FIGS. 17-18 below.
- FIG. 17 exemplarily shows a schematic diagram of an embodiment of a user interface for split-screen display.
- the electronic device can display a user interface 520, and the user interface 520 can include third prompt information 522A, fourth prompt information 522B, and fifth prompt information 522C.
- the method of triggering the display of prompt information can be referred to above.
- Figure 16 the description of the prompt information can refer to Figure 15 above.
- the electronic device may receive a drag operation acting on the fifth prompt information 522C, the drag operation is used to drag the fifth prompt information 522C to the top of the screen, and in response to the drag operation, the electronic device may display a split-screen interface, specifically An example is shown in (B) of FIG. 17 .
- the split-screen interface displayed by the electronic device may include two upper and lower windows: a first window 1810 and a second window 1820 , and a moving control 1830 between the 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 part is shown)
- the mobile control 1830 is used to adjust the relative size of the first window 1810 and the second window 1820, for example When the mobile control 1830 is moved up, the first window 1810 becomes smaller and the second window 1820 becomes larger.
- the electronic device When the electronic device detects that the touch operation (which can also be understood as the above-mentioned drag operation) acting on the fifth prompt information 522C is canceled, it may display the return interface corresponding to the fifth prompt information 522C in the first window 1810: the user interface 510, specifically See (C) of FIG. 17 . 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 display the return interface corresponding to the fifth prompt information 522C in the first window 1810 .
- the user can also drag the third prompt information 522A or the fourth prompt information 522B to the first window 1810 under the user interface 520 shown in (C) of FIG.
- a window 1810 displays a return interface corresponding to the dragged prompt information
- fifth prompt information 522C is displayed on the first window 1810 or the second window 1820 .
- the user can also click on the third prompt information 522A or the fourth prompt information 522B under the user interface 520 shown in (C) of FIG.
- the return interface corresponding to the information.
- the electronic device may receive a quick return operation acting on the second window 1820, for example, a touch operation acting on 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 acting on 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.
- a quick return operation acting on the second window 1820 for example, a touch operation acting on 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 acting on 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.
- FIG. 18 exemplarily shows a schematic diagram of another user interface embodiment for split-screen display.
- FIG. 18 is illustrated by taking an electronic device configured with a foldable display screen (referred to as a foldable screen for short) as an example.
- a foldable screen referred to as a foldable screen for short
- the folding screen may be a flexible folding screen, and may include a first display area and a second display area on both sides of the bending line, and the folding screen may be bent along the bending line.
- the folding screen can be in an unfolded state or a bent state.
- the folding screen is in the unfolded state when the bending angle is 180 degrees, and is in the bent state when the bending angle of the folding screen is greater than or equal to 0 degrees and less than 180 degrees. It is not limited thereto, and may also include other physical states and corresponding angles, and the present application does not limit the specific physical states and corresponding angles.
- FIG. 18 is illustrated by taking the bending angle of the folding screen as 180 degrees as an example.
- the electronic device can display the user interface 520 shown in (A) of FIG. 17 on the folding screen, wherein the third prompt information 522A, the fourth prompt information 522B, and the fifth prompt information 522C are located in the first display area.
- the process from (A) to (C) in Figure 18 is similar to the process from (A) to (C) in Figure 17 above, except for the dragging operation of the fifth prompt message 522C
- the directions are different.
- the drag operation is used to drag the fifth prompt information 522C from the first display area to the second display area.
- the display windows of the split screens are also different. In FIG.
- the display window used to display the original user interface 520 is the first display area
- the display window used to display the fifth prompt message 522C and the corresponding return interface is the second display area.
- the movement control 1910 is located on the bending line, but the specific function is the same as that of the movement control 1830 shown in FIG. 17 . For the specific process, refer to the description shown in FIG. 17 , and details are not repeated here.
- the electronic device may receive a quick return operation acting on the first display area, for example, a touch operation acting on 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 acting on 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.
- a quick return operation acting on the first display area for example, a touch operation acting on 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 acting on 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.
- Figures 17-18 illustrate that the interface that the user wants to return to is the return interface corresponding to the fifth prompt information 522C as an example.
- the interface that the user wants to return to can also be the third prompt information 522A or the fourth prompt
- the specific process of the return interface corresponding to information 522B is similar to that in Figures 17-18 above, and will not be repeated here.
- the split screen of the folding screen may also be split screen up and down, and the present application does not limit the specific display mode of the split screen.
- the folding screen can also be a display screen spliced by connecting components such as a rigid screen, a flexible screen, and a chain. Both sides of an electronic device can be equipped with a display screen. This application does not limit the specific structure of the display screen.
- the user may jump from the user interface of the current application to the user interface of other applications.
- a specific example is shown in FIG. 19 below.
- FIG. 19 exemplarily shows a schematic diagram of another user interface for interface jumping.
- the electronic device may display a user interface 2510 .
- the user interface 2510 may be the main interface of the video application displayed by the electronic device in response to a user operation (such as a touch operation) acting on the icon of the video application.
- the icon of the video application is an icon of the electronic device.
- the user interface 2510 may include, for example, a search bar, a recommended video 2511 , a recommended video list and page options, etc., and the recommended video list may include, for example, names and cover pictures of multiple videos.
- the electronic device may receive a user operation (such as a touch operation) acting on the recommended video 2511, and in response to the user operation, display the video corresponding to the recommended video 2511.
- a user operation such as a touch operation
- the content of "Video E” in the video for example, the user interface 2520 shown in (B) of FIG. 19 .
- the user interface 2520 may include video content of "Video E", and detailed information (eg, name, description, publisher, etc.).
- the user interface 2520 may also include related information of "Video E", such as information of other videos recommended according to "Video E".
- the video option 2521 includes the name, publisher, and cover image of "Video F”.
- the electronic device may receive a user operation (such as a touch operation) acting on the video option 2521, and in response to the user operation, display the video corresponding to the video option 2521.
- a user operation such as a touch operation
- the content of "Video F” in the “Video F” is, for example, the user interface 2530 shown in (C) of FIG. 19 below.
- the user interface 2530 may include video content of "Video F", and detailed information (eg, name, description, publisher, etc.).
- the user interface 2530 may also include information related to "Video F", such as information (such as name, publisher, cover image, etc.)
- Option 2531 may include an icon and description of the shopping application (including the text: "Click to buy the same item as the video").
- the electronic device may receive a user operation (such as a touch operation) acting on the shopping option 2531, and in response to the user operation, display the user interface of the shopping application associated with "Video F", such as the user interface that appears in the video content.
- a user operation such as a touch operation
- the user interface 430 shown in (D) of FIG. 19 that is, the user interface 430 shown in (D) of FIG. 4 .
- the user interface 430 shown in (D) of FIG. 19 can continue to jump to the user interface 510 shown in (E) of FIG. 19 and the user interface 520 shown in (F) of FIG. 19 . This process is the same as that of FIG. 4
- the user interface 430 shown in (D) jumps to the user interface 510 shown in FIG. 4(E) and the jumping process of the user interface 520 shown in FIG. 4(F) is the same, and will not be repeated.
- the electronic device may return to display user interfaces of different applications in response to receiving different types of fast return operations.
- the electronic device may directly return to display the shopping application in response to the first fast return operation received.
- the first opened user interface that is, the user interface 430 shown in (D) of FIG. ) shows the user interface 2510, for a specific example, please refer to FIG. 20 below.
- FIG. 20 exemplarily shows a schematic diagram of another return operation.
- the electronic device when the electronic device displays the user interface 520, it may receive a sliding operation acting on the return area 2 and the sliding distance is the first distance, and the user interface 520 remains unchanged at this time. The electronic device may continue to receive the aforementioned sliding operation on the return area 2 , but at this time the sliding distance is changed to a second distance, and the second distance is greater than the first distance. In response to the sliding operation, the electronic device may display sixth prompt information 523A and seventh prompt information 523B on the user interface 520 , as specifically shown in (B) of FIG. 20 . The two prompts may be located near the touch position of the user's finger, for example, on the right side of the touch position.
- the two prompt messages may respectively correspond to two types of return operations for returning to user interfaces of different applications respectively, and the two prompt messages may include icons of applications returning to the interfaces.
- the sixth prompt information 523A includes an icon of a shopping application
- the seventh prompt information 523B includes an icon of a video application.
- the electronic device can receive a touch operation acting on the sixth prompt information 523A, specifically as shown in (C) of FIG.
- the touch operation of the seventh prompt information 523B is similar.
- the electronic device returns to display the first opened user interface in the shopping application, that is, the user interface 430 shown in (D) of FIG. 19 .
- the electronic device may return to display the main interface of the video application, that is, the user interface 2510 shown in (A) of FIG. 19 , in response to the touch operation on the seventh prompt information 523B.
- the above prompt information can be obtained based on the analysis of the return interface, for example, the identification name of the return interface (as in the user interface 430 shown in (C) of Figure 6 above, the first prompt information 434 is "return to the main interface" , the corresponding return interface is the main interface of the shopping application), for example, obtained by semantic analysis of the return interface (if the return interface is the user interface 520 shown in (A) of Figure 6 above, the prompt information may include the product name: "Dress B"), for example, obtained by analyzing the image of the return interface (if the return interface is the user interface 520, 530 shown in FIG. 6 above, the prompt information may include a product picture).
- the prompt information may also be an icon determined by the electronic device according to the application type of the returned interface, for example, the icon of the application program determined from the application program icon library (as in the above Figures 10-11, the second prompt Information 521 is the icon of the shopping application, and the corresponding return interface is the main interface of the shopping application). This application does not limit the specific expression of the prompt information.
- the electronic device may also display prompt information in response to the received trigger operation, such as an operation of horizontally sliding inward from the right edge of the screen, a long sliding operation inward from the left edge of the screen, etc.
- prompt information such as an operation of horizontally sliding inward from the right edge of the screen, a long sliding operation inward from the left edge of the screen, etc.
- the specific manner of triggering the display of the prompt information is not limited.
- the fast return operation may also be a long slide operation with a relatively long sliding distance, and the present application does not limit the specific type of the fast return operation.
- more user interfaces can also be displayed by jumping, for example, there are multiple user interfaces between (A) in Figure 4 and (D) in Figure 4, and the There are also multiple user interfaces between (D) and (F) in FIG. 4 . Therefore, in the embodiment shown in FIG. 5 , the user needs to perform more return operations and return to display more user interfaces before returning to the user interface 300 shown in (F) of FIG. 5 . In the embodiments shown in Fig. 6 and Fig. 8, the electronic device can return more user interfaces in response to the quick return operation. Similar to the embodiment shown in FIG. 19 , the present application does not limit the number of displayed user interfaces after jumping and the number of returned user interfaces.
- the function of the electronic device to return to multiple interfaces (referred to as the quick return function for short) in response to a return operation may be enabled or disabled by default.
- the electronic device may also enable or disable the quick return function in response to user operations, specific examples are shown in FIGS. 21-25 below.
- FIG. 21 exemplarily shows a schematic diagram of another user interface.
- the electronic device may display a user interface 3000 .
- the user interface 3000 may include a page theme 3010 (ie "quickly return to settings"), a general function option 3020, a first function option 3030, a second function option 3040 and a third function option 3050, wherein:
- the total function option 3020 may include the corresponding function name (ie "quick return function"), function description (ie "execute a return operation to return to multiple interfaces") and a switch control 3020A, which is used to enable or disable the quick return function , the electronic device may receive a user operation (such as a touch operation) acting on the switch control 3020A, and in response to the user operation, enable or disable the quick return function.
- a user operation such as a touch operation
- the quick return function may include N types, such as functions corresponding to the first function option 3030 , the second function option 3040 , and the third function option 3050 .
- M of the N types of fast return functions can be effective at the same time, or only one can be effective, M and N are positive integers, and N is greater than or equal to M.
- the first function option 3030 may include the corresponding function name (that is, “multiple normal returns trigger quick return”), function description (that is, "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 switch control 3030A.
- the second function option 3040 may include the corresponding function name (that is, "return area determines the return interface”), function description (that is, "the user interface that triggers the return is different when the return operation acts on different areas”) and switch control 3040A.
- the third function option 3050 may include the corresponding function name (that is, "the sliding direction determines the return interface"), function description (that is, "when the sliding direction of the return operation is different, the user interface that triggers the return is different”) and the switch control 3050A.
- the electronic device may receive a user operation (such as a touch operation) acting on any switch control of the three function options, and in response to the user operation, enable or disable the corresponding fast return function.
- a user operation such as a touch operation
- the electronic device may display a detailed description of the function. For details, refer to the embodiment shown in FIG. 22 .
- the second function option 3040 may further include a guide example 3040B and a return setting 3040C.
- the example of the quick return operation can be referred to in Figure 7, Figure 8, and Figure 13 above, and the guidance example 3040B is similar to Figure 7 above.
- the return setting 3040C can be used to set the size of different return areas and return interfaces corresponding to different return areas.
- the electronic device may display a detailed description of the function. For details, refer to the embodiment shown in FIG. 23 .
- the third function option 3050 may further include a guide example 3050B and a return setting 3050C.
- the example of the quick return operation can be seen in the above Figure 9, Figure 14- Figure 16, and Figure 20, and the guidance example 3050B is similar to the above Figure 14.
- the return setting 3050C can be used to set the size of the return area, and different sliding directions correspond to the return user interface.
- the electronic device may display a user interface for returning to setting in response to a user operation (such as a touch operation) acting on the returning setting 3040C shown in FIG. 22 .
- a user operation such as a touch operation
- FIG. 24 for a specific example.
- FIG. 24 exemplarily shows a schematic diagram of another user interface.
- user interface 3100 may include page theme 3110 (i.e., "Back Settings”), left back area settings 3120, and right return area settings 3130, wherein:
- page theme 3110 i.e., "Back Settings”
- left back area settings 3120 i.e., "Back Settings”
- right return area settings 3130 wherein:
- the left back area setting 3120 may include a toggle control 3120A, which may be used to enable or disable the back area at the left edge of the screen.
- the switch control 3120A in the user interface 3100 When the switch control 3120A in the user interface 3100 is turned on, the left edge of the screen shows the return area 1 and the return area 2, and the left return area setting 3120 also includes the area size setting and the return interface setting.
- the area size setting can include a horizontal size setting bar 3120B and a vertical size setting bar 3120C.
- the horizontal size setting bar 3120B and the vertical size setting bar 3120C can be used to adjust the horizontal width and the vertical width of the return area 1 and the return area 2 respectively.
- the return interface setting may include the setting option 3120D corresponding to the return interface of the return area 1, and the setting option 3120E corresponding to the return interface of the return area 2.
- the switch control 3130A included in the right return area setting 3130 can be used to activate or cancel the return area on the right edge of the screen, and the specific setting is similar to the left return area setting 3120, and will not be repeated here.
- the settings corresponding to the return setting 3050C shown in FIG. 23 are similar to the settings shown in FIG. 24 , and will not be repeated here.
- the electronic device may also enable other functions such as a manual bookmark return interface in response to user operations, and a specific example may refer to FIG. 25 .
- FIG. 25 exemplarily shows a schematic diagram of another user interface.
- the user interface 3000 may be a user interface displayed by the electronic device in response to a sliding operation (for example, a sliding operation from bottom to top) acting on the user interface 3000 shown in FIG. 21 .
- User interface 3000 may also include a fourth function option 3060, a fifth function option 3070, and an application option 3080, wherein:
- the fourth function option 3060 may include the corresponding function name (that is, "cross-application return”), function description (that is, "quick return operation can quickly return to the main interface of the background application that pulls up the foreground application”) and switch control 3060A, wherein, The foreground application is an application that is visible and interactive to the user, and the background application is an application that the user cannot interact with.
- the fifth function option 3070 may include the corresponding function name (namely "return interface for manual collection”), function description (namely "quick return operation can quickly return to the user interface for manual collection by the user") and switch control 3070A.
- the electronic device may receive a user operation (such as a touch operation) acting on any switch control of the two function options, and in response to the user operation, enable or disable the corresponding fast return function.
- a user operation such as a touch operation
- the function corresponding to the fourth function option 3060 is enabled, an example of the quick return operation can be referred to in FIG. 20 above.
- the function corresponding to the fifth function option 3070 is turned on, examples of the collection operation and the quick return operation can be found in Figure 12, Figure 15-16 above.
- the application option 3080 may include a function switch of a quick return function of multiple applications, such as a function switch 3080A of a video application, a function switch 3080B of a shopping application, and a function switch 3080C of a social application.
- the function switch of any application is used for the user to enable or disable the quick return function for this application.
- the applications in the application option 3080 may be default settings of the electronic device, for example, the shopping application and the video application shown in Figs. 3-20 above are applications that can enable the quick return function.
- the user can start from one user interface A, jump to multiple user interfaces in the middle to another user interface B, and return to the user interface by performing normal return operations multiple times to return to the user interface.
- Interface A or the displayed UI between UIA and UIB.
- applications that cannot enable the quick return function such as a gallery application, usually jump from one user interface C (such as a picture list) to another user interface D (such as the interface of picture A), and then return to user interface C. Then jump from user interface C to another user interface E (such as the interface of picture B), and for other user interfaces jumped from user interface C, usually only a small amount of return operations are needed to return to user interface C.
- the user can also set different sliding distances to return to different user interfaces, whether to display prompt information, the specific form of the prompt information, etc.
- This application does not limit the quick return function that the user can set.
- the electronic device can also enable the quick return function of some applications (such as shopping applications and video applications) by default, or the electronic device can enable the quick return function of all applications by default.
- This application does not limit the application of enabling the quick return function.
- the normal return operation and the fast return operation may also have different sliding distances, and different types of fast return operations may also have different sliding distances. This application does not limit the specific form of user operations. .
- Fig. 26 is a method for quickly returning to the interface provided by the embodiment of the present application. This method can be applied to the electronic device 100 shown in FIG. 2A. This method can be applied to the electronic device 100 shown in FIG. 2B. The method may include, but is not limited to, the following steps:
- S101 The electronic device receives a normal return operation.
- S102 The electronic device receives a quick return operation.
- the normal return operation and the fast return operation may, but are not limited to, meet at least one of the following: different areas of action, different controls, and different operation methods (such as different operating directions and different touch distances), etc.
- different areas of action such as different operating directions and different touch distances
- different operation methods such as different operating directions and different touch distances
- the electronic device may jump to S103 after receiving the normal return operation (that is, S101).
- the electronic device receives the quick return operation that is, S102
- it may jump to S105.
- S103 The electronic device judges whether a trigger condition for fast return is satisfied.
- the electronic device may determine whether the time period for receiving the first preset number of normal return operations is less than or equal to the first preset duration, and if so, determine that the trigger condition for fast return is met; otherwise, determine that the trigger for fast return is not satisfied condition. In other embodiments, the electronic device may determine whether the number of normal return operations received within the first preset time period is greater than or equal to the first preset number of times, and if so, determine that the trigger condition for quick return is met; otherwise, determine that the quick return operation is not satisfied trigger conditions.
- the electronic device when the electronic device determines that the triggering condition of fast return is not satisfied, it may jump to S104. In some other embodiments, when the electronic device determines that the trigger condition of fast return is met, it may jump to S105.
- K is a positive integer
- the moment of the earliest received ordinary return operation among the K ordinary return operations is the first moment
- the moment when the electronic device executes S101 for the second moment may include, but is not limited to: the difference between the first moment and the second moment is less than or equal to the first preset duration, and/or (K+1) is less than or equal to the first preset number of times.
- S104 The electronic device executes a normal return method.
- the electronic device may return to the upper-level interface of the current interface (that is, execute the normal return method). For a specific example, refer to FIG. 5 above.
- S105 The electronic device executes a quick return method.
- the electronic device may return to multiple user interfaces and directly return to display the preset return interface.
- the preset return interface may be any user interface displayed by the electronic device before the current interface, except the upper-level interface, such as the first opened application interface, such as the main interface of the application.
- the preset return interface and the current interface may belong to the user interface of the same application, and in other embodiments, the preset return interface and the current interface belong to user interfaces of different applications.
- the quick return operation may include multiple types. Different types of quick return operations correspond to returning to different user interfaces. Different types of quick return operations For example, but not limited to, there are different functional areas, different functional controls, and different operation methods (such as different operating directions, different touch distances) and so on. In some embodiments, different types of quick return operations correspond to different user interfaces returned, which can be in the same application. For specific examples, see Figures 6-18 above. In other embodiments, they can also be in different applications. For specific examples, please refer to Figure 19-20 above.
- the software system of the electronic device may be an Android system, and a user interface displayed by the electronic device may be understood as corresponding to an Activity, and the Activity is managed through a Task.
- Task can also be called a rollback stack (back stack). Therefore, opening a user interface can be understood as pushing the Activity corresponding to the user interface into a Task (that is, onto the stack).
- Execute the return operation to return to the previous interface of the current interface which can be understood as popping up the top activity of the task (also called the top activity of the stack) (that is, the activity corresponding to the current interface) (that is, popping the stack).
- the top activity of the stack also called the top activity of the stack
- the quick return method shown in Figure 26 is used to return to the preset return interface, which can be understood as: the quick return method is used to pop multiple activities above the Activity corresponding to the preset return interface in the Task, so as to return the preset Set the Activity corresponding to the returned interface as the top Activity of the Task.
- the electronic device runs a first activity stack
- the second activity associated with the second interface also referred to as the second activity corresponding to the second interface
- two activities into (also referred to as entering) the first activity stack
- the first activity associated with the first interface is pushed into the first activity stack.
- the electronic device responds to each user operation (for opening/jumping to the next-level interface of the current display interface), and sequentially displays the user interface 300, the user interface 410, the user interface Interface 420, user interface 430, user interface 510, and user interface 520, that is, the activities corresponding to user interface 300, user interface 410, user interface 420, user interface 430, user interface 510, and user interface 520 are pushed into the first activity stack .
- the user interface 520 is, for example, the first interface (ie, the currently displayed interface), and the top activity of the first activity stack is the first activity associated with the user interface 520 .
- the user interface 300 is, for example, the second interface, and then the bottom Activity (also called the stack bottom activity) of the first activity stack is the second activity associated with the user interface 300, not limited thereto, the user interface 410, the user interface 420 and the user interface 430 Any one of the interfaces can also be the second interface, and the second activity associated with the second interface can be understood as an activity in the stack (that is, an activity other than the bottom activity and the top activity of the stack), but it can be understood that the second activity An activity that is not associated with the user interface 510 (that is, the upper-level interface of the currently displayed interface).
- the electronic device when it is determined that the normal return operation is received and the trigger condition for quick return is not met, the electronic device may return to the upper-level interface of the first interface, that is, the electronic The device may pop the top activity of the first activity stack.
- the electronic device when it displays the user interface 520, it may return to display the user interface 510, the user interface 430, the user interface 420, the user interface 410, and the user interface 300 in sequence in response to each return operation. , that is, the top activities of the first activity stack are popped up sequentially until the top activity is an activity associated with the user interface 300 .
- the electronic device can execute the common return method shown in S104.
- the back stack includes more activities, for example, 20 activities, from the bottom to the top (that is, according to the order of entry, also That is, according to the order of opening), they are: Activity1, Activity2, ..., Activity19, Activity20.
- the electronic device determines to receive the normal return operation and does not meet the triggering conditions of the quick return, it can pop up the top activity of the back stack: Activity20.
- Activity20 The above situation can be understood as a normal return operation popping an Activity.
- the electronic device when the electronic device displays the first interface of the first application program, it receives a first user operation, and pops up at least two activities of the first activity stack in response to the first user operation. Specifically, when the electronic device displays the first interface of the first application program, the top activity of the first activity stack is the first activity. In response to the first user operation, the electronic device pops up at least two activities entered after the second activity in the first activity stack, and displays the second interface.
- the first user operation is a normal return operation
- the electronic device receives the first user operation, it determines that the trigger condition for quick return is met.
- the user interface shown in FIG. is the first interface
- the user interface 300 is the second interface.
- the electronic device displays the user interface 520 shown in (A) of Figure 5, in response to the 2 normal return operations performed within 1 second, the user interface 520 shown in (B) of Figure 5 is continuously popped out within 1 second.
- the activity associated with the user interface 510 in response to the normal return operation received again within the next 1 second (determining that the trigger condition for quick return is met, can also be understood as meeting the first preset condition), the second activity associated with the user interface 300 After that, the multiple activities that are pushed onto the stack are popped out, that is, the multiple activities associated with the user interface 430, the user interface 420, and the user interface 410 are popped out of the stack, which can be understood as a return operation (actually the third received normal return operation).
- Stack 3 Activities can be understood as a return operation (actually the third received normal return operation).
- the first user operation is a quick return operation.
- the user interface 520 is the first interface
- the user interface 300 is the second interface
- the electronic device responds to 2 normal return operations performed within 1 second (determining that the second number of second user operations satisfy the second preset condition), within 1 second
- the Activity associated with the user interface 510 and the user interface 520 is continuously popped, and the user interface is displayed
- the first prompt information 434 is displayed (when the second preset condition is met, the displayed first control is, for example, the first prompt information 434).
- the electronic device may respond to a user operation (i.e., a quick return operation) acting on the first prompt information 434, and pop a plurality of Activities that are pushed into the stack after the second activity associated with the user interface 300, that is, the user interface 430, the user interface 420 and the user interface 420.
- a user operation i.e., a quick return operation
- Multiple Activities associated with the user interface 410 are popped out of the stack, which can be understood as a quick return operation to pop three Activities out of the stack.
- the electronic device responds to the sliding operation (that is, the quick return operation) acting on the area 2, and pops the multiple activities that have been pushed into the stack after the second activity associated with the user interface 300, that is, The multiple activities associated with the user interface 520, the user interface 410, the user interface 430, the user interface 420, and the user interface 410 are popped out of the stack, which can be understood as a quick return operation to pop five activities out of the stack.
- the first user operation can be found in Figures 10-11 and 13-16 above.
- the electronic device may execute the fast return method shown in S105.
- the first activity is the top activity of the stack: Activity20
- the second activity is the bottom activity of the stack: Activity20.
- the electronic device may preset the top activity of the first activity stack (that is, the above-mentioned second activity) after executing the fast return method, for example, preset the stack bottom activity of the first activity stack before executing the fast return method to be the first Two activities.
- the electronic device may determine the top activity of the first activity stack after executing the fast return method (that is, the above-mentioned second activity) according to the type of Activity. Assuming that the name of the Activity includes the name of the application program (referred to as the package name) and the specific name (abbreviated as the Activity tag), the package names of the Activities belonging to the same application are the same, but the Activity tags are different, and the tags corresponding to different types of Activities are different.
- the electronic device can record the activity associated with the user interface that receives a specific operation. For example, in the embodiment shown in FIG. The user operation records the activity associated with the user interface 420 .
- the recorded Activity may be the top activity of the first activity stack after the fast return method is executed.
- the electronic device may record the activity associated with the main interface of the application program, and record the activity associated with the user interface receiving a specific operation.
- the electronic device can determine the Activity corresponding to the return interface according to the type of the fast return operation.
- the electronic device can respond to the first fast return operation and pop the activity above the activity associated with the main interface of the application program in the first activity stack. to return to the main interface of the application.
- the electronic device may pop the activity above the activity associated with the user interface receiving the specific operation in the first activity stack, that is, return to the user interface receiving the specific operation.
- the electronic device runs a first activity stack
- the third activity associated with the third interface is pushed into the first activity stack
- the electronic device When the second interface of the first application is displayed, the second activity associated with the second interface is pushed into the first activity stack, and then, when the electronic device displays the first interface of the first application, the first activity associated with the first interface The activity is pushed onto the first activity stack.
- the electronic device responds to each user operation (for opening/jumping to the next-level interface of the current display interface), and sequentially displays the user interface 2510 of the video application, the video application
- the user interface 2520 of the video application, the user interface 2530 of the video application, the user interface 430 of the shopping application, the user interface 510 of the shopping application, and the user interface 520 of the shopping application that is, the user interface 2510, the user interface 2520, the user interface 2530, the user interface 430.
- the user interface 520 of the shopping application is, for example, the first interface (ie, the currently displayed interface) of the first application program, and the top activity of the first activity stack is the first activity associated with the user interface 520 .
- the user interface 430 of the shopping application is, for example, the second interface of the first application, and the user interface 2510 of the video application is, for example, the third interface of the second application.
- the electronic device when the electronic device displays the first interface of the first application program, it receives a first user operation.
- the electronic device may pop up at least two activities of the first activity stack in response to the first user operation, and display the second interface of the first application program, or the electronic device may pop up at least two activities of the first activity stack in response to the first user operation. Two activities, showing the third interface of the second application.
- the first user operation is a normal return operation, and when the electronic device receives the first user operation, it is determined that the trigger condition for quick return is met. In other embodiments, the first user operation is a quick return operation. Specific examples and The above example where the first activity stack includes the first activity and the second activity is similar.
- the type of the first user operation received is different, for example, the operation modes such as the active area, active control, operating direction, and sliding distance are different, as shown in FIG. 13 - FIG. 14 shows the first fast return operation and the second fast return operation.
- 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
- the user interface 2510 of the video application is The third interface of the second application.
- the 20 it may display sixth prompt information 523A and seventh prompt information 523B (in the displayed first interface, the second control included is, for example, the sixth prompt information 523A , the third control is, for example, seventh prompt information 523B), the sixth prompt information 523A is an icon of a shopping application, used to indicate a shopping application, and the seventh prompt information 523B is an icon of a video application, used to indicate a video application.
- the electronic device may respond to the touch operation acting on the sixth prompt information 523A, and return to display the first opened user interface in the shopping application, that is, the user interface 430 (ie, the second interface), that is, the electronic device may display the user interface
- the multiple activities pushed onto the stack are popped out, that is, the two activities associated with the user interface 520 and the user interface 510 are popped out of the stack, which can be understood as a quick return operation to pop two activities out of the stack.
- the electronic device may respond to the touch operation acting on the seventh prompt information 523B, and return to display the first opened user interface in the video application, that is, the main interface of the video application, that is, the user interface 2510 (ie, the third interface), that is to say , the electronic device can pop the multiple activities that have been pushed into the stack after the third activity associated with the user interface 2510, that is, pop the multiple activities associated with the user interface 520, the user interface 510, the user interface 430, the user interface 2530, and the user interface 2520 , which can be understood as a quick return operation to pop 5 Activities out of the stack.
- the electronic device may determine the top activity of the first activity stack (ie, the above-mentioned second activity or third activity) after executing the fast return method according to the application program corresponding to the Activity. It is assumed that the name of the Activity includes the name of the application program (referred to as the package name) and the specific name (referred to as the Activity tag), and the package names of the activities belonging to the same application program are the same.
- the electronic device can identify whether the package name of the Activity in the first activity stack has changed.
- the electronic device can record the first Activity after the package name is changed.
- the electronic device can also record the package name. The first Activity that was pushed onto the stack before the name change.
- the recorded Activity can be the top activity of the first activity stack after the fast return method is executed.
- the electronic device displays the user interface 2530 of the video application, it may respond to the user operation acting on the shopping option 2531, and display the user interface 430 of the shopping application.
- the user interface 430 of the first activity stack The package name of the activity on the top of the stack is changed from the package name of the video application to the package name of the shopping application, then the electronic device can record the first Activity after the package name change: the second activity associated with the user interface 430, and can also record the package name change
- the first activity pushed into the stack the third activity associated with the user interface 2510 (ie the bottom activity of the first activity stack).
- the electronic device can determine the activity corresponding to the return interface according to the type of the quick return operation. Specifically, the electronic device can respond to the first quick return operation by popping the activity above the second activity in the first activity stack, that is, returning to the shopping The user interface 430 of the application. In response to the second fast return operation, the electronic device may pop the activity above the third activity in the first activity stack, that is, return to the user interface 2510 of the video application.
- the electronic device can record the pop-up time of each Activity in the first activity stack and the number of pop-up Activities, so as to determine whether to meet the requirement of fast access according to the recorded information when it is determined to receive a normal return operation.
- the specific example of the triggering condition for returning is as follows (the following example uses Activity1 as an example for the preset returning interface):
- Example 1 Assume that the electronic device has received K normal return operations, and K is a positive integer.
- the electronic device can pop the top Activity in the first activity stack out of the stack in response to each return operation, which can be understood as executing K S101, S103 and S104.
- the electronic device can record the pop-up time of each Activity, assuming that the recorded pop-up time is [t1, t2, . . . , t(K)]. Then, assuming that the electronic device receives the (K+1)th ordinary return operation at time t(K+1), it may be determined whether (t(K+1)-t(K)) is less than or equal to the first preset duration.
- the electronic device determines that (t(K+1) ⁇ t(K)) is less than or equal to the first preset duration, it determines that the trigger condition for fast return is met. Therefore, the electronic device may, in response to the (K+1)th normal return operation, pop multiple Activities above Activity1 corresponding to the preset return interface in the first activity stack from the stack. In some embodiments, it can be understood that the (K+1)th S101 and S103 are executed, and one S105 is executed.
- Example 2 Assume that the electronic device has received K normal return operations, and K is a positive integer.
- the electronic device can pop the top Activity in the first activity stack out of the stack in response to each return operation, which can be understood as executing K S101, S103 and S104.
- the electronic device can record the pop-up time of each Activity, assuming that the recorded pop-up time is [t1, t2, . . . , t(K)]. Then, the electronic device may receive the (K+1)th ordinary return operation, and pop the top Activity in the first activity stack out of the stack in response to the (K+1)th ordinary return operation, and record the popping time t(K +1).
- the electronic device determines that (t(K+1) ⁇ t(K)) is less than or equal to the first preset duration, it determines that the trigger condition for fast return is met. Therefore, the electronic device may, in response to the (K+1)th normal return operation, pop multiple Activities above Activity1 corresponding to the preset return interface in the first activity stack from the stack. In some embodiments, it can be understood that the (K+1)th S101 and S103 are executed, and one S105 is executed.
- the electronic device when the electronic device determines that the trigger condition of fast return is satisfied, it may also display prompt information (such as the first control), the prompt information is used for the user to determine whether to perform the fast return operation, and the user determines to perform the fast return operation.
- prompt information such as the first control
- the electronic device can execute S102 and S103.
- 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. It can be understood that the fast return method shown in this application can be applied to the back stack whose number of activities is greater than or equal to the preset number threshold.
- the method may further include: determining that the application of the user interface associated with the Activity in the first activity stack is an application that can enable the quick return function (abbreviated as a preset application), optional
- the application program of the user interface associated with any Activity in the first activity stack is determined to be the preset application
- the application program of the user interface associated with the top activity of the first activity stack after the fast return method is determined to be the preset application set the application.
- the name of the Activity includes the name of the application program (referred to as the package name) and the specific name (referred to as the Activity tag), and the package names of the Activities belonging to the same application are the same, but the Activity tags are different.
- 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 applications may be some or all of the applications on the electronic device.
- any at least one of the above steps in Figure 26 is an optional step, for example only including S102 and S105, or only including S101 and S104, or not including S102. Not limited thereto, it may also include S101 and S103, and the method may further include: when it is determined that the electronic device satisfies the trigger condition for quick return, that is, if the judgment result of S103 is yes, the electronic device may display a prompt message . Alternatively, before S101 and/or S102, the method may further include: displaying prompt information by the electronic device. Hints are used to indicate quick return actions. For examples of prompt information, please refer to Figure 6, Figure 10-11, Figure 15-18, and Figure 20 above.
- the back stack includes 20 activities, and the preset return interface corresponds to Activity 1 at the bottom of the back stack as an example for illustration.
- FIG. 27 exemplarily shows a schematic diagram of popping an Activity.
- the triggering condition of the fast return is: the duration of the period of receiving 5 normal return operations is less than or equal to 3 seconds.
- the electronic device can receive the user's normal return operation 4 times within 2 seconds, and pop the top activity of the back stack out of the stack in response to each normal return operation, that is, from the current display interface Return to the previous interface.
- the top Activity of the back stack is 16, and the electronic device can receive the user's fifth normal return operation within 1 second.
- the electronic device determines that the difference between the receiving times of the fourth normal return operation and the fifth normal return operation is less than or equal to 1 second, that is, determines that the trigger condition of the fast return is satisfied.
- the electronic device may pop multiple Activities above the Activity1 corresponding to the preset return interface in the back stack from the stack.
- the multiple activities above Activity1 are the 15 activities of Activity2, Activity3, ..., Activity15, and Activity16.
- the top activity of the back stack is Activity1, and the electronic device can display the preset return interface. The user only needs to perform 5 normal return operations to return to the displayed user interface after performing 19 normal return operations, and the operation is simple.
- the electronic device may, in response to a fast return operation, pop the multiple activities above the Activity corresponding to the preset return interface in the back stack sequentially according to the first-in-last-out principle.
- This solution may be called the first pop-out stack scheme.
- the electronic device may respond to a quick return operation by first popping multiple activities between the Activity corresponding to the preset return interface in the back stack and the top Activity, and then popping the top Activity from the stack.
- the popping scheme can be called the second popping scheme, and a specific example can be found in Figure 28 below.
- FIG. 28 exemplarily shows another schematic diagram of Activity popping out.
- the electronic device can respond to the user's quick return operation and return the 18 activities between the corresponding Activity 1 and the top activity (i.e., Activity 20) in the back stack. Popping out of the stack, in some embodiments, the 18 Activities of Activity19, Activity18, .
- the top Activity of the back stack remains as Activity20, that is, the user interface displayed by the electronic device remains as the user interface corresponding to Activity20. Then, the electronic device can continue to pop Activity20 out of the stack. At this time, the top Activity of the back stack is Activity1, and the electronic device can display a preset return interface.
- the 18 Activities can also be popped out of the stack in sequence according to the principle of last-in-first-out, or in any order. This application There is no limit to this.
- the electronic device can also respond to the user's normal return operation (and determine that the trigger condition for quick return is satisfied), and the activity corresponding to the preset return interface in the back stack and the top activity
- the electronic device can respond to the user's fifth normal return operation, and return the default activity in the back stack to the interface corresponding to Activity1 and the top
- the 14 activities between the Activity ie Activity16
- the Activity16 is popped out of the stack, and then the Activity16 is popped out of the stack.
- the Android system when the user enters, exits, and returns to the application (also can be understood as opening, exiting, and returning to the user interface), the Activity corresponding to the user interface has experienced different states in the life cycle,
- the Android system calls a series of methods in the life cycle. It can be understood that there is a life cycle for each Activity. For a specific example, see Figure 29 below.
- FIG. 29 exemplarily shows a schematic diagram of an Activity life cycle.
- the entire process of the life cycle can be understood as starting from the creation method onCreated() and ending with the destruction method onDestroy().
- the user can see the Activity, or it can be understood that the user can see the corresponding activity of the Activity
- the user interface is between the start method onStart() and the stop method onStop().
- the user can interact with the Activity, or it can be understood that the user can interact with the user interface corresponding to the Activity, from the resume method onResume() to the pause method onPause().
- the life cycle can also include the restart method onRestart(), that is to say, the life cycle can include seven methods, and the example is as follows:
- Creation method onCreated() Called when the Activity is created, usually doing some initialization settings.
- Start method onStart() Called before the Activity is ready to be displayed on the screen, and the Activity is in a visible state after the call.
- Resume method onResume() Called when the Activity gets focus and interacts with the user.
- Pause method onPause() Called when the current Activity is partially covered by other Activities or the screen is locked.
- Stop method onStop() Called when the Activity is invisible to the user.
- Destroy method onDestroy() Called when the Activity is about to be destroyed.
- Restart method onRestart() Called when the Activity starts again from the stopped (Stopped) state.
- the Activity is in different states after different method calls are executed.
- the life cycle can include five states.
- the example is as follows:
- Created state the state that the Activity is in after the method onCreated() is executed. When the Activity is in the current state, it is invisible to the user and cannot interact with the user.
- Started state The state of the Activity after the method onStart() is executed. When the Activity is in the current state, it is visible to the user but cannot interact with the user. Among them, when the Activity is in the Created state, the Activity is in the Started state after the method onStart() is executed. When the Activity is in the Stopped state, the methods onRestart() and onStart() are executed sequentially and the Activity is in the Started state.
- Resumed state also called running state.
- Paused state the state of the Activity after the method onPause() is executed. When the Activity is in the current state, it is visible to the user but cannot interact with the user.
- Stopped state the state of the Activity after the method onStop() is executed.
- the Activity is in the current state, it is invisible to the user and cannot interact with the user.
- Destroyed (Destroyed) state the state of the Activity after the method onDestroy() is executed. When the Activity is in the current state, it is invisible to the user and cannot interact with the user.
- the method when a lifecycle method is called for a different Activity, the method carries an Activity identifier as an example.
- Activity(i) is an example of an Activity identifier
- i is a positive integer.
- the method for the life cycle called by Activity1 can be expressed as: onCreated(Activity1), onStart(Activity1), onResume(Activity1), onPause(Activity1), onStop(Activity1), onDestroy(Activity1), onRestart (Activity1).
- the methods onCreated(Activity1), onStart(Activity1), and onResume(Activity1) can be called sequentially for Activity1, and the states of Activity1 can be sequentially Created, Started, Resumed. That is to say, when Activity1 is the top Activity of the back stack, the state is Resumed, which is visible to the user and can interact with the user.
- the methods onPause(Activity1), onCreated(Activity2), onStart(Activity2), onResume(Activity2), and onStop(Activity1) can be called sequentially for Activity1 and Activity2.
- Activity2 is the top Activity of the back stack, its status is Resumed, it is visible to the user and can interact with the user, while the status of Activity1 is Stopped, it is invisible to the user and cannot interact with the user. Then, when the user executes the return operation and Activity2 pops out of the stack, the methods onPause(Activity2), onRestart(Activity1), onStart(Activity1), onResume(Activity1), onStop(Activity2), onDestroy(Activity2) can be called sequentially for Activity1 and Activity2 . Activity2 is destroyed, and Activity1 becomes the top Activity of the back stack again.
- the electronic device can respond to the user's fast return operation, and pop the multiple activities above the activity corresponding to the preset return interface in the back stack sequentially according to the principle of first-in, last-out , that is, Activity20, Activity19, ..., Activity3, and Activity2 are popped out of the stack in sequence, so that Activity1 is the top Activity, and Activity1 is visible to the user and can interact with the user.
- the methods onPause(Activity20), onRestart(Activity19), onStart(Activity19), onResume(Activity19), onStop(Activity20), onDestroy(Activity20) can be called sequentially for Activity20 and Activity19. Need to execute 18 times. Therefore, when the first popping solution is adopted, the electronic device needs to call (19 ⁇ 6) life cycle methods to make Activity1 the top Activity.
- the electronic device may respond to the user's quick return operation, and the activity1 corresponding to the preset return interface in the back stack and the top Activity (i.e., Activity20)
- the 18 Activities of Activity19, Activity18, ..., Activity3, and Activity2 are popped out of the stack in turn according to the principle of first in, last out, and the electronic device can call the methods onDestroy(Activity19), onDestroy( Activity18), ..., onDestroy(Activity3), onDestroy(Activity2), a total of 18 life cycle methods are called.
- the top Activity of the back stack remains as Activity20, that is, the user interface displayed by the electronic device remains as the user interface corresponding to Activity20.
- the electronic device can continue to pop Activity20 out of the stack, and the electronic device can sequentially call the methods onPause(Activity20), onRestart(Activity1), onStart(Activity1), onResume(Activity1), onStop(Activity20), onDestroy(Activity20) for Activity20 and Activity1 , a total of 6 life cycle methods are called. Therefore, when the second popping solution is adopted, the electronic device needs to call (18+6) life cycle methods to make Activity1 the top Activity.
- (18+6) is much smaller than (19 ⁇ 6), and the power consumption consumed by the electronic device when adopting the second stacking scheme is far less than the power consumption when adopting the first stacking scheme, for example, reducing 90% power consumption.
- the electronic device adopts the first pop-out scheme the user performs a quick return operation, and the user interface displayed by the electronic device will jump from the user interface corresponding to Activity20 to the preset return interface corresponding to Activity1 in turn, that is, the electronic device actually displays 20 user interfaces are loaded (pictures, videos and other data required by 20 user interfaces are loaded), but because the jump speed is too fast (jump time is short), the user interface visible to the user may appear flickering, white screen, stuck Dayton and other issues.
- the electronic device adopts the second stacking scheme
- the user performs a quick return operation, and the user interface displayed by the electronic device will directly jump from the user interface corresponding to Activity20 to the preset return interface corresponding to Activity1, that is, the electronic device actually displays 2 A user interface, smooth performance, better user experience.
- the user interface 520 is associated with the top activity of the first activity stack.
- the activities included in the first activity stack are the activities associated with the user interface 300, the user interface 410, the user interface 420, the user interface 430, the user interface 510 and the user interface 520 in order from the bottom to the top (ie, the order of entry).
- the electronic device can pop up multiple activities between the top activity and the bottom activity in response to the user's fast return operation, that is, execute the method onDestroy() on the multiple activities between the top activity and the bottom activity, for example, sequentially Call methods onDestroy (Activity associated with user interface 510), onDestroy (Activity associated with user interface 430), onDestroy (Activity associated with user interface 420), onDestroy (Activity associated with user interface 410).
- the electronic device can pop up the stack top activity to display the user interface 300, that is, call the methods onPause (the activity associated with the user interface 520), onRestart (the activity associated with the user interface 300), onStart ((the activity associated with the user interface 300), onResume ((the activity associated with the user interface 300 ), onStop (the activity associated with the user interface 520 ), onDestroy (the activity associated with the user interface 520 ). Examples of other fast-returning user interfaces are similar and will not be repeated here.
- the 18 Activities such as Activity19, Activity18, ..., Activity3, and Activity2 may be popped out of the stack in sequence according to the last-in-first-out principle, and the electronic device may call the methods onDestroy(Activity2), onDestroy(Activity3), ..., onDestroy in sequence (Activity18), onDestroy (Activity19), can also be popped out of the stack in any order, which is not limited in this application.
- Only one Activity may be included between the Activity corresponding to the preset return interface returned by the quick return method and the top Activity of the Task.
- the default return interface returned by the quick return method corresponds to the Activity1 at the bottom of the back stack as an example for illustration.
- the default return interface returned by the quick return method is any Activity in the back stack except the top Activity, such as Activity (2), Activity (5), and so on.
- Activity in this application 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 other than the status bar.
- the user interface may be an interface displayed by the electronic device in response to received user operations. For example, in the embodiment shown in FIG. Interface 400.
- the processes can be completed by computer programs or hardware related to the computer programs.
- the computer programs can be stored in computer-readable storage media.
- the computer programs During execution, it may include the processes of the foregoing method embodiments.
- the aforementioned storage medium includes: various media capable of storing computer program codes such as read-only memory (ROM) or random access memory (RAM), magnetic disk or optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
Claims (32)
- 一种快速返回界面的方法,其特征在于,应用于电子设备,所述方法包括:显示第一应用程序的第一界面,所述第一界面和第一活动关联,所述第一活动为第一活动栈的栈顶活动,所述第一活动栈包括所述第一活动、第二活动和第三活动;接收第一用户操作;响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动,显示所述第一应用程序的第二界面,所述第二界面和所述第二活动关联;或,响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动,显示第二应用程序的第三界面,所述第三界面和所述第三活动关联。
- 如权利要求1所述的方法,其特征在于,所述显示第一应用程序的第一界面之前,所述方法还包括:显示所述第二应用程序的所述第三界面;显示所述第一应用程序的所述第二界面,所述第二活动是在所述第一活动进入所述第一活动栈之前进入的,所述第三活动是在所述第二活动进入所述第一活动栈之前进入的。
- 如权利要求1或2所述的方法,其特征在于,所述接收第一用户操作之前,所述方法还包括:接收第一数量个第二用户操作,所述第二用户操作用于返回当前显示界面的上一级界面;所述响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动,包括:当所述第一数量个所述第二用户操作和所述第一用户操作满足第一预设条件时,响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动,所述预设条件为第一接收时刻和所述第一用户操作的接收时刻的差值小于或等于第一时长,所述第一接收时刻为所述第一数量个所述第二用户操作中最早接收的所述第二用户操作的接收时刻。
- 如权利要求1或2所述的方法,其特征在于,所述接收第一用户操作之前,所述方法还包括:接收第二数量个第二用户操作,所述第二用户操作用于返回当前显示界面的上一级界面;当所述第二数量个所述第二用户操作满足第二预设条件时,显示第一控件,所述第二预设条件为第二接收时刻和第三接收时刻的差值小于或等于第二时长,所述第二接收时刻为所述第二数量个所述第二用户操作中最早接收的所述第二用户操作的接收时刻,所述第三接收时刻为所述第二数量个所述第二用户操作中最晚接收的所述第二用户操作的接收时刻;所述接收第一用户操作,包括:接收作用于所述第一控件的所述第一用户操作。
- 如权利要求1或2所述的方法,其特征在于,所述接收第一用户操作,包括:接收作用于第一区域的所述第一用户操作,所述第一区域和第二区域不同,所述第二区域为第二用户操作作用的区域,所述第二用户操作用于返回当前显示界面的上一级界面。
- 如权利要求1或2所述的方法,其特征在于,所述第一界面包括第二控件和第三控件,所述第二控件用于指示所述第一应用程序,所述第三控件用于指示所述第二应用程序;所述响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动,显示所述第一应 用程序的第二界面,包括:响应于作用于所述第二控件的所述第一用户操作,弹出所述第一活动栈中所述第二活动之后进入的至少两个活动,显示所述第二界面;或,所述响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动,显示第二应用程序的第三界面,包括:响应于作用于所述第三控件的所述第一用户操作,弹出所述第一活动栈中所述第三活动之后进入的至少两个活动,显示所述第三界面。
- 如权利要求6所述的方法,其特征在于,所述第一活动和所述第二活动的名称包括所述第一应用程序的名称,所述显示所述第一应用程序的所述第二界面之前,所述方法还包括:显示所述第二应用程序的第四界面,所述第四界面和第四活动关联,所述第四活动的名称包括所述第二应用程序的名称,所述第四活动是在所述第二活动进入所述第一活动栈之前,及所述第三活动进入所述第一活动栈之后进入的;所述显示所述第一应用程序的所述第二界面,包括:从所述第四界面切换为所述第二界面时,确定所述第二活动为响应于作用于所述第二控件的所述第一用户操作时,显示的用户界面关联的活动;所述第四界面切换为所述第二界面时,所述第一活动栈的栈顶活动从所述第四活动变为所述第二活动,所述第四活动的名称包括的应用程序的名称和所述第二活动的名称包括的应用程序的名称不同。
- 如权利要求7所述的方法,其特征在于,所述显示所述第一应用程序的所述第二界面,包括:从所述第四界面切换为所述第二界面时,确定所述第三活动为响应于作用于所述第三控件的所述第一用户操作时,显示的用户界面关联的活动,所述第三活动为名称包括所述第二应用程序的名称的多个活动中最早进入所述第一活动栈的活动。
- 如权利要求6所述的方法,其特征在于,所述方法还包括:响应于作用于所述第二控件的第三用户操作,分屏显示所述第一界面和所述第二界面;或,所述方法还包括:响应于作用于所述第三控件的第四用户操作,分屏显示所述第一界面和所述第三界面。
- 如权利要求1或2所述的方法,其特征在于,所述响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动,包括:响应于所述第一用户操作,弹出第五活动之后所述第一活动之前进入所述第一活动栈中的至少两个活动,所述第五活动和第五界面关联,所述第五界面为所述第二界面或所述第三界面;弹出所述第一活动,显示所述第五界面。
- 如权利要求10所述的方法,其特征在于,所述响应于所述第一用户操作,弹出第五活动之后所述第一活动之前进入所述第一活动栈中的至少两个活动,包括:响应于所述第一用户操作,分别对所述第五活动之后所述第一活动之前进入所述第一活动栈中的至少两个活动执行销毁方法,所述第五活动之后所述第一活动之前进入所述第一活动栈中的至少两个活动处于销毁状态,所述第一活动处于恢复状态,所述第五活动处于停止状态;所述弹出所述第一活动,显示所述第五界面,包括:对所述第一活动执行暂停方法,所述第一活动处于暂停状态;对所述第五活动执行开始方法和重启方法,所述第五活动处于开始状态;对所述第五活动执行恢复方法,所述第五活动处于恢复状态;对所述第一活动执行停止方法,所述第一活动处于停止状态;对所述第一活动执行销毁方法,所述第一活动处于销毁状态。
- 如权利要求1或2所述的方法,其特征在于,所述方法还包括:响应于第五用户操作,开启第一功能;所述第一功能为所述第一用户操作的作用区域不同时,响应于所述第一用户操作显示的用户界面不同,或,所述第一功能为所述第一用户操作的操作方向不同时,响应于所述第一用户操作显示的用户界面不同。
- 如权利要求1或2所述的方法,其特征在于,所述响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动之前,所述方法还包括:确定所述第一活动栈包括的活动的数量大于或等于预设数量阈值。
- 如权利要求1或2所述的方法,其特征在于,所述响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动之前,所述方法还包括:确定所述第一活动栈包括的活动关联的用户界面的应用程序为预设应用。
- 如权利要求14所述的方法,其特征在于,所述方法还包括:响应于第六用户操作,确定所述第一应用程序和所述第二应用程序为预设应用。
- 一种快速返回界面的方法,其特征在于,应用于电子设备,所述方法包括:显示第一应用程序的第一界面,所述第一界面和第一活动关联,所述第一活动为第一活动栈的栈顶活动,所述第一活动栈包括所述第一活动和第二活动;接收第一用户操作;响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动,显示所述第一应用程序的第二界面,所述第二界面和所述第二活动关联。
- 如权利要求16所述的方法,其特征在于,所述显示第一应用程序的第一界面之前,所述方法还包括:显示所述第一应用程序的所述第二界面,所述第二活动是在所述第一活动进入所述第一活动栈之前进入的。
- 如权利要求16或17所述的方法,其特征在于,所述显示第一应用程序的第一界面时,所述第二活动为所述第一活动栈的栈底活动。
- 如权利要求16或17所述的方法,其特征在于,所述接收第一用户操作之前,所述方法还包括:接收第一数量个第二用户操作,所述第二用户操作用于返回当前显示界面的上一级界面;所述响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动,包括:当所述第一数量个所述第二用户操作和所述第一用户操作满足第一预设条件时,响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动,所述预设条件为第一接收时刻和所述第一用户操作的接收时刻的差值小于或等于第一时长,所述第一接收时刻为所述第一数量个所述第二用户操作中最早接收的所述第二用户操作的接收时刻。
- 如权利要求16或17所述的方法,其特征在于,所述接收第一用户操作之前,所述方法还包括:接收第二数量个第二用户操作,所述第二用户操作用于返回当前显示界面的上一级界面;当所述第二数量个所述第二用户操作满足第二预设条件时,显示第一控件,所述第二预设条件为第一接收时刻和第二接收时刻的差值小于或等于第二时长,所述第一接收时刻为所述第一数量个所述第二用户操作中最早接收的所述第二用户操作的接收时刻,所述第二接收时刻为所述第二数量个所述第二用户操作中最晚接收的所述第二用户操作的接收时刻;所述接收第一用户操作,包括:接收作用于所述第一控件的所述第一用户操作。
- 如权利要求16或17所述的方法,其特征在于,所述接收第一用户操作,包括:接收作用于第一区域的所述第一用户操作,所述第一区域和第二区域不同,所述第二区域为第二用户操作作用的区域,所述第二用户操作用于返回当前显示界面的上一级界面。
- 如权利要求16或17所述的方法,其特征在于,所述第一界面包括第二控件,所述第二控件用于指示所述第一应用程序;所述响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动,显示所述第一应用程序的第二界面,包括:响应于作用于所述第二控件的所述第一用户操作,弹出所述第一活动栈中所述第二活动之后进入的至少两个活动,显示所述第二界面。
- 如权利要求16或17所述的方法,其特征在于,所述第二界面包括第四控件,所述方法还包括:响应于作用于所述第四控件的第七用户操作,确定所述第二界面为响应于所述第一用户操作时显示的用户界面,所述第一活动栈还包括所述第二活动之前进入的至少一个活动。
- 如权利要求16或17所述的方法,其特征在于,所述方法还包括:响应于第八用户操作,分屏显示所述第一界面和所述第二界面。
- 如权利要求16或17所述的方法,其特征在于,所述响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动,显示所述第一应用程序的第二界面,包括:响应于所述第一用户操作,弹出所述第二活动之后所述第一活动之前进入所述第一活动栈中的至少两个活动;弹出所述第一活动,显示所述第二界面。
- 如权利要求25所述的方法,其特征在于,所述响应于所述第一用户操作,弹出所述第二活动之后所述第一活动之前进入所述第一活动栈中的至少两个活动,包括:响应于所述第一用户操作,分别对所述第二活动之后所述第一活动之前进入所述第一活动栈中的至少两个活动执行销毁方法,所述第二活动之后所述第一活动之前进入所述第一活动栈中的至少两个活动处于销毁状态,所述第一活动处于恢复状态,所述第二活动处于停止状态;所述弹出所述第一活动,显示所述第二界面,包括:对所述第一活动执行暂停方法,所述第一活动处于暂停状态;对所述第二活动执行开始方法和重启方法,所述第二活动处于开始状态;对所述第二活动执行恢复方法,所述第二活动处于恢复状态;对所述第一活动执行停止方法,所述第一活动处于停止状态;对所述第一活动执行销毁方法,所述第一活动处于销毁状态。
- 如权利要求16或17所述的方法,其特征在于,所述方法还包括:响应于第五用户操作,开启第一功能;所述第一功能为所述第一用户操作的作用区域不同时,响应于所述第一用户操作显示的用户界面不同,或,所述第一功能为所述第一用户操作的操作方向不同时,响应于所述第一用户操作显示的用户界面不同。
- 如权利要求16或17所述的方法,其特征在于,所述响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动,显示所述第一应用程序的第二界面之前,所述方法还包括:确定所述第一活动栈包括的活动的数量大于或等于预设数量阈值。
- 如权利要求16或17所述的方法,其特征在于,所述响应于所述第一用户操作,弹出所述第一活动栈的至少两个活动,显示所述第一应用程序的第二界面之前,所述方法还包括:确定所述第一活动栈包括的活动关联的用户界面的应用程序为预设应用。
- 如权利要求29所述的方法,其特征在于,所述方法还包括:响应于第九用户操作,确定所述第一应用程序为预设应用。
- 一种电子设备,其特征在于,包括收发器、处理器和存储器,所述存储器用于存储计算机程序,所述处理器调用所述计算机程序,用于执行如权利要求1-30任一项所述的方法。
- 一种计算机存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序被处理器执行时,实现权利要求1-30任一项所述的方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US18/573,896 US20240211280A1 (en) | 2021-06-26 | 2022-06-21 | Quick interface return method and electronic device |
EP22827578.0A EP4350513A4 (en) | 2021-06-26 | 2022-06-21 | METHOD FOR QUICKLY RETURNING TO AN INTERFACE AND ELECTRONIC DEVICE |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110715180.1 | 2021-06-26 | ||
CN202110715180.1A CN115525367A (zh) | 2021-06-26 | 2021-06-26 | 一种快速返回界面的方法及电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022268085A1 true WO2022268085A1 (zh) | 2022-12-29 |
Family
ID=84545148
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/100212 WO2022268085A1 (zh) | 2021-06-26 | 2022-06-21 | 一种快速返回界面的方法及电子设备 |
Country Status (4)
Country | Link |
---|---|
US (1) | US20240211280A1 (zh) |
EP (1) | EP4350513A4 (zh) |
CN (1) | CN115525367A (zh) |
WO (1) | WO2022268085A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117130696A (zh) * | 2023-03-14 | 2023-11-28 | 荣耀终端有限公司 | 应用程序的界面跳转方法、设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120036456A1 (en) * | 2010-08-03 | 2012-02-09 | Aaron Grunberger | Method and system for revisiting prior navigated pages and prior edits |
CN104881212A (zh) * | 2015-06-26 | 2015-09-02 | 深圳市富途网络科技有限公司 | 用于移动电子设备的显示界面的快捷切换方法及其系统 |
CN106033372A (zh) * | 2015-03-19 | 2016-10-19 | 阿里巴巴集团控股有限公司 | 一种页面切换方法及装置 |
CN110263273A (zh) * | 2019-05-21 | 2019-09-20 | 深圳壹账通智能科技有限公司 | 页面回退方法及相关装置 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105955748B (zh) * | 2016-05-06 | 2019-07-02 | 青岛海信电器股份有限公司 | 应用程序的返回场景处理方法及装置 |
CN112578982A (zh) * | 2019-09-29 | 2021-03-30 | 华为技术有限公司 | 一种对电子设备的操作方法及电子设备 |
-
2021
- 2021-06-26 CN CN202110715180.1A patent/CN115525367A/zh active Pending
-
2022
- 2022-06-21 US US18/573,896 patent/US20240211280A1/en active Pending
- 2022-06-21 EP EP22827578.0A patent/EP4350513A4/en active Pending
- 2022-06-21 WO PCT/CN2022/100212 patent/WO2022268085A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120036456A1 (en) * | 2010-08-03 | 2012-02-09 | Aaron Grunberger | Method and system for revisiting prior navigated pages and prior edits |
CN106033372A (zh) * | 2015-03-19 | 2016-10-19 | 阿里巴巴集团控股有限公司 | 一种页面切换方法及装置 |
CN104881212A (zh) * | 2015-06-26 | 2015-09-02 | 深圳市富途网络科技有限公司 | 用于移动电子设备的显示界面的快捷切换方法及其系统 |
CN110263273A (zh) * | 2019-05-21 | 2019-09-20 | 深圳壹账通智能科技有限公司 | 页面回退方法及相关装置 |
Non-Patent Citations (1)
Title |
---|
See also references of EP4350513A4 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117130696A (zh) * | 2023-03-14 | 2023-11-28 | 荣耀终端有限公司 | 应用程序的界面跳转方法、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
US20240211280A1 (en) | 2024-06-27 |
EP4350513A1 (en) | 2024-04-10 |
EP4350513A4 (en) | 2024-09-04 |
CN115525367A (zh) | 2022-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11496600B2 (en) | Remote execution of machine-learned models | |
US20200310615A1 (en) | Systems and Methods for Arranging Applications on an Electronic Device with a Touch-Sensitive Display | |
US11474626B2 (en) | Button functionality | |
US11048873B2 (en) | Emoji and canned responses | |
US11747975B2 (en) | Devices, methods, and graphical user interfaces for touch input processing | |
US11955100B2 (en) | User interface for a flashlight mode on an electronic device | |
US11323559B2 (en) | Displaying and updating a set of application views | |
WO2023088068A1 (zh) | 窗口切换方法、电子设备及可读存储介质 | |
US10838598B2 (en) | Focus movement between virtual user interface elements and native user interface elements | |
US20170357433A1 (en) | Application shortcuts for carplay | |
WO2019080511A1 (zh) | 一种多任务管理方法及终端设备 | |
CN113805743B (zh) | 切换显示窗口的方法和电子设备 | |
WO2023226455A1 (zh) | 应用图标的显示方法、电子设备及可读存储介质 | |
WO2021213449A1 (zh) | 一种触控操作方法及设备 | |
EP3304250A1 (en) | Content browsing user interface | |
CN113093955B (zh) | 表情符号和预设回复 | |
WO2015183533A1 (en) | Device, method, and graphical user interface for navigating a content hierarchy | |
WO2022268085A1 (zh) | 一种快速返回界面的方法及电子设备 | |
WO2024109220A1 (zh) | 显示卡片的方法、电子设备及可读存储介质 | |
WO2022252788A1 (zh) | 一种控制方法及电子设备 | |
WO2024114234A1 (zh) | 一种单手操作方法及电子设备 | |
WO2024001871A1 (zh) | 一种操控方法和电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22827578 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2022827578 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 18573896 Country of ref document: US |
|
ENP | Entry into the national phase |
Ref document number: 2022827578 Country of ref document: EP Effective date: 20231218 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |