Application loading method, device, electronic device and storage medium

By calculating the usage frequency of terminals and applications and flexibly managing the loading of applications, the problem of resource waste and degraded user experience caused by too many applications on electronic terminals is solved, and efficient management of terminal resources and performance improvement are achieved.

CN115269035BActive Publication Date: 2025-10-03CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210808623.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-11
Publication Date
2025-10-03
Estimated Expiration
2042-07-11

AI Technical Summary

Technical Problem

Too many applications on electronic terminals lead to resource waste and a decline in user experience. Existing technologies make it difficult to effectively manage the loading of applications.

Method used

By obtaining terminal and application usage information, calculating usage frequency, and performing freezing, pre-freezing, or pre-loading operations at different time periods, the loading of applications can be flexibly managed.

Benefits of technology

Effectively reduce terminal resource waste, improve operating performance, and enhance user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115269035B_ABST
    Figure CN115269035B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a method, device, electronic device and storage medium for loading an application, the method comprising: obtaining first usage information of an electronic terminal in a current statistical period and second usage information of each application deployed on the electronic terminal, the electronic terminal being configured with different statistical time periods in chronological order, the first usage information comprising the terminal usage time of the electronic terminal in each statistical time period, the second usage information being the application usage time of the application in each statistical time period; calculating the usage frequency of the application in each statistical time period based on the terminal usage time of the electronic terminal and the application usage time of each application in the same statistical time period; and performing loading operations corresponding to the usage frequency in each statistical time period in a target statistical period based on the usage frequency of the application in each statistical time period, the target statistical period being the statistical period next to the current statistical period.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of IT and software development, and in particular to a method for loading an application, a device for loading an application, an electronic device, and a computer-readable storage medium. Background Art

[0002] In recent years, electronic terminals, especially mobile terminals, have become indispensable devices in people's daily lives. Daily use of electronic terminals is even more dependent on the use of applications. Users can install applications on their electronic terminals that provide various application functions, such as music applications, game applications, short video applications, instant messaging applications, and so on. As users use these applications, the number of applications in electronic terminals increases, placing an increasingly heavy load on these terminals. Furthermore, users use different applications with varying degrees of frequency, with some applications being used frequently while others are less frequently. Infrequently used applications can occupy task resources for extended periods, wasting terminal resources. If these applications are uninstalled, they will need to be reinstalled when the user wants to use them again, which not only wastes data but also easily affects the user experience. Summary of the Invention

[0003] An embodiment of the present invention provides an application loading method, device, electronic device and computer-readable storage medium to solve or partially solve the problem in related technologies that applications on electronic terminals cannot be effectively processed, resulting in waste of resources and reduced user experience when there are too many applications.

[0004] An embodiment of the present invention discloses a method for loading an application program, comprising:

[0005] Obtaining first usage information of an electronic terminal and second usage information of each application deployed on the electronic terminal within a current statistical period, wherein the electronic terminal is configured with different statistical time periods in chronological order, the first usage information including the terminal usage duration of the electronic terminal within each of the statistical time periods, and the second usage information including the application usage duration of the application within each of the statistical time periods;

[0006] Calculating the usage frequency of the application in each statistical time period according to the terminal usage duration of the electronic terminal and the application usage duration of each application in the same statistical time period;

[0007] According to the usage frequency of the application in each statistical time period, a loading operation corresponding to the usage frequency is performed in each statistical time period in a target statistical period, and the target statistical period is a statistical period next to the current statistical period.

[0008] Optionally, performing the loading operation corresponding to the usage frequency in each statistical time period in a target statistical cycle according to the usage frequency of the application in each statistical time period includes:

[0009] If the usage frequency of the application program in the target statistical time period of the current statistical cycle is 0, performing a freezing process on the application program in the target statistical time period, wherein the freezing process is a process of destroying resources of the application program in the electronic terminal;

[0010] If the usage frequency of the application in the target statistical time period of the current statistical cycle is greater than 0 and less than or equal to a preset frequency threshold, a pre-freeze process is performed on the application in the target statistical time period. The pre-freeze process is a process of loading resources only when the application is cold started.

[0011] If the usage frequency of the application in the target statistical time period of the current statistical cycle is greater than the preset frequency threshold, a preloading process is performed on the application in the target statistical time period, and the preloading process preloads resources for the application in the background.

[0012] Optionally, it also includes:

[0013] If the usage frequency of the application program in the target statistical time period within the target statistical cycle is still 0, performing freezing processing in the target statistical time period of the next statistical cycle;

[0014] If the usage frequency of the application in the target statistical time period within the target statistical cycle changes from 0 to greater than 0 and less than or equal to the preset frequency threshold, a pre-freeze process is performed in the target statistical time period of the next statistical cycle;

[0015] If the usage frequency of the application in the target statistical time period within the target statistical cycle changes from 0 to greater than the preset frequency threshold, the preloading process is performed in the target statistical time period of the next statistical cycle.

[0016] Optionally, it also includes:

[0017] If the usage frequency of the application in the target statistical time period within the target statistical cycle changes from greater than 0 and less than or equal to the preset frequency threshold to 0, or remains greater than 0 and less than or equal to the preset frequency threshold, then the freezing process is performed in the target statistical time period of the next statistical cycle;

[0018] If the usage frequency of the application in the target statistical time period within the target statistical cycle changes from greater than 0 and less than or equal to the preset frequency threshold to greater than the preset frequency threshold, preloading processing is performed in the target statistical time period of the next statistical cycle.

[0019] Optionally, it also includes:

[0020] If the usage frequency of the application in the target statistical time period within the target statistical cycle changes from greater than the preset frequency threshold to 0, or changes to greater than 0 and less than or equal to the preset frequency threshold, then the freezing process is performed in the target statistical time period of the next statistical cycle;

