Application program starting method, device and system and storage medium
By adopting parallel processing methods in low-memory smart TV devices, the application startup delay problem caused by serial processing is solved, and new applications are quickly launched and user experience is improved.
Patent Information
- Application Number
- CN202411185676.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2025-01-07
AI Technical Summary
In low-memory smart TV devices, due to limited memory resources, most applications cannot reside for a long time, resulting in a long-term shutdown of the current application every time a new application is launched, resulting in a long startup delay and affecting the user experience.
The parallel processing method is adopted to exit the current application while launching a new application, so that the new application can immediately display the launch screen, while the current application gradually exits in the background, reducing the total time required for application switching.
Through parallel processing methods, new applications can be quickly launched, reducing user waiting time and improving user experience.
Smart Images

Figure CN119271294A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of application processing, and in particular to a method, device, system and storage medium for starting an application. Background Art
[0002] In low-memory smart TV devices, due to limited memory resources, most applications (such as YouTube, Prime Video, etc.) cannot reside in the system memory for a long time. This means that whenever the user wants to launch a new application, the system must first completely close the currently running application, free up memory space, and then launch the new application.
[0003] That is to say, the existing method is to use a serial processing method, first ensure that the current application is completely exited, and then load and start the new application. However, this serial processing method will cause a long startup delay, making the startup of the new application slower, affecting the user experience. Summary of the invention
[0004] The present application provides an application startup method, device, system and storage medium, which can increase the startup speed of new applications, reduce the user's waiting time, and thus improve the user experience.
[0005] In a first aspect, the present application provides a method for starting an application, the method comprising:
[0006] Receive a startup instruction of an application to be started;
[0007] In response to the startup instruction, the application to be started is started and displayed, and the first application currently being displayed is synchronously exited.
[0008] A further technical solution is that before starting and displaying the application to be started and synchronously exiting the first application currently being displayed, the method includes:
[0009] The first application currently being displayed is set to be hidden, and the application to be started is set to be displayed.
[0010] A further technical solution is that after setting the first application currently being displayed to be hidden and setting the application to be started to be displayed, the method further includes:
[0011] An operation focus of a user interface is set in the application to be started, so that the operation focus is removed from the first application currently being displayed.
[0012] A further technical solution is that after setting the operation focus of the user interface in the application to be started, the method further includes:
[0013] The activity state of the application to be started is set as the primary activity state, and the activity state of the first application currently being displayed is set as the secondary activity state.
[0014] A further technical solution is that the step of setting the first application currently being displayed to be hidden and setting the application to be started to be displayed comprises:
[0015] The first application currently being displayed is set to an invisible view using a preset view setting interface, and the application to be started is set to a visible view.
[0016] A further technical solution is that setting the activity state of the application to be started as the primary active state and setting the activity state of the first application currently being displayed as the secondary active state includes:
[0017] Using a preset first moving interface, the application to be started is moved to the foreground, so that the activity state of the application to be started is set to the main active state;
[0018] And use a preset second movement interface to move the first application currently being displayed to the background, so that the activity state of the first application currently being displayed is set to a secondary active state.
[0019] A further technical solution is that the method further comprises:
[0020] The startup completion time of the application to be started is earlier than the exit completion time of the first application currently being displayed.
[0021] In a second aspect, the present application provides a device for starting an application, the device comprising:
[0022] A receiving unit, used for receiving a startup instruction of an application to be started;
[0023] The response unit is used to respond to the startup instruction, start and display the application to be started, and synchronously exit the first application currently being displayed.
[0024] In a third aspect, the present application provides an application startup system, the application startup system includes a memory and a processor, the memory is used to store program data, and the processor is used to execute the program data to implement the steps of any of the above methods.
[0025] In a fourth aspect, the present application provides a computer-readable storage medium, which is used to store a computer program, and when the computer program is executed by a processor, it is used to implement the steps of any of the above methods.
[0026] The beneficial effect of the present application is as follows: different from the prior art, the present application exits the first application currently being displayed while starting the application to be started, that is, adopts a parallel processing method, so that the application to be started, that is, the new application, can immediately display the startup screen when it is started, while the currently displayed application gradually exits in the background. There is no need to wait for the currently displayed application to completely exit before starting the application to be started, which helps to reduce the total time required for application switching, and then can quickly start the application to be started, reducing the user's waiting time, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0028] Figure 1 This is a flowchart of a first embodiment of a method for starting an application program provided by the present application;
[0029] Figure 2 is a flowchart of another embodiment of a method for starting an application provided by the present application;
[0030] Figure 3 It is a structural schematic diagram of an embodiment of a computer-readable storage medium provided by the present application. DETAILED DESCRIPTION
[0031] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some but not all structures related to the present application are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0032] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0033] In low-memory smart TV devices, due to limited memory resources, most applications (such as YouTube, Prime Video, etc.) cannot reside in the system memory for a long time. This means that whenever the user wants to launch a new application, the system must first completely close the currently running application, free up memory space, and then launch the new application.
[0034] That is to say, the existing method is to use a serial processing method, first ensure that the current application is completely exited, and then load and start the new application. However, this serial processing method will cause a long startup delay, making the startup of the new application slower, affecting the user experience.
[0035] Therefore, in order to solve the technical problem that the prior art uses a serial processing method to first ensure that the current application is completely exited, and then load and start the new application, resulting in a long startup delay, making the startup of the new application slow and affecting the user experience, the present application provides a method for starting an application. Please refer to the following embodiments for details.
[0036] See also Figure 1 , Figure 1 1 is a flow chart of a first embodiment of a method for starting an application provided by the present application. The method comprises:
[0037] Step 110: Receive a startup instruction of an application to be started.
[0038] Step 120: In response to the startup instruction, the application to be started is started and displayed, and the first application currently being displayed is synchronously exited.
[0039] Exemplarily, the first application currently being displayed may be webu i, and the application to be started may be YouTube.
[0040] Or the first application currently being displayed may also be YouTube, and the application to be started may be webu i.
[0041] In this way, this embodiment exits the first application currently being displayed while starting the application to be started, that is, adopts a parallel processing method, so that the application to be started, i.e., the new application, can immediately display the startup screen when it is started, while the currently displayed application is gradually exited in the background. There is no need to wait for the currently displayed application to completely exit before starting the application to be started, which helps to reduce the total time required for application switching, and then quickly start the application to be started, reducing the user's waiting time, thereby improving the user experience.
[0042] The second embodiment of the method for starting an application provided by the present application includes the following steps:
[0043] Step 210: Receive a startup instruction of an application to be started.
[0044] Step 220: The first application currently being displayed is set to be hidden, and the application to be started is set to be displayed.
[0045] Since exiting a process or application takes a certain amount of time, especially for some larger applications, it is necessary to release resources, save status, recycle memory, log, etc.
[0046] Therefore, if the first application currently being displayed is exited before starting a new application program, namely the application to be started, the application to be started needs to wait for a period of time before starting, that is to say, the startup time of the application to be started is relatively slow.
[0047] Setting the status of an application is relatively fast. For example, if you set the first application that is currently being displayed to be hidden, the first application that is currently being displayed will immediately disappear from the interface. At this time, you can directly set the application to be started to be displayed, and browse the display screen of the application to be started without waiting.
[0048] In addition, after setting the first application currently being displayed to be hidden, although the process of the first application currently being displayed is still there, the application to be started occupies less memory when it is just started. For example, YouTube only occupies 60M of memory when it is just started, but when using YouTube to play some videos or other operations, YouTube may grow to 150M.
[0049] Since the memory occupied by the application to be started is at the lowest level at the initial start-up stage, the application to be started can coexist with the first application currently being displayed at the initial start-up stage.
[0050] Step 230: In response to the startup instruction, the application to be started is started and displayed, and the first application currently being displayed is synchronously exited.
[0051] In this way, this embodiment exits the first application currently being displayed while starting the application to be started, that is, adopts a parallel processing method, so that the application to be started, i.e., the new application, can immediately display the startup screen when it is started, while the currently displayed application is gradually exited in the background. There is no need to wait for the currently displayed application to completely exit before starting the application to be started, which helps to reduce the total time required for application switching, and then quickly start the application to be started, reducing the user's waiting time, thereby improving the user experience.
[0052] The third embodiment of the method for starting an application provided by the present application may include the following steps:
[0053] Step 310: Receive a startup instruction of an application to be started.
[0054] Step 320: The first application currently being displayed is set to be hidden, and the application to be started is set to be displayed.
[0055] Step 330: Setting the operation focus of the user interface in the application to be started, so that the operation focus is removed from the first application currently being displayed.
[0056] Among them, the Linux platform is provided with relevant interfaces, such as ComposerController:setFocus. In this way, when the user actively requests to start the application to be started, the operation focus of the user interface can be set in the application to be started by operating the setFocus interface, so that the operation focus is removed from the first application currently being displayed.
[0057] Step 340: In response to the startup instruction, the application to be started is started and displayed, and the first application currently being displayed is synchronously exited.
[0058] The fourth embodiment of the method for starting an application provided by the present application includes the following steps:
[0059] Step 310: Receive a startup instruction of an application to be started.
[0060] Step 320: The first application currently being displayed is set to be hidden, and the application to be started is set to be displayed.
[0061] In some implementations, a preset view setting interface may be used to set the first application currently being displayed to an invisible view, and to set the application to be started to a visible view.
[0062] The preset view setting interface may be a ComposerController::setView interface provided on the Linux platform.
[0063] Step 330: Setting the operation focus of the user interface in the application to be started, so that the operation focus is removed from the first application currently being displayed.
[0064] Step 330: setting the activity state of the application to be started as the primary activity state, and setting the activity state of the first application currently being displayed as the secondary activity state.
[0065] The preset first moving interface may be used to move the application to be started to the foreground, so that the activity state of the application to be started is set to the main active state.
[0066] The preset first movement interface may be a ComposerController::moveToFront interface provided on the Linux platform.
[0067] Setting the activity state of the application to be launched to the main active state means that the application to be launched is the application that the current user is interacting with. At this time, the application to be launched has the system focus, can receive user input, and is the object of system scheduling priority.
[0068] In this way, the activity state of the application to be started is set to the main active state, so that the application to be started can access more system resources to ensure the smoothness of user interaction.
[0069] The first application currently being displayed is moved to the background using a preset second movement interface, so that the activity state of the first application currently being displayed is set to a secondary active state.
[0070] The preset second movement interface may be a ComposerController::moveBehind interface provided on the Linux platform.
[0071] In this way, setting the activity state of the first application currently being displayed to the secondary active state means that the first application currently being displayed no longer has the focus of the system. Applications in the secondary active state are usually restricted by the system from using certain resources to ensure that the performance of the currently active application is not affected.
[0072] Applications in the secondary active state can only keep necessary background running, such as scheduled tasks, background synchronization, etc.
[0073] Step 340: In response to the startup instruction, the application to be started is started and displayed, and the first application currently being displayed is synchronously exited.
[0074] In some implementations, the startup completion time of the application to be started is earlier than the exit completion time of the first application currently being displayed.
[0075] For most applications, when the user clicks the icon to start it, the logo of the application will be displayed. For example, YouTube, PrimeVideo, etc. will first load the logo of the application locally, while YouTube continues to load other resources in the background, such as UI elements, network data, etc.
[0076] In this way, when the icon of the application to be started is clicked to start it, the application to be started will first load the logo of the application locally for display, thereby making the startup completion time of the application to be started earlier than the exit completion time of the first application currently being displayed.
[0077] In other implementations, exiting the first application currently being displayed may occur during the entire startup phase of the application to be started, or may occur during the partial startup phase of the application to be started.
[0078] For example, the first application currently being displayed is a browser application. Since only a static page is opened without any video or many pictures, the memory occupied by the first application currently being displayed is relatively small and the exit is relatively fast. Therefore, the exit of the browser application can occur during the partial startup phase of the application to be started.
[0079] Take the first application currently being displayed as application W and the application to be started as application Y as an example for explanation. Figure 2 , Figure 2 is a flowchart of another embodiment of the method for starting an application program provided by the present application. Figure 2 Specifically, the following steps may be included.
[0080] S1: Get the currently displayed application (such as W application);
[0081] S2: receiving a startup instruction of an application to be started (such as application Y);
[0082] S3: Activate application Y, set the focus and move it to the foreground;
[0083] S4: Hide the W application, remove focus and move it to the background;
[0084] S5: Start and display application Y;
[0085] S6: Exit the W application.
[0086] Among them, S3 and S4 are carried out simultaneously, and S5 and S6 are carried out simultaneously.
[0087] In this way, by exiting the first application currently being displayed while starting the application to be started, that is, adopting a parallel processing method, the application to be started, i.e., the new application, can immediately display the startup screen when it is started, while the currently displayed application gradually exits in the background. There is no need to wait for the currently displayed application to completely exit before starting the application to be started, which helps to reduce the total time required for application switching, and then quickly start the application to be started, reducing the user's waiting time, thereby improving the user experience.
[0088] Corresponding to the method for starting an application in the above embodiment, the present application also provides a device for starting an application, and the device for starting an application includes a receiving unit and a responding unit.
[0089] Wherein, the receiving unit is used to receive a startup instruction of the application to be started;
[0090] The response unit is used for starting and displaying the application to be started in response to the start instruction, and synchronously exiting the first application currently being displayed.
[0091] It is understandable that the application startup device may also include other units to implement the technical solution of any embodiment of the present application.
[0092] The present application also provides an application startup system, which includes a memory and a processor, wherein the memory stores a computer program; and the processor is used to implement the following method steps when executing the computer program:
[0093] Receive a startup instruction of an application to be started;
[0094] In response to the startup instruction, the application to be started is started and displayed, and the first application currently being displayed is synchronously exited.
[0095] It can be understood that when the processor is used to execute a computer program, it is also used to implement the technical solution of any embodiment in the present application.
[0096] See also Figure 3 , Figure 3 The structure of an embodiment of a computer-readable storage medium provided by the present application is shown in FIG. 7 . The computer-readable storage medium 70 is used to store a computer program 71. When the computer program 71 is executed by a processor, it is used to implement the following method steps:
[0097] Receive a startup instruction of an application to be started;
[0098] In response to the startup instruction, the application to be started is started and displayed, and the first application currently being displayed is synchronously exited.
[0099] It can be understood that when the computer program 71 is executed by the processor, it is also used to implement the technical solution of any embodiment of the present application.
[0100] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only illustrative, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as two units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0101] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on two network units. Some or all of the units may be selected according to actual needs to achieve the purpose of this embodiment.
[0102] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0103] If the integrated units in the above other embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-On l yMemory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0104] The above are only implementation methods of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for starting an application, characterized in that: The method comprises: Receive a startup instruction of an application to be started; In response to the startup instruction, the application to be started is started and displayed, and the first application currently being displayed is synchronously exited.
2. The method for starting an application according to claim 1, characterized in that: Before starting and displaying the application to be started and synchronously exiting the first application currently being displayed, the method includes: The first application currently being displayed is set to be hidden, and the application to be started is set to be displayed.
3. The method for starting an application according to claim 2, characterized in that: After setting the first application currently being displayed to be hidden and setting the application to be started to be displayed, the method further includes: An operation focus of a user interface is set in the application to be started, so that the operation focus is removed from the first application currently being displayed.
4. The method for starting an application according to claim 3, characterized in that: After setting the operation focus of the user interface in the application to be started, the method further includes: The activity state of the application to be started is set as the primary activity state, and the activity state of the first application currently being displayed is set as the secondary activity state.
5. The method for starting an application according to claim 3, characterized in that: The step of setting the first application currently being displayed to be hidden and setting the application to be started to be displayed comprises: The first application currently being displayed is set to an invisible view using a preset view setting interface, and the application to be started is set to a visible view.
6. The method for starting an application according to claim 3, characterized in that: The step of setting the activity state of the application to be started as the primary active state and setting the activity state of the first application currently being displayed as the secondary active state includes: Using a preset first moving interface, the application to be started is moved to the foreground, so that the activity state of the application to be started is set to the main active state; And use a preset second movement interface to move the first application currently being displayed to the background, so that the activity state of the first application currently being displayed is set to a secondary active state.
7. The method for starting an application according to claim 1, characterized in that: The method further comprises: The startup completion time of the application to be started is earlier than the exit completion time of the first application currently being displayed.
8. A device for starting an application, characterized in that: The starting device comprises: A receiving unit, used for receiving a startup instruction of an application to be started; The response unit is used to respond to the startup instruction, start and display the application to be started, and synchronously exit the first application currently being displayed.
9. A system for launching an application, characterized in that: The application startup system comprises a memory and a processor, wherein the memory is used to store program data, and the processor is used to execute the program data to implement the application startup method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program data, and when the program data is executed by a processor, it is used to implement the method for starting an application program according to any one of claims 1 to 8.