Application control method and device and storage medium

By recording and intercepting the application's interface intent and task entities, the problem of the application being unable to directly restore to the last closed interface when the application is cold-started, and the application's breakpoint rereading and user experience are improved.

CN118916102APending Publication Date: 2024-11-08BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310506273.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-06
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In the prior art, when the application is cold-started, it usually returns to the default display interface, resulting in a degradation of the user experience and the inability to directly restore to the last closed interface.

Method used

By recording the interface intent and task entities of each run of the application, persistent storage and interception of intent are achieved, and the interface displayed most recently is displayed directly during cold startup to avoid re-entering the homepage.

Benefits of technology

The application breakpoint continuous reading is realized. When the user restarts the application, the interface he closed was directly displayed, which improves the user experience and avoids the process of starting from the homepage again.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916102A_ABST
    Figure CN118916102A_ABST
Patent Text Reader

Abstract

The invention relates to an application control method and device and a storage medium. The application control method comprises the steps that cold start operation is triggered in response to an application in the terminal, and cold start operation represents that a process for operating the application does not exist in the terminal at present; determining and displaying a last display interface of the application, wherein the last display interface is an interface displayed when the application runs last time and is closed before the cold start of this time; wherein when the application in the terminal is triggered to run in a cold start mode, the interface displayed last time is called, and breakpoint continuous reading is achieved. According to the method and the device, the latest displayed interface of the application is called during cold start of the application, so that a user does not need to click from the home page to jump to the latest displayed interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of terminal technology, and in particular to an application control method, device and storage medium. Background Art

[0002] In the related art, when a user is using an application, if the application is closed, when the application is cold-started again, it is usually directly returned to the default display interface of the application. For example, when a user is watching a video in a video application, when the video application is closed and needs to be cold-started again, the interface displayed to the user by the reopened video application is usually the default interface of the video application, such as the homepage of the video application. This interface display method will reduce the user experience. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides an application control method, device and storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided an application control method, comprising: responding to an application in the terminal being triggered to cold start, wherein the cold start operation indicates that there is currently no process running the application in the terminal; determining and displaying a most recent display interface of the application, wherein the most recent display interface is an interface displayed when the application was most recently run and closed before this cold start.

[0005] In one embodiment, determining and displaying the most recent display interface of the application includes: determining a first intent and intercepting a second intent, wherein the first intent is an intention to call the most recent display interface, and the second intent is used to call the default display interface when the application is triggered to start running; replacing the second intent with the first intent to call and display the most recent display interface through the first intent.

[0006] In one embodiment, determining the first intention includes: determining the first intention in pre-recorded intent information; the pre-recorded intent information includes the intentions of all display interfaces recorded in sequence according to the order of interface display each time the application is triggered to run.

[0007] In one embodiment, determining and displaying the most recent display interface of the application includes: determining that there exists a task entity and interface display information in the application management system for reuse of the most recent display interface; loading the task entity and interface display information in the application management system for reuse of the most recent display interface to display the most recent display interface of the application.

[0008] In one implementation, the task entity and the interface display information are persistently recorded when the application process is cleared.

[0009] According to the second aspect of an embodiment of the present disclosure, a device for application control is provided, the device comprising: a determination unit, used to determine that an application in the terminal is triggered to cold start, wherein the cold start operation indicates that there is currently no process running the application in the terminal; and a processing unit, used to determine and display the most recent display interface, wherein the most recent display interface is the interface displayed when the application was most recently run and closed before this cold start.

[0010] In one embodiment, the processing unit determines and displays the most recent display interface of the application in the following manner: determining a first intent and intercepting a second intent, wherein the first intent is an intention to call the most recent display interface, and the second intent is used to call the default display interface when the application is triggered to start running; replacing the second intent with the first intent to call and display the most recent display interface through the first intent.

[0011] In one embodiment, the processing unit determines the first intent in the following manner: determining the first intent in pre-recorded intent information; the pre-recorded intent information includes the intentions of all display interfaces recorded in sequence according to the order of interface display each time the application is triggered to run.

[0012] In one embodiment, the processing unit determines and displays the most recent display interface of the application in the following manner: determines whether there is a task entity and interface display information in the application management system for reuse of the most recent display interface; loads the task entity and interface display information in the application management system for reuse of the most recent display interface to display the most recent display interface of the application.

