Application program preloading method and device, electronic equipment and storage medium

By responding to user input in the terminal device and triggering application preloading, preloading the target application using preset policies, the problem of inefficient application startup is solved and faster application startup is achieved.

CN119829155AInactive Publication Date: 2025-04-15GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311333980.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-13
Publication Date
2025-04-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When starting an application, existing terminal devices need to load a large amount of resources, resulting in low startup efficiency and need improvement.

Method used

Obtain user input by responding to search instructions. If the application is preloaded, obtain the matching target application and perform preloading operations on it through preset preloading policies.

Benefits of technology

Improves the startup efficiency of the target application and reduces user waiting time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829155A_ABST
    Figure CN119829155A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an application program preloading method and device, electronic equipment and a storage medium. The method comprises the steps of obtaining user input in response to a search instruction; in the process of obtaining the user input, if preloading of the application program is triggered, obtaining a target application program matched with the current user input; and performing a preloading operation on the target application program through a preset preloading strategy. According to the method, the pre-loading operation is performed on the target application program through the preset pre-loading strategy, so that the starting efficiency of the target application program is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and specifically relates to an application preloading method, device, electronic device and storage medium. Background Art

[0002] At present, terminals such as smart phones, tablet computers, laptops and smart home appliances have become indispensable electronic devices in people's daily lives. As terminal devices continue to become smarter, most terminal devices are equipped with operating systems, allowing terminal devices to install a variety of applications to meet the different needs of users.

[0003] As the configuration of terminal devices continues to improve, dozens or even hundreds of applications can be installed in most terminal devices. As the functions of applications become increasingly rich, more and more resources need to be loaded when the applications are running. When a user chooses to start an application, the terminal will load the resources required to start the application. After the loading is complete, the initial interface of the application is entered. The whole process usually takes several seconds or even more than ten seconds, resulting in low application startup efficiency, which urgently needs to be improved. Summary of the invention

[0004] In view of the above problems, the present application proposes an application preloading method, device, electronic device and storage medium to improve the above problems.

[0005] In a first aspect, an embodiment of the present application provides an application preloading method, the method comprising: obtaining user input in response to a search instruction; in the process of obtaining user input, if application preloading is triggered, obtaining a target application that matches the current user input; and preloading the target application through a preset preloading strategy.

[0006] In a second aspect, an embodiment of the present application provides an application preloading device, the device comprising: an input acquisition unit, for acquiring user input in response to a search instruction; a program acquisition unit, for acquiring a target application that matches the current user input if application preloading is triggered during the process of acquiring user input; and a preloading unit, for performing a preloading operation on the target application through a preset preloading strategy.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, comprising one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.

[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein the above method is executed when the program code is run.

[0009] The embodiments of the present application provide an application preloading method, device, electronic device and storage medium. In response to a search instruction, a user input is obtained. In the process of obtaining the user input, if the preloading of the application is triggered, a target application matching the current user input is obtained, and then the target application is preloaded according to a preset preloading strategy. According to the above method, the target application is preloaded according to a preset preloading strategy, thereby improving the startup efficiency of the target application. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. 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 creative work.

[0011] Figure 1 A flowchart of an application preloading method proposed in an embodiment of the present application is shown;

[0012] Figure 2 A flowchart of an application preloading method proposed in another embodiment of the present application is shown;

[0013] Figure 3 A flowchart of an application preloading method proposed in another embodiment of the present application is shown;

[0014] Figure 4 A structural block diagram of an application preloading device proposed in an embodiment of the present application is shown;

[0015] Figure 5 A structural block diagram of an electronic device for executing an application preloading method according to an embodiment of the present application is shown;

[0016] Figure 6 A storage unit in an embodiment of the present application is shown for storing or carrying program code for implementing the application preloading method according to an embodiment of the present application. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0018] At present, terminals such as smart phones, tablet computers, laptops and smart home appliances have become indispensable electronic devices in people's daily lives. As terminal devices continue to become smarter, most terminal devices are equipped with operating systems, allowing terminal devices to install a variety of applications to meet the different needs of users.

[0019] As the configuration of terminal devices continues to improve, dozens or even hundreds of applications can be installed in most terminal devices. As the functions of applications become increasingly rich, more and more resources need to be loaded when the applications are running. The inventor found that when a user chooses to start an application, the terminal will load the resources required for the application to start, and after the loading is completed, the initial interface of the application is entered. The whole process usually takes several seconds or even more than ten seconds, resulting in low startup efficiency of the application, which urgently needs to be improved.