[0021] If the usage frequency of the application program in the target statistical time period within the target statistical cycle is still greater than the preset frequency threshold, the preloading process is performed in the target statistical time period of the next statistical cycle.

[0022] Optionally, the statistical time period includes 00:00-8:00, 8:00-12:00, 12:00-18:00, and 18:00-00:00, and obtaining the first usage information of the electronic terminal and the second usage information of each application deployed on the electronic terminal in the current statistical period includes:

[0023] The terminal usage time of the electronic terminal from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00 and 18:00 to 0:00 in the current statistical period, as well as the application usage time of each application deployed on the electronic terminal from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00 and 18:00 to 0:00 are obtained respectively.

[0024] Optionally, the calculating the usage frequency of the application in each statistical time period based on the terminal usage duration of the electronic terminal and the application usage duration of each application in the same statistical time period includes:

[0025] Calculate the first usage frequency of each application program between 00:00 and 08:00 using the terminal usage duration of the electronic terminal between 00:00 and 08:00 and the application usage duration of each application program between 00:00 and 08:00;

[0026] Calculate the second usage frequency of each application between 8:00 and 12:00 using the terminal usage duration of the electronic terminal between 8:00 and 12:00 and the application usage duration of each application between 8:00 and 12:00;

[0027] Calculate the third usage frequency of each application between 12:00 and 18:00 by using the terminal usage duration of the electronic terminal between 12:00 and 18:00 and the application usage duration of each application between 12:00 and 18:00;

[0028] The fourth usage frequency of each of the applications at 18-0 is calculated by using the terminal usage duration of the electronic terminal at 18-0 and the application usage duration of each of the applications at 18-0.

[0029] The embodiment of the present invention further discloses a device for loading an application program, comprising:

[0030] A usage information acquisition module is configured to acquire first usage information of the electronic terminal and second usage information of each application deployed on the electronic terminal within a current statistical period, wherein the electronic terminal is configured with different statistical time periods in chronological order, the first usage information includes the terminal usage duration of the electronic terminal within each of the statistical time periods, and the second usage information includes the application usage duration of the application within each of the statistical time periods;

[0031] A usage frequency calculation module is used to calculate the usage frequency of the application in each statistical time period based on the terminal usage time of the electronic terminal and the application usage time of each application in the same statistical time period;

[0032] The application loading processing module is used to perform loading operations corresponding to the usage frequency in each statistical time period in a target statistical period according to the usage frequency of the application in each statistical time period, and the target statistical period is the next statistical period of the current statistical period.

[0033] Optionally, the application loading processing module is specifically configured to:

[0034] If the usage frequency of the application program in the target statistical time period of the current statistical cycle is 0, performing a freezing process on the application program in the target statistical time period, wherein the freezing process is a process of destroying resources of the application program in the electronic terminal;

[0035] If the usage frequency of the application in the target statistical time period of the current statistical cycle is greater than 0 and less than or equal to a preset frequency threshold, a pre-freeze process is performed on the application in the target statistical time period. The pre-freeze process is a process of loading resources only when the application is cold started.

[0036] If the usage frequency of the application in the target statistical time period of the current statistical cycle is greater than the preset frequency threshold, a preloading process is performed on the application in the target statistical time period, and the preloading process preloads resources for the application in the background.

[0037] Optionally, it also includes:

[0038] a freezing processing module, configured to execute freezing processing in the target statistical time period of the next statistical cycle if the usage frequency of the application in the target statistical time period of the target statistical cycle is still 0;

[0039] a pre-freeze processing module, configured to perform a pre-freeze process in the target statistical time period of the next statistical cycle if the usage frequency of the application in the target statistical time period of the target statistical cycle changes from 0 to a value greater than 0 and less than or equal to the preset frequency threshold;

[0040] The preloading processing module is used to perform preloading processing in the target statistical time period of the next statistical cycle if the usage frequency of the application in the target statistical time period within the target statistical cycle changes from 0 to greater than the preset frequency threshold.

[0041] Optionally, it also includes:

[0042] a freezing processing module, configured to execute freezing processing in the target statistical time period of the next statistical cycle if the usage frequency of the application in the target statistical time period within the target statistical cycle changes from greater than 0 and less than or equal to the preset frequency threshold to 0, or remains greater than 0 and less than or equal to the preset frequency threshold;

[0043] The preloading processing module is used to perform preloading processing in the target statistical time period of the next statistical cycle if the usage frequency of the application in the target statistical time period within the target statistical cycle changes from greater than 0 and less than or equal to the preset frequency threshold to greater than the preset frequency threshold.

[0044] Optionally, it also includes:

[0045] a freeze processing module, configured to execute a freeze process in the target statistical time period of the next statistical period if the usage frequency of the application in the target statistical time period of the target statistical period changes from greater than the preset frequency threshold to 0, or changes to greater than 0 and less than or equal to the preset frequency threshold;

[0046] The preloading module is configured to execute preloading processing in the target statistical time period of the next statistical cycle if the usage frequency of the application in the target statistical time period of the target statistical cycle is still greater than the preset frequency threshold.

[0047] Optionally, the statistical time periods include 0:00-8:00, 8:00-12:00, 12:00-18:00, and 18:00-0:00, and the usage information acquisition module is specifically configured to:

[0048] The terminal usage time of the electronic terminal from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00 and 18:00 to 0:00 in the current statistical period, as well as the application usage time of each application deployed on the electronic terminal from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00 and 18:00 to 0:00 are obtained respectively.

[0049] Optionally, the usage frequency calculation module is specifically used to:

[0050] Calculate the first usage frequency of each application program between 00:00 and 08:00 using the terminal usage duration of the electronic terminal between 00:00 and 08:00 and the application usage duration of each application program between 00:00 and 08:00;