[0013] In one implementation, the task entity and the interface display information are persistently recorded when the application process is cleared.

[0014] According to a third aspect of an embodiment of the present disclosure, an application control device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to: execute the method described in the first aspect or any one of the implementations of the first aspect.

[0015] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the method described in the first aspect or any one of the embodiments of the first aspect.

[0016] The technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: According to the embodiment of the present disclosure, the application in the terminal is triggered to cold start, wherein the cold start operation means that there is no process running the application in the terminal at present. By determining and displaying the last displayed interface of the application, when the application is restarted, the last displayed interface is immediately selected, that is, the interface displayed when it was last run and closed before the cold start. Thus, the user does not need to click to jump from the home page again.

[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0019] Figure 1 The figure is a flowchart of an application control method according to an exemplary embodiment.

[0020] Figure 2 The figure is a flowchart of an application control method according to an exemplary embodiment.

[0021] Figure 3 The invention is a flowchart of a method for recording the startup intention of an application interface according to an exemplary embodiment.

[0022] Figure 4 The figure is a flowchart of an application control method according to an exemplary embodiment.

[0023] Figure 5 The invention is a flowchart showing a method for retaining task entities recorded in an application management system according to an exemplary embodiment.

[0024] Figure 6 It is a scene diagram implemented by using an application control method based on the present disclosure according to an exemplary embodiment.

[0025] Figure 7 The invention is a block diagram showing a device for an application control method according to an exemplary embodiment.

[0026] Figure 8 The invention is a block diagram showing a device for an application control method according to an exemplary embodiment. DETAILED DESCRIPTION

[0027] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.

[0028] The application control method provided by the embodiment of the present disclosure is applied to the scenario of starting an application to display an APP interface. For example, a user triggers an application (APP) icon displayed on a terminal desktop to display an APP interface.

[0029] Among them, the application will include multiple layers of interface (Activity). For example, after the application is triggered to run, the application homepage is entered (which can be understood as the first-level interface). Clicking the button control of the relevant sub-page on the application homepage can enter the next level of interface display, that is, the sub-page display. For example, for a video application, after the application is triggered to run, the homepage is entered, and then clicking the XX video control on the homepage can enter the playback interface of the XX video.

[0030] In the related art, in order to improve the user experience, the process is suspended by freezing the process, or the process is locked to ensure that there is only one process running in the terminal, and the other processes are in a waiting state, so as to keep the application process from being cleaned up (not killed), so that when the user clicks on the application to run again, the most recently displayed interface can be directly displayed. Due to the process freezing and process locking, it is in a suspended state or a waiting state, and it still occupies memory space. Therefore, in order to avoid memory occupation, memory cleaning is performed in the related art, that is, the application process is cleaned up. In this case, when the application is started again, it is necessary to recreate and load the process of running the application, and enter the application homepage after the application is started, and the sub-interface that was closed last time cannot be directly displayed.

[0031] Among them, triggering the start of the application when there is no process running the application can be called a cold start. Among them, a cold start can also be understood as the absence of a process running the application in the terminal. For example, restarting the application process after cleaning it up, or starting the application for the first time, can be called a cold start.

[0032] In the related art, when an application is triggered to cold start, it is necessary to first display the homepage of the application, and then enter the most recently displayed interface based on the user's click trigger. Among them, the most recently displayed interface can be understood as the interface displayed when the application was last run and closed before this cold start. This interface can be understood as a sub-interface of the application. For example, a user watches XX video of a video application. During the playback of XX video, the user closes the video application, and the process of the video application is also cleared. When the user opens the video application again, the homepage of the video application will be displayed, not the XX video interface displayed when the user closes the video application. For another example, when a user browses YY news in a current affairs application, the current affairs application is closed, and the process of the current affairs application is also cleared. When the user starts the current affairs application again, he will also enter the homepage of the current affairs application.

[0033] In view of this, an embodiment of the present disclosure provides an application control method, which is applied to an application cold start scenario. In this method, when an application is triggered to cold start, the last displayed interface of the application is displayed. For example, after an application installed in an electronic device such as a terminal is cleaned up by the system, the last displayed interface is displayed when it is restarted. Or when an application is started for the first time, based on the last displayed interface of the application that was previously started and closed on other devices, the last displayed interface is displayed.

[0034] Figure 1 is a flow chart of an application control method according to an exemplary embodiment. Figure 1 As shown, the application control method is used in a terminal and includes the following steps.