[0020] Therefore, the inventors propose the application preloading method, device, electronic device and storage medium in the present application. In response to the search instruction, the user input is obtained. In the process of obtaining the user input, if the preloading of the application is triggered, the target application matching the current user input is obtained, and then the target application is preloaded according to the preset preloading strategy. According to the above method, the target application is preloaded according to the preset preloading strategy, which improves the startup efficiency of the target application.

[0021] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0022] See also Figure 1 , an embodiment of the present application provides an application preloading method, the method comprising:

[0023] Step S110: In response to the search instruction, obtain user input.

[0024] In the embodiment of the present application, the search instruction is triggered by a preset method and is used to instruct a global application search. Among them, the global application search function can be triggered by a variety of preset methods, for example, by swiping down in the desktop interface of the electronic device to trigger the global application search function, or by swiping left or right in the desktop interface of the electronic device to trigger the global application search function, that is, triggering the search instruction. Optionally, the search instruction can also be triggered by voice input, which is not specifically limited here.

[0025] The user input may refer to text content input by the user, or may refer to voice content input by the user, or may be other forms of content output by the user, which is not specifically limited here. The user input is used to represent the content that the user wants to search, wherein the content that the user wants to search may be at least one of an application, a document, a picture, an audio, and a video.

[0026] In which, when the user input refers to the text content input by the user, when the search instruction is triggered in a preset manner, the electronic device can pop up a corresponding input interface in response to the search instruction, and a virtual keyboard or a physical keyboard can be displayed in the input interface, so that the user can input the content to be searched through the virtual keyboard or the physical keyboard in the input interface. At this time, the electronic device can obtain the content to be searched entered by the user through the virtual keyboard or the physical keyboard in the input interface in real time, that is, the electronic device can obtain the text content entered by the user in real time.

[0027] In the case where the user input refers to the voice content input by the user, when the search command is triggered in a preset manner, the electronic device can pop up a corresponding input interface in response to the search command, and a voice input control can be displayed in the input interface, so that the user can input the content to be searched through the voice input control in the input interface. At this time, the electronic device can obtain the content to be searched input by the user through the voice input control in the input interface in real time, that is, the electronic device can obtain the voice content input by the user in real time.

[0028] Optionally, in the case where the user input refers to other forms of content input by the user, when the search instruction is triggered in a preset manner, the electronic device may pop up a corresponding input interface in response to the search instruction, and other content input controls may be displayed in the input interface, so that the user can input the content to be searched through the other content input controls in the input interface. At this time, the electronic device can obtain in real time the content to be searched input by the user through the other content input controls in the input interface, that is, the electronic device can obtain other forms of content input by the user in real time.

[0029] The electronic device may be a device with a global application search function such as a smart phone, a tablet computer, and a smart wearable device, or other devices with a global search function, which is not specifically limited here.

[0030] Step S120: in the process of obtaining user input, if preloading of an application is triggered, a target application matching the current user input is obtained.

[0031] In an embodiment of the present application, in the process of an electronic device acquiring user input in real time, the acquired user input can be matched in real time with applications, documents, audio, video, documents, etc. in the electronic device. For example, when the electronic device begins to acquire the application name input by the user, the electronic device begins to match the application in real time. Among them, when matching user input, an efficient matching algorithm can be used to ensure that as the content of the acquired user input increases, the matching speed and accuracy are guaranteed. Optionally, the matching algorithm can be a text matching algorithm, such as the KMP algorithm (Knuth-Morris-Pratt Algorithm), the BM algorithm (Boyer-Moore Algorithm) and the Sunday algorithm, etc., which are not specifically limited here.

[0032] Triggering the preloading of an application means that an application matching the user input needs to be preloaded, that is, resources required to start the application need to be loaded in advance, such as hardware resources, memory resources, etc.

[0033] As a method, in the process of obtaining user input, as the content of the user input obtained increases, the number of matched applications may also decrease accordingly. Therefore, in order to monitor when the preloading of the application is triggered, the matching results and the user's input behavior can be monitored in real time. When it is determined that the preset trigger conditions are met, the preloading of the application is triggered.

[0034] Specifically, when the electronic device matches the acquired user input in real time, it will also continuously monitor the matching result and the user's input behavior. When it is monitored that the matching result meets the preset matching result and / or the user's input behavior meets the preset input behavior, it can be determined that the preloading of the application is triggered. At this time, the electronic device can obtain the target application that matches the current user input, where the target application refers to the application that needs to be preloaded.

