Home key return interface optimization method and computer readable storage medium
By displaying preset interfaces and recording user interface switching information when listening to Home events, the problem of traditional Home key operation lacks flexibility in multi-task switching scenarios is solved, and users can quickly and accurately switch interfaces are achieved, improving operation efficiency and user experience.
Patent Information
- Application Number
- CN202411580320.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-03-28
AI Technical Summary
Traditional Home key operation lacks flexibility in multi-task switching scenarios and cannot directly return to the user's recently used or specified application interface, resulting in inefficient operation.
When listening to Home events, a preset interface is displayed. The preset interface includes the previous display interface or the most frequently accessed interface, and records the user's recent interface switching information to achieve fast and accurate interface switching.
It realizes fast interface switching for users in multi-task switching scenarios, improves the flexibility of Home button operation, saves user operation time, and improves user experience.
Smart Images

Figure CN119718500A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile terminal technology, and in particular to a method for optimizing a Home button return interface and a computer-readable storage medium. Background Art
[0002] The Home button is a button that returns to the home screen in Microsoft's Windows operating system, Apple's iOS operating system, and Google's Android operating system. In a multitasking operating system, the Home button is the core interactive element of the user interface, and its default behavior is often to return to the home screen when pressed. However, this design does not always meet the immediate needs of users, especially in scenarios where users need to quickly switch to a specific application. Traditional Home button operations lack flexibility and cannot directly return to the user's most recently used or specified application interface, resulting in low operating efficiency. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a method for optimizing the Home key return interface and a computer-readable storage medium, which can improve the user's operating efficiency in a multi-task switching scenario and improve the flexibility of Home key operation.
[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is: a method for optimizing the Home key return interface, comprising: When a Home event is monitored, a preset interface is displayed, where the preset interface includes the last displayed interface or the most frequently visited interface.
[0005] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the program implements the above-mentioned method when executed by a processor.
[0006] The beneficial effects of the present invention are: by tracking user usage behavior, identifying and memorizing the user's most recently opened interface, when the user presses the Home button, switching to the user's desired interface, achieving fast and accurate interface switching. The present invention can return to a specific interface with one click, eliminating the step of re-activating the application, greatly saving time, and can improve the user's operating efficiency in multi-tasking switching scenarios, effectively improving the user's experience in multi-tasking operations, and improving the interactive flexibility of smart devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 This is a flowchart of a method for optimizing the Home button return interface according to Embodiment 1 of the present invention. DETAILED DESCRIPTION
[0008] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.
[0009] Please refer to Figure 1 , a method for optimizing a Home button return interface, comprising: When a Home event is monitored, a preset interface is displayed, where the preset interface includes the last displayed interface or the most frequently visited interface.
[0010] From the above description, it can be seen that the beneficial effects of the present invention are: it can improve the operating efficiency of the user in a multi-task switching scenario and improve the flexibility of the Home key operation.
[0011] Furthermore, when the Home event is monitored, before displaying the preset interface, the method further includes: When an interface switching event is monitored, the user interface after switching is written into the first interface stack, and the interface information of the user interface before switching is recorded.
[0012] From the above description, it can be seen that by recording the information of the interface after switching and the interface before switching, the system can quickly return to the previous interface after the Home event is triggered, and the system also has the ability to restore the state.
[0013] Furthermore, when an interface switching event is monitored, the user interface after switching is written into the first interface stack, and the interface information of the user interface before switching is recorded, including: Monitor Android system interface switching events; When switching to a new user interface, determining whether the new user interface and the user interface before switching belong to the same APP process; If they do not belong to the same APP process, the new user interface is written into the first interface stack, and the interface information of the user interface before the switch is recorded; If they belong to the same APP process, the configuration file of the same APP process is parsed to obtain the interface stack and display priority level to which the new user interface and the user interface before the switching belong; Determining whether the new user interface and the user interface before switching belong to the same interface stack; If they do not belong to the same interface stack, writing the new user interface into the first interface stack and recording the interface information of the user interface before the switching; If they belong to the same interface stack and the display priority of the new user interface is higher than the display priority of the user interface before switching, the new user interface is written into the first interface stack, and the interface information of the user interface before switching is recorded.
[0014] From the above description, it can be seen that when an APP has multiple functional modules, each functional module can be used as an independent main interface according to the interaction requirements. By recording only when the interfaces before and after the switch do not belong to the same APP process, do not belong to the same interface stack, or the display priority of the switched interface is higher, it is convenient for users to jump between different APPs or different functional modules through the Home button.
[0015] Furthermore, when the Home event is monitored, a preset interface is displayed, including: When the Home event is monitored, the previous display interface is obtained and displayed according to the first interface stack.
[0016] It can be seen from the above description that the previous display interface can be easily and quickly obtained and displayed.
[0017] Furthermore, when a Home event is detected, displaying a preset interface also includes: If the first interface stack is empty, a preset default interface is displayed.
[0018] Furthermore, when the Home event is monitored, before displaying the preset interface, the method further includes: Determine the most frequently accessed interface based on the operation records within the current preset period.
[0019] Furthermore, when the Home event is monitored, a preset interface is displayed, including: When the Home event is detected, the most frequently visited interface is displayed.
[0020] From the above description, it can be seen that by tracking the user's usage behavior, when the Home event is triggered, the user's most frequently visited interface can be returned.
[0021] Furthermore, when the Home event is monitored, a preset interface is displayed, including: When the Home event is monitored, the corresponding interface is displayed according to the user configuration; Among them, when the user configures to return to the most recently visited interface, the previous display interface is displayed; when the user configures to return to the most frequently visited interface, the most frequently visited interface is displayed.
[0022] As can be seen from the above description, the most recently visited interface or the most frequently visited interface can be returned according to user configuration to meet user needs.
[0023] Furthermore, it also includes: If the preset interface is not available, the preset default interface is displayed, or a prompt is displayed to guide the update information.
[0024] From the above description, it can be seen that when the Home return interface is unavailable due to an application crash or system update, the system can provide alternative solutions or guide the user to the settings interface to check for updates.
[0025] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the program implements the above-mentioned method when executed by a processor.
[0026] Embodiment 1 Please refer to Figure 1 , Embodiment 1 of the present invention is: a method for optimizing the Home key return interface, which is applicable to multi-task switching scenarios. Figure 1 As shown, the following steps are included: S1: When an interface switching event is monitored, the user interface after switching is written into the first interface stack, and the interface information of the user interface before switching is recorded.
[0027] Specifically, this step includes the following steps: S101: Monitor Android system interface switching events, that is, register to monitor Android system interface switching events.
[0028] S102: When switching to a new user interface, determine whether the new user interface and the user interface before switching belong to the same APP process, if so, execute step S104, if not, execute step S103.
[0029] S103: writing the new user interface into the first interface stack, and recording the interface information of the user interface before the switching.
[0030] In an optional embodiment, when jumping to a new UI interface (User Interface), if the jumped UI interface and the previous UI interface do not belong to the same APP process, the interface information of the jumped UI interface is written to the most recent display interface stack, and the interface information of the previous UI interface is recorded, so as to facilitate quick return to the previous UI interface when clicking the Home button.
[0031] The above is one embodiment of writing the new user interface into the first interface stack. In other embodiments, there is also a situation where the new user interface is written into the first interface stack.
[0032] S104: Parse the configuration file of the same APP process to obtain the interface stack and display priority level to which the new user interface and the user interface before switching belong.
[0033] If the redirected UI interface and the previous UI interface belong to the same APP process, the UI interface stack group and display priority information to which the UI interface belongs are obtained by parsing the extended attributes of the UI interface under the configuration file of the App.
[0034] S105: Determine whether the new user interface and the user interface before switching belong to the same interface stack, if so, execute step S106, if not, execute step S103.
[0035] If the UI interface after the jump and the previous UI interface belong to the same APP process but do not belong to the same UI interface stack, the interface information of the UI interface after the jump is written to the nearest display interface stack, and the interface information of the previous UI interface is recorded, that is, step S103 is executed.
[0036] S106: Determine whether the display priority of the new user interface is higher than the display priority of the user interface before switching. If so, execute step S103.
[0037] If the redirected UI interface and the previous UI interface belong to the same APP process and the same UI interface stack, and the priority of the redirected UI interface is higher than that of the previous UI interface, the interface information of the redirected UI interface is written to the nearest display interface stack, and the interface information of the previous UI interface is recorded, that is, step S103 is executed. Otherwise, no processing is performed.
[0038] S2: Determine the most frequently visited interface according to the operation records in the current preset period.
[0039] In an optional embodiment, the user's most frequently visited application interface and frequency are determined by analyzing the user's operation records in the past week or month. For example, the UI interface before and after each jump of the user is recorded, and then intelligently calculated through a big data model.
[0040] Step S1 and step S2 may be executed in any order.
[0041] S3: When a Home event is monitored, the previous display interface is obtained and displayed according to the first interface stack, or the most frequently visited interface is displayed.
[0042] Before this step, the user can pre-configure the Home button to return to the previous display interface or to return to the most frequently visited interface.
[0043] Specifically, this step registers and intercepts the startup event of the Android system Home interface. When the user clicks the Home button or triggers the Home event through the remote control, if the user is configured to return to the most recently visited interface, the previous display interface is obtained and displayed through the display interface stack recorded in step S1; if the user is configured to return to the most frequently visited interface, the current most frequently visited interface is obtained and displayed.
[0044] Furthermore, if the first interface stack is empty, the preset default interface is displayed. If the last displayed interface is not empty and has not been recycled by the system, the interface with the last saved state is quickly switched to. If the application interface is recycled by the system, it is restarted and restored to the state when it was left.
[0045] For some special cases, such as the Home return interface being unavailable due to an app crash or system update, the system can provide alternative solutions or guide the user to the settings interface to check for updates.
[0046] This embodiment aims to enhance the functionality of the Home button, enabling it to return to a specific application interface according to user settings, while supporting the priority of customizing the return interface. The system tracks user usage behavior, identifies and memorizes the user's recently opened applications, and specific application interface states. When the user presses the Home button, the system intelligently determines and switches to the user's desired application interface based on the set priority order, achieving fast and accurate interface switching. In order to provide a seamless user experience, the system must also have state recovery capabilities to ensure that when the user returns to the application, it can be restored to the state when it left.
[0047] Embodiment 2 This embodiment is a computer-readable storage medium corresponding to the above embodiment, on which a computer program is stored. When the program is executed by the processor, the various steps of a Home button return interface optimization method in the above embodiment are implemented, and the same technical effect can be achieved, which will not be repeated here.
[0048] In summary, the Home button return interface optimization method and computer-readable storage medium provided by the present invention can return to a specific interface with one click, eliminating the step of re-enabling the application, greatly saving time, improving the user's operating efficiency in multi-tasking switching scenarios, effectively improving the user's experience in multi-tasking operations, and improving the interactive flexibility of smart devices.
[0049] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for optimizing the Home button return interface, characterized in that: include: When a Home event is monitored, a preset interface is displayed, where the preset interface includes the last displayed interface or the most frequently visited interface.
2. The method for optimizing the Home button return interface according to claim 1, characterized in that: When the Home event is monitored, before displaying the preset interface, the method further includes: When an interface switching event is monitored, the user interface after switching is written into the first interface stack, and the interface information of the user interface before switching is recorded.
3. The method for optimizing the Home button return interface according to claim 2, characterized in that: When an interface switching event is monitored, the user interface after switching is written into the first interface stack, and the interface information of the user interface before switching is recorded, including: Monitor Android system interface switching events; When switching to a new user interface, determining whether the new user interface and the user interface before switching belong to the same APP process; If they do not belong to the same APP process, the new user interface is written into the first interface stack, and the interface information of the user interface before the switch is recorded; If they belong to the same APP process, the configuration file of the same APP process is parsed to obtain the interface stack and display priority level to which the new user interface and the user interface before the switching belong; Determining whether the new user interface and the user interface before switching belong to the same interface stack; If they do not belong to the same interface stack, the new user interface is written into the first interface stack, and the interface information of the user interface before the switching is recorded; If they belong to the same interface stack and the display priority of the new user interface is higher than the display priority of the user interface before switching, the new user interface is written into the first interface stack, and the interface information of the user interface before switching is recorded.
4. The method for optimizing the Home button return interface according to claim 2 or 3, characterized in that: When the Home event is monitored, the preset interface is displayed, including: When the Home event is monitored, the previous display interface is obtained and displayed according to the first interface stack.
5. The method for optimizing the Home button return interface according to claim 4, characterized in that: When the Home event is monitored, the preset interface is displayed, and the method further includes: If the first interface stack is empty, a preset default interface is displayed.
6. The method for optimizing the Home button return interface according to claim 1, characterized in that: When the Home event is monitored, before displaying the preset interface, the method further includes: Determine the most frequently accessed interface based on the operation records within the current preset period.
7. The method for optimizing the Home button return interface according to claim 6, characterized in that: When the Home event is monitored, the preset interface is displayed, including: When the Home event is detected, the most frequently visited interface is displayed.
8. The method for optimizing the Home button return interface according to claim 1, characterized in that: When the Home event is monitored, the preset interface is displayed, including: When the Home event is monitored, the corresponding interface is displayed according to the user configuration; Among them, when the user configures to return to the most recently visited interface, the previous display interface is displayed; when the user configures to return to the most frequently visited interface, the most frequently visited interface is displayed.
9. The method for optimizing the Home button return interface according to claim 1, characterized in that: Also includes: If the preset interface is not available, the preset default interface is displayed, or a prompt is displayed to guide the update information.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.