[0035] In step S11 , in response to an application in the terminal being triggered to cold start, the application runs.

[0036] In the embodiment of the present disclosure, the application is triggered to cold start, which indicates that there is no process running the application in the terminal.

[0037] In the embodiment of the present disclosure, the application may be triggered to cold start when the application process of the application is cleaned up and then restarted, or when the application is started for the first time.

[0038] In step S12, the most recently displayed interface of the application is determined and displayed.

[0039] In the disclosed embodiment, the most recently displayed interface is the interface displayed when the application was last run and closed before the current cold start.

[0040] In one embodiment, the last displayed interface of the application is the interface that the application process was last displayed when it was last run and closed before being cleared. For example, when a user browses to a product details page of a shopping application installed in a terminal, the application process is cleared and the product details page is the last displayed interface.

[0041] In the case where the most recently displayed interface is determined in the embodiment of the present disclosure, the most recently displayed interface can be displayed when the application is triggered to cold start. For example, continuing with the above example, when the user restarts the shopping application, the interface corresponding to the browsed store can be immediately restored.

[0042] The application control method provided by the embodiment of the present disclosure responds to the application installed in the terminal being triggered to cold start, wherein the cold start is a state in which the application process does not exist in the terminal, that is, it is restarted after being cleaned up by the system. When the application is triggered to cold start, the most recent display interface of the application is determined and displayed, wherein the most recent display interface is the interface displayed when the most recent operation before the application was triggered to cold start was closed. By quickly determining and displaying the most recent display interface of the application, a perfect recovery of the application after being cleaned up by the system is achieved. When the user restarts the application or even restarts the terminal, the last interface before the restart can be directly displayed, thereby realizing breakpoint continuation.

[0043] Embodiments of the Disclosure An application control method involved in an embodiment of the disclosure is described below.

[0044] In one embodiment of the application control method provided by the present disclosure, during the application startup and operation process, the intent of all interface startups of the application is recorded and the intent of all interface startups is persistently stored. When the application process is cleared and restarted, the last displayed interface is restored to display based on the intent corresponding to the last displayed interface.

[0045] Each interface displayed in the application corresponds to the intent of the interface. For example, the application home page corresponds to the intent of the home page interface, which can be called the intent of the mainactivity. The sub-page entered by clicking the button control of the application home page corresponds to the intent of the sub-page.

[0046] In the disclosed embodiment, when the application is triggered to display the interface, the intents of all activities (interfaces) of the application are recorded. When the application is cold started next time, the intent to start the mainactivity is intercepted and the intent corresponding to the last activity used is sent, so that the last activity used can be quickly started.

[0047] For the convenience of description in the disclosed embodiment, the intent of the most recent display interface is referred to as the first intent, and the intent of the application main activity is referred to as the second intent.

[0048] Figure 2 FIG. 1 is a flowchart of a method for determining and displaying the most recently displayed interface of an application according to an exemplary embodiment of the present disclosure. Figure 2 As shown, the following steps are included.

[0049] In step S21 , the first intention is determined and the second intention is intercepted.

[0050] In the embodiment of the present disclosure, the first intention is an intention to call the most recently displayed interface, and the second intention is used to call the default display interface when the application is triggered to start running.

[0051] In the embodiment of the present disclosure, a first intention is determined. The first intention is the intention of starting the last display interface of the application, and is recorded and persisted in the terminal. The last displayed interface can be determined and displayed by obtaining the intention corresponding to the last display interface of the application.

[0052] In one example, the second intent is intercepted. The second intent is to call the default display interface when the application is triggered to start running in response to the application being cold started. For example, when the user is using a shopping application installed on the terminal, because the application is cleaned up by the system, when the application is restarted, the system will default to returning to the homepage of the application.

[0053] In step S22, the second intent is replaced by the first intent, so as to call and display the most recently displayed interface through the first intent.

[0054] In the disclosed embodiment, the interface most recently displayed by the application is determined and displayed, and the first intent replaces the second intent.

[0055] In one embodiment, when an application in a terminal is started and each function of the application is clicked, a corresponding interface is generated, each interface corresponds to a startup intent, and the startup intent corresponding to each interface is persistently stored. When the application is cold started, the second intent is intercepted, all stored startup intents are pulled up, and the first intent is sent. In this way, the most recently displayed interface is called and displayed during a cold start.

[0056] In one embodiment, the last displayed interface of the application is obtained according to the first intent, and the last displayed interface is restored according to the intent corresponding to when the last displayed interface is started.

[0057] In the embodiment of the present disclosure, the first intention is determined by pulling up all the intention information pre-recorded in the intention information, selecting the intention corresponding to the last interface where the application process is stopped when it is cleaned up, and determining the most recently displayed interface information according to the first intention information.

[0058] In the disclosed embodiment, the pre-recorded intent information includes the intent of all display interfaces recorded in sequence in the order of interface display each time the application is triggered to run. For example, click on an application installed in the terminal to enter the home page interface of the application, click on the home page interface of the application to enter the sub-interface of the application, and the intent of each operation start of the application is pre-recorded in the intent information.

[0059] The application control method involved in the present disclosure is described below with reference to examples.

[0060] Figure 3 is a flowchart of a method for recording the startup intention of an application interface according to an exemplary embodiment. Figure 3 , including the following steps:

[0061] In step S31, click the application icon.

[0062] Among them, when the user clicks the application icon installed on the terminal, the terminal will record the intention of starting the operation, and the intention of starting the operation is to enter the homepage of the application. At this time, the intention of starting the operation can be used as the second intention.

[0063] In step S32, enter the application homepage.

[0064] Based on the second intention, after the user clicks the application icon, the application's home page interface will be automatically jumped and displayed.

[0065] In step S33, click on a function in the homepage of the application.

[0066] On the home page of the application, the user can choose to click the icon corresponding to the desired function. When the user clicks the icon in the home page, the terminal will record the intention of starting the operation, which is to enter the sub-interface. At this time, the intention of starting the operation can be used as the first intention.

[0067] In step S34, enter the sub-interface.

[0068] Among them, based on the first intention, the user clicks on any function in the application homepage and automatically jumps to the sub-interface of the application.

[0069] In step S35, the first intention is recorded.

[0070] The first intention is recorded for the convenience of cold starting the application, by pulling up the intention generated in the application and selecting the most recently displayed interface of the application, so as to facilitate restoring the interface where the application in the terminal is stopped when it is closed.

[0071] In step S36, click the apply icon again.

[0072] Among them, since the application process is cleaned up, the user will click on the application icon again.

[0073] In step S37, the second intent is intercepted and replaced with the first intent.

[0074] Based on the persistent storage of all startup intentions related to this application, the second intention corresponding to the home page interface is intercepted and replaced with the first intention corresponding to the sub-interface, so that the sub-interface can be quickly pulled up.

[0075] In step S38, the sub-interface is opened.

[0076] Based on replacing the second intent with the first intent, the sub-interface is quickly pulled up. There is no need to first click the app icon, enter the app homepage, then click the function on the homepage, and then jump to the sub-interface. Instead, click the app icon again and return to the sub-interface directly based on all the launch intents recorded for the app.

[0077] In the disclosed embodiment, based on recording and persistently storing the intention of launching the application interface, when the application is cold-started, the first intention is determined and the second intention is intercepted by pulling up the intention of launching the interface, so as to send the most recently displayed interface corresponding to the first intention. Thus, the most recently displayed interface can be quickly pulled up.

[0078] In another implementation of the application control method provided by the present disclosure, during the process of starting and running the application, the task entity (Task) of the application in the application management system (Application Management System, AMS) is retained.

[0079] In the disclosed embodiment, the application management system (AMS) is responsible for managing all applications installed in the terminal, and has functions such as running, installing, displaying, updating and deleting. For example, once the terminal is started, an application management system service will be started, and there is a task entity in the application management system service that specifically manages all interface display information (ActivityRecord) used by the applications on the terminal.

[0080] In the disclosed embodiment, the task entity (Task) is used to store all interface tags corresponding to all applications installed on the terminal, and each application occupies a storage unit of the Task. Each storage unit in the Task does not affect each other, and each storage unit can be divided into multiple small storage units. The small storage unit is used to store each interface tag corresponding to the application, and each interface tag is stored in sequence.

[0081] In the embodiment of the present disclosure, by retaining the task entity and interface display information in the application management system, the most recent display interface can be quickly pulled up. Figure 4 , Figure 4 FIG. 1 shows a flow chart of a method for obtaining the most recently displayed interface of an application according to an exemplary embodiment of the present disclosure. Figure 4 As shown, the following steps are included.

[0082] In step S41, it is determined that there exists a task entity and interface display information for reuse of the most recently displayed interface in the application management system.

[0083] In the embodiment of the present disclosure, the interface display information (ActivityRecord) is used to record the specific storage unit where the real interface exists in the task entity.

[0084] In one implementation, the task entity recorded in the application management system is retained and not cleared, and then all interface marks of the related applications in the task entity retained in the application management system are obtained.

[0085] In step S42, the task entity and interface display information for reuse of the most recently displayed interface in the application management system are loaded to display the most recently displayed interface of the application.

[0086] In one embodiment, the task entity retained in the loading application management system stores all interface display marks and interface display information. For example, because the application process is cleared, when the user restarts the application, the specific storage unit corresponding to the application is retrieved through all the interface information stored in the Task and the function of displaying the interface information. If it is stored at the top level of the task entity, the most recent display interface is pulled out in sequence; if it is stored in the middle or bottom level, the unit is called to the top level and the most recent display interface is pulled out in sequence. This allows the application to correctly return to the interface where it was last run and closed before the application was cold started.

[0087] In the embodiment of the present disclosure, based on the function of the task entity, it is also possible to respond to the received return instruction. According to the above, each storage unit in the task entity has the function of sequential storage. In one example, each layer of interface markup in each storage unit is displayed in sequence. Therefore, when a return instruction is received, when the user clicks the return button, the content stored in the task entity can be returned layer by layer.

[0088] In the disclosed embodiment, the task entity and the interface display information are persistently stored when the application process is cleared.

[0089] In one implementation, the application control method is executed by the terminal, and at the same time, the interface displayed last time is saved in a persistent storage medium, and is loaded into the terminal memory when the application is cold started.

[0090] In an example of the present disclosure, by persistently storing and migrating task entity records in an application management system, it is possible to restore the most recently displayed interface of an application across terminals.

[0091] The application control method involved in the present disclosure is described below with reference to examples.

[0092] Figure 5 is a flowchart of a method for retaining task entities recorded in an application management system according to an exemplary implementation example. Figure 5 , including the following steps:

[0093] In step S510, the application is started.

[0094] In step S511, whether it is a cold start.

[0095] Among them, cold start is to restart the application after the application process is cleaned up. Determine whether the application is cold started. If the application is cold started, execute step S512. If the application does not need cold start, execute step S513.

[0096] In step S512, whether there is a task entity and a record interface.

[0097] The task entity (Task) is a special interface used by all applications on the management terminal, and exists in the application management system. If it exists, execute step S514. If it does not exist, execute step S515.

[0098] The recording interface (ActivityRecord) records the display information of the interface. In the recording interface, there is a taskrecord object that records the actual interface in the specific storage unit of the Task.

[0099] In step S513, the application switches to the foreground.

[0100] In step S514, the task entity and the record interface in the memory are reused.

[0101] Based on the determination of the existence of the task entity and the record interface, the task entity and the record interface in the memory are reused during restart.

[0102] In step S515, a new task entity and record page are created.

[0103] Based on the determination that the task entity and the record interface do not exist, a new task entity and a new record interface are recreated, and then step S516 is executed.

[0104] In step S516, return to the application home page.

[0105] Based on step S515, it is determined that the task entity and the record interface do not exist and are recreated. When the application is cold started, the application homepage is returned and the application interface is displayed using relevant technologies.

[0106] In step S517, the application process is cleaned up.

[0107] In step S518, the task entity and the record interface are persisted.

[0108] The task entity and the record interface are persistently stored in the terminal, so that when the application process is cleaned up, it can immediately return to the interface where it was stopped when it was cleaned up.

[0109] In step S519, the persistent record is read.

[0110] When the application process is cleaned up and restarted, the records in the persistent storage are read.

[0111] In step S520, the persistent record is loaded into the memory.

[0112] The persistent records stored in the terminal are loaded into the memory, so that the terminal can extract the intention of starting all interfaces of the application.

[0113] In step S521, the most recently displayed interface is restored.

[0114] In combination with step S514 and step S520, when the application is killed and restarted, it is possible to immediately return to the interface where the application process was stopped when it was cleared.

[0115] In step S522, the device is turned on.

[0116] In one example, it can also be used when the terminal is restarted. After the task entity and the record interface are persistently stored, the persistent task entity and the record interface are loaded back into the memory when the terminal is restarted to display the most recently displayed interface of the application.

[0117] In the application control method provided by the embodiment of the present disclosure, the recorded intention of starting the interface of the application is persistently stored in a persistent storage medium. Or the task entity and the interface display information are persistently stored in a persistent storage medium. Among them, the persistent storage medium can be stored in the terminal itself, or in the cloud, a USB flash drive, a computer (PC), etc.

[0118] Among them, based on the intent / task entity and interface display information of the application stored persistently, breakpoint resumption across devices can be achieved. For example, in one example, when the intent / task entity and interface display information of the application are persistently stored in a persistent storage medium that can be accessed by different devices of the same account, the embodiment of the present disclosure can achieve breakpoint resumption between different devices based on the same account. Among them, for example, mobile phone A logs in to account XX of video application X. When mobile phone B logs in to the same account, based on the intent / task entity and interface display information of video application X stored persistently, video application X can be enabled on mobile phone B, and directly jump to video XX of video application X for display.

[0119] The following is an example of an embodiment of the present disclosure to illustrate a scenario of the above implementation of the present disclosure.

[0120] Figure 6 The following is a schematic diagram showing a scenario in which an application process is cleaned up and restarted. Figure 6 As shown in Figure 1, in screen A, the user clicks on application X installed on the terminal. The terminal displays the homepage interface of the application, such as Figure 6 As shown in the B screen.

[0121] The user clicks the button control XX on the home page of the application, such as Figure 6 As shown in the middle C screen, enter the sub-interface of the button control XX, such as Figure 6 As shown in the middle D screen.

[0122] When the application process is cleaned up and the user restarts the application, Figure 6 Repeatedly click on the application X installed on the terminal, such as Figure 6 As shown in the A1 screen in the figure. Among them, the A screen and the A1 screen are the same screen. The terminal immediately displays the sub-page of application X, such as Figure 6 As shown in the D1 screen in the figure, the D screen and the D1 screen are the same screen.

[0123] The disclosed embodiment provides an application control method, which responds to a cold start of an application, that is, the application process is cleared and the application is restarted. By recording the intent of starting each interface of the application and persistently storing all intents, the most recently displayed interface corresponding to the first intent when cold started is determined, and the system default interface corresponding to the second intent is intercepted. The first intent is replaced with the second intent, and the most recently displayed interface is displayed. In this way, the most recently displayed interface can be quickly pulled up. It is also possible to retain the task entity in the application management system, and when the application is cold started, pull out the persistently stored task entity and immediately display the most recently displayed interface. By immediately displaying the most recently displayed interface, it is possible to quickly restore the last interface before the application process is reopened after being cleared. This application control method is used to achieve breakpoint resumption of the application.

[0124] Based on the same concept, the embodiment of the present disclosure also provides a device for applying the control method.

[0125] It is understandable that in order to realize the above functions, the device of an application control method provided by the embodiment of the present disclosure includes a hardware structure and / or software module corresponding to the execution of each function. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0126] Figure 7 is a device block diagram of an application control method according to an exemplary embodiment. Figure 7 The device includes a determining unit 100 and a processing unit 101.

[0127] The determining unit 100 is used to determine whether an application in the terminal is triggered to cold start.

[0128] In one implementation, the cold start operation indicates that there is no process running the application in the terminal currently.

[0129] The processing unit 101 is used to determine and display the most recently displayed interface of the application.

[0130] In the disclosed embodiment, the most recently displayed interface is the interface displayed when the application was last run and closed before the current cold start.

[0131] In the embodiment of the present disclosure, the processing unit determines and displays the most recently displayed interface of the application in the following manner: determining a first intent and intercepting a second intent. The first intent is used to call the intent of the most recently displayed interface. The second intent is used to call the default display interface when the application is triggered to start running.

[0132] In one implementation, the first intent is used to replace the second intent, and the most recently displayed interface of the application is obtained according to the first intent, and the most recently displayed interface is displayed to the user.

[0133] In one embodiment, the determining unit determines the first intention in the following manner: determining the first intention in pre-recorded intention information, which includes the intentions of all display interfaces recorded in sequence in the order of interface display each time the application is triggered to run.

[0134] In the embodiment of the present disclosure, the processing unit may also determine and display the most recently displayed interface of the application in the following manner: determine that there are recorded Tasks and interface display information in the application management system. In one example, Task may be understood as a corresponding mark for storing all interfaces of the application.