[0035] Among them, the preset matching result can be the result of a preset trigger to obtain the preloaded application, for example, the preset matching result can be set to that there is only one application left that matches the user input; the preset input behavior can be the behavior of a preset trigger to obtain the preloaded application, for example, the preset input behavior can be set to that the user's continuous input stops for more than a preset time, etc.

[0036] In the embodiment of the present application, the current user input refers to the user input when the preloading of the application is triggered. That is, the user input at the moment when the preloading of the application is triggered is taken as the current user input.

[0037] Step S130: preloading the target application using a preset preloading strategy.

[0038] In an embodiment of the present application, the preset preloading policy is a pre-set policy for performing preloading operations on the target application. For example, the preset preloading policy can be set to only preload the application resources of the target application but not create an interface; or, the preset preloading policy can be set to load the application resources of the target application and complete the interface creation but not display it to the user, etc.

[0039] As a method, the preloading strategy of the target application can be determined according to the application type of the target application. Among them, target applications of different application types can correspond to different preloading strategies. Specifically, different preloading strategies can be set for different types of applications in advance. When the target application is obtained, the application type of the target application can be determined first, so as to determine the preloading strategy of the target application according to the application type of the target application.

[0040] As another method, the preloading strategy of the target application can be determined according to the current system resources and / or the characteristics of the target application. The system resources can refer to the current CPU load and free memory, etc.; the characteristics of the target application can refer to the usage frequency, startup speed, application startup resource requirements, etc. of the target application.

[0041] Specifically, different preloading strategies may be pre-set for different system resources and / or application characteristics. When a target application is acquired, the preloading strategy for the target application may be determined based on the characteristics of the target application and / or current system resources.

[0042] In an embodiment of the present application, the preloading operation refers to preloading the startup resources corresponding to the target application. Among them, the process of preloading the target application can be to allocate corresponding hardware resources to the target application to be preloaded, and load the relevant data required for startup based on the allocated hardware resources. The loading operations corresponding to the startup resources may include application process startup, application process initialization, application service startup, memory allocation, file content reading, network data acquisition and interface rendering, etc., generally including at least two of them. That is, the startup resources include relevant resources for at least two operations of application process startup, application process initialization, application service startup, memory allocation, file content reading, network data acquisition and interface rendering.

[0043] The present application provides an application preloading method, which obtains user input in response to a search instruction. In the process of obtaining the user input, if the preloading of the application is triggered, a target application matching the current user input is obtained, and then the target application is preloaded using a preset preloading strategy. Through the above method, the target application is preloaded using a preset preloading strategy, thereby improving the startup efficiency of the target application.

[0044] See also Figure 2 , an embodiment of the present application provides an application preloading method, the method comprising:

[0045] Step S210: In response to the search instruction, obtain user input.

[0046] Step S220: In the process of obtaining user input, the number of applications matching the user input and the user's input behavior are monitored in real time.

[0047] In the embodiment of the present application, the number of applications matching the user input refers to the number of application programs matching the current user input; the user's input behavior refers to the time interval between the user's continuous inputs.

[0048] In the process of obtaining user input in real time, the electronic device can monitor the number of applications matching the user input and the user's input behavior in real time. Among them, an event listener can be set in the electronic device to monitor the number of applications matching the user input and the user's input behavior in real time.

[0049] Step S230: If the number of applications meets a preset number and / or the input behavior stops for more than a preset time, it is determined that the preloading of the application is triggered, and a target application matching the current user input is obtained.

[0050] In an embodiment of the present application, the situation in which the number of applications meets the preset number and / or the input behavior stops for more than a preset time may include the following three situations: the first situation is that the number of applications meets the preset number, and it is determined that the preloading of the application is triggered; the second situation is that the input behavior stops for more than a preset time, and it is determined that the preloading of the application is triggered; the third situation is that the number of applications meets the preset number and the input behavior stops for more than a preset time, and it is determined that the preloading of the application is triggered.

[0051] The preset number is the preset number of applications that trigger application preloading, for example, the preset number can be set to one; the preset time is the preset stop time of the user's continuous input that triggers application preloading, for example, the preset time can be set to 2 seconds. That is, when it is detected that there is only one application matching the user input, it can be determined that the application preloading is triggered; or, when it is detected that the user's continuous input stops for more than 2 seconds, it can be determined that the application preloading is triggered; or, when it is detected that there is only one application matching the user input, and the user's continuous input stops for more than 2 seconds, it can be determined that the application preloading is triggered.