[0051] Calculate the second usage frequency of each application between 8:00 and 12:00 using the terminal usage duration of the electronic terminal between 8:00 and 12:00 and the application usage duration of each application between 8:00 and 12:00;

[0052] Calculate the third usage frequency of each application between 12:00 and 18:00 by using the terminal usage duration of the electronic terminal between 12:00 and 18:00 and the application usage duration of each application between 12:00 and 18:00;

[0053] The fourth usage frequency of each of the applications at 18-0 is calculated by using the terminal usage duration of the electronic terminal at 18-0 and the application usage duration of each of the applications at 18-0.

[0054] An embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0055] The memory is used to store computer programs;

[0056] The processor is configured to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0057] An embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon. When executed by one or more processors, the processors are enabled to execute the method according to the embodiment of the present invention.

[0058] The embodiments of the present invention include the following advantages:

[0059] In an embodiment of the present invention, for applications on an electronic terminal, by obtaining the terminal usage time of the electronic terminal in each statistical time period and the application usage time of each application in each statistical time period within the current statistical period, then for the same statistical time period, the usage frequency of each application in the statistical time period can be calculated based on the terminal usage time of the electronic terminal and the application usage time of each application, and then, based on the usage frequency of the application in each statistical time period, loading operations corresponding to the usage frequency can be performed in each statistical time period in the next statistical period respectively, by taking statistics on the usage of the terminal and the usage of the application, the usage frequency of the application in different time periods is obtained, and then the application is loaded in different time periods, so that the same application can have different loading conditions in different time periods, and different applications in the same time period correspond to different loading conditions, thereby realizing flexible loading of applications, and effectively managing the loading of applications when there are too many applications, reducing the waste of terminal resources, and improving the operating performance of the terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 This is a flowchart of a method for loading an application program provided in an embodiment of the present invention;

[0061] Figure 2 is a flowchart of loading an application provided in an embodiment of the present invention;

[0062] Figure 3 is a flowchart of loading an application provided in an embodiment of the present invention;

[0063] Figure 4 is a flowchart of loading an application provided in an embodiment of the present invention;

[0064] Figure 5 is a flowchart of loading an application provided in an embodiment of the present invention;

[0065] Figure 6 This is a structural block diagram of a device for loading an application program provided in an embodiment of the present invention;

[0066] Figure 7 This is a block diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0067] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0068] As an example, different applications can provide users with different application functions. To this end, application developers will develop a wide variety of applications, resulting in a user's electronic terminal having many applications installed, such as instant messaging applications, game applications, shopping applications, music applications, map navigation applications, video applications, etc., and the same type of application may also include multiple different applications. As a result, as the user uses the electronic terminal, the number of applications in the electronic terminal increases, making the load on the electronic terminal increasingly serious. For users, the frequency of use of different applications is also uneven, with some applications being used frequently and some applications being used less frequently. For some infrequently used applications, they will occupy task resources for a long time, wasting terminal resources. If they are handled by uninstalling them, when the user wants to use them again, they need to reinstall them, which not only wastes data but also easily affects the user experience.

[0069] In this regard, one of the core invention points of the present invention is to obtain the usage frequency of the application in different time periods by collecting statistics on the usage of the terminal and the usage of the application, and then load the application in different time periods, so that the same application can have different loading conditions in different time periods, and different applications in the same time period correspond to different loading conditions, thereby realizing flexible loading of the application. When there are too many applications, the loading of the application is effectively managed, thereby reducing the waste of terminal resources and improving the terminal's operating performance.

[0070] In order to enable those skilled in the art to better understand the technical solutions of the embodiments of the present invention, some technical terms involved in the embodiments of the present invention are explained and illustrated below:

[0071] The statistical period may be a time period for collecting statistics on the usage of electronic terminals and applications, such as one day, one week, one month, or several days. The statistical period may be fixed or set by the user according to his or her needs.

[0072] Statistical time periods: 24 hours a day can be divided into different statistical time periods based on general daily routines, so as to count the terminal usage time of electronic terminals in different statistical time periods of the day, as well as the application usage time of various applications in different statistical time periods. For example, the terminal usage time of an electronic terminal in the time period from 0 to 8 o'clock in a statistical cycle is 10 hours, and the application usage time of a certain application macro program in this time period is 3 hours, etc.

[0073] Specifically, refer to Figure 1 , shows a flowchart of a method for loading an application provided in an embodiment of the present invention, which may specifically include the following steps:

[0074] Step 101: Acquire first usage information of an electronic terminal and second usage information of each application deployed on the electronic terminal within a current statistical period, wherein the electronic terminal is configured with different statistical time periods in chronological order, the first usage information includes the terminal usage duration of the electronic terminal within each of the statistical time periods, and the second usage information includes the application usage duration of the application within each of the statistical time periods;

[0075] In an embodiment of the present invention, the loading adjustment of the application can be triggered between the end of one statistical period and the beginning of the next statistical period. After the triggering, the terminal can obtain the terminal usage time of the electronic terminal in each different statistical time period in the current statistical period, as well as the application usage time of each application in each different statistical time period in the statistical period, so as to calculate the usage frequency of the application based on the two.

[0076] Optionally, a statistical cycle can include multiple days. For different statistical time periods of a day within a statistical cycle, the electronic terminal can be divided into cumulative values ​​and stage values. For the cumulative value, it can be the sum of the terminal usage time corresponding to the same statistical time period every day within the statistical cycle; for the stage value, it can be the terminal usage time corresponding to each statistical time period every day within the statistical cycle. The sum of the stage values ​​corresponding to the same statistical time period every day within the statistical cycle is the cumulative value. For example, assuming the statistical cycle is 7 o'clock, and the statistical time periods of each day are divided into 0-8 o'clock, 8-12 o'clock, 12-18 o'clock, and 18-0 o'clock, the statistical situation of the terminal usage time can be:

