Application startup method, device, storage medium and terminal
By preloading application resources and displaying revenue values in advance through preloading strategies, the problems of long application startup time and insufficient user perception are solved, achieving faster startup and better user experience.
Patent Information
- Application Number
- CN202210874584.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-21
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2042-07-21
AI Technical Summary
In the prior art, the application startup process takes a long time, and users have insufficient perception of the preloading strategy, resulting in a poor user experience.
Use the preloading strategy to load application resources in advance, directly use the preloaded data to start the application after responding to the startup command, and obtain and display the preloading benefit value to reduce startup time and enhance user perception.
Effectively reduce application startup time, improve user perception of preloading strategies, and enhance user experience.
Smart Images

Figure CN115167931B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of application technology development technology, and in particular to an application startup method, device, storage medium, and terminal. Background Art
[0002] With the development of science and technology, terminals are increasingly appearing in people's lives. People can run various applications in the terminals to implement various functions. Therefore, the method for starting applications in the terminals has become one of the research focuses of those skilled in the art. Summary of the Invention
[0003] The present application provides an application startup method, device, storage medium, and terminal, which can solve technical problems in application startup in related technologies.
[0004] In a first aspect, the present application provides a method for starting an application program, the method comprising:
[0005] In response to a start instruction for a target application, if the target application has been preloaded based on a preloading policy, start the target application based on preload data of the target application;
[0006] Obtain the preloading benefit value corresponding to the target application during this startup process and display the preloading benefit value.
[0007] Optionally, the preloading benefit value is the difference between the second startup time and the first startup time; wherein, the first startup time is the startup time of the target application after the target application is preloaded, and the second startup time is the startup time of the target application after the target application is not preloaded.
[0008] Optionally, obtaining the preloading benefit value corresponding to the target application during this startup process includes: obtaining the target first startup time corresponding to the target application during this startup process, and obtaining the target second startup time corresponding to the target application during the historical startup process; and using the difference between the target first startup time and the target second startup time as the preloading benefit value corresponding to the target application during this startup process.
[0009] Optionally, obtaining the target first startup time corresponding to the target application during this startup process includes: obtaining the first moment when the startup instruction is received, and obtaining the second moment when the specified service of the target application is running or the specified texture is loaded during this startup process; and using the difference between the second moment and the first moment as the target first startup time corresponding to the target application during this startup process.
[0010] Optionally, obtaining the preloading revenue value corresponding to the target application during this startup process includes: obtaining a target preloading revenue value interval corresponding to the target application, the target preloading revenue value interval being determined based on a sample preloading revenue value; determining a target preloading revenue value from the target preloading revenue value interval as the preloading revenue value corresponding to the target application during this startup process.
[0011] Optionally, before responding to the startup instruction for the target application, the method also includes: performing a startup test on at least one first application belonging to the first application type, obtaining the sample first startup time corresponding to each first application startup test process, and obtaining the sample second startup time corresponding to each first application startup test process; obtaining the first sample preloading revenue value of each first application based on each sample first startup time and each sample second startup time, and determining the first preloading revenue value range corresponding to each first application based on each first sample preloading revenue value of each first application; setting a unified corresponding second sample preloading revenue value for at least one second application belonging to the second application type, and determining the unified corresponding second preloading revenue value range for each second application based on each second sample preloading revenue value.
[0012] Optionally, the method further includes: displaying at least one of a total preloading revenue value of the target application and a total preloading revenue value of the preloading strategy.
[0013] In a second aspect, the present application provides an application startup device, the device comprising:
[0014] a startup module, configured to respond to a startup instruction for a target application and, if the target application has been preloaded based on a preloading policy, start the target application based on preload data of the target application;
[0015] The revenue display module is used to obtain the preload revenue value corresponding to the target application during this startup process and to display the preload revenue value.
[0016] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps of the above method.
[0017] In a fourth aspect, an embodiment of the present application provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor.
[0018] The beneficial effects of the technical solutions provided by some embodiments of the present application include at least:
[0019] The present application provides an application startup method, which can first respond to a startup instruction for a target application. If the target application has been preloaded based on a preloading policy, the target application is started based on the preloading data of the target application, and then the corresponding preloading revenue value of the target application during this startup process is obtained and the preloading revenue value is displayed. When a user needs to start the target application based on the startup instruction, if the target application has been preloaded in advance based on the preloading policy, the target application can be started directly based on the preloading data to reduce the loading time of the target application startup process, and the preloading revenue value corresponding to the target application startup process can also be obtained and the preloading revenue value can be displayed, so that the user can know that the target application is started after preloading, and the displayed preloading revenue value can enhance the user's perception of the preloading policy. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 An exemplary system architecture diagram of an application startup method provided in an embodiment of the present application;
[0022] Figure 2 A flowchart of a method for starting an application program provided in an embodiment of the present application;
[0023] Figure 3 A schematic diagram of a display method of preloaded revenue value provided in an embodiment of the present application;
[0024] Figure 4 A flowchart of a method for starting an application program according to another embodiment of the present application is provided;
[0025] Figure 5 A flowchart of a method for starting an application program according to another embodiment of the present application is provided;
[0026] Figure 6 A schematic structural diagram of an application startup device provided in another embodiment of the present application;
[0027] Figure 7 A schematic diagram of the structure of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] To make the features and advantages of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of this application.
[0029] When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0030] With the rapid development of mobile terminal technology, smart devices such as smartphones, tablets, and smart TVs have become indispensable electronic devices in people's lives. Mobile terminals are equipped with a variety of applications (APPs). Generally, these applications are loaded only when the user opens an application based on a startup command. However, applications occupy increasing amounts of storage space and take longer to load, resulting in a significant waste of user time during the application startup process.
[0031] Therefore, in order to make the application run more smoothly, some mobile terminals will set a preloading strategy for the application in the terminal, so that the terminal can prepare the loading resources of the target application in advance before receiving the user's startup instruction for the target application. That is, when the preloading event corresponding to the preloading strategy is detected to be triggered, the target application is preloaded in advance. Then, after receiving the user's startup instruction for the target application, the terminal can directly start the target application based on the resources that have been loaded by the target application, thereby effectively reducing the startup time of the target application.
[0032] Optionally, the preloading strategy can be a prediction type strategy, that is, the preloading strategy can predict the target application that the user is about to start, so as to preload the target application in advance. For example, a preloading strategy is based on the user's historical usage information of each application in the terminal, where the historical usage information includes but is not limited to usage time, usage location and other information, and predicts that the user may start a target application at a target time or a target location. Then, when the time reaches the target time or the user is at the target location, the terminal will preload the target application.
[0033] Optionally, the preloading strategy may also be a preloading event-triggered strategy, that is, a preloading event and a target application corresponding to the preloading event are set in advance, and when the preloading event is triggered, the target application corresponding to the preloading event is preloaded in advance. The specific type or specific strategy of the preloading strategy is not limited in the embodiments of the present application.
[0034] When the target application is preloaded based on the preloading policy, the target application preloads resources in the background of the terminal. Therefore, the process of preloading the target application is invisible to the user. After the terminal receives the user's startup instruction for the target application, although the target application can be directly started based on the resources already loaded by the target application within the terminal, thereby effectively reducing the startup time of the target application, the user does not know that the application startup process is based on the preloading policy, nor does he know that the startup time is reduced during the application startup process. The user may not even know that there is a preloading policy in the terminal, which greatly reduces the user's perception of the preloading policy.
[0035] Figure 1 An exemplary system architecture diagram of an application startup method provided in an embodiment of the present application.
[0036] like Figure 1 As shown, the system architecture may include a terminal 101, a network 102, and a server 103. The network 102 is used to provide a medium for a communication link between the terminal 101 and the server 103. The network 102 may include various types of wired communication links or wireless communication links, for example, a wired communication link may include an optical fiber, a twisted pair, or a coaxial cable, and a wireless communication link may include a Bluetooth communication link, a Wireless-Fidelity (Wi-Fi) communication link, or a microwave communication link.
[0037] The terminal 101 can interact with the server 103 through the network 102 to receive messages from the server 103 or send messages to the server 103. The terminal 101 can be hardware or software. When the terminal 101 is hardware, it can be various electronic devices, including but not limited to smart watches, smart phones, tablet computers, laptop portable computers and desktop computers. When the terminal 101 is software, it can be installed in the electronic devices listed above, which can be implemented as multiple software or software modules (for example: for providing distributed services), or can be implemented as a single software or software module, which is not specifically limited here.
[0038] Terminal 101 can respond to the startup instruction for the target application. If the target application has been preloaded based on the preloading policy, terminal 101 starts the target application based on the preloading data of the target application. In addition, terminal 101 can also obtain the preloading revenue value corresponding to the target application during this startup process and display the preloading revenue value.
[0039] The server 103 may be a business server that provides various services. It should be noted that the server 103 may be hardware or software. When the server 103 is hardware, it may be implemented as a distributed server cluster consisting of multiple servers, or it may be implemented as a single server. When the server 103 is software, it may be implemented as multiple software or software modules (for example, for providing distributed services), or it may be implemented as a single software or software module, which is not specifically limited herein.
[0040] It should be understood that Figure 1 The number of terminals, networks, and servers in the figure is only for illustration and any number of terminals, networks, and servers may be used according to implementation requirements.
[0041] See also Figure 2 , Figure 2 This is a flowchart of a method for launching an application provided in an embodiment of the present application. It is understood that in the embodiment of the present application, the execution subject can be a terminal or a processor in the terminal, or a service related to executing application launch in the terminal. For ease of description, the following description uses the execution subject as an example of a processor in the terminal.
[0042] like Figure 2 As shown, the application startup method includes:
[0043] S201 . Respond to a start instruction for a target application program. If the target application program has been preloaded based on a preloading policy, start the target application program based on preloading data of the target application program.
[0044] In an embodiment of the present application, various types of applications can be installed in the terminal. When a user needs to start a target application, a start instruction for the target application can be issued to the terminal. The way in which the user issues the start instruction can be not limited. For example, the user can touch the icon of the target application displayed on the desktop of the display screen in the terminal to issue a start instruction for the target application to the terminal, or the user can speak a voice to start the target application to the terminal to issue a start instruction for the target application to the terminal. Therefore, in an embodiment of the present application, the start instruction can be an external instruction issued by the user or other external device.
[0045] Furthermore, in an embodiment of the present application, at least one preloading strategy is pre-set in the terminal. Since the preloading strategy may preload the application hit by the preloading strategy at any time, specifically, when the preloading strategy hits a certain application, the terminal will preload part of the resources in the application and save the corresponding preloading data after the part of the resources are preloaded.
[0046] Then, when the user turns on the preloading policy in the preloading policy setting interface and the terminal receives the startup instruction for the target application, the processor can respond to the startup instruction for the target application, and first determine whether the target application has been preloaded based on the preloading policy. The judgment process can be that the processor determines whether the target application hits the preloading policy from the operation log of the target application recorded by the system. If it hits, it means that the target application has been preloaded based on the preloading policy. Then the processor obtains the corresponding preloading data during the preloading process of the target application and starts the target application based on the preloading data of the target application. Since the preloading data of the target application is the data obtained after preloading part of the resources in the target application, it is equivalent to that before the target application is started, part of the resources in the target application have been loaded. Therefore, in the process of starting the target application based on the preloading data of the target application, it is not necessary to load part of the resources in the target application again, which greatly reduces the startup time of the target application.
[0047] S202: Obtain the corresponding preloading revenue value and display preloading revenue value of the target application during the current startup process.
[0048] After starting the target application based on the preloaded data of the target application, the preloaded benefit value corresponding to the target application during this startup process can also be obtained, where the preloaded benefit value can be expressed in multiple forms. Since the target application is preloaded and then started, the most intuitive feeling for the user is that the startup time of the application will be reduced. Therefore, in an embodiment of the present application, the time reduced when the target application is started again after being preloaded can be used as the preloaded benefit value, that is, the preloaded benefit value is the difference between the startup time of the target application after the target application is not preloaded and the startup time of the target application after the target application is preloaded.
[0049] In an embodiment of the present application, the first startup time can be set as the startup time of the target application after the target application is preloaded, and the second startup time can be set as the startup time of the target application after the target application is not preloaded. Then the difference between the second startup time and the first startup time is the preloading benefit value corresponding to when the target application is started after being preloaded.
[0050] Furthermore, after obtaining the preloaded revenue value corresponding to the target application during this startup process, the preloaded revenue value corresponding to the target application during this startup process can also be displayed. The method of displaying the preloaded revenue value may not be limited. For example, the character information corresponding to the preloaded revenue value can be displayed in the display interface of the terminal display screen, and the sound playback device in the terminal can also be controlled to play the character information corresponding to the preloaded revenue value.
[0051] See also Figure 3 , Figure 3 A schematic diagram of a display method for pre-loaded revenue value provided in an embodiment of the present application.
[0052] like Figure 3 As shown, in the terminal 300, the processor can respond to the start instruction for the target application 310. If the target application 310 has been preloaded based on the preloading policy, the target application 310 is started based on the preload data of the target application 310. After obtaining the preload benefit value corresponding to the target application 310 when it is started after being preloaded, the processor can display character information 320 corresponding to the preload benefit value in the corresponding display interface after the target application is started. Figure 3 The character information 320 corresponding to the preloading benefit value is “this startup hits the preloading strategy, reducing the startup time by 3 seconds”.
[0053] Furthermore, after obtaining the preloading revenue value corresponding to the target application during this startup process, the preloading revenue value corresponding to the target application during this startup process can be added to the preloading revenue value corresponding to the target application during the historical startup process to obtain the total preloading revenue value corresponding to the target application during the startup process.
[0054] Furthermore, after obtaining the total preloading revenue value corresponding to the target application during the startup process, the total preloading revenue value corresponding to the target application during the startup process can be accumulated with the total preloading revenue values corresponding to other applications during the startup process to obtain the total preloading revenue value of the preloading strategy.
[0055] Optionally, at least one of the total preloading revenue value of the target application and the total preloading revenue value of the preloading strategy can be displayed as needed, wherein the manner of displaying the total preloading revenue value of the target application and the total preloading revenue value of the preloading strategy can be different. For example, after the target application is started, the user tends to pay more attention to the preloaded data of the target application, so the total preloading revenue value of the target application can be displayed after the target application is started; for example, when the user chooses whether to turn on the preloading strategy in the setting interface of the preloading strategy, the user tends to pay more attention to the data about the preloading strategy, so the total preloading revenue value of the user's preloading strategy can be displayed in the setting interface of the preloading strategy.
[0056] In an embodiment of the present application, a start-up instruction for a target application may be responded to first. If the target application has been preloaded based on a preloading policy, the target application may be started based on the preloading data of the target application, and then the corresponding preloading revenue value of the target application during this start-up process may be obtained and the preloading revenue value may be displayed. When a user needs to start a target application based on a start-up instruction, if the target application has been preloaded in advance based on a preloading policy, the target application may be started directly based on the preloading data to reduce the loading time of the target application start-up process. In addition, the corresponding preloading revenue value of the target application during this start-up process may be obtained and the preloading revenue value may be displayed, so that the user can know that the target application is started after being preloaded, and the displayed preloading revenue value may enhance the user's perception of the preloading policy.
[0057] See also Figure 4 , Figure 4 A flowchart of a method for starting an application program according to another embodiment of the present application is provided.
[0058] like Figure 4 As shown, the application startup method includes:
[0059] S401 : Responding to a start instruction for a target application, if the target application has been preloaded based on a preloading policy, starting the target application based on preload data of the target application.
[0060] Regarding step S401, please refer to the description in step S201, which will not be repeated here.
[0061] S402: Obtain a target first startup time corresponding to the target application in the current startup process, and obtain a target second startup time corresponding to the target application in the historical startup process.
[0062] Since in the embodiment of the present application, the preloading benefit value is the difference between the second startup time and the first startup time, wherein the first startup time is the startup time of the target application after the target application is preloaded, if the target application has been preloaded based on the preloading policy, then the startup process of the target application can be monitored to obtain the target first startup time corresponding to the target application during this startup process.
[0063] Among them, the method for obtaining the target first startup time corresponding to the target application in this startup process can be that the processor first obtains the first moment when the terminal receives the startup instruction. For example, when the user can touch the icon of the target application displayed on the desktop of the display screen in the terminal to issue a startup instruction for the target application to the terminal, then the moment when the user touches the icon of the target application displayed on the desktop of the display screen in the terminal is the first moment; then the processor will also obtain the second moment when the specified service of the target application is running or the specified texture is loaded during this startup process, where the specified service can be a service that will be loaded after the application startup is completed, and the specified service can be a specified system component, a specified event or a specified state, etc.; the specified texture can be a texture loaded after the application startup is completed, and the specified texture can be a specified picture, a specified animation or a specified user interface displayed in the terminal, etc.
[0064] For example, for terminals installed with the Android system, for non-game type applications, when such applications are started, specific activity components will be run immediately. Therefore, if it is necessary to obtain the second moment in the startup process of such applications, the components in the startup process of such applications can be monitored. When a specific activity component is detected to be running, the moment corresponding to the running of the specific activity component can be used as the second moment; for game type applications, when such applications are started, they will generally load game-related pictures, animations (animation can be understood as consisting of multiple frames of continuous pictures) or user login interfaces. Therefore, if it is necessary to obtain the second moment in the startup process of such applications, the texture changes in the startup process of such applications can be monitored. When a specified picture, specified animation or specified user interface is detected to be loaded, the moment corresponding to the running of the specified picture, specified animation or specified user interface can be used as the second moment.
[0065] After obtaining the first moment when the application starts and the second moment when the application completes, the difference between the second moment and the first moment is calculated. This difference is the time difference between the completion of the application startup and the start of the application startup, which is also the target first startup time corresponding to the target application during the current startup process. Because the target first startup time is calculated in real time based on the current startup process of the target application, the accuracy of the target first startup time is improved.
[0066] Since the preloading benefit value is the difference between the second startup time and the first startup time, where the second startup time is the startup time of the target application after the target application is not preloaded, and the startup process of this target application is based on the preloading data of the target application, that is, the target application is started after being preloaded during this startup process, therefore, the target second startup time of the target application cannot be directly obtained from the startup process of this target application.
[0067] A feasible implementation method is to set up a preset monitoring thread or monitoring service in the terminal, which is used to monitor the startup process of each application in the terminal, and then obtain the startup time of each application after the application in the terminal is not preloaded. For example, after the monitoring thread or monitoring service detects the startup instruction of the application, it can respond to the startup instruction. If the application is not preloaded based on the preloading policy, the application is directly started according to the normal process, and the startup time of the application after the application is not preloaded is obtained. The method of obtaining the startup time of the application after the application is not preloaded is similar to the above-mentioned method of obtaining the target first startup time corresponding to the target application during the startup process, that is, obtaining the first moment and the second moment of the startup process of the application after the application is not preloaded, and taking the difference between the first moment and the second moment as the startup time of the application after the application is not preloaded. If there is only one startup time for the application after the application is not preloaded, then the only startup time can be used as the target second startup time corresponding to the historical startup process of the application. If there are multiple startup times for the application after the application is not preloaded, then the average of the multiple startup times can be calculated as the second startup time corresponding to the historical startup process of the application. Then, the second startup time corresponding to the historical startup process of each application in the terminal can be obtained, and the second startup time corresponding to the historical startup process of each application in the terminal can be saved.
[0068] Therefore, after obtaining the target first startup time corresponding to the target application in this startup process, the target second startup time corresponding to the target application in the historical startup process can be obtained from the target second startup time corresponding to the saved historical startup processes of each application.
[0069] S403: The difference between the target first startup time and the target second startup time is used as the preloading benefit value corresponding to the target application in the current startup process.
[0070] Since the target first startup time represents the startup time of the target application after being preloaded during this startup process, and the target second startup time represents the startup time of the target application after not being preloaded during the historical startup process, the difference between the target first startup time and the target second startup time is the startup time reduced when the target application is started after being preloaded, that is, the preloading benefit value corresponding to when the target application is started after being preloaded.
[0071] S404: Display the preloaded revenue value.
[0072] After obtaining the preloading benefit value corresponding to the target application during the current startup process, the preloading benefit value corresponding to the target application during the current startup process may also be displayed.
[0073] In an embodiment of the present application, the target first startup time is calculated in real time based on the startup process of the target application this time, thereby improving the accuracy of the target first startup time, and the target second startup time is obtained based on the historical startup process of the target application. Then, the preloading benefit value corresponding to the target application in this startup process is calculated by the target first startup time and the target second startup time, thereby improving the accuracy of the calculated preloading benefit value.
[0074] See also Figure 5 , Figure 5 A flowchart of a method for starting an application program according to another embodiment of the present application is provided.
[0075] like Figure 5 As shown, the application startup method includes:
[0076] S501. Perform a startup test on at least one first application of a first application type, obtain a first startup time of a sample corresponding to each first application startup test process, and obtain a second startup time of a sample corresponding to each first application startup test process.
[0077] In an embodiment of the present application, for the method of obtaining the preloading revenue value corresponding to the target application during this startup process, it is also possible to pre-set the preloading revenue value intervals corresponding to different types of applications, and then determine the preloading revenue value corresponding to the target application during this startup process from the target preloading revenue value intervals corresponding to the target application.
[0078] Specifically, it is first necessary to obtain the preloading revenue value ranges corresponding to different types of applications in the terminal. A feasible implementation method is to classify the applications installed in the terminal to obtain applications of the first application type and applications of the second application type. Among them, applications of the first application type can be applications that users focus on preloading revenue, and applications of the second application type can be applications that users do not focus on preloading revenue. Therefore, the accuracy of the preloading revenue value range of applications of the first application type needs to be greater than the accuracy of the preloading revenue value range of applications of the second application type.
[0079] Whether a user is particularly interested in the pre-loaded revenue of an application can be determined by the user's tagging of the application, the number of times the user uses the application, or the number of times the application has been downloaded from the application store. For example, the classification criteria can be to determine frequently used applications and infrequently used applications based on the number of times the user uses the application, where frequently used applications are the first application type and infrequently used applications are the second application type. The classification criteria can also be to determine mainstream applications and non-mainstream applications based on the number of times the application has been downloaded from the application store, where mainstream applications are the first application type and non-mainstream applications are the second application type.
[0080] After classifying the applications in the terminal, it is necessary to obtain a relatively accurate preloading benefit value range for at least one first application belonging to the first application type in the terminal. A feasible implementation method is to perform a startup test on at least one first application belonging to the first application type, wherein the startup test includes performing a startup test on each first application after being preloaded, so as to obtain a sample first startup time corresponding to the startup test process of each first application after being preloaded; the startup test also includes performing a startup test on each first application after not being preloaded, so as to obtain a sample second startup time corresponding to the startup test process of each first application after not being preloaded.
[0081] S502. Obtain the first sample preloading revenue value of each first application based on the first startup time of each sample and the second startup time of each sample, and determine the first preloading revenue value interval corresponding to each first application based on the first sample preloading revenue value of each first application.
[0082] Furthermore, based on the first startup time of each sample and the second startup time of each sample of each application, the first startup time of each sample and the second startup time of each sample can be subtracted to obtain the first sample preloading revenue value of each first application, and then based on the first sample preloading revenue value of each first application, the maximum value and the minimum value of each first sample preloading revenue value can be determined respectively. Based on the maximum value and the minimum value of each first sample preloading revenue value, the first preloading revenue value range corresponding to each first application can be determined.
[0083] For example, the first sample preloading revenue values of a first application belonging to the first application type are 3 seconds, 4 seconds and 5 seconds respectively. Then, it can be determined that the maximum and minimum values of the first sample preloading revenue values of the first application are 5 seconds and 3 seconds respectively, and further, it can be determined that the first preloading revenue value interval of the first application is [3, 5].
[0084] S503: Set a uniformly corresponding second sample preloading revenue value for at least one second application program belonging to the second application type, and determine a uniformly corresponding second preloading revenue value range for each second application program based on each second sample preloading revenue value.
[0085] For at least one second application belonging to the second application type in the terminal, it is not necessary to obtain a relatively accurate preloading revenue value range for each second application. Then a feasible implementation method is to directly set a unified corresponding second sample preloading revenue value for at least one second application belonging to the second application type. The second sample preloading revenue value can be a statistical value or a value set by the administrator, and then the maximum value and minimum value of each second sample preloading revenue value can be determined respectively. Based on the maximum value and minimum value of each second sample preloading revenue value, the second preloading revenue value range corresponding to each second application can be determined.
[0086] S504 : In response to the start instruction for the target application, if the target application has been preloaded based on the preloading policy, start the target application based on the preload data of the target application.
[0087] Regarding step S504, please refer to the description in step S201, which will not be repeated here.
[0088] S505: Obtain a target preloading revenue value interval corresponding to the target application, where the target preloading revenue value interval is determined based on the sample preloading revenue value.
[0089] After the preloading revenue value interval of each application in the terminal is determined based on the sample preloading revenue value, a target preloading revenue value interval corresponding to the target application can be determined based on the preloading revenue value interval of each application.
[0090] S506: Determine a target preloading profit value from the target preloading profit value range as the preloading profit value corresponding to the target application in the current startup process.
[0091] After determining the target preloading revenue value interval corresponding to the target application, a preloading revenue value can be determined randomly or according to preset rules from the target preloading revenue value interval as the target preloading revenue value, so that the target preloading revenue value determined from the target preloading revenue value interval each time is as different as possible.
[0092] S507: Display the preloaded revenue value.
[0093] Since the target preloading revenue value determined from the target preloading revenue value range is mostly different each time, the user's trust in the displayed preloading revenue value can be improved in the process of displaying the preloading revenue value corresponding to the target application during this startup process.
[0094] In an embodiment of the present application, by pre-starting the applications in the terminal and obtaining the pre-loading revenue value interval corresponding to each application in the terminal, the pre-loading revenue value corresponding to the target application during this startup process can be directly determined based on the pre-loading revenue value interval. This can reduce the system overhead and system load caused by directly calculating the pre-loading revenue value corresponding to the target application during this startup process, and improve the speed of determining the pre-loading revenue value corresponding to the target application during this startup process.
[0095] See also Figure 6 , Figure 6 A schematic structural diagram of an application startup device provided in another embodiment of the present application.
[0096] like Figure 6 As shown, the application launching device 600 includes:
[0097] The startup module 610 is configured to respond to a startup instruction for a target application and, if the target application has been preloaded based on a preloading policy, start the target application based on preload data of the target application.
[0098] The revenue display module 620 is used to obtain the preload revenue value corresponding to the target application during the current startup process and to display the preload revenue value.
[0099] Optionally, the preloading benefit value is the difference between the second startup time and the first startup time; wherein the first startup time is the startup time of the target application after the target application is preloaded, and the second startup time is the startup time of the target application after the target application is not preloaded.
[0100] Optionally, the revenue display module 620 is also used to obtain the target first startup time corresponding to the target application in the current startup process, and to obtain the target second startup time corresponding to the target application in the historical startup process; and the difference between the target first startup time and the target second startup time is used as the preloaded revenue value corresponding to the target application in the current startup process.
[0101] Optionally, the benefit display module 620 is also used to obtain the first moment when the startup instruction is received, and the second moment when the specified service of the target application is running or the specified texture is loaded during this startup process; the difference between the second moment and the first moment is used as the target first startup time corresponding to the target application during this startup process.
[0102] Optionally, the revenue display module 620 is also used to obtain a target preloading revenue value interval corresponding to the target application, where the target preloading revenue value interval is determined based on a sample preloading revenue value; and the target preloading revenue value is determined from the target preloading revenue value interval as the preloading revenue value corresponding to the target application during this startup process.
[0103] Optionally, the revenue display module 620 is also used to perform a startup test on at least one first application belonging to the first application type, obtain the sample first startup time corresponding to each first application startup test process, and obtain the sample second startup time corresponding to each first application startup test process; obtain the first sample preloading revenue value of each first application based on each sample first startup time and each sample second startup time, and determine the first preloading revenue value range corresponding to each first application based on each first sample preloading revenue value of each first application; set a unified corresponding second sample preloading revenue value for at least one second application belonging to the second application type, and determine the unified corresponding second preloading revenue value range for each second application based on each second sample preloading revenue value.
[0104] Optionally, the revenue display module 620 is further configured to display at least one of a total revenue value of preloading of the target application and a total revenue value of preloading of the preloading strategy.
[0105] In an embodiment of the present application, an application startup device includes: a startup module for responding to a startup instruction for a target application, and if the target application has been preloaded based on a preloading policy, starting the target application based on the preloading data of the target application; and a profit display module for obtaining a preloading profit value corresponding to the target application during this startup process and displaying the preloading profit value. When a user needs to start the target application based on the startup instruction, if the target application has been preloaded in advance based on the preloading policy, the target application can be directly started based on the preloading data to reduce the loading time of the target application startup process, and the preloading profit value corresponding to the target application startup process can also be obtained and displayed, so that the user can know that the target application is started after preloading, and the displayed preloading profit value can enhance the user's perception of the preloading policy.
[0106] An embodiment of the present application further provides a computer storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps of any of the methods in the above embodiments.
[0107] Further, see Figure 7 , Figure 7 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. Figure 7 As shown, the terminal 700 may include: at least one central processor 701 , at least one network interface 704 , a user interface 703 , a memory 705 , and at least one communication bus 702 .
[0108] The communication bus 702 is used to implement the connection and communication between these components.
[0109] The user interface 703 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 703 may also include a standard wired interface and a wireless interface.
[0110] The network interface 704 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0111] The central processing unit 701 may include one or more processing cores. The central processing unit 701 utilizes various interfaces and circuits to connect various components within the terminal 700. It executes instructions, programs, code sets, or instruction sets stored in the memory 705, and accesses data stored in the memory 705 to perform various functions and process data for the terminal 700. Optionally, the central processing unit 701 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The central processing unit 701 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display; and the modem handles wireless communications. It is understood that the modem may not be integrated into the central processing unit 701 and may be implemented as a separate chip.
[0112] Among them, the memory 705 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 705 includes a non-transitory computer-readable storage medium. The memory 705 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 705 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 705 may also be optionally at least one storage device located away from the aforementioned central processor 701. As Figure 7 As shown, the memory 705 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application startup program.
[0113] exist Figure 7In the terminal 700 shown, the user interface 703 is mainly used to provide an input interface for the user and obtain data input by the user; and the central processing unit 701 can be used to call the application startup program stored in the memory 705 and perform the following operations:
[0114] In response to a startup instruction for a target application, if the target application has been preloaded based on a preloading policy, the target application is started based on the preloading data of the target application; a preloading benefit value corresponding to the target application during this startup process is obtained and the preloading benefit value is displayed.
[0115] Optionally, the preloading benefit value is the difference between the second startup time and the first startup time; wherein the first startup time is the startup time of the target application after the target application is preloaded, and the second startup time is the startup time of the target application after the target application is not preloaded.
[0116] Optionally, obtaining the preloading benefit value corresponding to the target application during this startup process includes: obtaining the target first startup time corresponding to the target application during this startup process, and obtaining the target second startup time corresponding to the target application during the historical startup process; and using the difference between the target first startup time and the target second startup time as the preloading benefit value corresponding to the target application during this startup process.
[0117] Optionally, obtaining the target first startup time corresponding to the target application during this startup process includes: obtaining the first moment when the startup instruction is received, and obtaining the second moment when the specified service of the target application is running or the specified texture is loaded during this startup process; and using the difference between the second moment and the first moment as the target first startup time corresponding to the target application during this startup process.
[0118] Optionally, obtaining the preloading revenue value corresponding to the target application during this startup process includes: obtaining the target preloading revenue value interval corresponding to the target application, the target preloading revenue value interval being determined based on the sample preloading revenue value; determining the target preloading revenue value from the target preloading revenue value interval as the preloading revenue value corresponding to the target application during this startup process.
[0119] Optionally, before responding to the startup instruction for the target application, the method also includes: performing a startup test on at least one first application belonging to the first application type, obtaining the sample first startup time corresponding to each first application startup test process, and obtaining the sample second startup time corresponding to each first application startup test process; obtaining the first sample preloading revenue value of each first application based on each sample first startup time and each sample second startup time, and determining the first preloading revenue value range corresponding to each first application based on each first sample preloading revenue value of each first application; setting a unified corresponding second sample preloading revenue value for at least one second application belonging to the second application type, and determining the unified corresponding second preloading revenue value range for each second application based on each second sample preloading revenue value.
[0120] Optionally, the method further includes: displaying at least one of a total preloading revenue value of the target application and a total preloading revenue value of the preloading strategy.
[0121] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0122] Modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of these modules may be selected to achieve the purpose of this embodiment based on actual needs.
[0123] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.
[0124] If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, 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, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0125] It should be noted that for the aforementioned method embodiments, for ease of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0126] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0127] The above is a description of an application startup method, device, storage medium, and terminal provided in this application. For those skilled in the art, based on the ideas of the embodiments of this application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this application.
Claims
1. A method for starting an application, characterized in that: The method comprises: In response to a start instruction for a target application, if the target application has been preloaded based on a preloading policy, start the target application based on preload data of the target application; Obtaining a preload benefit value corresponding to the target application during this startup process and displaying the preload benefit value; the preload benefit value is the difference between the second startup time and the first startup time; The first startup time is the startup time of the target application after the target application is preloaded, and the second startup time is the startup time of the target application after the target application is not preloaded.
2. The method according to claim 1, characterized in that The obtaining of the preload benefit value corresponding to the target application during the current startup process includes: Obtaining a target first startup time corresponding to the target application during the current startup process, and obtaining a target second startup time corresponding to the target application during the historical startup process; The difference between the target first startup time and the target second startup time is used as the preloading benefit value corresponding to the target application in the current startup process.
3. The method according to claim 2, characterized in that The obtaining of the target first startup time corresponding to the target application during the current startup process includes: Obtaining a first moment when the startup instruction is received, and obtaining a second moment when a specified service of the target application is running or a specified texture is loaded during this startup process; The difference between the second moment and the first moment is used as the target first startup time corresponding to the target application in this startup process.
4. The method according to claim 1, wherein The obtaining of the preload benefit value corresponding to the target application during the current startup process includes: Obtaining a target preloading revenue value interval corresponding to the target application, wherein the target preloading revenue value interval is determined based on a sample preloading revenue value; A target preloading benefit value is determined from the target preloading benefit value interval as the preloading benefit value corresponding to the target application in the current startup process.
5. The method according to claim 4, characterized in that Before responding to the start instruction for the target application, the method further includes: Performing a startup test on at least one first application of the first application type, obtaining a first startup time of a sample corresponding to each first application startup test process, and obtaining a second startup time of a sample corresponding to each first application startup test process; Obtaining a first sample preloading revenue value of each first application based on the first startup time of each sample and the second startup time of each sample, and determining a first preloading revenue value interval corresponding to each first application based on each first sample preloading revenue value of each first application; A uniformly corresponding second sample preloading revenue value is set for at least one second application program belonging to the second application type, and a uniformly corresponding second preloading revenue value range is determined for each second application program based on each second sample preloading revenue value.
6. The method according to claim 1, characterized in that The method further comprises: Display at least one of the total preloading revenue value of the target application and the total preloading revenue value of the preloading strategy; the total preloading revenue value of the target application is obtained by accumulating the corresponding preloading revenue value of the target application during the current startup process and the corresponding preloading revenue value during the historical startup process; the total preloading revenue value of the preloading strategy is obtained by accumulating the corresponding total preloading revenue value of the target application during the startup process and the corresponding total preloading revenue values of other applications during the startup process.
7. An application startup device, characterized in that: The device comprises: a startup module, configured to respond to a startup instruction for a target application and, if the target application has been preloaded based on a preloading policy, start the target application based on preload data of the target application; a revenue display module, configured to obtain a preload revenue value corresponding to the target application during this startup process and to display the preload revenue value; the preload revenue value is the difference between the second startup time and the first startup time; The first startup time is the startup time of the target application after the target application is preloaded, and the second startup time is the startup time of the target application after the target application is not preloaded.
8. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the steps of the method according to any one of claims 1 to 6.
9. A terminal, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method according to any one of claims 1 to 6 are implemented.