[0135] In one embodiment, based on the recorded Task and interface display information in the application management system, the Task and interface display information in the application management system are loaded to call the most recently displayed interface of the application. Based on the fact that the stored contents in the Task are arranged in order and the function of being able to call from the bottom layer or middle layer to the top layer, the most recently displayed interface of the application can be obtained from the Task, and then, the interface where the application last stayed when it was forcibly closed by the system can be restored.

[0136] In one example, the task entity and the interface display information are persistently stored when the application process is cleaned up.

[0137] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0138] Figure 8 2 is a block diagram of a device 200 for an application control method according to an exemplary embodiment. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0139] Reference Figure 8, the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .

[0140] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.

[0141] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0142] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.

[0143] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0144] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.

[0145] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0146] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0147] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0148] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0149] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0150] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0151] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0152] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.

[0153] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0154] It is further understood that the various implementation methods / embodiments involved in the embodiments of the present disclosure can be used in conjunction with the aforementioned embodiments or can be used independently. Whether used alone or in conjunction with the aforementioned embodiments, the implementation principle is similar. In the implementation of the present disclosure, some embodiments are described by using implementation methods used together. Of course, those skilled in the art can understand that such examples are not limitations of the embodiments of the present disclosure.

[0155] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.

[0156] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims

1. An application control method, characterized in that: Applied to a terminal, the method comprises: In response to an application in the terminal being triggered to cold-start, wherein the cold-start indicates that there is currently no process running the application in the terminal; Determine and display the most recently displayed interface of the application, where the most recently displayed interface is the interface displayed when the application was last run and closed before the current cold start.

2. The method according to claim 1, characterized in that: The determining and displaying the most recently displayed interface of the application includes: Determine a first intent and intercept a second intent, wherein the first intent is an intent to call the most recently displayed interface, and the second intent is used to call a default display interface when the application is triggered to start running; The second intent is replaced by the first intent, so as to call and display the most recently displayed interface through the first intent.

3. The method according to claim 2, characterized in that The determining of the first intention comprises: In the pre-recorded intention information, determining a first intention; The pre-recorded intention information includes the intentions of all display interfaces recorded in sequence according to the order of interface display each time the application is triggered to run.

4. The method according to claim 1, characterized in that: The determining and displaying the most recently displayed interface of the application includes: Determining that there exists a task entity and interface display information for repeated use of the most recently displayed interface in the application management system; The task entity and interface display information for repeated use of the last displayed interface in the application management system are loaded to display the last displayed interface of the application.

5. The method according to claim 4, characterized in that The task entity and the interface display information are persistently recorded when the application process is cleared.

6. An application control device, characterized in that: Applied to a terminal, the device comprises: a determining unit, configured to determine that a cold start operation is triggered for an application in the terminal, wherein the cold start operation indicates that there is currently no process running the application in the terminal; The processing unit is used to determine and display the most recently displayed interface of the application, where the most recently displayed interface is the interface displayed when the application was last run and closed before the current cold start.

7. The device according to claim 6, characterized in that The processing unit determines and displays the most recently displayed interface of the application in the following manner: Determine a first intent and intercept a second intent, wherein the first intent is an intent to call the most recently displayed interface, and the second intent is used to call a default display interface when the application is triggered to start running; The second intent is replaced by the first intent, so as to call and display the most recently displayed interface through the first intent.

8. The device according to claim 7, characterized in that The processing unit determines the first intention in the following manner: In the pre-recorded intention information, determining a first intention; The pre-recorded intention information includes the intentions of all display interfaces recorded in sequence according to the order of interface display each time the application is triggered to run.

9. The device according to claim 6, characterized in that The processing unit determines and displays the most recently displayed interface of the application in the following manner: Determining that there exists a task entity and interface display information for repeated use of the most recently displayed interface in the application management system; The task entity and interface display information for repeated use of the last displayed interface in the application management system are loaded to display the last displayed interface of the application.

10. The device according to claim 9, characterized in that The task entity and the interface display information are persistently recorded when the application process is cleared.

11. An application control device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method described in any one of claims 1 to 5.

12. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the method described in any one of claims 1 to 5.

Citation Information

Cited By

  • Application preloading method and electronic equipment

    CN120560737A

  • Application resumption method and electronic device

    WO2026214123A1