[0077] Statistical period 0-8 hours (h) 8-12 o'clock (h) 12-18 hours (h) 18:00-0:00 (h) Day 1 1 2 2 4 the next day 0.8 1.5 1.8 3 Day 3 0.6 1.6 1.5 3.5 Day 4 1.2 1.4 1.6 4.2 Day 5 0.5 1.2 1.4 3.8 Day 6 0.4 1.5 1.2 3.5 Day 7 0.5 1.8 1.5 4 Cumulative value 5 11 11 26

[0078] Table 1

[0079] As can be seen from Table 1, on the first day of the statistical period, the terminal's usage time from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00, and 18:00 to 0:00 was 1 hour, 2 hours, 2 hours, and 4 hours, respectively. The cumulative usage time of the terminal from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00, and 18:00 to 0:00 in one statistical period was 5 hours, 11 hours, 11 hours, and 26 hours, respectively. It should be noted that in the embodiments of the present invention, the terminal usage time is used as the cumulative value for explanation, but it is understandable that it is also applicable to the stage value, and the statistical process for application usage time is the same or similar to that for terminal usage time, which will not be repeated here.

[0080] In one example, using cumulative values ​​for calculation, the terminal can obtain the terminal usage duration of the electronic terminal from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00, and 18:00 to 0:00 in the current statistical period, as well as the application usage duration of each application deployed on the electronic terminal from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00, and 18:00 to 0:00. For example, the terminal usage duration from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00, and 18:00 to 0:00 in a statistical period can be x1, x2, x3, and x4, respectively; the application usage duration of application ① from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00, and 18:00 to 0:00 can be x1-①, x2-①, x3-①, and x4-①; the application usage duration of application ② from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00, and 18:00 to 0:00 can be x1-②, x2-②, x3-②, x4-②, etc., and the present invention is not limited to this.

[0081] Step 102, calculating the usage frequency of the application in each statistical time period according to the terminal usage duration of the electronic terminal and the application usage duration of each application in the same statistical time period;

[0082] For users, the usage of the same application may be different in different statistical time periods, and the usage of different applications may also be different in the same statistical time period. In this regard, for the same statistical time period, the terminal can use the terminal usage time of the electronic terminal and the application application time to calculate the usage frequency of the application in the statistical time period, so that the terminal can perform corresponding loading operations on the application in the statistical time period.

[0083] Specifically, the terminal usage time of the electronic terminal from 0 to 8 and the application usage time of each application from 0 to 8 are used to calculate the first usage frequency of each application from 0 to 8; the terminal usage time of the electronic terminal from 8 to 12 and the application usage time of each application from 8 to 12 are used to calculate the second usage frequency of each application from 8 to 12; the terminal usage time of the electronic terminal from 12 to 18 and the application usage time of each application from 12 to 18 are used to calculate the third usage frequency of each application from 12 to 18; the terminal usage time of the electronic terminal from 18 to 0 and the application usage time of each application from 18 to 0 are used to calculate the fourth usage frequency of each application from 18 to 0.

[0084] For example, the usage frequencies of application ① in a statistical period from 0 to 8 o'clock, from 8 to 12 o'clock, from 12 to 18 o'clock, and from 18 to 0 o'clock can be x1-① / x1, x2-① / x2, x3-① / x3, and x4-① / x4 respectively; the usage frequencies of application ② in a statistical period from 0 to 8 o'clock, from 8 to 12 o'clock, from 12 to 18 o'clock, and from 18 to 0 o'clock can be x1-② / x1, x2-② / x2, x3-② / x3, and x4-② / x4 respectively.

[0085] In addition, if the calculation is performed using stage values, the usage frequency between the application usage time of the application in a certain statistical time period of the day and the terminal usage time of the terminal in the statistical time period can be calculated first, and then the average usage frequency corresponding to all the same statistical time periods of the application in a statistical cycle can be calculated. This average value can then be used as the final usage frequency of the application corresponding to the statistical time period in the statistical cycle. The present invention does not impose any restrictions on this.

[0086] Step 103 , based on the usage frequency of the application in each of the statistical time periods, execute a loading operation corresponding to the usage frequency in each of the statistical time periods in a target statistical period, where the target statistical period is the next statistical period of the current statistical period.

[0087] After obtaining the usage frequency of each application in different statistical time periods in the current statistical cycle, the loading operation corresponding to the usage frequency can be performed on the application in different statistical time periods of each day in the next statistical cycle, so that the usage frequency of the application in different time periods can be obtained by counting the usage of the terminal and the usage of the application, and then the application can be loaded in different time periods, so that the same application can have different loading conditions in different time periods, and different applications in the same time period correspond to different loading conditions, thereby realizing flexible loading of the application. In the case of too many applications, the loading of the application can be effectively managed, thereby reducing the waste of terminal resources and improving the terminal's operating performance.

[0088] Optionally, the loading operation may include freezing processing, pre-freezing processing and pre-loading processing. The freezing processing is the process of destroying resources of the application in the electronic terminal; the pre-freezing processing is the process of loading resources when the application is cold started; the pre-loading processing is the process of pre-loading resources of the application in the background, and the present invention does not impose any restrictions on this.

[0089] In a specific implementation, if the usage frequency of an application in a target statistical time period of a current statistical cycle is 0, a freeze process is performed on the application in the target statistical time period; if the usage frequency of an application in a target statistical time period of a current statistical cycle is greater than 0 and is less than or equal to a preset frequency threshold, a pre-freeze process is performed on the application in the target statistical time period; if the usage frequency of an application in a target statistical time period of a current statistical cycle is greater than a preset frequency threshold, a pre-load process is performed on the application in the target statistical time period, thereby loading the application in different time periods, so that the same application can have different loading conditions in different time periods, and different applications in the same time period correspond to different loading conditions. The application is flexibly loaded according to the user's usage habits, and the loading of the application is effectively managed, thereby reducing the waste of terminal resources and improving the terminal's operating performance.

