CN112162796A - Application starting method and device, terminal equipment and storage medium - Google Patents

Application starting method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN112162796A
CN112162796A CN202011081566.3A CN202011081566A CN112162796A CN 112162796 A CN112162796 A CN 112162796A CN 202011081566 A CN202011081566 A CN 202011081566A CN 112162796 A CN112162796 A CN 112162796A
Authority
CN
China
Prior art keywords
application
starting
intelligent terminal
resources
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011081566.3A
Other languages
Chinese (zh)
Inventor
张充
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011081566.3A priority Critical patent/CN112162796A/en
Publication of CN112162796A publication Critical patent/CN112162796A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Abstract

The application discloses a method, a device, a terminal device and a storage medium for starting an application, wherein the method comprises the following steps: responding to an application starting instruction on an intelligent terminal, and detecting whether the resources of the application are loaded in advance in a memory of the intelligent terminal; if the resources of the application are pre-loaded in the memory of the intelligent terminal, the pre-loaded resources of the application are called, and the application is started, wherein the resources of the application are pre-loaded according to the starting frequency of the application within the preset time, so that the resources of the application can be pre-intelligently loaded through the starting frequency of the application, that is, the resources can be dynamically loaded according to the behavior habits of the user, the starting speed of the application is greatly increased, the intelligence of the intelligent terminal is embodied to a certain extent, and the intelligent experience requirements of the user on the intelligent terminal system are met.

Description