[0052] Among them, when the condition for determining whether the preloading of an application is triggered is to monitor whether the number of applications that match the user input meets a preset number, if the preset number is set to 1, then the target application obtained is one; if the preset number is set to multiple, then the target applications obtained are multiple.

[0053] Optionally, when the condition for determining whether the preloading of an application is triggered is to monitor whether the user's input behavior stops for more than a preset time, the acquired target application may include at least one application.

[0054] Step S240: Acquire current system resources.

[0055] In an embodiment of the present application, before preloading the target application, it is necessary to first determine whether the current system resources meet the preset resource conditions. Only when it is determined that the current system resources meet the preset resource conditions, the target application is preloaded to ensure that the preloading operation does not affect other running applications or system functions.

[0056] System resources may include resources such as CPU load and free memory, that is, before preloading the target application, it may be determined whether the current CPU load and free memory meet the preset resource conditions.

[0057] Step S250: If the current system resources meet the first resource condition, the target application is preloaded using a first preloading strategy, wherein the first preloading strategy represents that only application resources are loaded but no interface is created.

[0058] In the embodiment of the present application, the first resource condition is a pre-set condition indicating that the current system resources are tight. Under this resource condition, if the target application is to be preloaded, only the application resources are loaded but the interface is not created.

[0059] As a method, if multiple target applications are obtained, due to the current tight system resources, only some of the target applications may be preloaded. Therefore, multiple methods can be used to determine some of the target applications from the multiple target applications for preloading.

[0060] As one of the methods, based on the order of the startup probabilities corresponding to the multiple target applications from high to low, some target applications can be determined from the multiple target applications for preloading. Specifically, some target applications with higher corresponding startup probabilities among the multiple target applications can be determined as the target applications for preloading. The startup probability of the target application can be predicted by the neural network model based on the user's historical usage data.

[0061] As another method, based on the startup resource requirements corresponding to the multiple target applications, some target applications may be determined from the multiple target applications for preloading. Specifically, some target applications with smaller startup resource requirements among the multiple target applications may be determined as the target applications for preloading.

[0062] As another method, based on the priorities of the multiple target applications, some target applications may be determined from the multiple target applications for preloading. Specifically, some target applications with higher priorities may be determined as the target applications for preloading.

[0063] Optionally, based on the startup resource requirements corresponding to the multiple target applications and the current free memory, some target applications may be determined from the multiple target applications for preloading. Specifically, some target applications whose corresponding startup resource requirements are smaller than the current free memory may be preloaded.

[0064] As another way, if the CPU load is greater than the preset load and the free memory is greater than the preset memory, it is determined that the current system resources meet the first resource condition, and the target application is preloaded using a first preloading strategy.

[0065] The preset load is a pre-set CPU load that indicates that current resources are tight; the preset memory is a pre-set memory size that indicates that current free resources can still support the preloading operation.

[0066] When it is detected that the current CPU load is greater than the preset load and the free memory is greater than the preset memory, it is determined that the current system resources meet the first resource condition, and a preloading operation is performed on part of the target applications determined in the above manner through a first preloading strategy.

[0067] It can be known that the first preloading strategy is suitable for situations where resources are tight or application startup resource requirements are not high. However, when the current system resources are much greater than the preset load, the preloading operation can be paused or delayed to ensure the overall performance of the system.

[0068] Step S260: If the current system resources meet the second resource condition, the target application is preloaded using a second preloading strategy, wherein the second preloading strategy represents loading application resources and completing interface creation but not displaying it to the user.

[0069] In the embodiment of the present application, the second resource condition is a pre-set condition that indicates that the current resource is good. Under this resource condition, if the target application is to be preloaded, not only the application resource can be loaded but also the interface creation can be completed, but it is not displayed to the user.

[0070] As a method, if the CPU load is less than the preset load and the free memory is greater than the preset memory, it is determined that the current system resources meet the second resource condition, and the target application is preloaded using a second preloading strategy.

[0071] Specifically, the CPU load is less than the preset load and the free memory is greater than the preset memory, which indicates that the current CPU load is not high and the free memory is relatively large.

[0072] It can be known that the second preloading strategy is suitable for target applications that are frequently used by users or have high requirements for startup speed.

