CN110597566A - Application processing method and device, storage medium and electronic equipment - Google Patents

Application processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110597566A
CN110597566A CN201910803522.8A CN201910803522A CN110597566A CN 110597566 A CN110597566 A CN 110597566A CN 201910803522 A CN201910803522 A CN 201910803522A CN 110597566 A CN110597566 A CN 110597566A
Authority
CN
China
Prior art keywords
application
starting
information
time period
current time
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.)
Granted
Application number
CN201910803522.8A
Other languages
Chinese (zh)
Other versions
CN110597566B (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910803522.8A priority Critical patent/CN110597566B/en
Publication of CN110597566A publication Critical patent/CN110597566A/en
Application granted granted Critical
Publication of CN110597566B publication Critical patent/CN110597566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The application discloses an application processing method, an application processing device, a storage medium and electronic equipment. The application processing method can comprise the following steps: acquiring information of a current position and a current time period; acquiring first application starting information corresponding to the current position and second application starting information corresponding to the current time period, wherein the first application starting information comprises starting times of all applications at the current position, and the second application starting information comprises starting times of all applications at the current time period; determining a target application corresponding to the current position and the current time period according to application starting times in the first application starting information and the second application starting information; and creating an empty process corresponding to the target application in the background of the electronic equipment. The application is beneficial to the electronic equipment to improve the starting speed of the application.

Description

Application processing method and device, storage medium and electronic equipment
Technical Field
The present application belongs to the field of application technologies, and in particular, to an application processing method and apparatus, a storage medium, and an electronic device.
Background
With the development of technology, more and more applications are installed on electronic devices. For example, using the instant messaging application, the user may communicate with the friend in various ways, such as chat, video, or voice. As another example, with a video-like application, a user may view various videos, and so on. However, in the related art, the speed of the electronic device when starting the application is slow.
Disclosure of Invention
The embodiment of the application processing method and device, the storage medium and the electronic device is beneficial to the electronic device to improve the starting speed of the application.
In a first aspect, an embodiment of the present application provides an application processing method applied to an electronic device, including:
acquiring information of a current position and a current time period;
acquiring first application starting information corresponding to the current position and second application starting information corresponding to the current time period, wherein the first application starting information comprises starting times of all applications at the current position, and the second application starting information comprises starting times of all applications at the current time period;
determining a target application corresponding to the current position and the current time period according to application starting times in the first application starting information and the second application starting information;
and creating an empty process corresponding to the target application in the background of the electronic equipment.
In a second aspect, an embodiment of the present application provides an application processing apparatus, which is applied to an electronic device, and includes:
the first acquisition module is used for acquiring the information of the current position and the current time period;
a second obtaining module, configured to obtain first application start information corresponding to the current location and second application start information corresponding to the current time period, where the first application start information includes start times of each application at the current location, and the second application start information includes start times of each application in the current time period;
a determining module, configured to determine, according to application start times in the first application start information and the second application start information, a target application corresponding to the current location and the current time period;
and the creating module is used for creating an empty process corresponding to the target application in the background of the electronic equipment.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer program is enabled to execute a flow in an application processing method provided by an embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the flow in the application processing method provided in the embodiment of the present application by calling the computer program stored in the memory.
In the scheme of the application, the electronic device can determine a target application which is likely to be started at the next time according to the current position and the current time period, and create an empty process for the target application in a background of the electronic device. Since the target application is likely to need to be launched next, creating an empty process in the background of the electronic device corresponding to the target application may reduce the launch time required for the target application when it is actually launched. Namely, the scheme of the application is beneficial to the electronic equipment to improve the starting speed of the application and reduce the waiting time of a user when the application is started.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a schematic flowchart of an application processing method according to an embodiment of the present application.
Fig. 2 is another schematic flow chart of an application processing method according to an embodiment of the present application.
Fig. 3 to fig. 5 are schematic scene diagrams of an application processing method according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an application processing apparatus according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
It is understood that the execution subject of the embodiment of the present application may be an electronic device such as a smart phone or a tablet computer.
Referring to fig. 1, fig. 1 is a schematic flow chart of an application processing method according to an embodiment of the present application, where the flow chart may include:
101. and acquiring the information of the current position and the current time period.
With the development of technology, more and more applications are installed on electronic devices. For example, using the instant messaging application, the user may communicate with the friend in various ways, such as chat, video, or voice. As another example, with a video-like application, a user may view various videos, and so on. However, in the related art, the speed of the electronic device when starting the application is slow.
In this embodiment, for example, the electronic device may first acquire information of a current location and information of a time period to which a current time belongs.
102. Acquiring first application starting information corresponding to the current position and second application starting information corresponding to the current time period, wherein the first application starting information comprises the starting times of each application at the current position, and the second application starting information comprises the starting times of each application at the current time period.
For example, after obtaining the information of the current location and the information of the current time period, the electronic device may obtain first application start information corresponding to the information of the current location and obtain second application start information corresponding to the information of the current time period. The first application start information may record the start times of each application in the electronic device at the current location. The second application start information may record the number of times each application in the electronic device is started in the current time period.
For example, the current position is P1, and the current time period is 12: 00-13: 00. The first application start information may record the number of times each application in the electronic device is started at the position P1. The second application start information may record the number of times of starting each application in the electronic device in a time period of 12:00 to 13: 00.
For example, the first application launch information describes that at position P1, application D was launched 20 times, application B was launched 15 times, application E was launched 7 times, and the other applications in the electronic device were launched 0 times at position P1. The second application start information records that in the time period of 12: 00-13: 00, the application A is started 20 times, the application B is started 13 times, the application C is started 5 times, and the starting times of other applications in the electronic equipment in the time period of 12: 00-13: 00 are 0.
103. And determining the target application corresponding to the current position and the current time period according to the application starting times in the first application starting information and the second application starting information.
For example, after acquiring the first application start information and the second application start information, the electronic device may determine, according to the application start times recorded in the two pieces of information, a target application corresponding to the current location and the current time period. Wherein the target application determined by the electronic device can be considered as an application which is likely to need to be started next.
104. An empty process corresponding to the target application is created in the background of the electronic device.
For example, after determining the target application, the electronic device may create an empty process corresponding to the target application in its background.
Note that an Empty process (Empty process) is a process that does not hold active application components. The purpose of creating and maintaining an empty process for an application is to use the empty process as a cache to reduce the startup time required for the application to run the component next time in the empty process. That is, creating a null process for an application in advance can shorten the start-up time when the application is actually started.
It can be understood that, in the solution of the present application, the electronic device may determine, according to the current location and the current time period, a target application that is likely to be started at the next time, and create an empty process for the target application in a background of the electronic device. Since the target application is likely to need to be launched next, creating an empty process in the background of the electronic device corresponding to the target application may reduce the launch time required for the target application when it is actually launched. Namely, the scheme of the application is beneficial to the electronic equipment to improve the starting speed of the application and reduce the waiting time of a user when the application is started.
Referring to fig. 2, fig. 2 is another schematic flow chart of an application processing method according to an embodiment of the present application, where the flow chart may include:
201. when the electronic equipment is on the screen, the electronic equipment acquires the information of the current position and the current time period.
For example, when the electronic device is turned on, the electronic device may obtain information of a current location and information of a time period to which a current time belongs.
It should be noted that the electronic device may be turned on, but the screen of the electronic device is still in the locked state, or the screen of the electronic device is turned on and unlocked, and so on.
202. The electronic equipment acquires first application starting information corresponding to the current position and second application starting information corresponding to the current time period, wherein the first application starting information comprises starting times of all applications at the current position, and the second application starting information comprises the starting times of all applications at the current time period.
For example, after obtaining the information of the current location and the information of the current time period, the electronic device may obtain first application start information corresponding to the information of the current location and obtain second application start information corresponding to the information of the current time period. The first application start information may record the start times of each application in the electronic device at the current location. The second application start information may record the number of times each application in the electronic device is started in the current time period.
For example, the current position is P1, and the current time period is 12: 00-13: 00. The first application start information may record the number of times each application in the electronic device is started at the position P1. The second application start information may record the number of times of starting each application in the electronic device in a time period of 12:00 to 13: 00.
For example, the first application launch information describes that at position P1, application D was launched 20 times, application B was launched 15 times, application E was launched 7 times, and the other applications in the electronic device were launched 0 times at position P1. The second application start information records that in the time period of 12: 00-13: 00, the application A is started 20 times, the application B is started 13 times, the application C is started 5 times, and the starting times of other applications in the electronic equipment in the time period of 12: 00-13: 00 are 0.
203. According to the first application starting information and the second application starting information, the electronic equipment calculates the sum of the starting times of each application at the current position and the starting times in the current time period.
For example, after acquiring the first application start information and the second application start information, the electronic device may calculate a sum of the start times of each application at the current location and the start times in the current time period.
For example, the first application launch information describes that at position P1, application D was launched 20 times, application B was launched 15 times, application E was launched 7 times, and the other applications in the electronic device were launched 0 times at position P1. The second application start information records that in the time period of 12: 00-13: 00, the application A is started 20 times, the application B is started 13 times, the application C is started 5 times, and the starting times of other applications in the electronic equipment in the time period of 12: 00-13: 00 are 0.
Then, the sum of the number of times of activation 20 of the application D at the position P1 and the number of times of activation 0 of the time period 12:00 ~ 13:00 is 20. The sum of the starting times 15 of the application B at the position P1 and the starting times 13 of the time period 12: 00-13: 00 is 28 times. The sum of the starting times of the application E at the position P1, namely 7, and the starting times of the application E, namely 0, in the time period of 12: 00-13: 00 is 7. The sum of the starting times 0 of the application A at the position P1 and the starting times 20 of the time period 12: 00-13: 00 is 20. The sum of the starting times 0 of the application C at the position P1 and the starting times 5 of the time period 12: 00-13: 00 is 5.
204. And the electronic equipment determines the application with the maximum sum of the starting times as a target application corresponding to the current position and the current time period.
For example, after determining the sum of the number of times of starting each application at the current location and the number of times of starting each application at the current time period, the electronic device may determine the application with the largest sum of the number of times of starting as the target application corresponding to the current location and the current time period. Wherein the target application determined by the electronic device can be considered as an application which is likely to need to be started next.
For example, since the sum 28 of the number of starts of the application B is greater than the sum of the number of starts of the other applications, the electronic device may determine the application B as the target application. That is, application B may be considered to be an application that is likely to need to be launched next.
205. The electronic device creates an empty process in the background corresponding to the target application.
For example, after determining the target application, the electronic device may create an empty process corresponding to the target application in its background.
For example, after determining application B as the target application, the electronic device may create an empty process corresponding to application B in its background.
After creating the null process corresponding to the target application, the electronic device may detect whether an instruction for instructing to start the target application is received within a preset time length range.
If it is detected that an instruction indicating to start the target application is received within the preset time length range, the process proceeds to 206.
If it is detected that the instruction for instructing the target application to start is not received within the preset time length range, step 207 is entered.
206. And if an instruction for indicating the starting of the target application is received within the preset duration range, the electronic equipment starts the target application according to the idle process.
For example, the preset time period ranges from 1 minute. For example, within 1 minute after the null process corresponding to application B is created in the background, the electronic device detects that an instruction is received from the user to instruct application B to launch, e.g., the user has clicked on the application icon of application B to launch application B. In this case, the electronic device may start the application B according to the previously created empty process corresponding to the application B.
It can be understood that, since the electronic device creates the null process of the application B in advance, when an instruction for instructing to start the application B is received from the user in the embodiment, the electronic device can quickly start the application B according to the null process.
207. And if the instruction for indicating the starting of the target application is not received within the preset time range, the electronic equipment clears the idle process.
For example, the preset time period ranges from 1 minute. For example, within 1 minute after the null process corresponding to application B is created in the background, the electronic device does not receive an instruction from the user to instruct to launch the application B. In this case, it can be considered that the user does not need to start the application B in a short time. Therefore, the electronic device can clean up the previously created empty process corresponding to application B from the background.
208. The electronic device determines the started application as the base application.
209. The electronic equipment acquires third application starting information, wherein the third application starting information records the association times of each application and the associated application, and the next started application after the application is started is the associated application.
210. And according to the third application starting information, the electronic equipment determines the associated application of the basic application.
211. And if the association times of the basic application and the associated application are greater than the preset times, the electronic equipment creates an idle process corresponding to the associated application of the basic application in the background.
For example, 208, 209, 210, 211 may include:
after the screen is illuminated, the electronic device may determine the application that is actually launched as the base application. Then, the electronic device may obtain third application start information, where the third application start information may record the association frequency of each application and its associated application, and a next started application after the application is started is its associated application.
For example, after the application a is started, the next started application is the event of the application B, which occurs 10 times in total, and then the number of times that the application a is associated with the application B is 10 times. For another example, after the application C is started, the next started application is the event of the application D for 7 times in total, and then the number of times that the application C is associated with the application D is 7 times, and so on.
After the third application starting information is acquired, the electronic device may determine the associated application of the basic application according to the third application starting information, and detect whether the number of times of association between the basic application and the associated application is greater than a preset number of times.
If the association times of the base application and the associated application are greater than the preset times, the electronic device may create an empty process corresponding to the associated application of the base application in the background thereof.
For example, after the screen is turned on, the application actually started by the electronic device is application B, and the associated application associated with application B, which is described in the third application start information, is E, wherein the event that the next started application is application E after application B is started occurs 10 times in total, that is, the number of times that application B is associated with application E is 10 times. For example, the preset number of times is 8. Then, since the number of times that the application B is associated with the application E is greater than the preset number of times, the electronic device may create an empty process corresponding to the application E in the background thereof.
It can be understood that, since the number of times of associating the base application that is actually started with the associated application is greater than the preset number of times, the probability that the associated application is started in a short time is considered to be high. By creating an empty process in the background corresponding to the associated application, the start time can be shortened when the associated application is actually started, thereby speeding up application start.
In an implementation manner, the determining, in this embodiment 204, the application with the largest sum of the number of times of starting as the target application corresponding to the current location and the current time period may include:
if the number of the applications with the largest sum of the starting times is 1, the electronic equipment determines the corresponding application as a target application corresponding to the current position and the current time period.
For example, according to the first application start information and the second application start information, the electronic device calculates that the sum of the number of starts of the application B at the current position and the number of starts at the current time period is the largest, and the sum of the number of starts of the other applications is smaller than the sum of the number of starts of the application B. In this case, the electronic device may determine application B as the target application.
In an implementation manner, this embodiment may further include the following process:
if the number of the applications with the maximum sum of the starting times is larger than 1, the electronic equipment determines the application with the maximum sum of the starting times as the application to be selected, and determines the application type of each application to be selected;
the electronic equipment acquires environmental parameters and identifies the category of the current scene according to the environmental parameters;
the electronic equipment determines the application to be selected with the application category matched with the category of the current scene as a target application corresponding to the current position and the current time period.
For example, according to the first application start information and the second application start information, the electronic device calculates that the sum of the number of starts of the two applications, namely application B and application F, at the current position and the number of starts at the current time period is the largest. Then, the electronic device may determine application B and application F as the applications to be selected and determine application categories for application B and application F.
For example, the electronic device may preset application categories of applications, such as payment-type applications, video-type applications, game-type applications, news-type applications, and the like.
And, the electronic device may obtain the environmental parameter and identify the category of the current scene according to the environmental parameter. For example, the electronic device may input the environmental parameters into a scene recognition model that has been previously learning trained, which may output a category of the current scene. For example, the scene categories may include, for example, payment scenes, game scenes, reading scenes, and the like. In some embodiments, the environmental parameter may be some parameter such as ambient light level, ambient noise, time, location, and the like.
After the application category of each application to be selected and the category of the current scene are determined, the electronic device may determine the application to be selected, of which the application category is matched with the category of the current scene, as the target application corresponding to the current position, that is, the current time period. For example, application B is a pay category of applications and application F is a game category of applications. And the category of the current scenario is the application of the payment category. In this case, since the category of the application B matches the category of the current scene, the electronic device may determine the application B as a target application corresponding to the current location and the current time period.
In an embodiment, in order to avoid creating too many empty processes in the background of the electronic device, the electronic device may control the number of the target applications to be 1 when determining the target applications, that is, the electronic device may determine only 1 target application. If there are multiple applications meeting the target application condition, the electronic device may randomly determine one application as the target application.
In an implementation manner, this embodiment may further include the following process:
the electronic equipment acquires the information of the started application and updates the first application starting information and the second application starting information according to the information of the started application.
For example, since the first application start information records the number of times of starting each application at the current location, and the second application start information records the number of times of starting each application in the current time period, if the target application is started by using the null process created in the background, the electronic device may update the first application start information and the second application start information according to the start of the target application. For example, after application B is indeed launched according to the null process corresponding to application B, the electronic device may increase the number of launches of application B in the first application launch information by 1 and increase the number of launches of application B in the second application launch information by 1.
If the electronic device does not start the corresponding application according to the null process, the electronic device may obtain information of the really started application, and update the first application start information and the second application start information according to the information of the really started application. For example, if the really launched application is not the target application B but the application G, the electronic device may update the first application launching information and the second application launching information according to the launching information of the application G.
That is, in this embodiment, after each application is started, the electronic device may obtain the start information of the application, and update the first application start information and the second application start information according to the start information of the application. That is, the present embodiment maintains the latest first application start information and the latest second application start information capable of reflecting the start condition of each application in the electronic device.
Referring to fig. 3 to 5, fig. 3 to 5 are schematic views of a scenario of an application processing method according to an embodiment of the present application.
For example, as shown in FIG. 3, the user clicks the Home key of the electronic device, thereby changing the electronic device from the screen-on state to the screen-on state. When the electronic device becomes a bright screen state, the electronic device may acquire current time period information and current position information.
Thereafter, the electronic device may obtain first application start information corresponding to the information of the current location and obtain second application start information corresponding to the information of the current time period. The first application start information may record the start times of each application in the electronic device at the current location. The second application start information may record the number of times each application in the electronic device is started in the current time period.
For example, the current location is a restaurant, and the current time period is 12: 00-13: 00. The first application start information describes that at the location restaurant, application D was started 20 times, application B was started 15 times, application E was started 7 times, and the other applications in the electronic device were started 0 times at the location restaurant. The second application start information records that in the time period of 12: 00-13: 00, the application A is started 20 times, the application B is started 13 times, the application C is started 5 times, and the starting times of other applications in the electronic equipment in the time period of 12: 00-13: 00 are 0.
Thereafter, the electronic device may calculate the sum of the number of times each application was launched at the current location and the number of times each application was launched during the current time period. For example, the sum of the number of times of starting the application D in the restaurant is 20 and the number of times of starting the application D in the time period of 12: 00-13: 00 is 0, and the application D is started in the time period of 20. The sum of the number of times of starting the application B in the restaurant is 15 and the number of times of starting the application B in the time period of 12: 00-13: 00 is 13. The sum of the starting frequency of the application E in the restaurant is 7 and the starting frequency of the application E in the time period of 12: 00-13: 00 is 0, and the application E is started in the restaurant for 7 times. The sum of the starting times of the application A in the restaurant is 0 and the starting times of the application A in the time period of 12: 00-13: 00 are 20. The sum of the starting times 0 of the application C in the restaurant and the starting times 5 of the time period 12: 00-13: 00 is 5.
After that, the electronic device may determine the application with the largest sum of the number of times of activation as the target application corresponding to the current location and the current time period. Wherein the target application determined by the electronic device can be considered as an application which is likely to need to be started next. For example, since the sum 28 of the number of starts of the application B is greater than the sum of the number of starts of the other applications, the electronic device may determine the application B as the target application. That is, application B may be considered to be an application that is likely to need to be launched next.
After determining application B as the target application, the electronic device may create an empty process corresponding to application B in its background. Thereafter, the electronic device may detect whether an instruction for instructing to start the application B is received within a preset 1 minute.
For example, as shown in fig. 4, the user has clicked on the application icon of application B to launch application B, which is a payment-type application. In this case, the electronic device may start the application B according to the previously created empty process corresponding to the application B. It can be understood that, since the electronic device creates the null process of the application B in advance, when an instruction for instructing to start the application B is received from the user in the embodiment, the electronic device can quickly start the application B according to the null process.
That is, the present embodiment can accelerate the starting speed of the payment application B, thereby reducing the waiting time of the user during payment and improving the payment experience of the user.
After the application B is started, the electronic device may update the first application start information and the second application start information according to the start of the application B. For example, the number of times of launching the application B in the first application launching information and the second application launching information is increased by 1, respectively.
After the application B is started, the electronic device may obtain third application start information, where the third application start information may record the association frequency of each application and its associated application, and a next started application after the application is started is its associated application. For example, the electronic device detects that the application associated with the application B is the application E by querying the third application start information, and the next started application is the event of the application E10 times in total after the application B is started. The 10 times are greater than the preset 8 times. In this case, the electronic device may create an empty process in the background corresponding to application E.
For example, as shown in fig. 5, the user has clicked on the icon of the application E to launch the application E. Then, since the electronic device has created an empty process of the application E in the background, the starting speed of the application E can be increased.
After the application E is started, the electronic device may update the first application start information, the second application start information, and the third application start information according to the start of the application E.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an application processing apparatus according to an embodiment of the present disclosure. The application processing apparatus 300 may include: a first obtaining module 301, a second obtaining module 302, a determining module 303, and a creating module 304.
A first obtaining module 301, configured to obtain information of a current location and a current time period.
A second obtaining module 302, configured to obtain first application start information corresponding to the current location and second application start information corresponding to the current time period, where the first application start information includes start times of each application at the current location, and the second application start information includes start times of each application in the current time period.
A determining module 303, configured to determine, according to the application start times in the first application start information and the second application start information, a target application corresponding to the current location and the current time period.
A creating module 304, configured to create an empty process corresponding to the target application in a background of the electronic device.
In one embodiment, the first obtaining module 301 may be configured to:
and when the electronic equipment is on screen, acquiring the information of the current position and the current time period.
In one embodiment, the determining module 303 may be configured to:
calculating the sum of the starting times of each application at the current position and the starting times in the current time period according to the first application starting information and the second application starting information;
and determining the application with the maximum sum of the starting times as the target application corresponding to the current position and the current time period.
In one embodiment, the determining module 303 may be configured to:
and if the number of the applications with the maximum sum of the starting times is 1, determining the corresponding application as the target application corresponding to the current position and the current time period.
In one embodiment, the determining module 303 may be further configured to:
if the number of the applications with the maximum sum of the starting times is larger than 1, determining the application with the maximum sum of the starting times as the application to be selected, and determining the application type of each application to be selected;
acquiring environmental parameters, and identifying the category of a current scene according to the environmental parameters;
and determining the applications to be selected with the application types matched with the types of the current scene as target applications corresponding to the current position and the current time period.
In one embodiment, the creating module 304 may be further configured to:
and if an instruction for indicating the starting of the target application is received within a preset time length range, starting the target application according to the idle process.
In one embodiment, the creating module 304 may be further configured to:
and if the instruction for indicating the starting of the target application is not received within the preset time range, clearing the empty process.
In one embodiment, the creating module 304 may be further configured to:
and acquiring information of the started application, and updating the first application starting information and the second application starting information according to the information of the started application.
In one embodiment, the creation module 304 may be configured to:
determining the started application as a basic application;
acquiring third application starting information, wherein the third application starting information records the association times of each application and the associated application thereof, and the next started application after the application is started is the associated application thereof;
determining the associated application of the basic application according to the third application starting information;
and if the association times of the basic application and the associated application are greater than the preset times, creating a null process corresponding to the associated application of the basic application in the background of the electronic equipment.
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the flow in the application processing method provided in this embodiment.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the flow in the application processing method provided in this embodiment by calling the computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 400 may include a display unit 401, a memory 402, a processor 403, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The display unit 401 can be used to display information such as text, images, and the like.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
The processor 403 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 403 runs the application programs stored in the memory 402, so as to execute:
acquiring information of a current position and a current time period;
acquiring first application starting information corresponding to the current position and second application starting information corresponding to the current time period, wherein the first application starting information comprises starting times of all applications at the current position, and the second application starting information comprises starting times of all applications at the current time period;
determining a target application corresponding to the current position and the current time period according to application starting times in the first application starting information and the second application starting information;
and creating an empty process corresponding to the target application in the background of the electronic equipment.
Referring to fig. 8, the electronic device 400 may include a display unit 401, a memory 402, a processor 403, a speaker 404, a microphone 405, and the like.
The display unit 401 can be used to display information such as text, images, and the like.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
The processor 403 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
The speaker 404 may be used to play sound signals. Microphone 405 may be used to collect sound signals of the surrounding environment.
In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 403 runs the application programs stored in the memory 402, so as to execute:
acquiring information of a current position and a current time period;
acquiring first application starting information corresponding to the current position and second application starting information corresponding to the current time period, wherein the first application starting information comprises starting times of all applications at the current position, and the second application starting information comprises starting times of all applications at the current time period;
determining a target application corresponding to the current position and the current time period according to application starting times in the first application starting information and the second application starting information;
and creating an empty process corresponding to the target application in the background of the electronic equipment.
In one embodiment, when the processor 403 executes the acquiring of the information of the current position and the current time period, it may execute: and when the electronic equipment is on screen, acquiring the information of the current position and the current time period.
In one embodiment, when the processor 403 executes to determine the target application corresponding to the current location and the current time period according to the application start times in the first application start information and the second application start information, the processor may execute: calculating the sum of the starting times of each application at the current position and the starting times in the current time period according to the first application starting information and the second application starting information; and determining the application with the maximum sum of the starting times as the target application corresponding to the current position and the current time period.
In one embodiment, when the processor 403 executes the application with the largest sum of the number of times of activation as the target application corresponding to the current location and the current time period, it may execute: and if the number of the applications with the maximum sum of the starting times is 1, determining the corresponding application as the target application corresponding to the current position and the current time period.
In one embodiment, processor 403 may further perform: if the number of the applications with the maximum sum of the starting times is larger than 1, determining the application with the maximum sum of the starting times as the application to be selected, and determining the application type of each application to be selected; acquiring environmental parameters, and identifying the category of a current scene according to the environmental parameters; and determining the applications to be selected with the application types matched with the types of the current scene as target applications corresponding to the current position and the current time period.
In one embodiment, after creating the empty process corresponding to the target application, processor 403 may further perform: and if an instruction for indicating the starting of the target application is received within a preset time length range, starting the target application according to the idle process.
In one embodiment, processor 403 may further perform: and if the instruction for indicating the starting of the target application is not received within the preset time range, clearing the empty process.
In one embodiment, processor 403 may further perform: and acquiring information of the started application, and updating the first application starting information and the second application starting information according to the information of the started application.
In one embodiment, processor 403 may further perform: determining the started application as a basic application; acquiring third application starting information, wherein the third application starting information records the association times of each application and the associated application thereof, and the next started application after the application is started is the associated application thereof; determining the associated application of the basic application according to the third application starting information; and if the association times of the basic application and the associated application are greater than the preset times, creating a null process corresponding to the associated application of the basic application in the background of the electronic equipment.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the application processing method, and are not described herein again.
The application processing apparatus provided in the embodiment of the present application and the application processing method in the embodiments above belong to the same concept, and any method provided in the embodiment of the application processing method may be run on the application processing apparatus, and a specific implementation process thereof is described in the embodiment of the application processing method in detail, and is not described herein again.
It should be noted that, for the application processing method described in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process of implementing the application processing method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and during the execution process, the process of the embodiment of the application processing method can be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the application processing apparatus according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The application processing method, the application processing apparatus, the storage medium, and the electronic device provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. An application processing method applied to an electronic device, the method comprising:
acquiring information of a current position and a current time period;
acquiring first application starting information corresponding to the current position and second application starting information corresponding to the current time period, wherein the first application starting information comprises starting times of all applications at the current position, and the second application starting information comprises starting times of all applications at the current time period;
determining a target application corresponding to the current position and the current time period according to application starting times in the first application starting information and the second application starting information;
and creating an empty process corresponding to the target application in the background of the electronic equipment.
2. The application processing method according to claim 1, wherein the obtaining information of the current location and the current time period comprises:
and when the electronic equipment is on screen, acquiring the information of the current position and the current time period.
3. The method according to claim 1, wherein determining the target application corresponding to the current location and the current time period according to the application startup times in the first application startup information and the second application startup information comprises:
calculating the sum of the starting times of each application at the current position and the starting times in the current time period according to the first application starting information and the second application starting information;
and determining the application with the maximum sum of the starting times as the target application corresponding to the current position and the current time period.
4. The application processing method according to claim 3, wherein the determining the application with the largest sum of the number of times of activation as the target application corresponding to the current location and the current time period includes:
and if the number of the applications with the maximum sum of the starting times is 1, determining the corresponding application as the target application corresponding to the current position and the current time period.
5. The application processing method of claim 4, further comprising:
if the number of the applications with the maximum sum of the starting times is larger than 1, determining the application with the maximum sum of the starting times as the application to be selected, and determining the application type of each application to be selected;
acquiring environmental parameters, and identifying the category of a current scene according to the environmental parameters;
and determining the applications to be selected with the application types matched with the types of the current scene as target applications corresponding to the current position and the current time period.
6. The application processing method of claim 1, wherein after creating the null process corresponding to the target application, the method further comprises:
and if an instruction for indicating the starting of the target application is received within a preset time length range, starting the target application according to the idle process.
7. The application processing method of claim 6, further comprising:
and if the instruction for indicating the starting of the target application is not received within the preset time range, clearing the empty process.
8. The application processing method of claim 1, further comprising:
and acquiring information of the started application, and updating the first application starting information and the second application starting information according to the information of the started application.
9. The application processing method of claim 1, further comprising:
determining the started application as a basic application;
acquiring third application starting information, wherein the third application starting information records the association times of each application and the associated application thereof, and the next started application after the application is started is the associated application thereof;
determining the associated application of the basic application according to the third application starting information;
and if the association times of the basic application and the associated application are greater than the preset times, creating a null process corresponding to the associated application of the basic application in the background of the electronic equipment.
10. An application processing apparatus applied to an electronic device, comprising:
the first acquisition module is used for acquiring the information of the current position and the current time period;
a second obtaining module, configured to obtain first application start information corresponding to the current location and second application start information corresponding to the current time period, where the first application start information includes start times of each application at the current location, and the second application start information includes start times of each application in the current time period;
a determining module, configured to determine, according to application start times in the first application start information and the second application start information, a target application corresponding to the current location and the current time period;
and the creating module is used for creating an empty process corresponding to the target application in the background of the electronic equipment.
11. A storage medium having stored thereon a computer program, characterized in that the computer program, when executed on a computer, causes the computer to execute the method according to any of claims 1 to 9.
12. An electronic device comprising a memory, a processor, wherein the processor is configured to perform the method of any of claims 1 to 9 by invoking a computer program stored in the memory.
CN201910803522.8A 2019-08-28 2019-08-28 Application processing method and device, storage medium and electronic equipment Active CN110597566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910803522.8A CN110597566B (en) 2019-08-28 2019-08-28 Application processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910803522.8A CN110597566B (en) 2019-08-28 2019-08-28 Application processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110597566A true CN110597566A (en) 2019-12-20
CN110597566B CN110597566B (en) 2023-05-30

Family

ID=68856196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910803522.8A Active CN110597566B (en) 2019-08-28 2019-08-28 Application processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110597566B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857874A (en) * 2020-07-17 2020-10-30 上海擎感智能科技有限公司 Quick application starting method and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120089986A1 (en) * 2010-10-12 2012-04-12 Microsoft Corporation Process pool of empty application hosts to improve user perceived launch time of applications
US20130283283A1 (en) * 2011-01-13 2013-10-24 Htc Corporation Portable electronic device and control method therefor
CN105893087A (en) * 2016-03-30 2016-08-24 珠海市魅族科技有限公司 Application program starting method and device
US20170076208A1 (en) * 2014-05-06 2017-03-16 Huawei Technologies Co., Ltd. Terminal application launching method, and terminal
CN108776600A (en) * 2018-05-28 2018-11-09 努比亚技术有限公司 Application program pretrigger method, mobile terminal and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120089986A1 (en) * 2010-10-12 2012-04-12 Microsoft Corporation Process pool of empty application hosts to improve user perceived launch time of applications
US20130283283A1 (en) * 2011-01-13 2013-10-24 Htc Corporation Portable electronic device and control method therefor
US20170076208A1 (en) * 2014-05-06 2017-03-16 Huawei Technologies Co., Ltd. Terminal application launching method, and terminal
CN105893087A (en) * 2016-03-30 2016-08-24 珠海市魅族科技有限公司 Application program starting method and device
CN108776600A (en) * 2018-05-28 2018-11-09 努比亚技术有限公司 Application program pretrigger method, mobile terminal and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857874A (en) * 2020-07-17 2020-10-30 上海擎感智能科技有限公司 Quick application starting method and terminal equipment

Also Published As

Publication number Publication date
CN110597566B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
US11256865B2 (en) Method and apparatus for sending sticker image during chat session
WO2020108085A1 (en) Resource allocation method and apparatus, terminal, and storage medium
EP3575961B1 (en) Method and apparatus for updating application prediction model, storage medium, and terminal
US8918628B2 (en) Electronic device and method for starting applications in the electronic device
CN104951335B (en) The processing method and processing device of application program installation kit
CN107329750A (en) The recognition methods of advertisement page, jump method and mobile terminal in application program
CN110175012B (en) Skill recommendation method, skill recommendation device, skill recommendation equipment and computer readable storage medium
CN108694947B (en) Voice control method, device, storage medium and electronic equipment
CN106297801A (en) Method of speech processing and device
CN104866275B (en) Method and device for acquiring image information
CN107885483B (en) Audio information verification method and device, storage medium and electronic equipment
JP7436077B2 (en) Skill voice wake-up method and device
CN115237301B (en) Method and device for processing barrage in interactive novel
CN112506553A (en) Method and device for upgrading data plane container of service grid and electronic equipment
CN108197105B (en) Natural language processing method, device, storage medium and electronic equipment
CN108093311B (en) Multimedia file processing method and device, storage medium and electronic equipment
CN110597566B (en) Application processing method and device, storage medium and electronic equipment
US10803870B2 (en) Electronic device performing operation using voice command and method of operating electronic device
CN107749201B (en) Click-to-read object processing method and device, storage medium and electronic equipment
CN108052506B (en) Natural language processing method, device, storage medium and electronic equipment
CN110688319A (en) Application keep-alive capability test method and related device
US10419816B2 (en) Video-based check-in method, terminal, server and system
CN113282268B (en) Sound effect configuration method and device, storage medium and electronic equipment
CN108958929B (en) Method and device for applying algorithm library, storage medium and electronic equipment
CN109522187B (en) Method and device for quickly extracting state information

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