Application starting method and device, terminal equipment and storage medium
Technical Field
The present application relates to the field of application starting technologies, and in particular, to a method and an apparatus for starting an application, a terminal device, and a storage medium.
Background
With the development of intelligent terminal technology, smart phones have been widely used in the life of people, and the applications on smart phones are more and more. People are usually sensitive to the starting speed of the application in the process of using the mobile phone, and if the starting speed of the application is too low, the intuitive feeling of a user is necessarily influenced.
At present, the related technical solutions are to improve user experience by statically loading resources of an application. However, the way of statically loading the application resources is not intelligent enough on one hand, and on the other hand, the way of statically loading the application resources is only to load specific resources, such as some rendering dynamic libraries, and resources which cannot be used or are rarely used by the user exist all the time, which not only causes resource waste, but also cannot meet the intelligent requirement of the user on the intelligent terminal.
Disclosure of Invention
The application mainly aims to provide an application starting method, an application starting device, terminal equipment and a storage medium, and aims to realize dynamic loading of application resources, improve the starting speed of applications and meet the intelligent requirements of users on intelligent terminals.
In order to achieve the above object, the present application provides an application starting method, where the application starting method includes:
responding to an application starting instruction on an intelligent terminal, and detecting whether the resources of the application are loaded in advance in a memory of the intelligent terminal;
and if the resources of the application are pre-loaded in the memory of the intelligent terminal, calling the pre-loaded resources of the application and starting the application, wherein the resources of the application are pre-loaded according to the starting frequency of the application in the preset time.
Optionally, before the step of responding to the application start instruction on the intelligent terminal and detecting whether the resource of the application has been loaded in advance in the memory of the intelligent terminal, the method further includes:
counting the starting frequency of each application on the intelligent terminal within a preset time, storing the application in a starting application list and sequencing the application;
and sequentially loading the resources of the applications with the preset number in the front sequence in the starting application list to the memory of the intelligent terminal according to the sequencing result.
Optionally, the step of sequentially loading the resources of the applications with the preset number in the front order in the start application list to the memory of the intelligent terminal according to the ordering result includes:
sequentially loading the resources of the applications which are sequenced at the front in the starting application list to the memory of the intelligent terminal according to the sequencing result;
in the loading process, detecting the current available memory of the intelligent terminal;
and when the current available memory of the intelligent terminal is lower than a preset threshold value, stopping the loading operation.
Optionally, the step of when the current available memory of the intelligent terminal is lower than the preset threshold includes: the current available memory of the intelligent terminal is less than or equal to 35% of the total memory of the intelligent terminal.
Optionally, the method for starting the application further includes:
counting the starting frequency of the current starting application, storing the starting frequency in the starting application list and sequencing to obtain a starting frequency sequencing result of the current starting application;
if the starting frequency sorting result of the currently started application meets a preset high-frequency condition, reserving the pre-loaded resources of the currently started application in the memory of the intelligent terminal when the currently started application finishes the process;
and if not, removing the pre-loaded resources of the current starting application from the memory of the intelligent terminal.
Optionally, after the step of responding to the application start instruction on the intelligent terminal and detecting whether the resource of the application has been loaded in advance in the memory of the intelligent terminal, the method further includes:
and if the resources of the application are not pre-loaded in the memory of the intelligent terminal, loading the resources of the application to the memory of the intelligent terminal and starting the application.
Optionally, the method for starting the application further includes:
counting the starting frequency of the current starting application, storing the starting frequency in the starting application list and sequencing to obtain a starting frequency sequencing result of the current starting application;
if the starting frequency sorting result of the currently started application meets a preset high-frequency condition, reserving the resources of the currently started application loaded in the memory of the intelligent terminal when the currently started application finishes the process;
and if not, clearing the loaded resources of the current starting application from the memory of the intelligent terminal.
Optionally, the preset high-frequency condition at least includes: the starting frequency sequence belongs to one of the preset numbers which are sequenced at the top in the starting application list.
In addition, an embodiment of the present application further provides an application starting apparatus, where the application starting apparatus includes:
the detection module is used for responding to an application starting instruction on the intelligent terminal and detecting whether the resources of the application are loaded in advance in the memory of the intelligent terminal;
and the starting module is used for calling the pre-loaded resources of the application and starting the application if the pre-loaded resources of the application are loaded in the memory of the intelligent terminal in advance, wherein the pre-loaded resources of the application are loaded in advance according to the starting frequency of the application within the preset time.
In addition, the embodiment of the present application further provides a terminal device, where the terminal device includes a memory, a processor, and an application start program stored on the memory and executable on the processor, and the application start program, when executed by the processor, implements the steps of the method for starting an application as described above.
In addition, an embodiment of the present application also provides a computer-readable storage medium, where an application startup program is stored on the computer-readable storage medium, and when the application startup program is executed by a processor, the application startup program implements the steps of the method for starting up the application as described above.
The application starting method, the application starting device, the terminal equipment and the storage medium provided by the embodiment of the application respond to an application starting instruction on an intelligent terminal and detect whether the resources of the application are loaded in advance in the memory of the intelligent terminal; if the resources of the application are pre-loaded in the memory of the intelligent terminal, the pre-loaded resources of the application are called, and the application is started, wherein the resources of the application are pre-loaded according to the starting frequency of the application within the preset time, so that the resources of the application can be pre-intelligently loaded through the starting frequency of the application, that is, the resources can be dynamically loaded according to the behavior habits of the user, the starting speed of the application is greatly increased, the intelligence of the intelligent terminal is embodied to a certain extent, and the intelligent experience requirements of the user on the intelligent terminal system are met.
Drawings
Fig. 1 is a schematic diagram of functional modules of a terminal device to which an application starting apparatus belongs;
FIG. 2 is a flowchart illustrating an exemplary embodiment of an application launching method according to the present application;
FIG. 3 is a schematic flowchart of another exemplary embodiment of an application startup method according to the present application;
FIG. 4 is a schematic flowchart of another exemplary embodiment of an application startup method according to the present application;
FIG. 5 is a schematic flow chart diagram illustrating a further exemplary embodiment of an application launching method of the present application;
fig. 6 is a flowchart illustrating a further exemplary embodiment of an application starting method according to the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The main solution of the embodiment of the application is as follows: responding to an application starting instruction on an intelligent terminal, and detecting whether the resources of the application are loaded in advance in a memory of the intelligent terminal; if the resources of the application are pre-loaded in the memory of the intelligent terminal, the pre-loaded resources of the application are called, and the application is started, wherein the resources of the application are pre-loaded according to the starting frequency of the application within the preset time, so that the resources of the application can be pre-intelligently loaded through the starting frequency of the application, that is, the resources can be dynamically loaded according to the behavior habits of the user, the starting speed of the application is greatly increased, the intelligence of the intelligent terminal is embodied to a certain extent, and the intelligent experience requirements of the user on the intelligent terminal system are met.
In the embodiment of the application, it is considered that, in the existing related scheme, the user experience is improved by statically loading the resources of the application. However, the way of statically loading application resources is not intelligent enough, and is not loaded according to the user requirements and the use habits of the user, and is only loaded for specific resources, such as some rendering dynamic libraries, and resources which cannot be used or are rarely used by the user exist all the time, which causes resource waste.
Therefore, the solution provided by the embodiment of the application can realize dynamic loading of the application resources, improve the starting speed of the application, and meet the intelligent requirement of a user on the intelligent terminal.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of functional modules of a terminal device to which the application starting apparatus belongs. The application starting device may be a device which is independent of the terminal device and can implement application resource loading and application starting, and may be borne on the terminal device in the form of hardware or software. The terminal device can be an intelligent mobile terminal with an application processing function, such as a mobile phone and a tablet personal computer, and can also be a fixed terminal device or a server with an application processing function.
In this embodiment, the terminal device to which the application starting apparatus belongs at least includes an output module 110, a processor 120, a memory 130 and a communication module 140.
The memory 130 stores an operating system and an application startup program, and the application startup device can store information such as an application program, a resource of a preloaded application, a startup application list, and the like in the memory 130; the output module 110 may be a display screen, a speaker, etc. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein the application launcher in the memory 130, when executed by the processor, implements the steps of:
responding to an application starting instruction on an intelligent terminal, and detecting whether the resources of the application are loaded in advance in a memory of the intelligent terminal;
and if the resources of the application are pre-loaded in the memory of the intelligent terminal, calling the pre-loaded resources of the application and starting the application, wherein the resources of the application are pre-loaded according to the starting frequency of the application in the preset time.
Further, the application launcher program in the memory 130 when executed by the processor further implements the steps of:
counting the starting frequency of each application on the intelligent terminal within a preset time, storing the application in a starting application list and sequencing the application;
and sequentially loading the resources of the applications with the preset number in the front sequence in the starting application list to the memory of the intelligent terminal according to the sequencing result.
Further, the application launcher program in the memory 130 when executed by the processor further implements the steps of:
sequentially loading the resources of the applications which are sequenced at the front in the starting application list to the memory of the intelligent terminal according to the sequencing result;
in the loading process, detecting the current available memory of the intelligent terminal;
and when the current available memory of the intelligent terminal is lower than a preset threshold value, stopping the loading operation.
Further, the application launcher program in the memory 130 when executed by the processor further implements the steps of:
counting the starting frequency of the current starting application, storing the starting frequency in the starting application list and sequencing to obtain a starting frequency sequencing result of the current starting application;
if the starting frequency sorting result of the currently started application meets a preset high-frequency condition, reserving the pre-loaded resources of the currently started application in the memory of the intelligent terminal when the currently started application finishes the process;
and if not, removing the pre-loaded resources of the current starting application from the memory of the intelligent terminal.
Further, the application launcher program in the memory 130 when executed by the processor further implements the steps of:
and if the resources of the application are not pre-loaded in the memory of the intelligent terminal, loading the resources of the application to the memory of the intelligent terminal and starting the application.
Further, the application launcher program in the memory 130 when executed by the processor further implements the steps of:
counting the starting frequency of the current starting application, storing the starting frequency in the starting application list and sequencing to obtain a starting frequency sequencing result of the current starting application;
if the starting frequency sorting result of the currently started application meets a preset high-frequency condition, reserving the resources of the currently started application loaded in the memory of the intelligent terminal when the currently started application finishes the process;
and if not, clearing the loaded resources of the current starting application from the memory of the intelligent terminal.
According to the scheme, the method and the device respond to an application starting instruction on the intelligent terminal, and detect whether the resources of the application are loaded in the memory of the intelligent terminal in advance; if the resources of the application are pre-loaded in the memory of the intelligent terminal, the pre-loaded resources of the application are called, and the application is started, wherein the resources of the application are pre-loaded according to the starting frequency of the application within the preset time, so that the resources of the application can be pre-intelligently loaded through the starting frequency of the application, that is, the resources can be dynamically loaded according to the behavior habits of the user, the starting speed of the application is obviously improved, the intelligence of the intelligent terminal is embodied to a certain extent, and the intelligent experience requirements of the user on the intelligent terminal system are met.
Based on the above terminal device architecture but not limited to the above architecture, embodiments of the method of the present application are provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating an exemplary embodiment of an application starting method according to the present application. The application starting method comprises the following steps:
step S101, responding to an application starting instruction on an intelligent terminal, and detecting whether resources of the application are loaded in advance in a memory of the intelligent terminal;
the execution main body of the method of this embodiment may be an application starting device, and may also be an application starting terminal device or a server, where this embodiment is exemplified by the application starting device, and the application starting device may be integrated on an intelligent terminal device such as a smart phone, a tablet computer, and the like having a data processing function.
In this embodiment, the smart terminal may be a terminal device such as a smart phone and a tablet computer.
Generally, in the starting process of an application, application resources (such as apk, so, dex, and the like) are not in a memory of the intelligent terminal, but the resources are loaded into the memory to realize application starting.
In this embodiment, the starting frequency of each application can be counted in advance according to the habit of the user using the application, and for the application with the high starting frequency, the application resource can be loaded into the memory of the intelligent terminal in advance.
The counting of the starting frequency of each application in advance may be performed periodically, for example, the counting may be performed at intervals of a preset time (for example, a day, a week, or a month), and the starting frequency of each application within the preset time (for example, a day, a week, or a month) may be counted.
Specifically, when an application starting instruction triggered by a user on an intelligent terminal is detected, the application starting instruction on the intelligent terminal is responded, and whether the application resource to be started is loaded in advance in a memory of the intelligent terminal is detected instead of loading the application resource.
Step S102, if the resources of the application are pre-loaded in the internal memory of the intelligent terminal, the pre-loaded resources of the application are called to start the application, wherein the pre-loaded resources of the application are pre-loaded according to the starting frequency of the application within the preset time.
If the resources of the application are pre-loaded in the memory of the intelligent terminal, the pre-loaded resources of the application are called from the memory of the intelligent terminal, and the application is started based on the loaded resources of the application, wherein the resources of the application are pre-loaded according to the starting frequency of the application within the preset time.
According to the scheme, the method and the device respond to an application starting instruction on the intelligent terminal, and detect whether the resources of the application are loaded in the memory of the intelligent terminal in advance; if the resources of the application are pre-loaded in the memory of the intelligent terminal, the pre-loaded resources of the application are called, and the application is started, wherein the resources of the application are pre-loaded according to the starting frequency of the application within the preset time, so that the resources of the application can be pre-intelligently loaded through the starting frequency of the application, that is, the resources can be dynamically loaded according to the behavior habits of the user, the starting speed of the application is greatly increased, the intelligence of the intelligent terminal is embodied to a certain extent, and the intelligent experience requirements of the user on the intelligent terminal system are met.
Referring to fig. 3, fig. 3 is a flowchart illustrating another exemplary embodiment of the application starting method according to the present application. Based on the embodiment shown in fig. 2, in this embodiment, before the step S101, responding to an application start instruction on the intelligent terminal, and detecting whether the resource of the application has been loaded in advance in the memory of the intelligent terminal, the method further includes:
step S1001, counting the starting frequency of each application on the intelligent terminal within preset time, storing the application in a starting application list and sequencing the application;
and step S1002, sequentially loading the resources of the applications with the preset number in the front sequence in the starting application list to the memory of the intelligent terminal according to the sequencing result.
Compared with the embodiment shown in fig. 2, the present embodiment further includes: the starting frequency of each application is counted in advance, and for the applications with high starting frequency, application resources are loaded into the memory of the intelligent terminal in advance, so that when a user starts the applications with high starting frequency, the application memory does not need to be loaded again, the starting speed of the applications can be increased, and the user embodiment effect is improved.
Specifically, in this embodiment, the start-up frequency of each application may be counted in advance according to the habit of the user using the application, where the start-up frequency of each application may be counted periodically, for example, the start-up frequency may be counted at intervals of a preset time (for example, a day, a week, a month, or the like), and furthermore, the start-up frequency of each application may be counted within the preset time (for example, a day, a week, a month, or the like).
As an implementation manner, the starting frequency of each application on the intelligent terminal within the preset time may be counted and stored in a pre-configured starting application list, and each starting application in the starting application list is ranked from high to low according to the starting frequency, that is, the application with the high starting frequency is ranked forward, and the application with the low starting frequency is ranked backward, so as to load the corresponding application resource according to the ranking result of the starting frequency.
More specifically, the step of sequentially loading the resources of the applications, which are ranked in the application start list by the preset number, to the memory of the intelligent terminal according to the ranking result may include:
sequentially loading the resources of the applications which are sequenced at the front in the starting application list to the memory of the intelligent terminal according to the sequencing result;
in the loading process, the current available memory of the intelligent terminal can be detected;
and when the current available memory of the intelligent terminal is lower than a preset threshold value, stopping the loading operation.
For example, when the current available memory of the intelligent terminal is less than or equal to 35% of the total memory of the intelligent terminal, the loading operation is stopped; otherwise, when the current available memory of the intelligent terminal is more than 35% of the total memory of the intelligent terminal, continuously loading and starting the application resources with the second highest frequency in the application list.
In the above scheme, in the process of loading the application resources, the purpose of detecting the currently available memory of the intelligent terminal is mainly to reserve a certain memory for other applications which are not frequently used but may be used, so that errors caused by insufficient memory when the applications are started are avoided, and the use experience of a user is reduced.
According to the scheme, the application starting frequency of the intelligent terminal in the preset time is counted, and the application starting frequency is stored in a starting application list and sequenced; sequentially loading the resources of the applications with the preset number in the front sequence in the starting application list to the memory of the intelligent terminal according to the sequencing result; responding to an application starting instruction on an intelligent terminal, and detecting whether the resources of the application are loaded in advance in a memory of the intelligent terminal; if the resources of the application are pre-loaded in the memory of the intelligent terminal, the pre-loaded resources of the application are called to start the application, wherein the resources of the application are pre-loaded according to the starting frequency of the application within the preset time, so that the resources of the application can be pre-intelligently loaded by counting the starting frequency of the application, that is, the resources can be dynamically loaded according to the behavior habit of a user.
Referring to fig. 4, fig. 4 is a flowchart illustrating a further exemplary embodiment of the application starting method according to the present application. Based on the embodiment shown in fig. 3, in this embodiment, the method for starting an application further includes:
step S103, counting the starting frequency of the current starting application, storing the counting in the starting application list and sequencing to obtain a starting frequency sequencing result of the current starting application;
step S104, if the starting frequency sorting result of the currently started application meets a preset high-frequency condition, reserving the resources of the currently started application which are pre-loaded in the memory of the intelligent terminal when the currently started application finishes the process; and if not, removing the pre-loaded resources of the current starting application from the memory of the intelligent terminal.
Compared with the embodiment shown in fig. 3, the present embodiment further includes: counting the starting frequency of the current starting application, and judging whether to reserve the pre-loaded resources of the current starting application in the memory of the intelligent terminal or to clear the pre-loaded resources of the current starting application when the application finishes the process based on the starting frequency of the application.
Specifically, the resources of the current application pre-loaded in the memory of the intelligent terminal are called, after the current application is started or when the current application is started, the starting frequency of the current starting application is counted, the counting is stored in the starting application list and sequenced, and the starting frequency sequencing result of the current starting application is obtained.
Then, according to the starting frequency sorting result of the currently started application, judging whether the currently started application meets a preset high-frequency condition, where the preset high-frequency condition may include: the start frequency ranking belongs to one of the preset numbers ranked at the top in the start application list, for example, the start frequency of the currently started application is located at 10 ranks at the top, that is, the currently started application belongs to the high-frequency application.
If the currently started application meets the preset high-frequency condition, when the currently started application finishes the process, resources of the currently started application, which are pre-loaded in a memory of the intelligent terminal, are reserved, so that the resource of the application is prevented from being loaded again when the application is started next time, and resource waste is avoided.
If the current starting application does not accord with the preset high-frequency condition, the pre-loaded resource of the current starting application is removed from the memory of the intelligent terminal, namely the application belongs to the application with low starting frequency, and compared with other applications with high starting frequency, the probability of being started again later is low, so that the resource of the application is removed from the memory of the intelligent terminal, and the memory resource is saved.
According to the scheme, the application starting frequency of the intelligent terminal in the preset time is counted, and the application starting frequency is stored in a starting application list and sequenced; sequentially loading the resources of the applications with the preset number in the front sequence in the starting application list to the memory of the intelligent terminal according to the sequencing result; responding to an application starting instruction on an intelligent terminal, and detecting whether the resources of the application are loaded in advance in a memory of the intelligent terminal; if the resources of the application are pre-loaded in the memory of the intelligent terminal, the pre-loaded resources of the application are called, and the application is started, wherein the resources of the application are pre-loaded according to the starting frequency of the application within the preset time, so that the resources of the application can be pre-intelligently loaded by counting the starting frequency of the application, that is, the resources can be dynamically loaded according to the behavior habits of a user, and when the application is started, the application resources are directly loaded into the memory in advance by the technical scheme of the application, so that the resource loading process is omitted, the starting speed of the application is greatly increased, the intelligence of the intelligent terminal is embodied to a certain extent, and the intelligent experience requirements of the user on an intelligent terminal system are met; furthermore, the starting frequency of the current starting application can be counted, stored in the starting application list and sequenced to obtain a sequencing result of the starting frequency of the current starting application; if the starting frequency sorting result of the currently started application meets a preset high-frequency condition, reserving the pre-loaded resources of the currently started application in the memory of the intelligent terminal when the currently started application finishes the process; otherwise, the pre-loaded resources of the current starting application are cleared from the memory of the intelligent terminal, so that the memory resources of the intelligent terminal are reasonably utilized to the maximum extent, and the resource waste is avoided.
Referring to fig. 5, fig. 5 is a flowchart illustrating a further exemplary embodiment of the application starting method according to the present application. Based on the embodiment shown in fig. 2, in this embodiment, after the step S101, responding to the application start instruction on the intelligent terminal, and detecting whether the resource of the application has been loaded in advance in the memory of the intelligent terminal, the method further includes:
step S1003, if the resource of the application is not pre-loaded in the memory of the intelligent terminal, loading the resource of the application to the memory of the intelligent terminal, and starting the application.
Compared with the embodiment shown in fig. 2, the present embodiment further includes: and the processing scheme when the resources of the application to be started currently are not pre-loaded in the memory of the intelligent terminal.
Specifically, when an application starting instruction on the intelligent terminal is detected, whether the resources of the application are loaded in the memory of the intelligent terminal in advance is detected, if the resources of the application are not loaded in the memory of the intelligent terminal in advance, the resources of the application to be started at present are loaded to the memory of the intelligent terminal in real time, and the application is started so as to meet the requirement of a user for starting the application.
According to the scheme, the method and the device respond to an application starting instruction on the intelligent terminal, and detect whether the resources of the application are loaded in the memory of the intelligent terminal in advance; if the resources of the application are pre-loaded in the memory of the intelligent terminal, calling the pre-loaded resources of the application and starting the application; and if the resources of the application are not pre-loaded in the memory of the intelligent terminal, loading the resources of the application to the memory of the intelligent terminal, and starting the application, wherein the resources of the application are pre-loaded according to the starting frequency of the application within the preset time, so that the resources of the application can be pre-intelligently loaded through the application starting frequency, that is, the resources can be dynamically loaded according to the behavior habits of the user, the starting speed of the application is greatly increased, the intelligence of the intelligent terminal is embodied to a certain extent, and the intelligent experience requirements of the user on the intelligent terminal system are met.
Referring to fig. 6, fig. 6 is a flowchart illustrating a further exemplary embodiment of the application starting method according to the present application. Based on the embodiment shown in fig. 5, in this embodiment, the method for starting an application further includes:
step S105, counting the starting frequency of the current starting application, storing the counting in the starting application list and sequencing to obtain a starting frequency sequencing result of the current starting application;
step S106, if the starting frequency sorting result of the currently started application meets a preset high-frequency condition, when the currently started application finishes a process, resources of the currently started application loaded in a memory of the intelligent terminal are reserved; and if not, clearing the loaded resources of the current starting application from the memory of the intelligent terminal.
Compared with the embodiment shown in fig. 5, the present embodiment further includes: counting the starting frequency of the current starting application, and judging whether to reserve the resources of the current starting application loaded in the memory of the intelligent terminal or to clear the loaded resources of the current starting application when the application finishes the process based on the starting frequency of the application.
Specifically, after the current application is started or when the current application is started, the starting frequency of the current starting application is counted, stored in the starting application list and sorted, so that a starting frequency sorting result of the current starting application is obtained.
Then, according to the starting frequency sorting result of the currently started application, judging whether the currently started application meets a preset high-frequency condition, where the preset high-frequency condition may include: the start frequency ranking belongs to one of the preset numbers ranked at the top in the start application list, for example, the start frequency of the currently started application is located at 10 ranks at the top, that is, the currently started application belongs to the high-frequency application.
If the currently started application meets the preset high-frequency condition, when the currently started application finishes the process, resources of the currently started application loaded in a memory of the intelligent terminal are reserved, so that the resource of the application is prevented from being loaded again when the application is started next time, and resource waste is avoided.
And if the current started application does not accord with the preset high-frequency condition, the loaded resource of the current started application is removed from the memory of the intelligent terminal, namely the application belongs to the application with low starting frequency, and compared with other applications with high starting frequency, the probability of being started again later is low, so that the resource of the application is removed from the memory of the intelligent terminal, and the memory resource is saved.
According to the scheme, the method and the device respond to an application starting instruction on the intelligent terminal, and detect whether the resources of the application are loaded in the memory of the intelligent terminal in advance; if the resources of the application are pre-loaded in the memory of the intelligent terminal, calling the pre-loaded resources of the application and starting the application; and if the resources of the application are not pre-loaded in the memory of the intelligent terminal, loading the resources of the application to the memory of the intelligent terminal, and starting the application, wherein the resources of the application are pre-loaded according to the starting frequency of the application within the preset time, so that the resources of the application can be pre-intelligently loaded through the application starting frequency, that is, the resources can be dynamically loaded according to the behavior habits of the user, the starting speed of the application is greatly increased, the intelligence of the intelligent terminal is embodied to a certain extent, and the intelligent experience requirements of the user on the intelligent terminal system are met. Furthermore, the starting frequency of the current starting application can be counted, stored in the starting application list and sequenced to obtain a sequencing result of the starting frequency of the current starting application; if the starting frequency sorting result of the currently started application meets a preset high-frequency condition, reserving the resources of the currently started application loaded in the memory of the intelligent terminal when the currently started application finishes the process; otherwise, the loaded resources of the current starting application are cleared from the memory of the intelligent terminal, so that the memory resources of the intelligent terminal are reasonably utilized to the maximum extent, and the resource waste is avoided.
It should be noted that the above embodiments can be reasonably combined and implemented according to actual situations, and are not described herein again.
In addition, an embodiment of the present application further provides an application starting apparatus, where the application starting apparatus includes:
the detection module is used for responding to an application starting instruction on the intelligent terminal and detecting whether the resources of the application are loaded in advance in the memory of the intelligent terminal;
and the starting module is used for calling the pre-loaded resources of the application and starting the application if the pre-loaded resources of the application are loaded in the memory of the intelligent terminal in advance, wherein the pre-loaded resources of the application are loaded in advance according to the starting frequency of the application within the preset time.
For the principle and implementation process of application start in this embodiment, please refer to the above embodiments, which are not described herein again.
In addition, the embodiment of the present application further provides a terminal device, where the terminal device includes a memory, a processor, and an application start program stored on the memory and executable on the processor, and the application start program, when executed by the processor, implements the steps of the method for starting an application as described above.
Since the application start program is executed by the processor, all technical solutions of all the foregoing embodiments are adopted, so that at least all the beneficial effects brought by all the technical solutions of all the foregoing embodiments are achieved, and details are not repeated herein.
In addition, an embodiment of the present application also provides a computer-readable storage medium, where an application startup program is stored on the computer-readable storage medium, and when the application startup program is executed by a processor, the application startup program implements the steps of the method for starting up the application as described above.
Since the application start program is executed by the processor, all technical solutions of all the foregoing embodiments are adopted, so that at least all the beneficial effects brought by all the technical solutions of all the foregoing embodiments are achieved, and details are not repeated herein.
Compared with the prior art, the application starting method, the application starting device, the terminal equipment and the storage medium provided by the embodiment of the application respond to the application starting instruction on the intelligent terminal, and detect whether the resources of the application are loaded in the memory of the intelligent terminal in advance; if the resources of the application are pre-loaded in the memory of the intelligent terminal, the pre-loaded resources of the application are called, and the application is started, wherein the resources of the application are pre-loaded according to the starting frequency of the application within the preset time, so that the resources of the application can be pre-intelligently loaded through the starting frequency of the application, that is, the resources can be dynamically loaded according to the behavior habits of the user, the starting speed of the application is greatly increased, the intelligence of the intelligent terminal is embodied to a certain extent, and the intelligent experience requirements of the user on the intelligent terminal system are met.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (11)

1. A method for starting an application, the method for starting the application comprises the following steps:
responding to an application starting instruction on an intelligent terminal, and detecting whether the resources of the application are loaded in advance in a memory of the intelligent terminal;
and if the resources of the application are pre-loaded in the memory of the intelligent terminal, calling the pre-loaded resources of the application and starting the application, wherein the resources of the application are pre-loaded according to the starting frequency of the application in the preset time.
2. The method for starting an application according to claim 1, wherein the step of detecting whether the resource of the application is preloaded in the memory of the smart terminal in response to the application start instruction on the smart terminal further comprises:
counting the starting frequency of each application on the intelligent terminal within a preset time, storing the application in a starting application list and sequencing the application;
and sequentially loading the resources of the applications with the preset number in the front sequence in the starting application list to the memory of the intelligent terminal according to the sequencing result.
3. The method for starting the application according to claim 2, wherein the step of sequentially loading the resources of the applications with the preset number, which are ranked at the top in the starting application list, to the memory of the intelligent terminal according to the ranking result comprises:
sequentially loading the resources of the applications which are sequenced at the front in the starting application list to the memory of the intelligent terminal according to the sequencing result;
in the loading process, detecting the current available memory of the intelligent terminal;
and when the current available memory of the intelligent terminal is lower than a preset threshold value, stopping the loading operation.
4. The method for starting the application according to claim 3, wherein the step of the intelligent terminal having the currently available memory lower than the preset threshold comprises: the current available memory of the intelligent terminal is less than or equal to 35% of the total memory of the intelligent terminal.
5. The method for application launching according to claim 2, further comprising:
counting the starting frequency of the current starting application, storing the starting frequency in the starting application list and sequencing to obtain a starting frequency sequencing result of the current starting application;
if the starting frequency sorting result of the currently started application meets a preset high-frequency condition, reserving the pre-loaded resources of the currently started application in the memory of the intelligent terminal when the currently started application finishes the process;
and if not, removing the pre-loaded resources of the current starting application from the memory of the intelligent terminal.
6. The method for starting an application according to claim 2, wherein the step of detecting whether the resource of the application is preloaded in the memory of the smart terminal in response to the application start instruction on the smart terminal further comprises:
and if the resources of the application are not pre-loaded in the memory of the intelligent terminal, loading the resources of the application to the memory of the intelligent terminal and starting the application.
7. The method for application launching according to claim 6, further comprising:
counting the starting frequency of the current starting application, storing the starting frequency in the starting application list and sequencing to obtain a starting frequency sequencing result of the current starting application;
if the starting frequency sorting result of the currently started application meets a preset high-frequency condition, reserving the resources of the currently started application loaded in the memory of the intelligent terminal when the currently started application finishes the process;
and if not, clearing the loaded resources of the current starting application from the memory of the intelligent terminal.
8. The method for application launching according to claim 5 or 7, characterized in that the preset high frequency conditions comprise at least: the starting frequency sequence belongs to one of the preset numbers which are sequenced at the top in the starting application list.
9. An apparatus for application startup, characterized in that the apparatus for application startup comprises:
the detection module is used for responding to an application starting instruction on the intelligent terminal and detecting whether the resources of the application are loaded in advance in the memory of the intelligent terminal;
and the starting module is used for calling the pre-loaded resources of the application and starting the application if the pre-loaded resources of the application are loaded in the memory of the intelligent terminal in advance, wherein the pre-loaded resources of the application are loaded in advance according to the starting frequency of the application within the preset time.
10. A terminal device, characterized in that the terminal device comprises a memory, a processor and an application launcher stored on the memory and executable on the processor, the application launcher when executed by the processor implementing the steps of the method of application launching according to any one of claims 1-8.
11. A computer-readable storage medium, having an application launch program stored thereon, which when executed by a processor implements the steps of the method of application launching as recited in any of claims 1-8.
CN202011081566.3A 2020-10-10 2020-10-10 Application starting method and device, terminal equipment and storage medium Pending CN112162796A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011081566.3A CN112162796A (en) 2020-10-10 2020-10-10 Application starting method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011081566.3A CN112162796A (en) 2020-10-10 2020-10-10 Application starting method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112162796A true CN112162796A (en) 2021-01-01

Family

ID=73868045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011081566.3A Pending CN112162796A (en) 2020-10-10 2020-10-10 Application starting method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112162796A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115705241A (en) * 2021-08-10 2023-02-17 荣耀终端有限公司 Application scheduling method and electronic equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309740A (en) * 2013-06-05 2013-09-18 腾讯科技(深圳)有限公司 Program starting method, device and equipment
CN106406966A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Preloading method for application and mobile terminal
US20170046171A1 (en) * 2015-08-12 2017-02-16 Samsung Electronics Co., Ltd. Device and method for executing application
US20170097725A1 (en) * 2016-04-21 2017-04-06 Hisense Mobile Communications Technology Co., Ltd. Device and method for starting mobile terminal application and mobile terminal
CN106569894A (en) * 2016-10-11 2017-04-19 北京元心科技有限公司 Picture loading method and system
CN106648747A (en) * 2016-11-14 2017-05-10 腾讯科技(深圳)有限公司 Method and device for processing pre-loading of process
CN106843961A (en) * 2017-01-19 2017-06-13 上海斐讯数据通信技术有限公司 System and its application method that a kind of application program of mobile phone is preloaded and cleared up
CN106919313A (en) * 2017-04-21 2017-07-04 维沃移动通信有限公司 The startup method and mobile terminal of a kind of application program
CN108228270A (en) * 2016-12-19 2018-06-29 腾讯科技(深圳)有限公司 Start resource loading method and device
CN108536481A (en) * 2018-02-28 2018-09-14 努比亚技术有限公司 A kind of application program launching method, mobile terminal and computer storage media
CN108681475A (en) * 2018-05-21 2018-10-19 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and mobile terminal
CN108710515A (en) * 2018-05-21 2018-10-26 Oppo广东移动通信有限公司 Using preloading method, apparatus, storage medium and terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309740A (en) * 2013-06-05 2013-09-18 腾讯科技(深圳)有限公司 Program starting method, device and equipment
US20170046171A1 (en) * 2015-08-12 2017-02-16 Samsung Electronics Co., Ltd. Device and method for executing application
US20170097725A1 (en) * 2016-04-21 2017-04-06 Hisense Mobile Communications Technology Co., Ltd. Device and method for starting mobile terminal application and mobile terminal
CN106569894A (en) * 2016-10-11 2017-04-19 北京元心科技有限公司 Picture loading method and system
CN106406966A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Preloading method for application and mobile terminal
CN106648747A (en) * 2016-11-14 2017-05-10 腾讯科技(深圳)有限公司 Method and device for processing pre-loading of process
CN108228270A (en) * 2016-12-19 2018-06-29 腾讯科技(深圳)有限公司 Start resource loading method and device
CN106843961A (en) * 2017-01-19 2017-06-13 上海斐讯数据通信技术有限公司 System and its application method that a kind of application program of mobile phone is preloaded and cleared up
CN106919313A (en) * 2017-04-21 2017-07-04 维沃移动通信有限公司 The startup method and mobile terminal of a kind of application program
CN108536481A (en) * 2018-02-28 2018-09-14 努比亚技术有限公司 A kind of application program launching method, mobile terminal and computer storage media
CN108681475A (en) * 2018-05-21 2018-10-19 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and mobile terminal
CN108710515A (en) * 2018-05-21 2018-10-26 Oppo广东移动通信有限公司 Using preloading method, apparatus, storage medium and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115705241A (en) * 2021-08-10 2023-02-17 荣耀终端有限公司 Application scheduling method and electronic equipment
CN115705241B (en) * 2021-08-10 2023-12-15 荣耀终端有限公司 Application scheduling method and electronic equipment

Similar Documents

Publication Publication Date Title
CN107832100B (en) APK plug-in loading method and terminal thereof
CN107357617B (en) Application updating method and device, storage medium and electronic equipment
CN105867714B (en) Application program method for down loading, apparatus and system
CN110764906B (en) Memory recovery processing method and device, electronic equipment and storage medium
CN108063818B (en) Data downloading method, device, terminal and computer readable storage medium
CN107329750A (en) The recognition methods of advertisement page, jump method and mobile terminal in application program
CN111078406B (en) Memory management method and device, storage medium and electronic equipment
KR20100021725A (en) Apparatus and method for reallocation of memory in mobile communication terminal
CN107479953B (en) Process management method, device, storage medium and electronic equipment
CN102929980A (en) Folder cleaning method and device
CN105955770A (en) Application program uninstalling method and terminal
CN106569917B (en) Data backup method and mobile terminal
CN112162796A (en) Application starting method and device, terminal equipment and storage medium
CN109766282B (en) Stuck detection method, stuck detection device and terminal equipment
CN107450951B (en) Application processing method and device, storage medium and terminal
CN114116040A (en) Method for accelerating application starting, electronic equipment and computer storage medium
CN112182446A (en) Page display method and device, terminal equipment and computer readable storage medium
CN107291543B (en) Application processing method and device, storage medium and terminal
CN113885969A (en) Embedded device, embedded software loading method and storage medium
CN109783003A (en) Intelligent terminal document handling method, device and storage medium
CN113986558A (en) Application processing method and device
CN111258676B (en) Module preloading method, device, equipment and readable storage medium
CN114546171A (en) Data distribution method, data distribution device, storage medium and electronic equipment
CN110515718B (en) Batch task breakpoint continuous method, device, equipment and medium
CN112631781A (en) Operator execution method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210101