[0073] As a method, if multiple target applications are obtained, some target applications may be determined from the multiple target applications in the above method to perform preloading operations.

[0074] When the number of the determined target application programs to be preloaded is greater than one, the preloading operation may be performed on the multiple target application programs to be preloaded in a variety of ways.

[0075] As a method, the target application to be preloaded can be preloaded in the order of the startup probability corresponding to the target application to be preloaded from high to low. The advantage of such a setting is that a high startup probability indicates that the user is more likely to select the target application, so that the target application to be preloaded with a high startup probability is preloaded first, and its preloading completion degree can be guaranteed as much as possible, that is, when the preset action is detected, the preloading operation completion degree of the target application to be preloaded with a high startup probability is the highest. Exemplarily, the target application to be preloaded with the highest startup probability can be preloaded first, and when the preloading operation of the target application to be preloaded is completed, the next target application to be preloaded can be preloaded; or, the target application to be preloaded with the highest startup probability can be preloaded first, and when the preloading operation of the target application to be preloaded is about to be completed, the next target application to be preloaded can be preloaded. In addition, sequential preloading can also provide more support for the target application currently being preloaded, such as allocating more hardware resources, improving the preloading speed, and avoiding adverse effects such as jamming caused by parallel preloading, ensuring the normal operation of the foreground application.

[0076] As another way, the preloading operations of multiple target applications to be preloaded may be performed simultaneously, that is, the preloading operations of multiple application programs to be preloaded may be performed in parallel.

[0077] Optionally, the target applications to be preloaded may be preloaded in descending order of the startup resource requirements corresponding to the target applications to be preloaded. The advantage of such a setting is that the target application with a large startup resource requirement may be preloaded first, thereby improving the startup efficiency of the target application when the user starts the target application with a large startup resource requirement.

[0078] Optionally, the target application to be preloaded can be preloaded in the order of the usage frequency corresponding to the target application to be preloaded from high to low. The advantage of this setting is that a high usage frequency indicates that the user is more likely to select the target application, so that the target application to be preloaded with a high usage frequency is preloaded first, and its preloading completion degree can be guaranteed as much as possible, that is, when the preset action is detected, the preloading operation completion degree of the target application to be preloaded with a high usage frequency is the highest. Exemplarily, the target application to be preloaded with the highest usage frequency can be preloaded first, and when the preloading operation of the target application to be preloaded is completed, the next target application to be preloaded can be preloaded; or, the target application to be preloaded with the highest usage frequency can be preloaded first, and when the preloading operation of the target application to be preloaded is about to be completed, the next target application to be preloaded can be preloaded. In addition, sequential preloading can also provide more support for the target application currently being preloaded, such as allocating more hardware resources, improving the preloading speed, and avoiding adverse effects such as jamming caused by parallel preloading, ensuring the normal operation of the foreground application.

[0079] Optionally, the target applications to be preloaded may be preloaded in a descending order of the startup speed requirements corresponding to the target applications to be preloaded.

[0080] The application preloading method provided by the present application effectively utilizes the user's input behavior and current system resources, and can perform the preloading operation of the target application more flexibly. Furthermore, the preloading timing is determined by the stop time input by the user, thereby improving the accuracy of preloading.

[0081] See also Figure 3 , an embodiment of the present application provides an application preloading method, the method comprising:

[0082] Step S310: In response to the search instruction, obtain user input.

[0083] Step S320: in the process of obtaining user input, if the preloading of the application is triggered, obtain the target application matching the current user input.

[0084] Step S330: Acquire application characteristics of the target application.

[0085] As one approach, the application characteristics include startup resource requirements and usage frequency.

[0086] As another approach, the application characteristics include startup resource requirements and startup speed.

[0087] Step S340: If the application characteristic meets the first characteristic condition, preloading the target application program is performed using a first preloading strategy.

[0088] As a method, if the startup resource requirement of the target application is less than the preset resource requirement, and the usage frequency of the target application is less than the preset frequency, it is determined that the application characteristics meet the first characteristic condition, and the target application is preloaded through the first preloading strategy.

[0089] Specifically, the preset resource requirement is a preset resource requirement indicating that the application program requires low resources to start; the preset frequency is a preset frequency indicating that the application program is not frequently used. For a target application program with low resource requirements for application start-up, the target application program can be preloaded using the first preloading strategy.

