CN107908462B - Method for controlling application operation, mobile terminal equipment and related medium product - Google Patents
Method for controlling application operation, mobile terminal equipment and related medium product Download PDFInfo
- Publication number
- CN107908462B CN107908462B CN201711131054.1A CN201711131054A CN107908462B CN 107908462 B CN107908462 B CN 107908462B CN 201711131054 A CN201711131054 A CN 201711131054A CN 107908462 B CN107908462 B CN 107908462B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- application
- applications
- terminal device
- memory space
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
- G06F9/467—Transactional memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Stored Programmes (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a method for controlling application running and mobile terminal equipment, wherein the method for controlling application running comprises the following steps: the mobile terminal equipment receives an instruction for triggering the running of the application i; determining whether the mobile terminal equipment has enough free memory space currently to run the application i; if the mobile terminal equipment is determined to have insufficient free memory space to operate the application i, determining whether applications with lower priority than the application i exist in the applications currently operated in the memory space of the mobile terminal equipment; if it is determined that K applications with priorities lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, the mobile terminal device closes K1 applications in the K applications. The technical scheme of the embodiment of the invention is beneficial to ensuring the smooth operation of high-priority application in the mobile terminal equipment as much as possible.
Description
Technical Field
The invention relates to the technical field of networks, in particular to webpage page caching processing, mobile terminal equipment and related medium products.
Background
With the continuous enhancement of the functions of mobile terminal devices, mobile terminal devices such as smart phones have become standard electronic devices in people's daily life. The mobile terminal device seems to be kept away in life scenes such as work, travel, business trip, home and the like.
Sometimes, when the mobile terminal device runs more applications simultaneously, due to limited memory space, some important applications (such as core applications) and the like may not run smoothly, and the important applications are applications that users are focused on, and if some important applications cannot run smoothly, completion of user key services may be seriously hindered, and user experience is further affected.
Disclosure of Invention
The embodiment of the invention provides a method for controlling application operation and mobile terminal equipment, aiming at ensuring smooth operation of high-priority applications in the mobile terminal equipment as much as possible.
A first aspect of an embodiment of the present invention provides a method for controlling application operation, including:
the mobile terminal equipment receives an instruction for triggering the running of the application i;
the mobile terminal equipment determines whether the mobile terminal equipment has enough free memory space currently to run the application i;
if the mobile terminal device determines that the mobile terminal device does not have enough free memory space to operate the application i currently, the mobile terminal device determines whether an application with a priority lower than that of the application i exists in the applications currently operated in the memory space of the mobile terminal device;
if it is determined that K applications with priorities lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, the mobile terminal device closes K1 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the K1 applications are closed, the mobile terminal device runs the application i in the memory space of the mobile terminal device, wherein K and K1 are positive integers, and K1 is less than or equal to K.
A second aspect of an embodiment of the present invention provides a mobile terminal device, including:
the receiving unit is used for receiving an instruction for triggering the running of the application i;
a determining unit, configured to determine whether the mobile terminal device currently has enough free memory space to run the application i; if the mobile terminal equipment is determined to have insufficient free memory space to operate the application i, determining whether applications with lower priority than the application i exist in the applications currently operated in the memory space of the mobile terminal equipment;
an adjusting unit, configured to close K1 applications among the K applications if it is determined that there are K applications with priorities lower than the application i among the applications currently running in the memory space of the mobile terminal device;
an operation control unit, configured to, if the application i is executed in the memory space of the mobile terminal device after the K1 applications are closed, enable the mobile terminal device to have enough free memory space currently, and execute the application i in the memory space of the mobile terminal device, where K and K1 are positive integers, and K1 is less than or equal to K.
As can be seen from the above, the mobile terminal device according to the embodiment of the present invention receives an instruction for triggering the running of the application i; the mobile terminal equipment determines whether the mobile terminal equipment has enough free memory space currently to run the application i; if the mobile terminal device determines that the mobile terminal device does not have enough free memory space to operate the application i currently, the mobile terminal device determines whether an application with a priority lower than that of the application i exists in the applications currently operated in the memory space of the mobile terminal device; if K applications with the priority lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, closing K1 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the k1 applications are closed, the mobile terminal device runs the application i in the memory space of the mobile terminal device. Due to the fact that the priority of the applications is divided, when the use of the memory space is tense, the smooth operation of the high-priority applications in the mobile terminal device can be guaranteed to the greatest extent by closing the applications with lower priorities.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for controlling application operation according to an embodiment of the present invention;
FIG. 2-a is a diagram illustrating a correspondence between an application and a priority according to an embodiment of the present invention;
FIG. 2-b is a flow chart illustrating another method for controlling application operation according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating another method for controlling application operation according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating another method for controlling application operation according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a mobile terminal device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of another mobile terminal device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides control application operation and mobile terminal equipment, so as to ensure the smooth operation of high-priority applications in the mobile terminal equipment as much as possible.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The invention discloses an embodiment of a method for controlling application running, wherein the method for controlling application running comprises the following steps: the mobile terminal equipment receives an instruction for triggering the running of the application i; the mobile terminal equipment determines whether the mobile terminal equipment has enough free memory space currently to run the application i; if the mobile terminal device determines that the mobile terminal device does not have enough free memory space to operate the application i currently, the mobile terminal device determines whether an application with a priority lower than that of the application i exists in the applications currently operated in the memory space of the mobile terminal device; if it is determined that K applications with priorities lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, the mobile terminal device closes K1 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the K1 applications are closed, the mobile terminal device runs the application i in the memory space of the mobile terminal device, wherein K and K1 are positive integers, and K1 is less than or equal to K.
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for controlling an application to run according to an embodiment of the present invention. As shown in fig. 1, a method for controlling application running according to an embodiment of the present invention may include:
101. and the mobile terminal equipment receives an instruction for triggering the running of the application i.
The mobile terminal device may be, for example, a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device, or other types of terminal devices.
Wherein the application i may be, for example, a QQ, a WeChat, a map, an alarm clock, a camera, a music player, or a game application, among others.
102. The mobile terminal equipment determines whether the mobile terminal equipment currently has enough free memory space to run the application i.
For example, the mobile terminal may determine whether the mobile terminal device currently has enough free memory space to run the application i according to a maximum memory space that may be occupied by the application i of the mobile terminal device when running. For another example, the mobile terminal may determine whether the mobile terminal device currently has enough free memory space to run the application i according to an average memory space that may be occupied by the application i of the mobile terminal device when running. For another example, the mobile terminal may determine whether the mobile terminal device currently has enough free memory space to run the application i according to a minimum memory space that may be occupied by the application i of the mobile terminal device when running.
103. If the mobile terminal device determines that the mobile terminal device does not have enough free memory space currently to operate the application i, the mobile terminal device determines whether an application with a priority lower than that of the application i exists in the applications currently operating in the memory space of the mobile terminal device.
Wherein the priority of each application in the mobile terminal equipment can be set by a user in advance. Or the priority of each application in the mobile terminal device may also be determined by the mobile terminal device according to a preset policy, for example, the priority of the system application is the highest, the priority of the game application is the lowest, and the priorities of other applications are intermediate. Of course, the embodiment of the present invention does not limit the determination manner of the priority of each application in the mobile terminal device.
For example, the priority of each application in the mobile terminal device may be recorded in a configuration file, and it may be determined whether an application with a lower priority than the application i exists in the applications currently running in the memory space of the mobile terminal device by querying the configuration file.
Higher priority applications run preferentially (higher priority also on memory space).
104. If it is determined that K applications with priorities lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, the mobile terminal device closes K1 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the K1 applications are closed, the mobile terminal device runs the application i in the memory space of the mobile terminal device, wherein the K and the K1 are positive integers, and the K1 is smaller than or equal to the K.
The mobile terminal device may determine to close the K1 applications from the K applications according to the memory space required by the application i.
Wherein K may be equal to 1, 2, 3, 5, 6, 11, 13, 20, or other values, for example.
Wherein k1 may be equal to 1, 2, 3, 5, 6, 11, 13, 19, or other values, for example.
As can be seen from the above, in the scheme of this embodiment, the mobile terminal device receives an instruction for triggering the running of the application i; the mobile terminal equipment determines whether the mobile terminal equipment has enough free memory space currently to run the application i; if the mobile terminal equipment is determined to have insufficient free memory space to operate the application i, determining whether applications with lower priority than the application i exist in the applications currently operated in the memory space of the mobile terminal equipment; if K applications with the priority lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, closing K1 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the k1 applications are closed, the mobile terminal device runs the application i in the memory space of the mobile terminal device. Due to the fact that the priority of the applications is divided, when the use of the memory space is tense, the smooth operation of the high-priority applications in the mobile terminal device can be guaranteed to the greatest extent by closing the applications with lower priorities.
Optionally, in a possible implementation manner of the present invention, if the mobile terminal device has enough free memory space to run the application i after the k1 applications are closed, a prompt message for prompting that the mobile terminal device has enough free memory space to run the application i is popped up on a display interface of the mobile terminal device.
Optionally, in a possible implementation manner of the present invention, if the mobile terminal device does not currently have enough free memory space to run the application i after the k1 applications are closed, a prompt message for prompting that the mobile terminal device does not currently have enough free memory space to run the application i is popped up on a display interface of the mobile terminal device.
Optionally, in a possible embodiment of the present invention, K1 is smaller than K. If the mobile terminal device does not have enough free memory space to run the application i currently after the K1 applications are closed, the mobile terminal device closes K2 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the k2 applications are closed, the application i is run in the memory space of the mobile terminal device, wherein any 1 application of the k2 applications is different from any 1 application of the k1 applications, and the k2 is a positive integer.
Optionally, in a possible implementation manner of the present invention, if the mobile terminal device has enough free memory space to run the application i after the k2 applications are closed, a prompt message for prompting that the mobile terminal device has enough free memory space to run the application i is popped up on a display interface of the mobile terminal device;
optionally, in a possible implementation manner of the present invention, if the mobile terminal device does not currently have enough free memory space to run the application i after the k2 applications are closed, a prompt message for prompting that the mobile terminal device does not currently have enough free memory space to run the application i is popped up on a display interface of the mobile terminal device.
Optionally, in a possible embodiment of the present invention, the priority of any 1 application in the K1 applications may be lower than or equal to the priority of any 1 application in the K applications except the K1 applications. Or the K1 applications can be any K1 applications in the K applications.
It can be appreciated that the prompt information is beneficial to make the user aware of the busy or free state of the current memory space.
In practical applications, the prompt message for prompting that the mobile terminal device does not currently have enough free memory space to run the application i may be a text message, an animation message, or a breathing lamp flashing message, or other forms of messages. The prompt message for prompting that the mobile terminal device has enough free memory space currently to run the application i may also be a text message, an animation message, a breathing lamp flashing message or other forms of messages. Of course, the prompt message for prompting that the mobile terminal device does not currently have enough free memory space to run the application i may be a text message, which is different from the prompt message for prompting that the mobile terminal device currently has enough free memory space to run the application i.
To facilitate a better understanding and an implementation of the above-described aspects of the embodiments of the present invention, the following description is provided in connection with some specific application scenarios.
Referring to fig. 2-b, fig. 2-b is a flowchart illustrating a method for controlling an application to run according to an embodiment of the present invention. As shown in fig. 2-b, a method for controlling application running according to an embodiment of the present invention may include:
201. and the mobile terminal equipment receives an instruction for triggering the running of the application i.
The mobile terminal equipment receives an instruction which can be used for receiving triggering and running the application i and is sent by a user through pressing a key, touching a touch screen or other modes.
The mobile terminal device may be, for example, a mobile phone, a tablet computer, a notebook computer, a palm computer, a mobile internet device, a wearable device, or other types of terminal devices.
Wherein the application i may be, for example, a QQ, a WeChat, a map, an alarm clock, a camera, a music player, or a game application, among others.
202. The mobile terminal equipment determines whether the mobile terminal equipment currently has enough free memory space to run the application i.
If yes, go to step 206.
If not, go to step 203.
For example, the mobile terminal may determine whether the mobile terminal device currently has enough free memory space to run the application i according to a maximum memory space that may be occupied by the application i of the mobile terminal device when running. For another example, the mobile terminal may determine whether the mobile terminal device currently has enough free memory space to run the application i according to an average memory space that may be occupied by the application i of the mobile terminal device when running. For another example, the mobile terminal may determine whether the mobile terminal device currently has enough free memory space to run the application i according to a minimum memory space that may be occupied by the application i of the mobile terminal device when running.
203. If the mobile terminal device determines that the mobile terminal device does not have enough free memory space currently to operate the application i, the mobile terminal device determines whether an application with a priority lower than that of the application i exists in the applications currently operating in the memory space of the mobile terminal device.
If yes, go to step 204.
And if not, prompting that the application i cannot be operated.
Wherein the priority of each application in the mobile terminal equipment can be set by a user in advance. Or the priority of each application in the mobile terminal device may also be determined by the mobile terminal device according to a preset policy, for example, the priority of the system application is the highest, the priority of the game application is the lowest, and the priorities of other applications are intermediate. Of course, the embodiment of the present invention does not limit the determination manner of the priority of each application in the mobile terminal device.
For example, the priority of each application in the mobile terminal device may be recorded in a configuration file, and it may be determined whether an application with a lower priority than the application i exists in the applications currently running in the memory space of the mobile terminal device by querying the configuration file. Wherein one possible correspondence between applications and priorities is shown by way of example in fig. 2-a.
Higher priority applications run preferentially (higher priority also on memory space).
204. If it is determined that K applications with priorities lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, the mobile terminal device closes K1 applications in the K applications.
Wherein the K and the K1 are positive integers and the K1 is less than or equal to the K.
Wherein K may be equal to 1, 2, 3, 5, 6, 11, 13, 20, or other values, for example.
Wherein k1 may be equal to 1, 2, 3, 5, 6, 11, 13, 19, or other values, for example.
205. The mobile terminal device determines whether the application i is currently allowed to run with sufficient free memory space after the k1 applications have been closed.
If yes, go to step 206.
And if not, prompting that the application i cannot be operated.
Optionally, in a possible implementation manner of the present invention, if the mobile terminal device has enough free memory space to run the application i after the k1 applications are closed, a prompt message for prompting that the mobile terminal device has enough free memory space to run the application i is popped up on a display interface of the mobile terminal device.
Optionally, in a possible implementation manner of the present invention, if the mobile terminal device does not currently have enough free memory space to run the application i after the k1 applications are closed, a prompt message for prompting that the mobile terminal device does not currently have enough free memory space to run the application i is popped up on a display interface of the mobile terminal device.
206. And running the application i in the memory space of the mobile terminal equipment.
As can be seen from the above, in the scheme of this embodiment, the mobile terminal device receives an instruction for triggering the running of the application i; the mobile terminal equipment determines whether the mobile terminal equipment has enough free memory space currently to run the application i; if the mobile terminal equipment is determined to have insufficient free memory space to operate the application i, determining whether applications with lower priority than the application i exist in the applications currently operated in the memory space of the mobile terminal equipment; if K applications with the priority lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, closing K1 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the k1 applications are closed, the mobile terminal device runs the application i in the memory space of the mobile terminal device. Due to the fact that the priority of the applications is divided, when the use of the memory space is tense, the smooth operation of the high-priority applications in the mobile terminal device can be guaranteed to the greatest extent by closing the applications with lower priorities.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for controlling an application to run according to another embodiment of the present invention. As shown in fig. 3, a method for controlling application running according to another embodiment of the present invention may include:
301. and the mobile terminal equipment receives an instruction for triggering the running of the application i.
The mobile terminal equipment receives an instruction which can be used for receiving triggering and running the application i and is sent by a user through pressing a key, touching a touch screen or other modes.
The mobile terminal device may be, for example, a mobile phone, a tablet computer, a notebook computer, a palm computer, a mobile internet device, a wearable device, or other types of terminal devices.
Wherein the application i may be, for example, a QQ, a WeChat, a map, an alarm clock, a camera, a music player, or a game application, among others.
302. The mobile terminal equipment determines whether the mobile terminal equipment currently has enough free memory space to run the application i.
If yes, go to step 307.
If not, go to step 303.
For example, the mobile terminal may determine whether the mobile terminal device currently has enough free memory space to run the application i according to a maximum memory space that may be occupied by the application i of the mobile terminal device when running. For another example, the mobile terminal may determine whether the mobile terminal device currently has enough free memory space to run the application i according to an average memory space that may be occupied by the application i of the mobile terminal device when running. For another example, the mobile terminal may determine whether the mobile terminal device currently has enough free memory space to run the application i according to a minimum memory space that may be occupied by the application i of the mobile terminal device when running.
303. If the mobile terminal device determines that the mobile terminal device does not have enough free memory space currently to operate the application i, the mobile terminal device determines whether an application with a priority lower than that of the application i exists in the applications currently operating in the memory space of the mobile terminal device.
If so, go to step 304.
And if not, prompting that the application i cannot be operated.
Wherein the priority of each application in the mobile terminal equipment can be set by a user in advance. Or the priority of each application in the mobile terminal device may also be determined by the mobile terminal device according to a preset policy, for example, the priority of the system application is the highest, the priority of the game application is the lowest, and the priorities of other applications are intermediate. Of course, the embodiment of the present invention does not limit the determination manner of the priority of each application in the mobile terminal device.
For example, the priority of each application in the mobile terminal device may be recorded in a configuration file, and it may be determined whether an application with a lower priority than the application i exists in the applications currently running in the memory space of the mobile terminal device by querying the configuration file. Wherein one possible correspondence between applications and priorities is shown by way of example in fig. 2-a.
Higher priority applications run preferentially (higher priority also on memory space).
304. If it is determined that K applications with priorities lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, the mobile terminal device closes K1 applications in the K applications.
Wherein the K and the K1 are positive integers and the K1 is less than or equal to the K.
Wherein K may be equal to 1, 2, 3, 5, 6, 11, 13, 20, or other values, for example.
Wherein k1 may be equal to 1, 2, 3, 5, 6, 11, 13, 19, or other values, for example.
305. The mobile terminal device determines whether the application i is currently allowed to run with sufficient free memory space after the k1 applications have been closed.
If yes, go to step 308.
If not, go to step 306.
Optionally, in a possible implementation manner of the present invention, if the mobile terminal device has enough free memory space to run the application i after the k1 applications are closed, a prompt message for prompting that the mobile terminal device has enough free memory space to run the application i is popped up on a display interface of the mobile terminal device.
Optionally, in a possible implementation manner of the present invention, if the mobile terminal device does not currently have enough free memory space to run the application i after the k1 applications are closed, a prompt message for prompting that the mobile terminal device does not currently have enough free memory space to run the application i is popped up on a display interface of the mobile terminal device.
306. If the mobile terminal device does not have enough free memory space to run the application i currently after the K1 applications are closed, the mobile terminal device closes K2 applications from the K applications.
307. The mobile terminal device determines whether the application i is currently allowed to run with sufficient free memory space after the k2 applications have been closed.
Wherein k2 is a positive integer, and any 1 application of the k2 applications is different from any 1 application of the k1 applications.
If yes, go to step 308.
If not, the application i cannot be operated, or other applications in the K applications can be continuously closed or the memory space occupied by other applications in the K applications can be continuously reduced, so that more memory space can be continuously made up.
Optionally, in a possible implementation manner of the present invention, if the mobile terminal device has enough free memory space to run the application i after the k2 applications are closed, a prompt message for prompting that the mobile terminal device has enough free memory space to run the application i is popped up on a display interface of the mobile terminal device;
optionally, in a possible implementation manner of the present invention, if the mobile terminal device does not currently have enough free memory space to run the application i after the k2 applications are closed, a prompt message for prompting that the mobile terminal device does not currently have enough free memory space to run the application i is popped up on a display interface of the mobile terminal device.
308. And running the application i in the memory space of the mobile terminal equipment.
As can be seen from the above, in the scheme of this embodiment, after the mobile terminal device receives an instruction for triggering the running of the application i; the mobile terminal equipment determines whether the mobile terminal equipment has enough free memory space currently to run the application i; if the mobile terminal equipment is determined to have insufficient free memory space to operate the application i, determining whether applications with lower priority than the application i exist in the applications currently operated in the memory space of the mobile terminal equipment; if K applications with the priority lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, closing K1 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the k1 applications are closed, the mobile terminal device runs the application i in the memory space of the mobile terminal device. Due to the fact that the priority of the applications is divided, when the use of the memory space is tense, the smooth operation of the high-priority applications in the mobile terminal device can be guaranteed to the greatest extent by closing the applications with lower priorities.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for controlling an application to run according to another embodiment of the present invention. As shown in fig. 4, a method for controlling application running according to another embodiment of the present invention may include:
401. and the mobile terminal equipment receives an instruction for triggering the running of the application i.
The mobile terminal equipment receives an instruction which can be used for receiving triggering and running the application i and is sent by a user through pressing a key, touching a touch screen or other modes.
The mobile terminal device may be, for example, a mobile phone, a tablet computer, a notebook computer, a palm computer, a mobile internet device, a wearable device, or other types of terminal devices.
Wherein the application i may be, for example, a QQ, a WeChat, a map, an alarm clock, a camera, a music player, or a game application, among others.
402. The mobile terminal equipment determines whether the mobile terminal equipment currently has enough free memory space to run the application i.
If yes, go to step 408.
If not, go to step 403.
For example, the mobile terminal may determine whether the mobile terminal device currently has enough free memory space to run the application i according to a maximum memory space that may be occupied by the application i of the mobile terminal device when running. For another example, the mobile terminal may determine whether the mobile terminal device currently has enough free memory space to run the application i according to an average memory space that may be occupied by the application i of the mobile terminal device when running. For another example, the mobile terminal may determine whether the mobile terminal device currently has enough free memory space to run the application i according to a minimum memory space that may be occupied by the application i of the mobile terminal device when running.
403. If the mobile terminal device determines that the mobile terminal device does not have enough free memory space currently to operate the application i, the mobile terminal device determines whether an application with a priority lower than that of the application i exists in the applications currently operating in the memory space of the mobile terminal device.
If yes, go to step 404.
And if not, prompting that the application i cannot be operated.
Wherein the priority of each application in the mobile terminal equipment can be set by a user in advance. Or the priority of each application in the mobile terminal device may also be determined by the mobile terminal device according to a preset policy, for example, the priority of the system application is the highest, the priority of the game application is the lowest, and the priorities of other applications are intermediate. Of course, the embodiment of the present invention does not limit the determination manner of the priority of each application in the mobile terminal device.
For example, the priority of each application in the mobile terminal device may be recorded in a configuration file, and it may be determined whether an application with a lower priority than the application i exists in the applications currently running in the memory space of the mobile terminal device by querying the configuration file. Wherein one possible correspondence between applications and priorities is shown by way of example in fig. 2-a.
Higher priority applications run preferentially (higher priority also on memory space).
404. If it is determined that K applications with priorities lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, the mobile terminal device closes K1 applications in the K applications.
Wherein the K and the K1 are positive integers and the K1 is less than or equal to the K.
Wherein K may be equal to 1, 2, 3, 5, 6, 11, 13, 20, or other values, for example.
Wherein k1 may be equal to 1, 2, 3, 5, 6, 11, 13, 19, or other values, for example.
405. The mobile terminal device determines whether the application i is currently allowed to run with sufficient free memory space after the k1 applications have been closed.
If yes, go to step 408.
If not, go to step 406.
Optionally, in a possible implementation manner of the present invention, if the mobile terminal device has enough free memory space to run the application i after the k1 applications are closed, a prompt message for prompting that the mobile terminal device has enough free memory space to run the application i is popped up on a display interface of the mobile terminal device.
Optionally, in a possible implementation manner of the present invention, if the mobile terminal device does not currently have enough free memory space to run the application i after the k1 applications are closed, a prompt message for prompting that the mobile terminal device does not currently have enough free memory space to run the application i is popped up on a display interface of the mobile terminal device.
406. If the mobile terminal device does not have enough free memory space to run the application i at present after the K1 applications are closed, the mobile terminal device reduces the memory space occupied by K3 applications in the K applications; .
407. The mobile terminal device determines whether the memory space occupied by the k3 applications is reduced so that the mobile terminal device currently has enough free memory space to run the application i.
If yes, go to step 408.
If not, prompting that the application i cannot be operated, or continuing to close other applications in the K applications or continuing to reduce the memory space occupied by other applications in the K applications so as to continuously make up more memory space.
Wherein k3 is a positive integer, wherein the intersection of the set of k3 applications and the set of k1 applications is a non-empty set, or any 1 application of the k3 applications is different from any 1 application of the k1 applications.
Optionally, in a possible implementation manner of the present invention, if the memory space occupied by the k3 applications is reduced, so that the mobile terminal device currently has enough free memory space to run the application i, a prompt message for prompting that the mobile terminal device currently has enough free memory space to run the application i is popped up on a display interface of the mobile terminal device.
Optionally, in a possible implementation manner of the present invention, if the mobile terminal device still has insufficient free memory space to run the application i after reducing the memory space occupied by the k3 applications, a prompt message for prompting that the mobile terminal device does not have sufficient free memory space to run the application i is popped up on a display interface of the mobile terminal device.
408. And running the application i in the memory space of the mobile terminal equipment.
As can be seen from the above, in the scheme of this embodiment, after the mobile terminal device receives an instruction for triggering the running of the application i; the mobile terminal equipment determines whether the mobile terminal equipment has enough free memory space currently to run the application i; if the mobile terminal equipment is determined to have insufficient free memory space to operate the application i, determining whether applications with lower priority than the application i exist in the applications currently operated in the memory space of the mobile terminal equipment; if K applications with the priority lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, closing K1 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the k1 applications are closed, the mobile terminal device runs the application i in the memory space of the mobile terminal device. Due to the fact that the priority of the applications is divided, when the use of the memory space is tense, the smooth operation of the high-priority applications in the mobile terminal device can be guaranteed to the greatest extent by closing the applications with lower priorities.
Referring to fig. 5, a mobile terminal device 500 according to an embodiment of the present invention may include:
a receiving unit 510, configured to receive an instruction to trigger execution of the application i.
A determining unit 520, configured to determine whether the mobile terminal device currently has enough free memory space to run the application i; if the mobile terminal equipment is determined to have insufficient free memory space to operate the application i, determining whether applications with lower priority than the application i exist in the applications currently operated in the memory space of the mobile terminal equipment;
an adjusting unit 530, configured to close K1 applications among the K applications if it is determined that K applications with priorities lower than that of the application i exist among the applications currently running in the memory space of the mobile terminal device;
an operation control unit 540, configured to, if the application i is currently enough to run in the free memory space of the mobile terminal device after the K1 applications are closed, run the application i in the memory space of the mobile terminal device, where K and K1 are positive integers, and K1 is less than or equal to K.
Alternatively, in some possible embodiments of the invention,
the mobile terminal device further includes:
a prompting unit, configured to pop up, on a display interface of the mobile terminal device, a prompt message for prompting that the mobile terminal device currently has a sufficient free memory space to run the application i if the application i is currently operated in the sufficient free memory space after the k1 applications are closed; or if the mobile terminal device does not have enough free memory space to run the application i currently after the k1 applications are closed, popping up a prompt message for prompting that the mobile terminal device does not have enough free memory space to run the application i currently on a display interface of the mobile terminal device.
Optionally, in some possible embodiments of the invention, the K1 is less than the K,
wherein the adjusting unit 530 is further configured to: if the mobile terminal device does not have enough free memory space to run the application i currently after the K1 applications are closed, closing K2 applications in the K applications;
the operation control unit 540 is further configured to, if the mobile terminal device has enough free memory space to operate the application i after the k2 applications are closed, operate the application i in the memory space of the mobile terminal device, where any 1 application of the k2 applications is different from any 1 application of the k1 applications, and the k2 is a positive integer.
Optionally, in some possible embodiments of the present invention, the prompting unit is further configured to pop up a prompt message for prompting that the mobile terminal device currently has enough free memory space to run the application i on a display interface of the mobile terminal device if the mobile terminal device currently has enough free memory space to run the application i after the k2 applications are closed; or if the mobile terminal device does not have enough free memory space to run the application i currently after the k2 applications are closed, popping up a prompt message for prompting that the mobile terminal device does not have enough free memory space to run the application i currently on a display interface of the mobile terminal device.
Optionally, in some possible embodiments of the present invention, the priority of any 1 application in the K1 applications is lower than or equal to the priority of the K applications except the K1 applications.
It can be understood that the functions of the functional modules of the mobile terminal device 500 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
As can be seen from the above, in the scheme of this embodiment, after the mobile terminal device 500 receives an instruction for triggering the running of the application i; the mobile terminal equipment determines whether the mobile terminal equipment has enough free memory space currently to run the application i; if the mobile terminal equipment is determined to have insufficient free memory space to operate the application i, determining whether applications with lower priority than the application i exist in the applications currently operated in the memory space of the mobile terminal equipment; if K applications with the priority lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, closing K1 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the k1 applications are closed, the mobile terminal device runs the application i in the memory space of the mobile terminal device. Due to the fact that the priority of the applications is divided, when the use of the memory space is tense, the smooth operation of the high-priority applications in the mobile terminal device can be guaranteed to the greatest extent by closing the applications with lower priorities.
Fig. 6 is a schematic structural diagram of a mobile terminal device according to the present invention, and as shown in fig. 6, the mobile terminal device 600 of this embodiment includes at least one bus 601, at least one processor 602 connected to the bus 601, and at least one memory 603 connected to the bus 601.
Wherein, the processor 602 calls the code stored in the memory 603 for receiving an instruction triggering the running of the application i through the bus 601; determining whether the mobile terminal equipment has enough free memory space currently to run the application i; if the mobile terminal equipment is determined to have insufficient free memory space to operate the application i, determining whether applications with lower priority than the application i exist in the applications currently operated in the memory space of the mobile terminal equipment; if K applications with the priority lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, closing K1 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the K1 applications are closed, the application i is run in the memory space of the mobile terminal device, wherein the K and the K1 are positive integers, and the K1 is smaller than or equal to the K.
Alternatively, in some possible embodiments of the invention,
the processor 602 is further configured to pop up a prompt message for prompting that the mobile terminal device currently has enough free memory space to run the application i on a display interface of the mobile terminal device if the mobile terminal device currently has enough free memory space to run the application i after the k1 applications are closed; or if the mobile terminal device does not have enough free memory space to run the application i currently after the k1 applications are closed, popping up a prompt message for prompting that the mobile terminal device does not have enough free memory space to run the application i currently on a display interface of the mobile terminal device.
Optionally, in some possible embodiments of the invention, the K1 is less than the K,
wherein the processor 602 is further configured to close K2 applications out of the K applications if the mobile terminal device does not currently have enough free memory space to run the application i after closing the K1 applications;
the processor 602 is further configured to, if the mobile terminal device has enough free memory space to run the application i after the k2 applications are closed, run the application i in the memory space of the mobile terminal device, where any 1 application of the k2 applications is different from any 1 application of the k1 applications, and the k2 is a positive integer.
Optionally, in some possible embodiments of the present invention, the processor 602 is further configured to pop up a prompt message on a display interface of the mobile terminal device for prompting that the mobile terminal device currently has enough free memory space to run the application i, if the mobile terminal device currently has enough free memory space to run the application i after the k2 applications are closed; or if the mobile terminal device does not have enough free memory space to run the application i currently after the k2 applications are closed, popping up a prompt message for prompting that the mobile terminal device does not have enough free memory space to run the application i currently on a display interface of the mobile terminal device.
Optionally, in some possible embodiments of the present invention, the priority of any 1 application in the K1 applications is lower than or equal to the priority of the K applications except the K1 applications.
It can be understood that the functions of the functional modules of the mobile terminal device 600 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
As can be seen from the above, in the scheme of this embodiment, after the mobile terminal device 600 receives an instruction for triggering the running of the application i; the mobile terminal equipment determines whether the mobile terminal equipment has enough free memory space currently to run the application i; if the mobile terminal equipment is determined to have insufficient free memory space to operate the application i, determining whether applications with lower priority than the application i exist in the applications currently operated in the memory space of the mobile terminal equipment; if K applications with the priority lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, closing K1 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the k1 applications are closed, the mobile terminal device runs the application i in the memory space of the mobile terminal device. Due to the fact that the priority of the applications is divided, when the use of the memory space is tense, the smooth operation of the high-priority applications in the mobile terminal device can be guaranteed to the greatest extent by closing the applications with lower priorities.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of any one of the methods for controlling an application to run described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (12)
1. A method of controlling application execution, comprising: the method comprises the steps that a mobile terminal device receives an instruction for triggering the running of an application i, wherein the mobile terminal device is a mobile phone, a tablet computer, a notebook computer or a wearable device;
the mobile terminal equipment determines whether the mobile terminal equipment has enough free memory space to operate the application i at present according to the average memory space occupied by the application i when operating;
if the mobile terminal device determines that the mobile terminal device does not have enough free memory space to operate the application i currently, the mobile terminal device determines whether an application with a priority lower than that of the application i exists in the applications currently operated in the memory space of the mobile terminal device; the higher the priority, the higher the priority of the application is, the higher the priority of the occupied memory space is;
if it is determined that K applications with priorities lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, the mobile terminal device closes K1 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the K1 applications are closed, the mobile terminal device runs the application i in the memory space of the mobile terminal device, the K and the K1 are positive integers, and the K1 is less than or equal to the K; the priority of any 1 application in the K1 applications is lower than the priority of any 1 application in the K applications except the K1 applications;
wherein the method further comprises:
if the mobile terminal device does not have enough free memory space to run the application i currently after the K1 applications are closed, the mobile terminal device reduces the memory space occupied by K3 applications in the K applications, wherein any 1 application in the K3 applications is different from any 1 application in the K1 applications; the mobile terminal device determines whether to enable the mobile terminal device to have enough free memory space to run the application i after reducing the memory space occupied by the k3 applications; if the memory space occupied by the k3 applications is reduced, the mobile terminal device has enough free memory space to operate the application i currently, and the mobile terminal device operates the application i in the memory space of the mobile terminal device.
2. The method of claim 1,
the method further comprises the following steps:
if the mobile terminal device has enough free memory space to run the application i after the k1 applications are closed, popping up a prompt message for prompting that the mobile terminal device has enough free memory space to run the application i on a display interface of the mobile terminal device;
alternatively, the first and second electrodes may be,
if the mobile terminal device does not have enough free memory space to run the application i currently after the k1 applications are closed, popping up a prompt message for prompting that the mobile terminal device does not have enough free memory space to run the application i currently on a display interface of the mobile terminal device.
3. The method according to claim 1 or 2,
the K1 is less than the K,
the method further comprises the following steps: if the mobile terminal device does not have enough free memory space to run the application i currently after the K1 applications are closed, the mobile terminal device closes K2 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the k2 applications are closed, the application i is run in the memory space of the mobile terminal device, wherein any 1 application of the k2 applications is different from any 1 application of the k1 applications, and the k2 is a positive integer.
4. A mobile terminal device is characterized in that the mobile terminal device is a mobile phone, a tablet computer, a notebook computer or a wearable device,
the mobile terminal device includes:
the receiving unit is used for receiving an instruction for triggering the running of the application i;
a determining unit, configured to determine whether the mobile terminal device currently has enough free memory space to run the application i according to an average memory space occupied by the application i when running; if the mobile terminal equipment is determined to have insufficient free memory space to operate the application i, determining whether applications with lower priority than the application i exist in the applications currently operated in the memory space of the mobile terminal equipment; the higher the priority, the higher the priority of the application is, the higher the priority of the occupied memory space is;
an adjusting unit, configured to close K1 applications among the K applications if it is determined that there are K applications with priorities lower than the application i among the applications currently running in the memory space of the mobile terminal device;
an operation control unit, configured to, if the current free memory space of the mobile terminal device has enough to operate the application i after the K1 applications are closed, operate the application i in the memory space of the mobile terminal device, where K and K1 are positive integers, and K1 is less than or equal to K; the priority of any 1 application in the K1 applications is lower than the priority of any 1 application in the K applications except the K1 applications;
wherein the adjusting unit is further configured to: if the mobile terminal device does not have enough free memory space to run the application i currently after the K1 applications are closed, reducing the memory space occupied by K3 applications in the K applications, wherein any 1 application in the K3 applications is different from any 1 application in the K1 applications;
the operation control unit is further configured to, if the memory space occupied by the k3 applications is reduced, make the mobile terminal device currently have enough free memory space to operate the application i, and operate the application i in the memory space of the mobile terminal device.
5. Mobile terminal device according to claim 4,
the mobile terminal device further includes:
a prompting unit, configured to pop up, on a display interface of the mobile terminal device, a prompt message for prompting that the mobile terminal device currently has a sufficient free memory space to run the application i if the application i is currently operated in the sufficient free memory space after the k1 applications are closed; or if the mobile terminal device does not have enough free memory space to run the application i currently after the k1 applications are closed, popping up a prompt message for prompting that the mobile terminal device does not have enough free memory space to run the application i currently on a display interface of the mobile terminal device.
6. Mobile terminal device according to claim 4 or 5,
the K1 is less than the K,
wherein the adjusting unit is further configured to: if the mobile terminal device does not have enough free memory space to run the application i currently after the K1 applications are closed, closing K2 applications in the K applications;
wherein the operation control unit is further configured to, if the mobile terminal device has enough free memory space to operate the application i after the k2 applications are closed, operate the application i in the memory space of the mobile terminal device, where any 1 application of the k2 applications is different from any 1 application of the k1 applications, and the k2 is a positive integer.
7. A mobile terminal device is characterized in that the mobile terminal device is a palm computer,
the mobile terminal device includes:
the receiving unit is used for receiving an instruction for triggering the running of the application i;
a determining unit, configured to determine whether the mobile terminal device currently has enough free memory space to run the application i according to an average memory space occupied by the application i when running; if the mobile terminal equipment is determined to have insufficient free memory space to operate the application i, determining whether applications with lower priority than the application i exist in the applications currently operated in the memory space of the mobile terminal equipment; the higher the priority, the higher the priority of the application is, the higher the priority of the occupied memory space is;
an adjusting unit, configured to close K1 applications among the K applications if it is determined that there are K applications with priorities lower than the application i among the applications currently running in the memory space of the mobile terminal device;
an operation control unit, configured to, if the current free memory space of the mobile terminal device has enough to operate the application i after the K1 applications are closed, operate the application i in the memory space of the mobile terminal device, where K and K1 are positive integers, and K1 is less than or equal to K; the priority of any 1 application in the K1 applications is lower than the priority of any 1 application in the K applications except the K1 applications;
wherein the adjusting unit is further configured to: if the mobile terminal device does not have enough free memory space to run the application i currently after the K1 applications are closed, reducing the memory space occupied by K3 applications in the K applications, wherein any 1 application in the K3 applications is different from any 1 application in the K1 applications;
the operation control unit is further configured to, if the memory space occupied by the k3 applications is reduced, make the mobile terminal device currently have enough free memory space to operate the application i, and operate the application i in the memory space of the mobile terminal device.
8. A mobile terminal device, characterized in that the mobile terminal device is a mobile Internet device,
the mobile terminal device includes:
the receiving unit is used for receiving an instruction for triggering the running of the application i;
a determining unit, configured to determine whether the mobile terminal device currently has enough free memory space to run the application i according to an average memory space occupied by the application i when running; if the mobile terminal equipment is determined to have insufficient free memory space to operate the application i, determining whether applications with lower priority than the application i exist in the applications currently operated in the memory space of the mobile terminal equipment; the higher the priority, the higher the priority of the application is, the higher the priority of the occupied memory space is;
an adjusting unit, configured to close K1 applications among the K applications if it is determined that there are K applications with priorities lower than the application i among the applications currently running in the memory space of the mobile terminal device;
an operation control unit, configured to, if the current free memory space of the mobile terminal device has enough to operate the application i after the K1 applications are closed, operate the application i in the memory space of the mobile terminal device, where K and K1 are positive integers, and K1 is less than or equal to K; the priority of any 1 application in the K1 applications is lower than the priority of any 1 application in the K applications except the K1 applications;
wherein the adjusting unit is further configured to: if the mobile terminal device does not have enough free memory space to run the application i currently after the K1 applications are closed, reducing the memory space occupied by K3 applications in the K applications, wherein any 1 application in the K3 applications is different from any 1 application in the K1 applications;
the operation control unit is further configured to, if the memory space occupied by the k3 applications is reduced, make the mobile terminal device currently have enough free memory space to operate the application i, and operate the application i in the memory space of the mobile terminal device.
9. A method of controlling application execution, comprising: the method comprises the steps that a mobile terminal device receives an instruction for triggering the running of an application i, wherein the mobile terminal device is a palm computer;
the mobile terminal equipment determines whether the mobile terminal equipment has enough free memory space to operate the application i at present according to the average memory space occupied by the application i when operating;
if the mobile terminal device determines that the mobile terminal device does not have enough free memory space to operate the application i currently, the mobile terminal device determines whether an application with a priority lower than that of the application i exists in the applications currently operated in the memory space of the mobile terminal device; the higher the priority, the higher the priority of the application is, the higher the priority of the occupied memory space is;
if it is determined that K applications with priorities lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, the mobile terminal device closes K1 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the K1 applications are closed, the mobile terminal device runs the application i in the memory space of the mobile terminal device, the K and the K1 are positive integers, and the K1 is less than or equal to the K; the priority of any 1 application in the K1 applications is lower than the priority of any 1 application in the K applications except the K1 applications;
wherein the method further comprises:
if the mobile terminal device does not have enough free memory space to run the application i currently after the K1 applications are closed, the mobile terminal device reduces the memory space occupied by K3 applications in the K applications, wherein any 1 application in the K3 applications is different from any 1 application in the K1 applications; the mobile terminal device determines whether to enable the mobile terminal device to have enough free memory space to run the application i after reducing the memory space occupied by the k3 applications; if the memory space occupied by the k3 applications is reduced, the mobile terminal device has enough free memory space to operate the application i currently, and the mobile terminal device operates the application i in the memory space of the mobile terminal device.
10. A method of controlling application execution, comprising: the method comprises the steps that a mobile terminal device receives an instruction for triggering the running of an application i, wherein the mobile terminal device is a mobile internet device;
the mobile terminal equipment determines whether the mobile terminal equipment has enough free memory space to operate the application i at present according to the average memory space occupied by the application i when operating;
if the mobile terminal device determines that the mobile terminal device does not have enough free memory space to operate the application i currently, the mobile terminal device determines whether an application with a priority lower than that of the application i exists in the applications currently operated in the memory space of the mobile terminal device; the higher the priority, the higher the priority of the application is, the higher the priority of the occupied memory space is;
if it is determined that K applications with priorities lower than that of the application i exist in the applications currently running in the memory space of the mobile terminal device, the mobile terminal device closes K1 applications in the K applications; if the mobile terminal device has enough free memory space to run the application i after the K1 applications are closed, the mobile terminal device runs the application i in the memory space of the mobile terminal device, the K and the K1 are positive integers, and the K1 is less than or equal to the K; the priority of any 1 application in the K1 applications is lower than the priority of any 1 application in the K applications except the K1 applications;
wherein the method further comprises:
if the mobile terminal device does not have enough free memory space to run the application i currently after the K1 applications are closed, the mobile terminal device reduces the memory space occupied by K3 applications in the K applications, wherein any 1 application in the K3 applications is different from any 1 application in the K1 applications; the mobile terminal device determines whether to enable the mobile terminal device to have enough free memory space to run the application i after reducing the memory space occupied by the k3 applications; if the memory space occupied by the k3 applications is reduced, the mobile terminal device has enough free memory space to operate the application i currently, and the mobile terminal device operates the application i in the memory space of the mobile terminal device.
11. A mobile terminal device, characterized by comprising: a processor and a memory;
wherein the processor invokes code stored in the memory for performing the method of any of claims 1-3 or 9-10.
12. A computer storage medium, characterized in that it stores a computer software product comprising instructions for causing a computer device to perform the method of any one of claims 1 to 3 or 9 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711131054.1A CN107908462B (en) | 2014-12-31 | 2014-12-31 | Method for controlling application operation, mobile terminal equipment and related medium product |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410856339.1A CN104572300B (en) | 2014-12-31 | 2014-12-31 | The method and mobile terminal device of control application operation |
CN201711131054.1A CN107908462B (en) | 2014-12-31 | 2014-12-31 | Method for controlling application operation, mobile terminal equipment and related medium product |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410856339.1A Division CN104572300B (en) | 2014-12-31 | 2014-12-31 | The method and mobile terminal device of control application operation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107908462A CN107908462A (en) | 2018-04-13 |
CN107908462B true CN107908462B (en) | 2022-01-25 |
Family
ID=53088445
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410856339.1A Active CN104572300B (en) | 2014-12-31 | 2014-12-31 | The method and mobile terminal device of control application operation |
CN201711131054.1A Active CN107908462B (en) | 2014-12-31 | 2014-12-31 | Method for controlling application operation, mobile terminal equipment and related medium product |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410856339.1A Active CN104572300B (en) | 2014-12-31 | 2014-12-31 | The method and mobile terminal device of control application operation |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN104572300B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107885591A (en) | 2016-09-27 | 2018-04-06 | 华为技术有限公司 | For the method and terminal of application distributing system resource |
CN109062702B (en) * | 2018-08-31 | 2021-07-30 | 中兴飞流信息科技有限公司 | Computing resource allocation method, related device and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102135913A (en) * | 2011-03-18 | 2011-07-27 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for responding application |
CN103631661A (en) * | 2013-11-27 | 2014-03-12 | 青岛海信电器股份有限公司 | Internal storage management method and device |
CN103645955A (en) * | 2013-12-16 | 2014-03-19 | 百度在线网络技术(北京)有限公司 | Running management method and device for application program |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4938530B2 (en) * | 2007-04-06 | 2012-05-23 | 株式会社エヌ・ティ・ティ・ドコモ | Mobile communication terminal and program |
CN102306095B (en) * | 2011-07-21 | 2017-04-05 | 宇龙计算机通信科技(深圳)有限公司 | Application management method and terminal |
US8997104B2 (en) * | 2012-06-29 | 2015-03-31 | Time Warner Cable Enterprises Llc | System and method for managing performance of a mobile device |
CN103139643B (en) * | 2013-01-30 | 2016-02-03 | 深圳市同洲电子股份有限公司 | A kind of starting method of application program and digital TV terminal |
CN103838630A (en) * | 2014-03-03 | 2014-06-04 | 联想(北京)有限公司 | Information processing method, system and electronic equipment |
-
2014
- 2014-12-31 CN CN201410856339.1A patent/CN104572300B/en active Active
- 2014-12-31 CN CN201711131054.1A patent/CN107908462B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102135913A (en) * | 2011-03-18 | 2011-07-27 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for responding application |
CN103631661A (en) * | 2013-11-27 | 2014-03-12 | 青岛海信电器股份有限公司 | Internal storage management method and device |
CN103645955A (en) * | 2013-12-16 | 2014-03-19 | 百度在线网络技术(北京)有限公司 | Running management method and device for application program |
Also Published As
Publication number | Publication date |
---|---|
CN107908462A (en) | 2018-04-13 |
CN104572300B (en) | 2017-11-24 |
CN104572300A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9881614B1 (en) | Method and system for real-time summary generation of conversation | |
US20150334118A1 (en) | Method and apparatus for clearing notification icon, and storage medium | |
CN106776038B (en) | Hot application resource allocation method and mobile terminal | |
CN106022101B (en) | application management method and terminal | |
KR20170037962A (en) | Adaptive notifications on a screen | |
WO2017113821A1 (en) | Method and apparatus for operating smart phone and smart phone | |
US20140019643A1 (en) | Smart scheduled sync method for sync applications | |
CN108984245B (en) | Page switching method and system based on single-view controller | |
WO2016058322A1 (en) | Smart power-saving method and device, and terminal | |
WO2017032066A1 (en) | Contact management method and mobile terminal | |
CN104754563A (en) | Wireless hotspot access sharing method, mobile terminals and system | |
WO2017032038A1 (en) | Alarm clock setting method and terminal | |
CN104683591A (en) | Message disturbance-free method based on mobile terminal and mobile terminal using method | |
CN108121641B (en) | State information display method and related equipment | |
CN104618568A (en) | Method and device for adjusting terminal profiles | |
US20150109210A1 (en) | Control method, and input device of touch screen terminal | |
CN107908462B (en) | Method for controlling application operation, mobile terminal equipment and related medium product | |
CN110336733A (en) | A kind of method and apparatus that expression packet is presented | |
US20140115496A1 (en) | Method and Apparatus for Switching Among Multiple Message Reply Windows | |
CN107770845A (en) | The management method and device of mobile focus, terminal and storage medium | |
CN111163152A (en) | Information pushing method and device | |
CN105511273B (en) | A kind of client operation management method and client | |
CN109257806B (en) | Carrier aggregation mode setting method for communication terminal, communication terminal and medium | |
CN104572265A (en) | Application running control method and mobile terminal equipment | |
CN104572264A (en) | Application running control method and mobile terminal equipment |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |