CN108363593B - Application program preloading method and device, storage medium and terminal - Google Patents

Application program preloading method and device, storage medium and terminal Download PDF

Info

Publication number
CN108363593B
CN108363593B CN201810488536.0A CN201810488536A CN108363593B CN 108363593 B CN108363593 B CN 108363593B CN 201810488536 A CN201810488536 A CN 201810488536A CN 108363593 B CN108363593 B CN 108363593B
Authority
CN
China
Prior art keywords
application program
preloaded
application
preloading
current
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.)
Active
Application number
CN201810488536.0A
Other languages
Chinese (zh)
Other versions
CN108363593A (en
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 CN201810488536.0A priority Critical patent/CN108363593B/en
Publication of CN108363593A publication Critical patent/CN108363593A/en
Priority to PCT/CN2019/086954 priority patent/WO2019223578A1/en
Application granted granted Critical
Publication of CN108363593B publication Critical patent/CN108363593B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses an application program preloading method, an application program preloading device, a storage medium and a terminal. The method comprises the following steps: when an application preloading event is triggered, determining an application program to be preloaded; for each application program to be preloaded in the application programs to be preloaded, determining a target application program which is in a preset association relation with the current application program to be preloaded; and preloading the target application program while preloading the current application program to be preloaded or after preloading the current application program to be preloaded. By adopting the technical scheme, the application programs in the preset incidence relation are simultaneously preloaded or are sequentially preloaded according to the incidence relation, so that the hit rate of preloading the application programs which are really started by a user can be improved, and the starting speed of the application programs in the preset incidence relation is further improved.

Description

Application program preloading method and device, storage medium and terminal
Technical Field
The embodiment of the application relates to the technical field of application preloading, in particular to an application preloading method, an application preloading device, a storage medium and a terminal.
Background
At present, terminals such as smart phones, tablet computers, notebook computers, and smart appliances have become essential electronic devices in people's daily life. With the continuous intellectualization of the terminal equipment, the operating system is loaded in most terminal equipment, so that the terminal equipment can install abundant and various application programs and meet different requirements of users.
With the continuous improvement of the configuration of the terminal device, dozens or even hundreds of application programs can be installed in most terminal devices, and with the increasing abundance of the functions of the application programs, more and more resources are needed to be loaded when the application programs run. When a user selects to start an application program, a terminal loads resources required by the start of the application program, and after the loading is completed, an initial interface of the application program is entered, the whole process usually takes several seconds or even tens of seconds, so that the start efficiency of the application program is low, and improvement is needed urgently.
Disclosure of Invention
The embodiment of the application program preloading method and device, the storage medium and the terminal can optimize the preloading scheme of the application program in the terminal.
In a first aspect, an embodiment of the present application provides an application preloading method, including:
when an application preloading event is triggered, determining an application program to be preloaded;
for each application program to be preloaded in the application programs to be preloaded, determining a target application program which is in a preset association relation with the current application program to be preloaded;
and preloading the target application program while preloading the current application program to be preloaded or after preloading the current application program to be preloaded.
In a second aspect, an embodiment of the present application provides an application preloading device, including:
the application determination module is used for determining the application program to be preloaded when detecting that the application preloading event is triggered;
the target application determining module is used for determining a target application program which is in a preset association relation with the current application program to be preloaded for each application program to be preloaded in the application programs to be preloaded;
and the application preloading module is used for preloading the target application program while preloading the current application program to be preloaded or after preloading the current application program to be preloaded.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the application preloading method according to the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the application preloading method according to the first aspect of the embodiment of the present application.
According to the application program preloading scheme provided in the embodiment of the application program preloading method, when an application preloading event is triggered, the application programs to be preloaded are determined, for each application program to be preloaded in the application programs to be preloaded, the target application programs which are in a preset association relation with the current application program to be preloaded are determined, and the target application programs are preloaded while the current application programs to be preloaded are preloaded or after the current application programs to be preloaded are preloaded. By adopting the technical scheme, the application programs in the preset incidence relation are simultaneously preloaded or are sequentially preloaded according to the incidence relation, so that the hit rate of preloading the application programs which are really started by a user can be improved, and the starting speed of the application programs in the preset incidence relation is further improved.
Drawings
Fig. 1 is a schematic flowchart of application preloading according to an embodiment of the present application;
FIG. 2 is a diagram illustrating a relative position relationship between a preloaded active window stack and a display area of a display screen according to an embodiment of the present disclosure;
FIG. 3 is a diagram illustrating a relative position relationship between a preloaded active window stack and a display area of a display screen according to an embodiment of the present application;
fig. 4 is a schematic diagram of application interface migration according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating another application preloading method according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating a method for preloading an application according to an embodiment of the present application;
fig. 7 is a block diagram illustrating an application preloading apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of an application preloading method according to an embodiment of the present application, where the method may be performed by an application preloading device, where the device may be implemented by software and/or hardware, and may be generally integrated in a terminal. As shown in fig. 1, the method includes:
step 101, when detecting that an application preloading event is triggered, determining an application program to be preloaded.
For example, the terminal in the embodiment of the present application may include terminal devices such as a mobile phone, a tablet computer, a notebook computer, and an intelligent appliance. The terminal is loaded with an operating system.
For example, the trigger condition of the application preloading event may be set according to an actual situation, and the embodiment of the present application is not particularly limited. For example, an application preloading event may be triggered when detecting that a user's action satisfies a preset condition (e.g., picking up a terminal, inputting a screen unlocking operation, inputting a terminal unlocking operation, or the like); or when detecting that the foreground application program is changed, triggering an application preloading event; or after the prediction process of the preloaded application is finished, an application preloading event can be triggered immediately (or after a preset time length is passed); or may be triggered at timed intervals, etc. After the application preloading event is triggered, the system may detect that the application preloading event is triggered by reading a flag bit or receiving a trigger instruction, and the like, and the specific detection method is not limited in this embodiment of the application.
For example, the application to be preloaded may be an application that a user may open soon, and may be a fixed application that is set in advance, or an application that is predicted in a certain manner, and the like. The application to be preloaded may comprise one or more.
Alternatively, a prediction model may be used to predict the application to be preloaded. The prediction model may be a machine learning model, and the algorithm used may include a Recurrent Neural Networks (RNN), a Long Short-Term Memory (LSTM) network, a threshold cycle unit, a simple cycle unit, an auto-encoder, a decision tree, a random forest, a feature mean classification, a classification regression tree, a hidden markov, a K-nearest neighbor (KNN) algorithm, a logistic regression model, a bayesian model, a gaussian model, and a KL divergence (Kullback-Leibler) or the like.
Optionally, in the process that the user uses the terminal, a training sample may be collected, the training sample is adopted to train the preset initial model, and finally, a prediction model for predicting the application program to be preloaded is obtained. For example, the elements contained in the training sample may include a time sequence or an order sequence in which the application was opened; can include the time, place, frequency, etc. that the application was opened; the method can include the running state of the terminal, such as the on-off state of a mobile data network, the connection state of a wireless hotspot, the identity information of the connected wireless hotspot, the currently running application program, the previous foreground application program, the stay time of the current application program in the background, the last time the current application program is switched to the background, the plugging state of an earphone jack, the charging state, the battery power information, the screen display time and the like; and the data collected by sensors integrated in the terminal can be included, such as a motion sensor, a light sensor, a temperature sensor, a humidity sensor and the like.
For example, a suitable sample element may be selected according to the selected machine learning model, the selected machine learning model may be determined according to the selected sample element, and the model and the sample element may be selected according to requirements on prediction accuracy, a preset speed, and the like, which is not limited in the embodiment of the present application.
In the embodiment of the application, determining the application to be preloaded may include determining the application to be preloaded according to an output result before the prediction model, or may include predicting by using the prediction model and determining the application to be preloaded according to a current output result of the prediction model.
In this embodiment of the application, when the number of the applications to be preloaded is multiple (N), the prediction model may output a start probability of each candidate application set in the candidate application sets, and determine the candidate application with a higher start probability as the application to be preloaded. Optionally, the determining the application to be preloaded includes: predicting a launch probability of a candidate application; and determining the candidate application programs with the higher starting probability as the application programs to be preloaded. Illustratively, the candidate applications may include all applications installed in the terminal, and may also include part of the applications. Some applications may not include system applications or applications that are rarely used by the user. The determination mode and the number of the candidate application programs are not limited in the embodiment of the application. Optionally, the candidate application program may be determined according to the number of times of use and/or the use duration of each application program in a preset time period before the current time, where the preset time period is, for example, 1 month, and when the number of times of use and/or the use duration exceed a corresponding threshold, the corresponding application program is determined as the candidate application program, or the application programs are sorted according to the number of times of use and/or the use duration, and the application program with the highest ranking is determined as the candidate application program.
For example, the predictive model described above may be employed to determine the launch probability of each candidate application. For example, according to a training sample during the training of the prediction model, a current sample is collected and input into the prediction model, so as to obtain the starting probability of each candidate application program. The starting probabilities may be sorted from high to low, and the top N candidate applications (N is a preset value) may be determined as the applications to be loaded. The advantage of this arrangement is that multiple applications can be preloaded, and the multiple applications are determined according to the launch probability, which can improve the accuracy of the prediction.
And 102, determining a target application program which is in a preset association relation with the current application program to be preloaded for each application program to be preloaded in the application programs to be preloaded.
In the embodiment of the application, when only one determined application program to be preloaded exists, a target application program which is in a preset association relation with the preloaded application program is determined. When the application program to be preloaded comprises a plurality of application programs, aiming at each application program to be preloaded in the plurality of application programs to be preloaded, determining a target application program which is in a preset association relation with the current application program to be preloaded. For example, the application programs to be preloaded include five application programs, which are an application program a, an application program B, an application program C, an application program D, and an application program E, and then target application programs that are in a preset association relationship with the five application programs (the application program a, the application program B, the application program C, the application program D, and the application program E) are determined respectively. It should be noted that, in the one or more applications to be preloaded, each application to be preloaded does not necessarily have a target application that is in a preset association relationship with the target application.
For example, the preset association relationship between the applications may be understood as an association that exists between the applications and satisfies a certain condition. The preset association relationship may include an association initiation relationship. For example, if the online shopping application is often associated with and starts the online payment application, the online shopping application and the online payment application may be regarded as an associated start application, that is, the online payment application may be regarded as an application having a preset association relationship with the online shopping application. For another example, in the process of using the news reading application program, a user often shares interesting, important or interested news messages to other users through the social contact application program, so that the news reading application program and the social contact application program can be regarded as an associated startup application program, that is, the social contact application program can be regarded as an application program in a preset association relationship with the news reading application program. The preset association relationship may also include a relationship that is initiated in a fixed chronological order. For example, after the user often uses the application program a, the user opens the application program B, and then the application program a and the application program B can be regarded as the application programs in the fixed sequence starting relationship, that is, the application program B is regarded as the application program in the preset association relationship with the application program a.
For example, the target application program in the preset association relationship with the current application program to be preloaded may be determined based on a preset association application list, the target application program in the preset association relationship with the current application program to be preloaded may be determined according to an association application prediction model, or the target application program in the preset association relationship with the current application program to be preloaded may be determined according to user selection. It should be noted that, in the embodiment of the present application, a manner of determining a target application program that is in a preset association relationship with a current application program to be preloaded is not limited.
Optionally, when the application program to be preloaded includes a plurality of application programs, it may be determined whether an application program in a preset association relationship with the current application program to be preloaded is included in the plurality of application programs to be preloaded, and if the application program exists, the application program is used as a target application program in the preset association relationship with the current application program to be preloaded. It can be understood that, at this time, the target application program that has the preset association relationship with the current application program to be preloaded also belongs to the application program to be preloaded, that is, the application program to be preloaded includes a group of application programs that have the preset association relationship. Optionally, the target application program that is in the preset association relationship with the current application program to be preloaded may also be another application program other than the application program to be preloaded. The embodiment of the present application does not limit this.
Step 103, preloading the target application program while preloading the current application program to be preloaded, or after preloading the current application program to be preloaded.
In the embodiment of the application, the application program to be preloaded and the target application program are preloaded at the same time. For example, when the current application program to be preloaded is an application program a, and the target application program that is in a preset association relationship with the application program a is an application program B, the application program a and the application program B are simultaneously preloaded, that is, the preloading processes of the application program a and the application program B may be performed in parallel. Optionally, after the application program to be preloaded is preloaded, the target application program is preloaded. After the preset duration is carried out on the application program to be preloaded currently, the target application program can be preloaded; the target application program can be preloaded after the starting resources corresponding to the current application program to be preloaded are completely preloaded; or after the partial starting resources corresponding to the current application program to be preloaded are preloaded, the target application program is preloaded, wherein the partial starting resources can be understood as a part of all starting resources required when the current application program to be preloaded is started. The embodiment of the present application does not limit this.
In the embodiment of the present application, a specific process of preloading and a loaded resource are not limited, and preloading of a target application is taken as an example for description. For example, the target application may be allocated corresponding hardware resources, and relevant data required for booting may be loaded based on the allocated hardware resources. The method comprises the following steps of starting an application process, starting an application service, allocating memory, reading file content, acquiring network data, rendering an interface and the like. In addition, the preloaded resources may be determined based on the specific type of target application. For example, if the target application is a piece of social software, a start screen, a contact list, a recent message record, and the like in the target application may be preloaded; if the target application is a game, the data related to the game background in the target application can be preloaded.
According to the application program preloading method provided in the embodiment of the application program preloading method, when an application preloading event is triggered, the application programs to be preloaded are determined, for each application program to be preloaded in the application programs to be preloaded, the target application programs which are in a preset association relation with the current application program to be preloaded are determined, and the target application programs are preloaded while the current application programs to be preloaded are preloaded or after the current application programs to be preloaded are preloaded. By adopting the technical scheme, the application programs in the preset incidence relation are simultaneously preloaded or are sequentially preloaded according to the incidence relation, so that the hit rate of preloading the application programs which are really started by a user can be improved, and the starting speed of the application programs in the preset incidence relation is further improved.
In some embodiments, determining a target application program in a preset association relation with a current application program to be preloaded comprises: acquiring a preset associated application list; the preset association application list comprises a plurality of groups of application program combinations in a preset association relation; and searching a target application program which is in a preset association relation with the current application program to be preloaded from the preset association application list. The advantage of this arrangement is that the target application program which is in the preset association relation with the current application program to be preloaded can be simply and quickly determined.
For example, whether an application program corresponding to the current application program to be preloaded exists is searched from a preset associated application list, and if so, the application program is determined as a target application program in a preset association relationship with the current application program to be preloaded. The preset association application program may include a plurality of groups of application program combinations in a preset association relationship, which are obtained by summarizing habits or rules of using the application programs by users.
Optionally, the obtaining manner of the preset associated application list includes: acquiring an application program use sequence in a preset time period and the occurrence times corresponding to the application program use sequence; wherein the application usage sequence includes two associated launched applications; and when the occurrence times are larger than a preset time threshold value, taking the application program using sequence as an application program combination in a preset association relation, and generating the preset association application list based on the application program combination. The method has the advantages that the preset associated application list which is more suitable for the user can be determined according to the application program using rule of the user, so that the determined target application program which is in the preset associated relation with the current application program to be preloaded is more targeted, and the user requirements can be met.
Illustratively, the application program usage sequence is obtained in a time period of tracing back one month from the current time, and the corresponding occurrence times of the application program usage sequence are counted. When the occurrence times corresponding to the application program use sequence are larger than a preset time threshold, the user is indicated to use the application program use sequence habitually, at this time, the application program use sequence can be used as an application program combination in a preset association relationship, namely, two application programs in the application program use sequence are in a strong association relationship, and a preset association application list is generated based on the application program combination. It can be understood that the preset associated application list includes a plurality of groups of application combinations in a preset association relationship. For example, in the process of running the application a within the preset time period, the application a initiates a call request to the application B, and the application a starts the application B in association with the call request, and the application use sequence may be represented as: (application a → application B, 5), where 5 in (application a → application B, 5) indicates that application a associated with the initiating application B occurred 5 times. For another example, when the application program running in the foreground is switched from the application program C to the application program D, that is, when the user uses the application program D after using the application program C, 10 times occur within a preset time period, the application program sequence may be represented as: (application C → application D, 10). If the preset number threshold is set to 3, the application sequences (application a → application B, 5) and (application C → application D, 10) may be set as a combination of applications in a preset association relationship. The number in the application program sequence represents the occurrence number of the application program sequence in a preset time period, and the greater the occurrence number, that is, the greater the number, the stronger the strength of the preset association relationship between the two application programs in the application program sequence.
It should be noted that when multiple application programs that are in a preset association relationship with the current application program to be preloaded are found from the preset association application list, the multiple application programs may be used as target application programs, the application program with the highest association strength may also be used as the target application program, and a preset number of application programs with higher association strength may also be used as the target application programs, which is not limited in this embodiment of the application.
Illustratively, in the above manner, the obtained preset associated application list is shown in the following table:
(Taobao → Payment, 15) (Taobao → Weixin, 5)
(telephone → WeChat, 5) (Mei Tuo → Gao De map, 4)
(Camera → beautiful picture, 8) (Mobai bicycle → ofo sharing bicycle, 12)
(hungry how → American take-out, 6) (Duorui exercise → Keep,5)
(today's headline → WeChat, 4) (Cool dog music → internet cloud music, 5)
(Jingdong city → Sunning easy, 7) (Cool dog music → Aiqi skill video, 6)
The determined application programs to be preloaded comprise: the application programs which are in the preset association relation with the Taobao are searched from the preset association application list for the Taobao to be preloaded, wherein the application programs comprise the Paobao and the WeChat, at the moment, the Paobao and the WeChat can be simultaneously used as target application programs which are in the preset association relation with the Taobao, and the Paobao with higher association strength can also be used as target application programs which are in the preset association relation with the Taobao. And for the QQ, the microblog and the WeChat in the application program to be preloaded, no target application program which is in a preset incidence relation with the QQ, the microblog and the WeChat exists.
In some embodiments, determining a target application program in a preset association relation with a current application program to be preloaded comprises: acquiring current use scene information; and determining a target application program which is in a preset incidence relation with the current application program to be preloaded according to the current use scene information. The method has the advantage that the target application program which is in the preset association relation with the current application program to be preloaded can be reasonably determined according to the current use scene information.
Wherein the usage scenario information includes at least one of: the method comprises the following steps of time information, date types, on-off states of a mobile data network, connection states of wireless hotspots, identity information of connected wireless hotspots, a previous foreground application program, plugging and unplugging states of earphone jacks, charging states, battery power information, screen display duration, motion states of terminals, position information, Bluetooth connection states and last screen extinguishing duration.
In the embodiment of the application, under different use scenes, the use habits of users on different application program use sequences are different, that is, the determined target application programs in the preset association relationship with the current application program to be preloaded are different, so that the target application programs in the preset association relationship with the current application program to be preloaded can be determined according to the current use scene information. For example, the current application program to be preloaded is cool dog music, and from the preset associated application list, it may be determined that the application program that is in the preset associated relationship with the cool dog music includes internet music and love art video. For example, if the terminal is in a motion state at this time, the internet music can be used as a target application program which is in a preset association relationship with the cool dog music; if the terminal is in a static state at this time, the love art video can be used as a target application program which is in a preset association relationship with the cool dog music.
Optionally, determining, according to the current usage scenario information, a target application program that is in a preset association relationship with a current application program to be preloaded, includes: inputting the current use scene information and the current application program to be preloaded into a pre-trained associated application prediction model, and determining a target application program which is in a preset association relation with the current application program to be preloaded according to an output result of the associated application prediction model; the correlation application prediction model is obtained by training the use rules of different application programs under different historical use scene information in a preset historical time period. The method has the advantages that the target application program which is in the preset association relation with the current application program to be preloaded under the current use scene can be simply and quickly determined based on the pre-trained associated application prediction model, and the obtained target application program is more suitable for user requirements.
In the embodiment of the application, the associated application prediction model may be understood as a learning model that can quickly determine, after inputting the current usage scenario information and the current application program to be preloaded, a target application program that is in a preset association relationship with the current application program to be preloaded under the current usage scenario information. The correlation application prediction model can be a statistical model or a machine learning model, or a mixed model of the two, and the like. The adopted algorithm may also include RNN, LSTM network, threshold cycle unit, simple cycle unit, automatic encoder, decision tree, random forest, feature mean classification, classification regression tree, hidden markov, KNN algorithm, logistic regression model, bayesian model, gaussian model, KL divergence, and the like, which is not limited in the embodiment of the present application. For example, within a preset historical time period (such as a time period of going back one month from the current time), the application program sequences under different historical usage scenario information are used as a training sample set, and the training sample set is trained to generate the associated application prediction model. In other words, the usage rules of different application programs in different historical usage scene information within a preset historical time period are learned, and a correlation application prediction model is generated. And inputting the acquired current use scene information and the current application program to be preloaded into an associated application prediction model, analyzing the current use scene information by the associated application prediction model, and outputting a target application program which is in a preset association relation with the current application program to be preloaded. The method has the advantages that the application programs in the preset incidence relation in the application programs to be preloaded can be sequentially preloaded according to the incidence relation, and the starting speed of the application programs in the preset incidence relation is increased.
In some embodiments, for each application program to be preloaded in the application programs to be preloaded, determining a target application program that is in a preset association relationship with a current application program to be preloaded includes: according to the sequence from high to low of the starting probability corresponding to the application programs to be preloaded, determining a target application program which is in a preset association relation with the current application program to be preloaded from the application programs to be preloaded for each application program to be preloaded in the application programs to be preloaded; after the application program to be preloaded is preloaded, preloading the target application program, including: and preloading the current application program to be preloaded, and preloading the target application program after a preset time length. The method has the advantage that the starting speed of the application program in the preset incidence relation can be further improved while the memory space is saved.
In the embodiment of the application, when a target application program which is in a preset association relation with a current application program to be preloaded exists in the application programs to be preloaded, the current application program to be preloaded and the target application program which is in the preset association relation with the current application program to be preloaded are sequentially preloaded according to the sequence. Illustratively, the starting probabilities corresponding to the applications to be preloaded are sorted from high to low as follows: taobao, WeChat, QQ, Gaode map, Paibao and today's headlines. And judging whether a target application program which is in a preset association relation with the current application program to be preloaded exists in the application programs to be preloaded according to the sequence. It can be understood that, first, it is determined whether there is a target application program in a preset association relationship with the treasure hunt among five applications to be preloaded, namely, the target application program in the preset association relationship with the treasure hunt is the treasure pay, the treasure is preloaded, and the precious is preloaded after a preset time period, for example, after 10 s. And then judging whether a target application program which is in a preset association relation with the WeChat exists in the three application programs to be preloaded, namely the QQ, the Goodpasture map and the current day, and so on.
In some embodiments, preloading the application program to be preloaded currently includes: preloading an application interface corresponding to the current application program to be preloaded based on a pre-created preloading active window stack, wherein the boundary coordinate corresponding to the preloading active window stack is positioned outside the coordinate range of a display screen; or, the preloading the target application program includes: and preloading an application interface corresponding to the target application program based on a pre-created pre-loaded active window stack, wherein the boundary coordinate corresponding to the pre-loaded active window stack is positioned outside the coordinate range of the display screen. The following description will be given taking preloading of a target application program as an example.
In the embodiment of the present application, the active window may be understood as a separate interface directly providing interaction and operation for a user, and different names may be used in different operating systems to name the interface. For ease of understanding, the following description will be made taking an Android (Android) operating system as an example.
In the Android system, the active window is called Activity. Activity is a component responsible for interacting with a user that provides a screen (which may be understood as a screen interface, rather than a display screen of an entity) for the user to interact to accomplish a task. In an android application, an Activity is usually a separate screen on which controls can be displayed and events of the user can be monitored and processed. In managing Activity, there are two concepts: task Stack and Stack. The Task corresponds to an application program, the Task is used for storing activities, one Task can store one or more activities, and the activities follow the principle of first-in first-out and last-in first-out. And the Stack is used for managing the Task, generally, one Stack manages the Task to which each Activity required to be shown by one screen belongs, and one Stack can manage one or more tasks, and of course, the Stack also follows the basic management principle of the Stack. The screens described herein are not necessarily completely separate display screens, and in the case of "two screens", the two screens may be only two regions of a complete display screen that independently display respective display contents. Of course, if the terminal has two or even more separate display screens, the "two screens" may also be two separate display screens.
In the Android system, multi-window modes are supported, which may include split screen mode, picture-in-picture mode, and free mode (FreeForm). In the multi-window mode, the Stack in which the application is located may have its own size (size), and may include upper, lower, left, and right coordinates in a coordinate system with the upper left corner of the terminal screen as the origin. For example, (a, b, c, d), which generally describes the boundary of a rectangle, the coordinates of the upper left corner and the coordinates of the lower right corner of the rectangle can be used for representation, i.e. the coordinates of the upper left corner of the rectangle are (a, b), and the coordinates of the lower right corner are (c, d), and such a rectangular area corresponds to the size of Stack. The in-application layout in the Stack is based on the size of the Stack, that is, the application interface corresponding to Activity is displayed within the boundary range of the size.
In the multi-window mode, multiple applications may be allowed to be visible, including both system and user visibility and system-only visibility. The system and the user can see the display on the display screen, and the user can see the display; system-only-visible means that the operating system is visible, but not the user, and may be obscured by foreground applications or displayed outside the display screen as the application is intended to implement.
In the embodiment of the application, the application interface of the target application program is preloaded outside the display screen, the preloading can be realized based on a multi-window mechanism of an operating system, and the size corresponding to the application program is set outside the display screen through the multi-window mechanism so as to achieve the purpose of being invisible to a user, so that the display of the display content of the foreground application program on the display screen is not influenced.
Generally, in the multi-window mode, there may be multiple types of stacks, for example, Home Stack represents a Stack displayed by a desktop application, App Stack represents a Stack displayed by a third-party application, and there may be other split-screen stacks, and contents contained in the three types of stacks may be displayed on a display screen, which are collectively referred to as application active window stacks in this embodiment. In the embodiment of the application, a preloaded active window Stack (preloaded Stack) is added to indicate a Stack displayed by a preloaded application, and the boundary coordinates of the preloaded Stack are set to be outside the coordinate range of a display screen, so that an application program to be preloaded can be displayed on the Stack. For the Android system, a Stack special for displaying preloaded applications can be newly built based on a multi-window mechanism of the Android system. In the embodiment of the application, the reason for newly building the Stack is that the newly built preloaded Stack can own size and visibility, so that the purpose of preloading outside a display screen is achieved.
In the embodiment of the application, the creation time of the preloaded Stack is not limited, and the preloaded Stack can be set to be in a resident state by default before the terminal leaves a factory, namely the preloaded Stack exists all the time; the method can also be established when the terminal is started or after the terminal is successfully unlocked; it may also be created after an application preload event is triggered (which may be before the target application is determined), and so on. Optionally, the preloading an application interface corresponding to the target application program based on a pre-created active window stack includes: judging whether a pre-established preloading active window stack exists or not; if not, creating a preloaded active window stack according to a preset rule; and preloading an application interface corresponding to the target application program based on the created preloading active window stack. The method has the advantages that after the target application program to be preloaded is determined, whether the preloading Stack exists or not is judged, if yes, new construction is not needed, and if not, creation is carried out, so that system resources can be saved. It can be understood that, when a plurality of target applications are included, that is, when a plurality of applications need to be continuously preloaded in a short time, the preloaded Stack is already created before the first target application starts to load, and then the preloaded Stack exists before the second target application starts to load, which may not be necessary.
In the embodiment of the application, a specific process of preloading an application interface corresponding to a target application program based on the preloaded Stack is not limited, and for example, the application interface may be drawn and displayed based on the size of the preloaded Stack.
In some embodiments, the preloading an application interface corresponding to the target application program based on a pre-created preload active window stack includes: creating a target process corresponding to the target application program; creating a task stack corresponding to the target application program in a pre-created preloading active window stack; starting an active window corresponding to the target application program in the task stack based on the target process; and drawing and displaying an application interface corresponding to the target application program based on the started active window. The advantage of setting up like this lies in, can draw and show the application interface of target application program based on the preloading activity window stack outside the screen coordinate scope, can not disturb the operation and the demonstration of foreground application program, guarantees system stability, effectively improves the speed when target application program starts simultaneously. While creating the target process, an initialization process of the target process may also be included. In the execution process of the above steps, preloading of other resources may also be involved, such as application service starting, memory allocation, file content reading, network data acquisition, and the like.
In some embodiments, further comprising: and sending a fake focus notification to the target application program, and keeping continuous drawing and display updating of an application interface corresponding to the target application program in a preset time period based on the fake focus notification. The method has the advantages that the drawing and the display of the application interface can be completed under the condition that the target application program obtains the focus and is visible to the system, the preloading completion degree is improved, and the focus of foreground application is not affected. The focus in the embodiment of the present application is also referred to as an input focus, and the fake focus is independent from the focus corresponding to the foreground application. Generally, for the current Android system, a focus is unique, for example, input operations such as touch and the like only take effect on the focus, the system end and the application end are consistent for inputting focus information, and once the system end modifies the input focus information, the system end sends information that the input focus information changes to the application, so that the method ensures that the input focus information of the system end and the application end is consistent. In the embodiment of the application, the purpose that the application end can forge the focus is achieved by separating the mode that the system end and the application end input the focus information. Specifically, in the embodiment of the application, the focus information is forged for the preloaded application, so that the preloaded application has the focus information, and the focus information of the system end is still correct, so that the preloaded application can be drawn normally, and the purpose of full loading is achieved. The focus exists in the system end and the application end, which can be regarded as a server end (server) and a client end (client), the system end records the application with the focus, and the application end stores a flag bit (flag) to identify whether the application has the focus. The time for forging the input focus can be that when a new window of the Android window system is added and the focus needs to be updated, a forged focus notification is generated and sent. The method for forging the focus may be a method for changing the focus of the window by calling the client end of the window, so that the window acquires the focus. Specifically, the forged focus notification can be sent based on a Binder mechanism, which is the most common mode of interprocess communication of the Android system and adopts a c/s architecture, i.e., a client/service architecture.
In the embodiment of the present application, the preset time period may be designed according to actual situations, and may be, for example, within a fixed time length range after the start of the preloading, or a time period from the start of the preloading to the completion of the preloading, and the like. In some embodiments, the length of the preset time period includes a playing time length of the start advertisement or start animation in the target application program. Some application programs usually play some advertisements or animations during the starting process, the playing time of the advertisements or animations usually ranges from 3 seconds to ten seconds, and during the playing of the advertisements or animations, a user may not have any operation and only wait for the completion of the playing, which wastes valuable time of the user. The method and the device have the advantages that the starting advertisement or the starting animation can be played out of the screen before the target application program is started, and when the target application program is started, the main page or other user operable interfaces of the application program can be directly accessed, so that the operable time point of the target application program is further advanced, and the waiting time is reduced.
In some embodiments, after preloading the application interface corresponding to the target application program based on the pre-created preloading active window stack, the method further includes: and when an operation instruction of the target application program is received, transferring an application interface corresponding to the target application program contained in the preloading active window stack to the display screen for displaying. The method has the advantages that when the target application program really needs to be started, the drawn application interface is directly migrated to the display screen to be displayed, the application interface can be rapidly switched, and the starting speed is improved.
In some embodiments, the migrating an application interface corresponding to the target application program included in the preloaded active window stack to the display screen for display includes: migrating a task stack corresponding to the target application program contained in the preloading active window stack to the top of an application active window stack; and updating the size information, the configuration information and the visibility of the task stack to realize that the application interface corresponding to the target application program is displayed on the display screen. The advantage that sets up like this lies in, can guarantee the stability of interface migration process, guarantees that the card screen can not appear in the recovery process, the black screen or the migration speed is slow scheduling problem.
For some terminals, especially mobile terminals such as mobile phones and tablet computers, in order to facilitate the use of users, the display modes of the display screen generally include vertical screen display and horizontal screen display, many applications display by default in the vertical screen mode, some applications display by default in the horizontal screen mode (such as some network games), and some applications switch the horizontal and vertical screen display along with the direction in which the user holds the terminal during the use of the terminal. In some embodiments of the present application, a boundary coordinate corresponding to the preloaded active window stack is (H, 0, 2H, H), a coordinate system corresponding to the boundary coordinate is a system coordinate, an origin of the system coordinate is an upper left corner of the display screen, and H is a length of a long side of a display area of the display screen. That is, the side corresponding to H is the maximum side of the display area of the display screen, and is the height of the display screen in the vertical screen display and the width of the display screen in the horizontal screen display. This is done to allow for the display of a landscape screen, pre-loaded application landscape displays, and the normal display of some applications. Fig. 2 is a schematic diagram illustrating a relative position relationship between a preloaded active window stack and a display area of a display screen according to an embodiment of the present disclosure. As shown in fig. 2, at this time, the display screen is in a vertical screen mode, the origin of the terminal system coordinates is the left vertex (0,0) of the display screen 201, the width direction of the display screen 201 is the X axis, the height direction is the Y axis, the boundary coordinates corresponding to the preloaded Stack202 are (H, 0, 2H, H), H is the screen height, that is, the area in the left solid line rectangular range is the main screen display area, and the area in the right dotted line rectangular range is the preloaded display area. Fig. 3 is a schematic diagram illustrating a relative position relationship between a preloaded active window stack and a display area of a display screen according to an embodiment of the present application. As shown in fig. 3, at this time, the display screen is in a landscape mode, the origin of the terminal system coordinates is the left vertex (0,0) of the display screen 301, the height direction of the display screen 301 is the X axis, the width direction is the Y axis, the boundary coordinates corresponding to the preloaded Stack202 are (H, 0, 2H, H), H is the screen height, that is, the area in the left solid line rectangular range is the main screen display area, and the area in the right dotted line rectangular range is the preloaded display area.
The reason why the pre-loaded Stack boundaries are so set is that:
the abscissa of the upper left corner is H, which is an interface for preventing the display screen (also referred to as a main screen) from displaying the preloaded application during the landscape screen, and since the main screen has a landscape mode in addition to the portrait mode, the abscissa of the upper left corner of the rectangular area corresponding to the preloaded Stack is set to the screen height in order to prevent the main screen display area from displaying the local part of the preloaded application during the landscape screen of the main screen.
The ordinate in the upper left corner is 0 in order for the preload application to be able to calculate the status bar height correctly. In order to better design a User Interface (UI), the Android application can customize the top status bar, and if the vertical coordinate corresponding to the upper edge is not equal to 0, the height of the status bar may be wrong.
The abscissa of the lower right corner is 2H (2 times the screen height), that is, the width of the rectangle corresponding to the preloaded Stack is equal to the screen height, so that the size of the preloaded Stack can contain the landscape application at the time of preloading (that is, the application interface is an application program in a landscape display mode).
The ordinate of the lower right corner is H, i.e. the height of the rectangle corresponding to the preloaded Stack is equal to the screen height, so as to preload the size of the Stack and be able to contain the vertical screen application at the time of preloading.
For the reasons described above, the inventors set the size of the preload Stack to (H, 0, 2H, H).
In addition, fig. 4 is a schematic application interface migration diagram provided in the embodiment of the present application, as shown in fig. 4, when an operation instruction of a target application program is received, an application interface 401 corresponding to the target application program included in a preloaded active window Stack is migrated to a display screen 201 to be displayed, specifically, a task to which the preloaded application interface belongs is migrated to the top of an application active window Stack, and size information, configuration information, and visibility of the task are updated, so that the application interface can be normally displayed on the display screen.
Fig. 5 is a schematic flowchart of another application preloading method according to an embodiment of the present application, where the method includes the following steps:
step 501, obtaining an application program use sequence in a preset time period and occurrence times corresponding to the application program use sequence.
Wherein the application usage sequence includes two associated launched applications.
For example, the preset time period may be set to a one month period.
Step 502, when the occurrence frequency is greater than a preset frequency threshold, taking the application program use sequence as an application program combination in a preset association relation, and generating a preset association application list based on the application program combination.
For example, an application uses the sequence: the times of occurrence of the naught → the paught → within one month duration are 10 times and are greater than a preset time threshold value 3, then the sequence of the application program of naught → the paught can be used as the application program combination in the preset association relationship, that is, the generated preset association application list contains the application program combination of naught → paught. As another example, an application uses the sequence: the sequence of the application program of the kyotong mall → the suring easy purchase can be used as the application program combination in the preset association relationship if the occurrence frequency is 6 times and is greater than the preset frequency threshold value 3 within the time duration of one month, that is, the generated preset association application list includes the application program combination of the kyotong mall → the suring easy purchase.
Step 503, when detecting that the application preloading event is triggered, determining the application program to be preloaded.
And step 504, acquiring the preset associated application list.
The preset association application list comprises a plurality of groups of application program combinations in a preset association relationship.
And 505, for each application program to be preloaded in the application programs to be preloaded, searching a target application program which is in a preset association relation with the current application program to be preloaded from a preset association application list.
For example, the application program to be preloaded is a pan bao, and based on the preset associated application list, the target application program in a preset associated relationship with the pan bao can be determined to be a payment package.
Step 506, preloading the target application program while preloading the current application program to be preloaded, or after preloading the current application program to be preloaded.
For example, the treasure elutriation and the payment treasure are preloaded at the same time, or the treasure elutriation is preloaded first, and after a preset time period, the payment treasure is preloaded.
And step 507, when receiving an operation instruction of the application program to be loaded or the target application program, starting the application program to be loaded or the target application program based on the preloaded resource.
Illustratively, after a user clicks a desktop icon corresponding to the panning, an operation instruction of the panning is received, the panning is started based on the preloaded resources, and the starting speed of the panning can be effectively increased. If the user need call the precious in-process of paying in using the panning, then can directly start the precious payment based on the resource that has preloaded, also can promote the precious start-up speed of payment.
According to the application program preloading method provided by the embodiment of the application program preloading method, for each application program to be preloaded in the application programs to be preloaded, the target application program which is in the preset association relation with the current application program to be preloaded is searched from the preset association application list, and the target application program is preloaded while or after the current application program to be preloaded is preloaded, so that the target application program which is in the preset association relation with the current application program to be preloaded can be simply and quickly determined, the user requirements can be more truly reflected, and the starting speed of the application program in the preset association relation is increased.
Fig. 6 is a schematic flowchart of another application preloading method according to an embodiment of the present application, where the method includes the following steps:
step 601, when the application preloading event is triggered, predicting the application program to be preloaded and the starting probability corresponding to the application program to be preloaded by using a preset prediction model.
Illustratively, the application program to be preloaded and the corresponding start probabilities are respectively: application B (30%), application J (22%), application D (6%), application F (2%), application a (10%), application H (16%).
Step 602, sequencing the applications to be preloaded according to the sequence from high to low of the starting probability corresponding to the applications to be preloaded.
In this embodiment of the present application, according to the order from high to low of the start probability corresponding to the application program to be preloaded, the result of sequencing the application program to be preloaded is: application B, application J, application H, application A, application D, and application F.
Step 603, obtaining the current usage scenario information.
Wherein the current usage scenario information includes at least one of: the method comprises the following steps of time information, date types, on-off states of a mobile data network, connection states of wireless hotspots, identity information of connected wireless hotspots, a previous foreground application program, plugging and unplugging states of earphone jacks, charging states, battery power information, screen display duration, motion states of terminals, position information, Bluetooth connection states and last screen extinguishing duration.
Step 604, inputting the current usage scenario information and the current application program to be preloaded into a pre-trained associated application prediction model for each application program to be preloaded in the application programs to be preloaded according to the sequence from high to low of the starting probability corresponding to the application programs to be preloaded.
The correlation application prediction model is obtained by training the use rules of different application programs under different historical use scene information in a preset historical time period.
And 605, determining a target application program which is in a preset association relation with the current application program to be preloaded according to the output result of the associated application prediction model.
The target application program which is in the preset association relation with the current application program to be preloaded may belong to one of the application programs to be preloaded, or may not belong to one of the application programs to be preloaded, that is, belongs to an application program other than the application program to be preloaded.
For example, when the target application program in the preset association relationship with the application program J is the application program D, the application program J and the application program D belong to the application program to be preloaded predicted by the preset prediction model. For another example, when the target application program in the preset association relationship with the application program H is the application program E, the application program H belongs to the application program to be preloaded predicted by the preset prediction model, and the application program E does not belong to the application program to be preloaded predicted by the preset prediction model.
Step 606, preloading an application interface corresponding to the current application program to be preloaded based on a pre-created preloading active window stack, and after a preset time length, preloading an application interface corresponding to the target application program based on the pre-created preloading active window stack.
And the boundary coordinate corresponding to the preloading active window stack is positioned outside the coordinate range of the display screen.
Step 607, when receiving the operation instruction of the application program to be loaded or the target application program, migrating the application interface corresponding to the application program to be loaded or the target application program contained in the preloaded active window stack to the display screen for displaying.
Illustratively, after a user clicks a desktop icon corresponding to an application program J, an operation instruction of the application program J is received, and an application interface corresponding to the application program J included in the preloaded active window stack is migrated to a display screen for display. For another example, after the user clicks the desktop icon corresponding to the application program D, the user receives the operation instruction of the application program D, and migrates the application interface corresponding to the application program D included in the preloaded active window stack to the display screen for display
According to the application program preloading method provided by the embodiment of the application program preloading method, according to the sequence from high to low of the starting probability corresponding to the application programs to be preloaded, for each application program to be preloaded in the application programs to be preloaded, current use scene information and the current application program to be preloaded are input into a pre-trained associated application prediction model, a target application program which is in a preset associated relation with the current application program to be preloaded is determined according to an output result of the associated application prediction model, the current application program to be preloaded is preloaded, and after the duration is preset, the target application program is preloaded. By the technical scheme, the target application program which is in the preset association relation with the current application program to be preloaded under the current use scene can be simply and quickly determined based on the pre-trained associated application prediction model, the obtained target application program is more suitable for user requirements, and the starting speed of the application program in the preset association relation can be further increased.
Fig. 7 is a schematic structural diagram of an application preloading device according to an embodiment of the present disclosure, where the application preloading device may be implemented by software and/or hardware, and is generally integrated in a terminal, and may preload an application to be started by executing an application preloading method. As shown in fig. 7, the apparatus includes:
the application determining module 701 is configured to determine an application program to be preloaded when an application preloading event is triggered;
a target application determining module 702, configured to determine, for each to-be-preloaded application program in the to-be-preloaded application programs, a target application program that is in a preset association relationship with a current to-be-preloaded application program;
the application preloading module 703 is configured to preload the target application program while preloading the current application program to be preloaded, or after preloading the current application program to be preloaded.
The application program preloading device provided in the embodiment of the application program preloading method determines application programs to be preloaded when an application preloading event is detected to be triggered, determines a target application program in a preset association relation with a current application program to be preloaded for each application program to be preloaded in the application programs to be preloaded, and preloads the target application program while preloading the current application program to be preloaded or after preloading the current application program to be preloaded. By adopting the technical scheme, the application programs in the preset incidence relation are simultaneously preloaded or are sequentially preloaded according to the incidence relation, so that the hit rate of preloading the application programs which are really started by a user can be improved, and the starting speed of the application programs in the preset incidence relation is further improved.
Optionally, the target application determining module is configured to:
acquiring a preset associated application list; the preset association application list comprises a plurality of groups of application program combinations in a preset association relation;
and searching a target application program which is in a preset association relation with the current application program to be preloaded from the preset association application list.
Optionally, the obtaining manner of the preset associated application list includes:
acquiring an application program use sequence in a preset time period and the occurrence times corresponding to the application program use sequence; wherein the application usage sequence includes two associated launched applications;
and when the occurrence times are larger than a preset time threshold value, taking the application program using sequence as an application program combination in a preset association relation, and generating the preset association application list based on the application program combination.
Optionally, the target application determining module includes:
a scene information acquiring unit for acquiring current usage scene information;
and the target application determining unit is used for determining a target application program which is in a preset incidence relation with the current application program to be preloaded according to the current using scene information.
Optionally, the target application determining unit is configured to:
inputting the current use scene information and the current application program to be preloaded into a pre-trained associated application prediction model, and determining a target application program which is in a preset association relation with the current application program to be preloaded according to an output result of the associated application prediction model; the correlation application prediction model is obtained by training the use rules of different application programs under different historical use scene information in a preset historical time period.
Optionally, the usage scenario information includes at least one of:
the method comprises the following steps of time information, date types, on-off states of a mobile data network, connection states of wireless hotspots, identity information of connected wireless hotspots, a previous foreground application program, plugging and unplugging states of earphone jacks, charging states, battery power information, screen display duration, motion states of terminals, position information, Bluetooth connection states and last screen extinguishing duration.
Optionally, the target application determining module is configured to:
according to the sequence from high to low of the starting probability corresponding to the application programs to be preloaded, determining a target application program which is in a preset association relation with the current application program to be preloaded from the application programs to be preloaded for each application program to be preloaded in the application programs to be preloaded;
the application preloading module is configured to:
and preloading the current application program to be preloaded, and preloading the target application program after a preset time length.
Optionally, the preloading the current application program to be preloaded includes: preloading an application interface corresponding to the current application program to be preloaded based on a pre-created preloading active window stack, wherein the boundary coordinate corresponding to the preloading active window stack is positioned outside the coordinate range of a display screen; or
The preloading the target application program comprises the following steps: and preloading an application interface corresponding to the target application program based on a pre-created pre-loaded active window stack, wherein the boundary coordinate corresponding to the pre-loaded active window stack is positioned outside the coordinate range of the display screen.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for preloading applications, the method comprising:
when an application preloading event is triggered, determining an application program to be preloaded;
for each application program to be preloaded in the application programs to be preloaded, determining a target application program which is in a preset association relation with the current application program to be preloaded;
and preloading the target application program while preloading the current application program to be preloaded or after preloading the current application program to be preloaded.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the application preloading operation described above, and may also perform related operations in the application preloading method provided in any embodiment of the present application.
The embodiment of the application provides a terminal, and the terminal can be integrated with the application preloading device provided by the embodiment of the application. Fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal 800 may include: the application preloading method comprises a memory 801, a processor 802 and a computer program stored on the memory and capable of being executed by the processor, wherein the application preloading method is realized when the processor 802 executes the computer program.
According to the terminal provided by the embodiment of the application, the application programs in the preset incidence relation are simultaneously preloaded or are sequentially preloaded according to the incidence relation, so that the hit rate of preloading the application programs which are really started by a user can be improved, and the starting speed of the application programs in the preset incidence relation is further improved.
Fig. 9 is a schematic structural diagram of another terminal provided in the embodiment of the present application, where the terminal may include: a casing (not shown), a memory 901, a Central Processing Unit (CPU) 902 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU902 and the memory 901 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 901 is used for storing executable program codes; the CPU902 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 901, so as to implement the following steps:
when an application preloading event is triggered, determining an application program to be preloaded;
for each application program to be preloaded in the application programs to be preloaded, determining a target application program which is in a preset association relation with the current application program to be preloaded;
and preloading the target application program while preloading the current application program to be preloaded or after preloading the current application program to be preloaded.
The terminal further comprises: peripheral interface 903, RF (Radio Frequency) circuitry 905, audio circuitry 906, speakers 911, power management chip 908, input/output (I/O) subsystems 909, touch screen 912, other input/control devices 910, and external port 904, which communicate via one or more communication buses or signal lines 907.
It should be understood that the terminal 900 shown is only one example of a terminal and that the terminal 900 can have more or fewer components than shown, can combine two or more components, or can have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal for preloading an application program provided in this embodiment, where the terminal is a mobile phone as an example.
Memory 901, the memory 901 being accessible by the CPU902, the peripheral interface 903, etc., the memory 901 may comprise high speed random access memory, and may also comprise non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 903, the peripheral interface 903 may connect input and output peripherals of the device to the CPU902 and the memory 901.
An I/O subsystem 909, which I/O subsystem 909 may connect input and output peripherals on the device, such as a touch screen 912 and other input/control devices 910, to the peripheral interface 903. The I/O subsystem 909 may include a display controller 9091 and one or more input controllers 9092 for controlling other input/control devices 910. Where one or more input controllers 9092 receive electrical signals from or send electrical signals to other input/control devices 910, the other input/control devices 910 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 9092 may be connected with any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 912, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 9091 in the I/O subsystem 909 receives electrical signals from the touch screen 912 or transmits electrical signals to the touch screen 912. The touch screen 912 detects a contact on the touch screen, and the display controller 9091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 912, that is, to implement a human-computer interaction, where the user interface object displayed on the touch screen 912 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 905 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 905 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 905 converts electrical signals to or from electromagnetic signals and communicates with a communication network and other devices. The RF circuitry 905 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 906 is mainly used to receive audio data from the peripheral interface 903, convert the audio data into an electric signal, and transmit the electric signal to the speaker 911.
The speaker 911 is used to convert the voice signal received by the mobile phone from the wireless network through the RF circuit 905 into sound and play the sound to the user.
And the power management chip 908 is used for supplying power and managing power to the hardware connected with the CPU902, the I/O subsystem and the peripheral interfaces.
The application preloading device, the storage medium and the terminal provided in the above embodiments can execute the application preloading method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments may be referred to an application preloading method provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (11)

1. An application preloading method, comprising:
when an application preloading event is triggered, determining an application program to be preloaded;
for each application program to be preloaded in the application programs to be preloaded, determining a target application program which is in a preset association relation with the current application program to be preloaded;
preloading the target application program while preloading the current application program to be preloaded or after preloading the current application program to be preloaded;
sending a fake focus notification to the target application program, and keeping continuous drawing and display updating of an application interface corresponding to the target application program under the condition that the fake focus notification is visible to a system within a preset time period; and the fake focus is independent from the focus corresponding to the foreground application.
2. The method of claim 1, wherein determining the target application program in a preset association relation with the current application program to be preloaded comprises:
acquiring a preset associated application list; the preset association application list comprises a plurality of groups of application program combinations in a preset association relation;
and searching a target application program which is in a preset association relation with the current application program to be preloaded from the preset association application list.
3. The method according to claim 2, wherein the obtaining manner of the preset associated application list comprises:
acquiring an application program use sequence in a preset time period and the occurrence times corresponding to the application program use sequence; wherein the application usage sequence includes two associated launched applications;
and when the occurrence times are larger than a preset time threshold value, taking the application program using sequence as an application program combination in a preset association relation, and generating the preset association application list based on the application program combination.
4. The method of claim 1, wherein determining the target application program in a preset association relation with the current application program to be preloaded comprises:
acquiring current use scene information;
and determining a target application program which is in a preset incidence relation with the current application program to be preloaded according to the current use scene information.
5. The method according to claim 4, wherein determining a target application program which is in a preset association relation with a current application program to be preloaded according to the current usage scenario information comprises:
inputting the current use scene information and the current application program to be preloaded into a pre-trained associated application prediction model, and determining a target application program which is in a preset association relation with the current application program to be preloaded according to an output result of the associated application prediction model; the correlation application prediction model is obtained by training the use rules of different application programs under different historical use scene information in a preset historical time period.
6. The method according to claim 4 or 5, wherein the usage scenario information comprises at least one of:
the method comprises the following steps of time information, date types, on-off states of a mobile data network, connection states of wireless hotspots, identity information of connected wireless hotspots, a previous foreground application program, plugging and unplugging states of earphone jacks, charging states, battery power information, screen display duration, motion states of terminals, position information, Bluetooth connection states and last screen extinguishing duration.
7. The method according to claim 1, wherein for each application program to be preloaded in the application programs to be preloaded, determining a target application program which is in a preset association relation with a current application program to be preloaded comprises:
according to the sequence from high to low of the starting probability corresponding to the application programs to be preloaded, determining a target application program which is in a preset association relation with the current application program to be preloaded from the application programs to be preloaded for each application program to be preloaded in the application programs to be preloaded;
after the application program to be preloaded is preloaded, preloading the target application program, including:
and preloading the current application program to be preloaded, and preloading the target application program after a preset time length.
8. The method of claim 1,
preloading the application program to be preloaded currently comprises the following steps: preloading an application interface corresponding to the current application program to be preloaded based on a pre-created preloading active window stack, wherein the boundary coordinate corresponding to the preloading active window stack is positioned outside the coordinate range of a display screen; or
The preloading the target application program comprises the following steps: and preloading an application interface corresponding to the target application program based on a pre-created pre-loaded active window stack, wherein the boundary coordinate corresponding to the pre-loaded active window stack is positioned outside the coordinate range of the display screen.
9. An application preloading device, comprising:
the application determination module is used for determining the application program to be preloaded when detecting that the application preloading event is triggered;
the target application determining module is used for determining a target application program which is in a preset association relation with the current application program to be preloaded for each application program to be preloaded in the application programs to be preloaded;
the application preloading module is used for preloading the target application program while preloading the current application program to be preloaded or after preloading the current application program to be preloaded;
the target application display module is used for sending a fake focus notification to the target application program and keeping continuous drawing and display updating of an application interface corresponding to the target application program under the condition that the fake focus notification is visible to a system within a preset time period; and the fake focus is independent from the focus corresponding to the foreground application.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for preloading application programs according to any one of claims 1 to 8.
11. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the application preloading method according to any of claims 1-8 when executing the computer program.
CN201810488536.0A 2018-05-21 2018-05-21 Application program preloading method and device, storage medium and terminal Active CN108363593B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810488536.0A CN108363593B (en) 2018-05-21 2018-05-21 Application program preloading method and device, storage medium and terminal
PCT/CN2019/086954 WO2019223578A1 (en) 2018-05-21 2019-05-15 Application program preloading method and apparatus, and storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810488536.0A CN108363593B (en) 2018-05-21 2018-05-21 Application program preloading method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108363593A CN108363593A (en) 2018-08-03
CN108363593B true CN108363593B (en) 2020-01-21

Family

ID=63012233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810488536.0A Active CN108363593B (en) 2018-05-21 2018-05-21 Application program preloading method and device, storage medium and terminal

Country Status (2)

Country Link
CN (1) CN108363593B (en)
WO (1) WO2019223578A1 (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960539A (en) * 2017-12-21 2019-07-02 广东欧珀移动通信有限公司 Application program preloads method, apparatus, storage medium and mobile terminal
CN108363593B (en) * 2018-05-21 2020-01-21 Oppo广东移动通信有限公司 Application program preloading method and device, storage medium and terminal
CN109271352B (en) * 2018-08-18 2021-10-22 上海豹云网络信息服务有限公司 Method and system for prefetching files in mobile internet according to state information
CN109189737B (en) * 2018-08-18 2021-11-26 北京合思信息技术有限公司 Method and system for prefetching files in mobile internet according to time segments
CN109298907B (en) * 2018-08-23 2021-03-26 Oppo广东移动通信有限公司 Application program display method, application program display device and terminal
CN109298906A (en) * 2018-08-23 2019-02-01 Oppo广东移动通信有限公司 Window call-out method, window calling device and mobile terminal
CN109298910B (en) * 2018-09-14 2022-03-11 Oppo广东移动通信有限公司 Window calling method, mobile terminal and computer readable storage medium
CN109358927B (en) * 2018-09-21 2020-05-01 Oppo广东移动通信有限公司 Application program display method and device and terminal equipment
CN109271254A (en) * 2018-09-25 2019-01-25 连尚(新昌)网络科技有限公司 Method, electronic equipment and the medium risen using process tune
CN109358916A (en) * 2018-11-20 2019-02-19 锐捷网络股份有限公司 The starting method and device of embedded system
KR20200100958A (en) * 2019-02-19 2020-08-27 삼성전자주식회사 Electronic device and method for prefetching application
CN111694626A (en) * 2019-03-15 2020-09-22 Oppo广东移动通信有限公司 Application skipping method and device, terminal and storage medium
CN110069226B (en) * 2019-04-01 2022-05-17 海信视像科技股份有限公司 Mobile display method for application in display equipment and display equipment
CN110231963B (en) * 2019-06-12 2022-11-15 Oppo广东移动通信有限公司 Application control method and related device
CN110471711A (en) * 2019-07-31 2019-11-19 维沃移动通信有限公司 Application program pre-add support method and terminal device
CN112905255A (en) * 2019-11-19 2021-06-04 阿里巴巴集团控股有限公司 Information processing method and device and electronic equipment
CN111007976B (en) * 2019-11-26 2021-01-26 维沃移动通信有限公司 Application control method and terminal equipment
CN111599148A (en) * 2020-03-06 2020-08-28 维沃移动通信有限公司 Electronic equipment and connection method thereof
CN111427629B (en) * 2020-03-30 2023-03-17 北京梧桐车联科技有限责任公司 Application starting method and device, vehicle equipment and storage medium
CN113747060B (en) * 2021-08-12 2022-10-21 荣耀终端有限公司 Image processing method, device and storage medium
CN113672303A (en) * 2021-08-20 2021-11-19 Oppo广东移动通信有限公司 Application program starting method, electronic equipment and storage medium
CN115016855B (en) * 2021-11-17 2023-05-09 荣耀终端有限公司 Method, apparatus and storage medium for application preloading
CN115061740B (en) * 2021-11-19 2023-05-26 荣耀终端有限公司 Application processing method and device
CN115080143A (en) * 2022-06-14 2022-09-20 北京字跳网络技术有限公司 Page resource preloading method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106000A (en) * 2013-01-23 2013-05-15 东莞宇龙通信科技有限公司 Implementing method and communication terminal of multi-focus window
CN103376974A (en) * 2013-06-28 2013-10-30 广州市动景计算机科技有限公司 Window switching method and device
CN105657522A (en) * 2016-01-05 2016-06-08 深圳市金立通信设备有限公司 Video playing method and terminal
CN106406966A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Preloading method for application and mobile terminal
CN107734616A (en) * 2017-10-31 2018-02-23 广东欧珀移动通信有限公司 Closing application program method, apparatus, storage medium and electronic equipment
CN107783801A (en) * 2017-11-06 2018-03-09 广东欧珀移动通信有限公司 Application program forecast model is established, preloads method, apparatus, medium and terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700942B (en) * 2015-12-30 2019-08-06 Oppo广东移动通信有限公司 Application process is associated with starting method and association starter
CN107295044A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of method and apparatus for carrying out application program management
CN107291744A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 It is determined that and with the method and device of the relationship between application program
CN106528210B (en) * 2016-10-20 2019-09-24 Oppo广东移动通信有限公司 A kind of operation method and device of application program
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
CN106603872A (en) * 2017-01-23 2017-04-26 努比亚技术有限公司 Method for starting application according to association strategy, device and mobile terminal
CN107168727A (en) * 2017-03-31 2017-09-15 咪咕数字传媒有限公司 A kind of program process starts method and device
CN108363593B (en) * 2018-05-21 2020-01-21 Oppo广东移动通信有限公司 Application program preloading method and device, storage medium and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106000A (en) * 2013-01-23 2013-05-15 东莞宇龙通信科技有限公司 Implementing method and communication terminal of multi-focus window
CN103376974A (en) * 2013-06-28 2013-10-30 广州市动景计算机科技有限公司 Window switching method and device
CN105657522A (en) * 2016-01-05 2016-06-08 深圳市金立通信设备有限公司 Video playing method and terminal
CN106406966A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Preloading method for application and mobile terminal
CN107734616A (en) * 2017-10-31 2018-02-23 广东欧珀移动通信有限公司 Closing application program method, apparatus, storage medium and electronic equipment
CN107783801A (en) * 2017-11-06 2018-03-09 广东欧珀移动通信有限公司 Application program forecast model is established, preloads method, apparatus, medium and terminal

Also Published As

Publication number Publication date
WO2019223578A1 (en) 2019-11-28
CN108363593A (en) 2018-08-03

Similar Documents

Publication Publication Date Title
CN108363593B (en) Application program preloading method and device, storage medium and terminal
CN108647052B (en) Application program preloading method and device, storage medium and terminal
CN108614722B (en) Application program preloading method and device, storage medium and terminal
CN108710513B (en) Application program starting method and device, storage medium and terminal
CN108762843B (en) Application program preloading method and device, storage medium and intelligent terminal
CN108681475B (en) Application program preloading method and device, storage medium and mobile terminal
CN108647055B (en) Application program preloading method and device, storage medium and terminal
CN108829457B (en) Application program prediction model updating method and device, storage medium and terminal
US11467855B2 (en) Application preloading method and device, storage medium and terminal
CN108595224B (en) Application program prompting method and device, storage medium and terminal
CN108958830B (en) Application program starting method and device, storage medium and terminal
CN108595230B (en) Application program preloading method and device, storage medium and terminal
US11099861B2 (en) Method for preloading application, storage medium, and terminal
CN108762831B (en) Application program preloading method and device, storage medium and terminal
CN108958828B (en) Application program preloading method and device, storage medium and terminal
CN108804153B (en) Application program preloading method and device, storage medium and terminal
CN108647056B (en) Application program preloading method and device, storage medium and terminal
CN108776599B (en) Management method and device for preloaded application, storage medium and intelligent terminal
CN108762844B (en) Application program preloading method and device, storage medium and terminal
CN108762836B (en) Management method and device for preloaded application, storage medium and intelligent terminal
CN108710512B (en) Application program preloading method and device, storage medium and intelligent terminal
CN108845838B (en) Application program preloading method and device, storage medium and terminal
CN108664286B (en) Application program preloading method and device, storage medium and mobile terminal
CN108762838B (en) Application program preloading method and device, storage medium and terminal

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
GR01 Patent grant
GR01 Patent grant