[0090] Furthermore, as user usage habits change, previously infrequently used applications may become more frequently used over a period of time, while previously frequently used applications may become less frequently used over a period of time. To address this, the usage frequency of applications within a statistical period can be calculated as described above, and the loading method can be adjusted in real time based on the new usage frequency of the applications.

[0091] Specifically, for an application in a frozen processing state, if the usage frequency of the application in the target statistical time period within the target statistical cycle is still 0, the freezing process is performed in the target statistical time period of the next statistical cycle; if the usage frequency of the application in the target statistical time period within the target statistical cycle changes from 0 to greater than 0 and less than or equal to the preset frequency threshold, the pre-freezing process is performed in the target statistical time period of the next statistical cycle; if the usage frequency of the application in the target statistical time period within the target statistical cycle changes from 0 to greater than the preset frequency threshold, the pre-loading process is performed in the target statistical time period of the next statistical cycle.

[0092] For an application in the pre-freeze processing state, if the usage frequency of the application in the target statistical time period within the target statistical cycle changes from greater than 0 and less than or equal to the preset frequency threshold to 0, the freeze processing is performed in the target statistical time period of the next statistical cycle; if the usage frequency of the application in the target statistical time period within the target statistical cycle is still greater than 0 and less than or equal to the preset frequency threshold, the freeze processing is performed in the target statistical time period of the next statistical cycle; if the usage frequency of the application in the target statistical time period within the target statistical cycle changes from greater than 0 and less than or equal to the preset frequency threshold to greater than the preset frequency threshold, the preload processing is performed in the target statistical time period of the next statistical cycle.

[0093] For an application in the preloading processing state, if the usage frequency of the application in the target statistical time period within the target statistical cycle changes from greater than the preset frequency threshold to 0, or changes to greater than 0 and less than or equal to the preset frequency threshold, freezing processing will be performed in the target statistical time period of the next statistical cycle; if the usage frequency of the application in the target statistical time period within the target statistical cycle is still greater than the preset frequency threshold, preloading processing will be performed in the target statistical time period of the next statistical cycle.

[0094] By flexibly adjusting the application loading strategy based on the user's usage of the application in different statistical periods, the application can be flexibly loaded according to the user's usage. At the same time, for the terminal, the loading of the application can be effectively managed, reducing the waste of terminal resources and improving the terminal's operating performance.

[0095] It should be noted that loading an application refers to loading the task resources involved in the application, which does not affect the normal use of the user. By preloading the task resources, the efficiency of opening the application can be improved and the user's use of the application can be guaranteed. By destroying the task resources, the terminal can avoid loading applications that the user does not frequently use, causing waste of resources, thereby improving the terminal's operating performance.

[0096] In an embodiment of the present invention, for applications on an electronic terminal, by obtaining the terminal usage time of the electronic terminal in each statistical time period and the application usage time of each application in each statistical time period within the current statistical period, then for the same statistical time period, the usage frequency of each application in the statistical time period can be calculated based on the terminal usage time of the electronic terminal and the application usage time of each application, and then, based on the usage frequency of the application in each statistical time period, loading operations corresponding to the usage frequency can be performed in each statistical time period in the next statistical period respectively, by taking statistics on the usage of the terminal and the usage of the application, the usage frequency of the application in different time periods is obtained, and then the application is loaded in different time periods, so that the same application can have different loading conditions in different time periods, and different applications in the same time period correspond to different loading conditions, thereby realizing flexible loading of applications, and effectively managing the loading of applications when there are too many applications, reducing the waste of terminal resources, and improving the operating performance of the terminal.

[0097] In order to help those skilled in the art better understand the technical solutions of the embodiments of the present invention, an example is given below to illustrate:

[0098] Assuming a statistical cycle of 7 days, each day can be divided into four statistical time periods: 0-8:00, 8-12:00, 12-18:00 and 18-0:00, then refer to Figure 2 , shows a loading flow chart of an application provided in an embodiment of the present invention. The terminal can first collect the terminal usage time of the terminal in each statistical time period within the statistical period and the application usage time of each application in each statistical time period. For example, the terminal usage time of 0-8 o'clock, 8-12 o'clock, 12-18 o'clock and 18-0 o'clock in a statistical period can be x1, x2, x3, and x4 respectively. The application usage time of application ① at 0-8 o'clock, 8-12 o'clock, 12-18 o'clock and 18-0 o'clock can be x1-①, x2-①, x3-①, x4-①, the application usage time of application ② at 0-8 o'clock, 8-12 o'clock, 12-18 o'clock and 18-0 o'clock can be x1-②, x2-②, x3-②, x4-②, and the application usage time of application ③ at 0-8 o'clock, 8-12 o'clock, 12-18 o'clock and 18-0 o'clock can be x1-③, x2-③, x3-③, x4-③.

[0099] Then we can calculate the usage frequency of each application in the corresponding time period. For application ①, the usage frequency of 0-8, 8-12, 12-18 and 18-0 in a statistical period can be x1-① / x1, x2-① / x2, x3-① / x3, x4-① / x4 respectively; for application ②, the usage frequency of 0-8, 8-12, 12-18 and 18-0 in a statistical period can be x1-② / x1, x2-② / x2, x3-② / x3, x4-② / x4 respectively; for application ③, the usage frequency of 0-8, 8-12, 12-18 and 18-0 in a statistical period can be x1-③ / x1, x2-③ / x2, x3-③ / x3, x4-③ / x4 respectively. Figure 2 , showing the loading status of each application at 0-8, where x1-① / x1 is 0, x1-② / x1 is greater than 0 and less than or equal to the preset frequency threshold, and x1-③ / x1 is greater than the preset frequency threshold, then application ① can be determined as an "unused application", application ② can be determined as a "less frequently used application", and application ③ can be determined as a "more frequently used application". In the next cycle, freezing processing is adopted for application ①; pre-freezing processing is adopted for application ②; and pre-loading processing is adopted for application ③.

[0100] Reference Figure 3 In a new statistical cycle, if the usage frequency of application ① changes to be greater than 0 and less than or equal to the preset frequency threshold, then in the next statistical cycle, pre-freeze processing can be used; if the usage frequency changes to be greater than the preset frequency threshold, then in the next statistical cycle, pre-load processing can be used; if it does not change, then in the next statistical cycle, freeze processing is still used.

[0101] Reference Figure 4 In a new statistical cycle, if the usage frequency of application ② changes to be greater than 0, freezing processing can be used in the next statistical cycle; if the usage frequency changes to be greater than the preset frequency threshold, preloading processing can be used in the next statistical cycle; if it does not change, freezing processing can be used in the next statistical cycle.

[0102] Reference Figure 5 In a new statistical cycle, if the usage frequency of application ③ changes to be greater than 0 and less than or equal to the preset frequency threshold, or changes to 0, freezing processing can be used in the next statistical cycle; if the usage frequency is still greater than the preset frequency threshold, preloading processing can be used in the next statistical cycle.

[0103] By flexibly adjusting the application loading strategy based on the user's usage of the application in different statistical periods, the application can be flexibly loaded according to the user's usage. At the same time, for the terminal, the loading of the application can be effectively managed, reducing the waste of terminal resources and improving the terminal's operating performance.

[0104] It should be noted that for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, 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 involved are not necessarily required by the embodiments of the present invention.

[0105] Reference Figure 6 , shows a structural block diagram of an application loading device provided in an embodiment of the present invention, which may specifically include the following modules:

[0106] A usage information acquisition module 601 is configured to acquire first usage information of an electronic terminal and second usage information of each application deployed on the electronic terminal within a current statistical period. The electronic terminal is configured with different statistical time periods in chronological order. The first usage information includes the terminal usage duration of the electronic terminal within each statistical time period. The second usage information includes the application usage duration of the application within each statistical time period.

[0107] A usage frequency calculation module 602 is configured to calculate the usage frequency of the application in each statistical time period based on the terminal usage duration of the electronic terminal and the application usage duration of each application in the same statistical time period;

[0108] The application loading processing module 603 is used to perform loading operations corresponding to the usage frequency in each statistical time period in a target statistical period according to the usage frequency of the application in each statistical time period, and the target statistical period is the next statistical period of the current statistical period.

[0109] In an optional embodiment, the application loading processing module 603 is specifically configured to:

[0110] If the usage frequency of the application program in the target statistical time period of the current statistical cycle is 0, performing a freezing process on the application program in the target statistical time period, wherein the freezing process is a process of destroying resources of the application program in the electronic terminal;

[0111] If the usage frequency of the application in the target statistical time period of the current statistical cycle is greater than 0 and less than or equal to a preset frequency threshold, a pre-freeze process is performed on the application in the target statistical time period. The pre-freeze process is a process of loading resources only when the application is cold started.

[0112] If the usage frequency of the application in the target statistical time period of the current statistical cycle is greater than the preset frequency threshold, a preloading process is performed on the application in the target statistical time period, and the preloading process preloads resources for the application in the background.

[0113] In an optional embodiment, it further includes:

[0114] a freezing processing module, configured to execute freezing processing in the target statistical time period of the next statistical cycle if the usage frequency of the application in the target statistical time period of the target statistical cycle is still 0;

[0115] a pre-freeze processing module, configured to perform a pre-freeze process in the target statistical time period of the next statistical cycle if the usage frequency of the application in the target statistical time period of the target statistical cycle changes from 0 to a value greater than 0 and less than or equal to the preset frequency threshold;

[0116] The preloading processing module is used to perform preloading processing in the target statistical time period of the next statistical cycle if the usage frequency of the application in the target statistical time period within the target statistical cycle changes from 0 to greater than the preset frequency threshold.

[0117] In an optional embodiment, it further includes:

[0118] a freezing processing module, configured to execute freezing processing in the target statistical time period of the next statistical cycle if the usage frequency of the application in the target statistical time period within the target statistical cycle changes from greater than 0 and less than or equal to the preset frequency threshold to 0, or remains greater than 0 and less than or equal to the preset frequency threshold;

[0119] The preloading processing module is used to perform preloading processing in the target statistical time period of the next statistical cycle if the usage frequency of the application in the target statistical time period within the target statistical cycle changes from greater than 0 and less than or equal to the preset frequency threshold to greater than the preset frequency threshold.

[0120] In an optional embodiment, it further includes:

[0121] a freeze processing module, configured to execute a freeze process in the target statistical time period of the next statistical period if the usage frequency of the application in the target statistical time period of the target statistical period changes from greater than the preset frequency threshold to 0, or changes to greater than 0 and less than or equal to the preset frequency threshold;

[0122] The preloading module is configured to execute preloading processing in the target statistical time period of the next statistical cycle if the usage frequency of the application in the target statistical time period of the target statistical cycle is still greater than the preset frequency threshold.

[0123] In an optional embodiment, the statistical time periods include 0:00-8:00, 8:00-12:00, 12:00-18:00, and 18:00-0:00, and the usage information acquisition module 601 is specifically configured to:

[0124] The terminal usage time of the electronic terminal from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00 and 18:00 to 0:00 in the current statistical period, as well as the application usage time of each application deployed on the electronic terminal from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00 and 18:00 to 0:00 are obtained respectively.

[0125] In an optional embodiment, the usage frequency calculation module 602 is specifically configured to:

[0126] Calculate the first usage frequency of each application program between 00:00 and 08:00 using the terminal usage duration of the electronic terminal between 00:00 and 08:00 and the application usage duration of each application program between 00:00 and 08:00;

[0127] Calculate the second usage frequency of each application between 8:00 and 12:00 using the terminal usage duration of the electronic terminal between 8:00 and 12:00 and the application usage duration of each application between 8:00 and 12:00;

[0128] Calculate the third usage frequency of each application between 12:00 and 18:00 by using the terminal usage duration of the electronic terminal between 12:00 and 18:00 and the application usage duration of each application between 12:00 and 18:00;

[0129] The fourth usage frequency of each of the applications at 18-0 is calculated by using the terminal usage duration of the electronic terminal at 18-0 and the application usage duration of each of the applications at 18-0.

[0130] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0131] In addition, an embodiment of the present invention also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and runnable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned application loading method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0132] The present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the various processes of the aforementioned application loading method embodiment are implemented, and the same technical effects are achieved. To avoid repetition, the details are not described here. The computer-readable storage medium may be, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0133] Figure 7 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.

[0134] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, and a power supply 711. It will be understood by those skilled in the art that Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components or arrange the components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle terminal, a wearable device, and a pedometer.

[0135] It should be understood that in this embodiment of the present invention, the RF unit 701 can be used to receive and transmit signals during information transmission or calls. Specifically, it receives downlink data from the base station and transmits it to the processor 710 for processing; in addition, it transmits uplink data to the base station. Typically, the RF unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and the like. Furthermore, the RF unit 701 can communicate with the network and other devices via a wireless communication system.

[0136] The electronic device provides users with wireless broadband Internet access through the network module 702, such as helping users to send and receive emails, browse web pages, and access streaming media.

[0137] The audio output unit 703 can convert audio data received by the RF unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output it as sound. In addition, the audio output unit 703 can also provide audio output related to a specific function performed by the electronic device 700 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, etc.

[0138] The input unit 704 is used to receive audio or video signals. The input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The graphics processor 7041 processes image data of a still picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frames can be displayed on the display unit 706. The image frames processed by the graphics processor 7041 can be stored in the memory 709 (or other storage medium) or transmitted via the radio frequency unit 701 or the network module 702. The microphone 7042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 701 in the case of a telephone call mode.

[0139] The electronic device 700 also includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 7061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 7061 and / or the backlight when the electronic device 700 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 705 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.

[0140] The display unit 706 is used to display information input by the user or information provided to the user. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0141] The user input unit 707 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by the user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel 7071). The touch panel 7071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction and detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 710, which receives and executes the command sent by the processor 710. In addition, the touch panel 7071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 7071, the user input unit 707 may also include other input devices 7072. Specifically, other input devices 7072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0142] Furthermore, the touch panel 7071 may be overlaid on the display panel 7061. When the touch panel 7071 detects a touch operation on or near it, it transmits the information to the processor 710 to determine the type of touch event. Subsequently, the processor 710 provides corresponding visual output on the display panel 7061 according to the type of touch event. Figure 7 In the figure, the touch panel 7071 and the display panel 7061 are two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 7071 and the display panel 7061 can be integrated to realize the input and output functions of the electronic device, which is not limited here.

[0143] The interface unit 708 is an interface for connecting external devices to the electronic device 700. For example, the external devices may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from the external device and transmit the received input to one or more elements within the electronic device 700, or may be used to transmit data between the electronic device 700 and the external device.

[0144] Memory 709 can be used to store software programs and various data. Memory 709 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as a sound playback function or an image playback function); the data storage area may store data generated based on the use of the mobile phone (such as audio data, a phone book, etc.). Furthermore, memory 709 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0145] The processor 710 is the control center of the electronic device. It connects the various components of the electronic device using various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 709 and accessing data stored in the memory 709, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into the processor 710.

[0146] The electronic device 700 may also include a power supply 711 (such as a battery) to supply power to each component. Preferably, the power supply 711 may be logically connected to the processor 710 through a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.

[0147] In addition, the electronic device 700 includes some functional modules not shown, which will not be described here.

[0148] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0149] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0150] 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 methods. The above-mentioned specific implementation methods are merely illustrative and not 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 protected by the present invention.

[0151] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0152] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0153] In the 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 schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units 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 units, which can be electrical, mechanical or other forms.

[0154] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0155] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0156] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product 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 method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, ROM, RAM, a magnetic disk, or an optical disk.

[0157] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

Claims

1. A method for loading an application, characterized in that: include: Obtaining first usage information of an electronic terminal and second usage information of each application deployed on the electronic terminal within a current statistical period, wherein the electronic terminal is configured with different statistical time periods in chronological order within the current statistical period, the first usage information including the terminal usage duration of the electronic terminal within each of the statistical time periods, and the second usage information including the application usage duration of the application within each of the statistical time periods; Calculating the usage frequency of the application in each statistical time period according to the terminal usage duration of the electronic terminal and the application usage duration of each application in the same statistical time period; According to the usage frequency of the application in each of the statistical time periods, a loading operation corresponding to the usage frequency is performed in each of the statistical time periods in a target statistical period, where the target statistical period is a statistical period next to the current statistical period; the loading operation includes a freezing process, a pre-freezing process, and a pre-loading process, wherein the freezing process is a process of destroying resources of the application in the electronic terminal, the pre-freezing process is a process of loading resources only when the application is cold started, and the pre-loading process is a process of pre-loading resources of the application in the background; The step of performing the loading operation corresponding to the usage frequency in each statistical time period in a target statistical cycle according to the usage frequency of the application in each statistical time period includes: If the usage frequency of the application program in the target statistical time period of the current statistical cycle is 0, performing a freezing process on the application program in the target statistical time period; If the usage frequency of the application program in the target statistical time period of the current statistical cycle is greater than 0 and less than or equal to a preset frequency threshold, performing a pre-freeze process on the application program in the target statistical time period; If the usage frequency of the application program in the target statistical time period of the current statistical cycle is greater than the preset frequency threshold, a preloading process for the application program is performed in the target statistical time period.

2. The method according to claim 1, characterized in that Also includes: If the usage frequency of the application program in the target statistical time period within the target statistical cycle is still 0, performing freezing processing in the target statistical time period of the next statistical cycle; If the usage frequency of the application in the target statistical time period within the target statistical cycle changes from 0 to greater than 0 and less than or equal to the preset frequency threshold, a pre-freeze process is performed in the target statistical time period of the next statistical cycle; If the usage frequency of the application in the target statistical time period within the target statistical cycle changes from 0 to greater than the preset frequency threshold, the preloading process is performed in the target statistical time period of the next statistical cycle.

3. The method according to claim 1, characterized in that Also includes: If the usage frequency of the application in the target statistical time period within the target statistical cycle changes from greater than 0 and less than or equal to the preset frequency threshold to 0, or remains greater than 0 and less than or equal to the preset frequency threshold, then the freezing process is performed in the target statistical time period of the next statistical cycle; If the usage frequency of the application in the target statistical time period within the target statistical cycle changes from greater than 0 and less than or equal to the preset frequency threshold to greater than the preset frequency threshold, preloading processing is performed in the target statistical time period of the next statistical cycle.

4. The method according to claim 1, wherein Also includes: If the usage frequency of the application in the target statistical time period within the target statistical cycle changes from greater than the preset frequency threshold to 0, or changes to greater than 0 and less than or equal to the preset frequency threshold, then the freezing process is performed in the target statistical time period of the next statistical cycle; If the usage frequency of the application program in the target statistical time period within the target statistical cycle is still greater than the preset frequency threshold, the preloading process is performed in the target statistical time period of the next statistical cycle.

5. The method according to claim 1, wherein The statistical time periods include 0:00-8:00, 8:00-12:00, 12:00-18:00, and 18:00-0:00, and obtaining the first usage information of the electronic terminal and the second usage information of each application deployed on the electronic terminal in the current statistical period includes: The terminal usage time of the electronic terminal from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00 and 18:00 to 0:00 in the current statistical period, as well as the application usage time of each application deployed on the electronic terminal from 0:00 to 8:00, 8:00 to 12:00, 12:00 to 18:00 and 18:00 to 0:00 are obtained respectively.

6. The method according to claim 5, characterized in that The calculating, based on the terminal usage duration of the electronic terminal and the application usage duration of each application within the same statistical time period, respectively the usage frequency of the application within each statistical time period includes: Calculate the first usage frequency of each application program between 00:00 and 08:00 using the terminal usage duration of the electronic terminal between 00:00 and 08:00 and the application usage duration of each application program between 00:00 and 08:00; Calculate the second usage frequency of each application between 8:00 and 12:00 using the terminal usage duration of the electronic terminal between 8:00 and 12:00 and the application usage duration of each application between 8:00 and 12:00; Calculate the third usage frequency of each application between 12:00 and 18:00 by using the terminal usage duration of the electronic terminal between 12:00 and 18:00 and the application usage duration of each application between 12:00 and 18:00; The fourth usage frequency of each of the applications at 18-0 is calculated by using the terminal usage duration of the electronic terminal at 18-0 and the application usage duration of each of the applications at 18-0.

7. A device for loading an application, characterized in that: include: A usage information acquisition module is configured to acquire first usage information of the electronic terminal and second usage information of each application deployed on the electronic terminal within a current statistical period, wherein the electronic terminal is configured with different statistical time periods in chronological order within the current statistical period, the first usage information includes the terminal usage duration of the electronic terminal within each of the statistical time periods, and the second usage information includes the application usage duration of the application within each of the statistical time periods; A usage frequency calculation module is used to calculate the usage frequency of the application in each statistical time period based on the terminal usage time of the electronic terminal and the application usage time of each application in the same statistical time period; An application loading processing module is configured to execute, based on the usage frequency of the application program in each of the statistical time periods, a loading operation corresponding to the usage frequency in each of the statistical time periods in a target statistical period, where the target statistical period is the statistical period next to the current statistical period; the loading operation includes a freezing process, a pre-freezing process, and a pre-loading process, wherein the freezing process is a process of destroying resources of the application program in the electronic terminal, the pre-freezing process is a process of loading resources only when the application program is cold-started, and the pre-loading process is a process of pre-loading resources of the application program in the background; The application loading processing module is specifically used to: If the usage frequency of the application program in the target statistical time period of the current statistical cycle is 0, performing a freezing process on the application program in the target statistical time period; If the usage frequency of the application program in the target statistical time period of the current statistical cycle is greater than 0 and less than or equal to a preset frequency threshold, performing a pre-freeze process on the application program in the target statistical time period; If the usage frequency of the application program in the target statistical time period of the current statistical cycle is greater than the preset frequency threshold, a preloading process for the application program is performed in the target statistical time period.

8. An electronic device, characterized in that: comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is configured to implement the method according to any one of claims 1 to 6 when executing a program stored in the memory.

9. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and device for acquiring application usage data and terminal equipment

    CN106293445A

  • Application program management method, mobile terminal and computer readable storage medium

    CN110392156A