[0090] As a method, when there are multiple target applications, the target applications to be preloaded are preloaded in descending order of the startup resource requirements corresponding to the target applications to be preloaded. The advantage of this setting is that the target application with a large startup resource requirement can be preloaded first, so that when the user starts the target application with a large startup resource requirement, the startup efficiency of the target application can be improved.

[0091] As another way, if the startup resource requirement of the target application is less than the preset resource requirement, and the startup speed of the target application is less than the preset speed, it is determined that the application characteristics meet the first characteristic condition, and the target application is preloaded using a first preloading strategy.

[0092] Specifically, the preset speed is a speed that is preset to indicate that the application program has a low startup speed requirement. For a target application program that has a low startup speed requirement, the target application program can be preloaded using the first preloading strategy.

[0093] As a way, when there are multiple target applications to be determined, the target applications to be preloaded can be preloaded in the order of the usage frequency corresponding to the target applications to be preloaded from high to low. The advantage of this setting is that the higher the usage frequency, the more likely the user is to choose the target application, so that the target application to be preloaded with high usage frequency is preloaded first, and the preloading completion degree can be guaranteed as much as possible, that is, when the preset action is detected, the preloading operation completion degree of the target application to be preloaded with high usage frequency is the highest. Exemplarily, the target application to be preloaded with the highest usage frequency can be preloaded first, and when the preloading operation of the target application to be preloaded is completed, the next target application to be preloaded can be preloaded; or, the target application to be preloaded with the highest usage frequency can be preloaded first, and when the preloading operation of the target application to be preloaded is about to be completed, the next target application to be preloaded can be preloaded. In addition, sequential preloading can also provide more support for the target application currently being preloaded, such as allocating more hardware resources, improving the preloading speed, and avoiding adverse effects such as jamming caused by parallel preloading, ensuring the normal operation of the foreground application.

[0094] Step S350: If the application characteristic meets the second characteristic condition, the target application is preloaded using a second preloading strategy.

[0095] As a method, if the startup resource requirement of the target application is greater than the preset resource requirement, and the usage frequency of the target application is greater than the preset frequency, it is determined that the application characteristics meet the second characteristic condition, and the target application is preloaded through the second preloading strategy.

[0096] As another way, if the startup resource requirement of the target application is greater than the preset resource requirement, and the startup speed of the target application is greater than the preset speed, it is determined that the application characteristics meet the second characteristic condition, and the target application is preloaded using a second preloading strategy.

[0097] Specifically, for a target application program that is frequently used or has a high requirement for startup speed, a preloading operation may be performed on the target application program using the second preloading strategy.

[0098] Similarly, when it is determined that there are multiple target applications to be preloaded, the preloading operation of the multiple target applications can also be completed in the aforementioned manner.

[0099] Optionally, when determining the preloading policy corresponding to the target application, the preloading policy corresponding to the target application may also be determined by combining current system resources and application characteristics of the target application.

[0100] As one of the methods, if the current system resources meet the first resource condition and the application characteristics of the target application meet the first characteristic condition, the target application is preloaded through the first preloading strategy; if the current system resources meet the second resource condition and the application characteristics of the target application meet the second characteristic condition, the target application is preloaded through the second preloading strategy.

[0101] As another method, if the current system resources meet the first resource condition and the application characteristics of the target application meet the second resource condition, the target application is preloaded through the first preloading strategy; if the current system resources meet the second resource condition and the application characteristics of the target application meet the first characteristic condition, the target application is preloaded through the second preloading strategy.

[0102] Optionally, in an embodiment of the present application, after completing the preloading operation of the target application, the electronic device can collect user feedback on the preloading function, such as preloading speed, accuracy, etc., so that the electronic device can continuously optimize the preloading strategy and matching algorithm based on the collected feedback to improve the user experience.

[0103] To ensure that preloading operations do not leak users' private data or affect the security of electronic devices, all preloading operations should be performed in a sandbox environment to ensure that they will not affect other applications or system functions.

[0104] Furthermore, in the embodiment of the present application, the neural network model can also be used to predict the next time period or the next target application that needs to be preloaded, thereby achieving a more intelligent preloading decision.

[0105] The present application provides an application preloading method, which determines a preloading strategy according to application characteristics of a target application, so that a preloading operation can be performed on the target application in a targeted manner, thereby improving the accuracy of the preloading operation.

[0106] See also Figure 4 , an embodiment of the present application provides an application preloading device 400, the device 400 comprising:

[0107] The input acquisition unit 410 is used to acquire user input in response to a search instruction.

[0108] The program acquisition unit 420 is used to acquire a target application matching the current user input if the preloading of the application is triggered during the process of acquiring the user input.

[0109] As a method, the program acquisition unit 420 is specifically used to monitor in real time the number of applications matching the user input and the user's input behavior during the process of acquiring the user input; if the number of applications meets a preset number and / or the input behavior stops for more than a preset time, it is determined that the preloading of the application is triggered, and the target application matching the current user input is acquired.

[0110] The preloading unit 430 is configured to perform a preloading operation on the target application program according to a preset preloading strategy.

[0111] As a method, the preloading unit 430 is specifically used to obtain current system resources; if the current system resources meet the first resource condition, the target application is preloaded through a first preloading strategy, wherein the first preloading strategy represents only loading application resources but not creating an interface; if the current system resources meet the second resource condition, the target application is preloaded through a second preloading strategy, wherein the second preloading strategy represents loading application resources and completing interface creation but not displaying it to the user.

[0112] Among them, the preloading unit 430 is specifically used to determine that the current system resources meet the first resource condition if the CPU load is greater than the preset load and the free memory is greater than the preset memory, and preload the target application through the first preloading strategy; if the CPU load is less than the preset load and the free memory is greater than the preset memory, determine that the current system resources meet the second resource condition, and preload the target application through the second preloading strategy.

[0113] As another way, the preloading unit 430 is specifically used to obtain application characteristics of the target application; if the application characteristics meet a first characteristic condition, the target application is preloaded using a first preloading strategy; if the application characteristics meet a second characteristic condition, the target application is preloaded using a second preloading strategy.

[0114] Among them, the preloading unit 430 is specifically used to determine that the application characteristics meet the first characteristic condition if the startup resource requirement of the target application is less than the preset resource requirement, and the usage frequency of the target application is less than the preset frequency, and to preload the target application through a first preloading strategy; if the startup resource requirement of the target application is greater than the preset resource requirement, and the usage frequency of the target application is greater than the preset frequency, determine that the application characteristics meet the second characteristic condition, and to preload the target application through a second preloading strategy.

[0115] Among them, the preloading unit 430 is specifically used to determine that the application characteristics meet the first characteristic condition if the startup resource requirement of the target application is less than the preset resource requirement, and the startup speed of the target application is less than the preset speed, and preload the target application through the first preloading strategy; if the startup resource requirement of the target application is greater than the preset resource requirement, and the startup speed of the target application is greater than the preset speed, determine that the application characteristics meet the second characteristic condition, and preload the target application through the second preloading strategy.

[0116] It should be noted that the device embodiment in the present application corresponds to the aforementioned method embodiment. The specific principles in the device embodiment can be found in the contents of the aforementioned method embodiment and will not be repeated here.

[0117] The following will be combined Figure 5 An electronic device provided by the present application is described.

[0118] See also Figure 5 Based on the above-mentioned application preloading method and device, the embodiment of the present application also provides another electronic device 800 that can execute the above-mentioned application preloading method. The electronic device 800 includes one or more (only one is shown in the figure) processors 802, a memory 804 and a network module 806 that are coupled to each other. Among them, the memory 804 stores a program that can execute the content of the above-mentioned embodiment, and the processor 802 can execute the program stored in the memory 804.

[0119] Among them, the processor 802 may include one or more processing cores. The processor 802 uses various interfaces and lines to connect various parts of the entire electronic device 800, and executes various functions and processes data of the electronic device 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 804, and calling data stored in the memory 804. Optionally, the processor 802 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 802 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 802, but may be implemented separately through a communication chip.

[0120] The memory 804 may include a random access memory (RAM) or a read-only memory (ROM). The memory 804 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 804 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 implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the terminal 800 during use.

[0121] The network module 806 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as communicating with electronic devices. The network module 806 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. The network module 806 may communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices via wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. For example, the network module 806 may exchange information with a base station.

[0122] Please refer to Figure 6 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 900 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0123] The computer-readable storage medium 900 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 900 has storage space for program code 910 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 910 can be compressed, for example, in an appropriate form.

[0124] The present application provides an application preloading method, device, electronic device, and storage medium, which, in response to a search instruction, obtains user input, and in the process of obtaining the user input, if the preloading of the application is triggered, obtains a target application matching the current user input, and then preloads the target application using a preset preloading strategy. Through the above method, the target application is preloaded using a preset preloading strategy, thereby improving the startup efficiency of the target application.

[0125] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A method for preloading an application, characterized in that: The method comprises: In response to the search instruction, obtaining user input; In the process of obtaining user input, if the preloading of the application is triggered, the target application matching the current user input is obtained; The target application is preloaded using a preset preloading strategy.

2. The method according to claim 1, characterized in that In the process of obtaining the user input, if the preloading of the application is triggered, obtaining the target application matching the current user input includes: In the process of obtaining user input, the number of applications matching the user input and the user's input behavior are monitored in real time; If the number of applications meets a preset number and / or the input behavior stops for more than a preset time, it is determined that preloading of the application is triggered, and a target application matching the current user input is obtained.

3. The method according to claim 1, characterized in that The preloading operation on the target application program by using a preset preloading strategy includes: Get the current system resources; If the current system resources meet the first resource condition, the target application is preloaded using a first preloading strategy, wherein the first preloading strategy indicates that only application resources are loaded but no interface is created; If the current system resources meet the second resource condition, the target application is preloaded using a second preloading strategy, wherein the second preloading strategy represents loading application resources and completing interface creation but not displaying it to the user.

4. The method according to claim 3, characterized in that The system resources include CPU load and free memory; if the current system resources meet the first resource condition, the target application is preloaded using the first preloading strategy, including: If the CPU load is greater than the preset load, and the free memory is greater than the preset memory, it is determined that the current system resources meet the first resource condition, and a preloading operation is performed on the target application using a first preloading strategy; If the current system resources meet the second resource condition, preloading the target application program by using the second preloading strategy includes: If the CPU load is less than the preset load and the free memory is greater than the preset memory, it is determined that the current system resources meet the second resource condition, and a preloading operation is performed on the target application using a second preloading strategy.

5. The method according to claim 1, characterized in that The preloading operation on the target application program by using a preset preloading strategy includes: Acquiring application characteristics of the target application; If the application characteristic satisfies a first characteristic condition, performing a preloading operation on the target application program by using a first preloading strategy; If the application characteristic meets the second characteristic condition, the target application is preloaded using a second preloading strategy.

6. The method according to claim 5, characterized in that The application characteristics include startup resource requirements and usage frequency, and if the application characteristics meet the first characteristic condition, performing a preloading operation on the target application program through a first preloading strategy includes: If the startup resource requirement of the target application is less than the preset resource requirement, and the usage frequency of the target application is less than the preset frequency, it is determined that the application characteristic meets the first characteristic condition, and the target application is preloaded using the first preloading strategy; If the application characteristic satisfies a second characteristic condition, performing a preloading operation on the target application program by using a second preloading strategy includes: If the startup resource requirement of the target application is greater than the preset resource requirement, and the usage frequency of the target application is greater than the preset frequency, it is determined that the application characteristic meets the second characteristic condition, and the target application is preloaded using a second preloading strategy.

7. The method according to claim 5, characterized in that The application characteristics include startup resource requirements and startup speed, and if the application characteristics meet the first characteristic condition, preloading the target application program through a first preloading strategy includes: If the startup resource requirement of the target application is less than the preset resource requirement, and the startup speed of the target application is less than the preset speed, it is determined that the application characteristic meets the first characteristic condition, and the target application is preloaded using a first preloading strategy; If the application characteristic satisfies a second characteristic condition, performing a preloading operation on the target application program by using a second preloading strategy includes: If the startup resource requirement of the target application is greater than the preset resource requirement, and the startup speed of the target application is greater than the preset speed, it is determined that the application characteristic meets the second characteristic condition, and the target application is preloaded using a second preloading strategy.

8. An application preloading device, characterized in that: The device comprises: An input acquisition unit, used to acquire user input in response to a search instruction; A program acquisition unit, configured to acquire a target application matching the current user input if preloading of the application is triggered during the process of acquiring the user input; The preloading unit is used to perform a preloading operation on the target application program according to a preset preloading strategy.

9. An electronic device, characterized in that: The method comprises one or more processors; one or more programs are stored in the memory and configured to execute the method according to any one of claims 1 to 7 by the one or more processors.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, wherein when the program code is executed by a processor, the method according to any one of claims 1 to 7 is executed.

Citation Information

Patent Citations

  • Application search method and application search device

    CN105138629A

  • Application program preloading method, device, storage medium and terminal

    CN108595230A

  • Method and device for application program preloading, storage medium and terminal

    CN108845838A

  • Voice identification method and device, computer equipment and storage medium

    CN110517673A