CN105260117B - Application program control method and device - Google Patents

Application program control method and device Download PDF

Info

Publication number
CN105260117B
CN105260117B CN201510642851.0A CN201510642851A CN105260117B CN 105260117 B CN105260117 B CN 105260117B CN 201510642851 A CN201510642851 A CN 201510642851A CN 105260117 B CN105260117 B CN 105260117B
Authority
CN
China
Prior art keywords
memory occupation
memory
application program
threshold
gesture operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510642851.0A
Other languages
Chinese (zh)
Other versions
CN105260117A (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.)
Xiaomi Inc
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Xiaomi Inc
Beijing Xiaomi Mobile Software 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 Xiaomi Inc, Beijing Xiaomi Mobile Software Co Ltd filed Critical Xiaomi Inc
Priority to CN201510642851.0A priority Critical patent/CN105260117B/en
Publication of CN105260117A publication Critical patent/CN105260117A/en
Application granted granted Critical
Publication of CN105260117B publication Critical patent/CN105260117B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to an application program control method and device, and belongs to the technical field of computers. The method comprises the following steps: the method comprises the steps of obtaining gesture operation input on a touch screen, obtaining a memory occupation threshold corresponding to the gesture operation, and closing each application program with the current memory occupation amount larger than the memory occupation threshold, so that the terminal can close the application programs with the memory occupation amount larger than the memory occupation threshold corresponding to the gesture operation, the problem that when the terminal simultaneously operates a plurality of application programs, the application programs are blocked due to insufficient memory is solved, and the effect of improving the smoothness of the operation of the application programs is achieved.

Description

Application program control method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling an application program.
Background
When the terminal runs a plurality of application programs simultaneously, the application programs are blocked due to insufficient memory.
Disclosure of Invention
In order to solve the problems in the related art, the present disclosure provides an application control method and apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided an application control method, the method including:
acquiring gesture operation input on a touch screen;
acquiring a memory occupation threshold corresponding to the gesture operation;
and closing each application program with the current memory occupation amount larger than the memory occupation threshold value.
Optionally, the method further includes:
reading the memory occupation amount of each running application program;
setting icons of corresponding application programs according to the memory occupation amount;
and displaying each icon obtained after the setting.
Optionally, the setting of the icon of the corresponding application program according to each memory occupation amount includes:
for each memory occupation amount, detecting whether the memory occupation amount is larger than a first threshold value;
when the memory occupation amount is larger than the first threshold value, superposing a preset picture on an icon of a corresponding application program, wherein the size of the preset picture is in positive correlation with the memory occupation amount.
Optionally, the superimposing a predetermined screen on the icon of the corresponding application program includes:
when the memory occupation amount is the memory occupation percentage, multiplying the memory occupation percentage by the height of the icon to obtain the height of the picture, and determining the width of the icon as the width of the picture;
generating the predetermined picture with the picture height and the picture width;
and superposing the preset picture on the icon.
Optionally, the generating the predetermined picture by the picture height and the picture width includes:
determining a memory occupation threshold corresponding to the memory occupation percentage in at least one preset memory occupation threshold;
acquiring a display effect corresponding to the memory occupation threshold;
and generating the preset picture according to the picture height, the picture width and the display effect.
Optionally, the method further includes:
and when the gesture operation acts on an icon of an application program, opening the application program.
Optionally, the acquiring the gesture operation input on the touch screen includes:
opening an application program, and acquiring the input gesture operation on an interface of the application program.
Optionally, the method further includes:
when the response operation of the application program comprises the gesture operation, reading the total memory occupation amount of all running application programs;
detecting whether the total memory occupancy is greater than a second threshold;
when the total memory occupation amount is larger than the second threshold value, triggering and executing the step of acquiring the memory occupation threshold value corresponding to the gesture operation;
and when the total memory occupation amount is less than or equal to the second threshold value, controlling the application program to respond to the gesture operation.
According to a second aspect of the embodiments of the present disclosure, there is provided an application control method, the method including:
displaying icons of all the application programs, wherein the icons are used for indicating the memory occupation amount of the corresponding application programs;
acquiring gesture operation input on a touch screen;
determining at least one icon acted on by the gesture operation;
and closing the application program corresponding to the at least one icon.
According to a third aspect of the embodiments of the present disclosure, there is provided an application control apparatus, the apparatus including:
the gesture acquisition module is configured to acquire gesture operation input on the touch screen;
a threshold acquisition module configured to acquire a memory occupation threshold corresponding to the gesture operation acquired by the gesture acquisition module;
and the program closing module is configured to close each application program of which the current memory occupation amount is greater than the memory occupation threshold value acquired by the threshold acquisition module.
Optionally, the apparatus further comprises:
the first reading module is configured to read the memory occupation amount of each running application program;
the icon setting module is configured to set icons of corresponding application programs according to the memory occupation amount read by the first reading module;
and the icon display module is configured to display each icon obtained after the icon setting module is set.
Optionally, the icon setting module includes:
the memory detection submodule is configured to detect whether the memory occupation amount is larger than a first threshold value or not for each memory occupation amount;
and the picture superposition submodule is configured to superpose a preset picture on the icon of the corresponding application program when the memory detection submodule detects that the memory occupancy is greater than the first threshold, and the size of the preset picture is in positive correlation with the memory occupancy.
Optionally, the picture stacking sub-module includes:
the picture determining submodule is configured to multiply the memory occupancy percentage by the height of the icon to obtain a picture height and determine the width of the icon as a picture width when the memory occupancy is the memory occupancy percentage;
a first generation sub-module configured to generate the predetermined picture at the picture height and the picture width determined by the picture determination sub-module;
a superimposition execution sub-module configured to superimpose the predetermined screen generated by the first generation sub-module on the icon.
Optionally, the first generation sub-module includes:
the threshold value determining submodule is configured to determine a memory occupation threshold value corresponding to the memory occupation percentage in at least one preset memory occupation threshold value;
the effect obtaining submodule is configured to obtain a display effect corresponding to the memory occupation threshold determined by the threshold determining submodule;
a second generation submodule configured to generate the predetermined screen according to the screen height, the screen width, and the display effect acquired by the effect acquisition submodule.
Optionally, the apparatus further comprises:
and the program starting module is configured to open the application program when the gesture operation acts on the icon of the application program.
Optionally, the gesture obtaining module is further configured to:
opening an application program, and acquiring the input gesture operation on an interface of the application program.
Optionally, the apparatus further comprises:
the second reading module is configured to read the total memory occupation amount of all running application programs when the response operation of the application programs comprises the gesture operation;
a threshold detection module configured to detect whether the total memory occupied amount read by the second reading module is greater than a second threshold;
the skip triggering module is configured to trigger the gesture obtaining module to execute the operation of obtaining the memory occupation threshold corresponding to the gesture operation when the threshold detecting module detects that the total memory occupation amount is larger than the second threshold;
and the gesture response module is configured to control the application program to respond to the gesture operation when the threshold detection module detects that the total memory occupancy amount is less than or equal to the second threshold.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an application control apparatus, the apparatus including:
the icon display module is configured to display icons of all the application programs, and the icons are used for indicating the memory occupation amount of the corresponding application programs;
the gesture acquisition module is configured to acquire gesture operation input on the touch screen;
an operation determination module configured to determine at least one icon on which the gesture operation acquired by the gesture acquisition module acts;
and the program closing module is configured to close the application program corresponding to the at least one icon determined by the operation determination module.
According to a fifth aspect of the embodiments of the present disclosure, there is provided an application control apparatus, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring gesture operation input on a touch screen;
acquiring a memory occupation threshold corresponding to the gesture operation;
and closing each application program with the current memory occupation amount larger than the memory occupation threshold value.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the gesture operation input on the touch screen is obtained, the memory occupation threshold corresponding to the gesture operation is obtained, and each application program with the current memory occupation amount larger than the memory occupation threshold is closed.
In addition, the memory occupation amount of each running application program is read, the icon of the corresponding application program is set according to each memory occupation amount, each icon obtained after setting is displayed, the memory occupation amount of each application program can be displayed through the icon, a user can determine which application programs need to be closed according to the icons, the problem that the user cannot acquire the memory occupation condition of each application program, and therefore the terminal cannot be controlled to select the application programs needing to be closed is solved, and the effect of visually selecting the application programs is achieved.
Moreover, by directly inputting the gesture operation on the interface of the application program, when a user feels a pause in the process of using a certain application program, the user can directly input the gesture operation on the interface of the application program without obtaining the gesture operation on the main interface of the terminal after exiting the interface, so that the problems that the user needs to exit the current application interface and then close other application programs when encountering the pause in the process of using the application program every time are solved, and the effect of saving the operation time is achieved.
In addition, the real purpose of the gesture operation of the user can be obtained by comparing the total memory occupation amount of all the application programs with the second threshold value, the problem that the application programs and the terminal respond to the gesture operation at the same time to cause conflict is solved, and the effect of improving the accuracy of the gesture operation response is achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of application control according to an exemplary embodiment.
Fig. 2A is a flowchart illustrating an application control method according to another exemplary embodiment.
Fig. 2B is a flowchart illustrating superimposing a predetermined screen according to an exemplary embodiment.
Fig. 2C is a flow diagram illustrating the generation of a predetermined screen according to an exemplary embodiment.
FIG. 2D is a display diagram illustrating an icon in accordance with an exemplary embodiment.
FIG. 2E is a close-up diagram illustrating an application according to an example embodiment.
Fig. 3A is a flowchart illustrating an application control method according to another exemplary embodiment.
FIG. 3B is a schematic diagram illustrating a gesture operation, according to an example embodiment.
Fig. 4A is a flowchart illustrating an application control method according to another exemplary embodiment.
FIG. 4B is a diagram illustrating selection of an icon, according to an example embodiment.
FIG. 5 is a block diagram illustrating an application control device according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating an application control apparatus according to another exemplary embodiment.
Fig. 7 is a block diagram illustrating an application control apparatus according to another exemplary embodiment.
Fig. 8 is a block diagram illustrating an application control apparatus according to another exemplary embodiment.
FIG. 9 is a block diagram illustrating an apparatus for application control in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating an application control method applied to a terminal according to an exemplary embodiment, and the application control method includes the following steps, as shown in fig. 1.
In step 101, a gesture operation input on a touch screen is acquired.
In step 102, a memory usage threshold corresponding to the gesture operation is obtained.
In step 103, each application program with the current memory usage amount greater than the memory usage threshold is closed.
In summary, according to the application program control method provided by the disclosure, the gesture operation input on the touch screen is obtained, the memory occupation threshold corresponding to the gesture operation is obtained, and each application program with the current memory occupation amount larger than the memory occupation threshold is closed, the memory occupation threshold corresponding to each gesture operation can be preset, so that the terminal can close the application programs with the memory occupation amount larger than the memory occupation threshold corresponding to the gesture operation, the problem that the application programs are stuck due to insufficient memory when the terminal simultaneously runs a plurality of application programs is solved, and the effect of improving the smoothness of the application program running is achieved.
Fig. 2A is a flowchart illustrating an application control method applied to a terminal according to another exemplary embodiment, and as shown in fig. 2A, the application control method includes the following steps.
In step 201, the memory footprint of each running application is read.
The application program occupies the memory of the system in the running process, and the terminal can acquire the memory occupation amount of each running application program in real time through the system interface. The memory occupation amount may be a numerical value of occupied memory, or a memory occupation percentage obtained by dividing the memory occupied by the application program by the total system memory, which is not limited in this embodiment.
The technology for acquiring the memory occupation of the application program by calling the system interface is mature, and is not described herein.
In step 202, for each memory footprint, it is detected whether the memory footprint is greater than a first threshold.
The first threshold is the memory footprint of the application under normal conditions. The first threshold may be set or modified by a user or a developer, and this embodiment is not limited.
When the certain memory occupation amount is larger than the first threshold value, the application program is indicated to occupy more memories; and when the certain memory occupation amount is less than or equal to the first threshold, the memory occupied by the application program is normal.
For example, the first threshold is 4%, and when the memory occupied by an application program is 6%, it indicates that the application program occupies more memory; when the memory occupied amount of an application program is 2%, the memory occupied by the application program is normal.
In step 203, when the memory occupied amount is greater than the first threshold, a predetermined picture is superimposed on the icon of the corresponding application program, and the size of the predetermined picture has a positive correlation with the memory occupied amount.
In this embodiment, the user may select the application program to close, so that in order to make the user determine which application programs occupy more memory, so that the user can accurately select the application program to be closed, the memory occupied amount of the application program is also represented on the icon of the application program. The user can directly determine the memory occupation amount of the application program through the icon of the application program, so that the problem that the user cannot acquire the memory occupation condition of each application program and cannot control the terminal to select the application program to be closed is solved, and the effect of visually selecting the application program is achieved. In addition, the user does not need to open other memory cleaning programs to acquire the memory occupation amount, so that the memory occupation amount can be intuitively and quickly acquired, and the problem that the memory is occupied when other memory cleaning programs are operated is solved.
When the memory occupancy is embodied on the icon of the application program, one possible implementation manner is to superimpose a predetermined picture on the icon of the application program, wherein the size of the predetermined picture is in positive correlation with the memory occupancy, that is, the larger the memory occupancy of the running application program is, the larger the predetermined picture superimposed on the icon of the application program is; the smaller the memory occupied by the running application program is, the smaller the predetermined screen superimposed on the application program icon is.
Referring to the flowchart of fig. 2B, the process of superimposing a predetermined screen on an icon of a corresponding application includes:
in step 2031, when the memory occupied amount is the memory occupied percentage, multiplying the memory occupied percentage by the height of the icon to obtain the image height, and determining the width of the icon as the image width;
in step 2032, generating a predetermined picture with the picture height and the picture width;
in step 2033, a predetermined screen is superimposed on the icon.
When the memory occupation amount is the memory occupation percentage, the width of the predetermined frame is the width of the icon of the application program, and the height of the predetermined frame is the memory occupation amount. That is, the height of the predetermined screen represents the memory footprint.
After determining the picture height and the picture width, the terminal may generate a predetermined picture, which may be a picture with a predetermined pattern, a shadow picture, a picture with a predetermined color, or the like, and the present embodiment does not limit the picture content.
In practical implementation, because the memory occupation amounts of the application programs are usually concentrated, the sizes of a plurality of preset pictures are relatively similar, and a user may not be able to accurately determine the memory occupation amount of the application programs through the sizes of the preset pictures.
Referring to the flowchart of fig. 2C for generating a predetermined screen, the generating a predetermined screen with a screen height and a screen width includes:
in step 2034, a memory occupation threshold corresponding to the memory occupation percentage is determined in at least one preset memory occupation threshold;
in step 2035, a display effect corresponding to the memory usage threshold is obtained;
in step 2036, a predetermined screen is generated based on the screen height, screen width, and display effect.
When determining the memory occupation threshold corresponding to the memory occupation percentage, the terminal may use the memory occupation threshold as an end point of each interval, determine the interval to which the memory occupation percentage belongs, and determine a larger end point of the interval as the memory occupation threshold corresponding to the memory occupation percentage.
For example, the memory occupation threshold set by the terminal is 4%, 7% and 10%, where 4% represents normal, 7% represents relatively occupied memory, and 10% represents severely occupied memory, the determined intervals are 4% -7%, 7% -10% and 10% -100%, and if the memory occupation percentage of an application program is 6%, the corresponding memory occupation threshold is determined to be 7%; assuming that the memory usage percentage of an application program is 9%, the corresponding memory usage threshold is determined to be 10%. Of course, the memory usage threshold and the corresponding memory usage condition may be set or modified by itself, which is not limited in this embodiment.
In a possible implementation manner, if the display effect is a color of a predetermined picture, different display colors may be set for different memory usage thresholds. In order not to obscure the icon of the application program, the user can accurately recognize the application program according to the icon, and transparency can be set for a predetermined picture. For example, 4% of the corresponding color is set to translucent black, 7% of the corresponding color is set to translucent orange, and 10% of the corresponding color is set to translucent red.
When the preset picture is superposed on the icon, the terminal can set the bottom of the icon to be aligned with the bottom of the preset picture, and the preset picture is superposed; the top of the icon can be aligned with the top of the preset picture, and the preset picture is superposed; the center point of the icon may be overlapped with the center point of the predetermined picture to superimpose the predetermined picture.
In step 204, each icon obtained after the setting is displayed.
The terminal displays the icon on which the predetermined screen is superimposed.
Referring to the display diagram of the icons shown in fig. 2D, the main interface of the terminal displays icons of 16 applications, where 1, 6, 11, and 14 correspond to the interval 4% -7%, 2, 4, and 15 correspond to the interval 7% -10%, 2 and 5 correspond to the interval 10% -100%, and the remaining icons correspond to the interval 0% -4%.
Step 205, acquiring the gesture operation input on the touch screen.
The gesture operation refers to a gesture performed by a user on an interface of the terminal. In this embodiment, the terminal may preset a corresponding relationship between the gesture operation and the memory usage threshold. The gesture operation may be sliding upwards, sliding downwards, circling, hooking, forking, and the like, which is not limited in this embodiment.
For example, the upward sliding corresponds to a memory usage threshold of 4%, the downward sliding corresponds to a memory usage threshold of 7%, the circle corresponds to a memory usage threshold of 10%, and so on, which is not limited in this embodiment.
Because the user usually opens the application program on the main interface of the terminal, in a possible implementation manner, the terminal may first obtain the gesture operation input by the user at a blank position on the main interface; in another possible implementation manner, the terminal may obtain the gesture operation input by the user on the icon of the application program.
When gesture operation input by a user is acquired on an icon of an application program, the user usually indicates that the user wants to open the application program, at this time, the terminal can read a memory record of the application program, find out the maximum memory occupation amount of the application program from the memory record, acquire the remaining memory amount of the system again, and compare the remaining memory amount with the maximum memory occupation amount. Wherein, the memory record is recorded in the using process of the application program.
When the residual memory amount is larger than or equal to the maximum memory occupation amount, directly opening the application program; when the remaining memory amount is smaller than the maximum memory occupation amount, the terminal needs to close part or all of the running application programs. In one implementation mode, the terminal determines the application program used by the user earliest or the application program with the lowest use frequency, and closes the application programs; in another implementation, the terminal closes the application according to the gesture operation, and then step 206 is executed.
In step 206, a memory usage threshold corresponding to the gesture operation is obtained.
After the terminal acquires the gesture operation, the memory occupation threshold corresponding to the gesture operation needs to be searched in the corresponding relation. When the terminal finds the memory occupation threshold corresponding to the gesture operation, step 207 is executed; and when the terminal does not find the memory occupation threshold corresponding to the gesture operation, the gesture operation is not responded.
Step 207, closing each application program whose current memory occupation amount is greater than the memory occupation threshold.
The terminal can read the memory occupation amount of each application program, compare each memory occupation amount with the memory occupation threshold corresponding to the gesture operation, determine each application program with the memory occupation amount larger than the memory occupation threshold, and close the application programs. The terminal can selectively close one type of application program according to the gesture operation input by the user, so that the problem that the terminal cannot select the closed application program is solved, and the effect of improving the accuracy of application program control is achieved.
For example, the downward sliding corresponds to a memory usage threshold of 7%, and when the terminal determines that the gesture operation is the downward sliding, the application program with the memory usage amount larger than 7% is closed.
Referring to the closing schematic diagram of the application program shown in fig. 2E, assuming that the gesture of sliding upward corresponds to the memory occupancy threshold of 4%, when the user makes the gesture of sliding upward on the icon of the application program, the terminal closes all the application programs whose memory occupancy is greater than or equal to 4%.
In step 208, the application is opened when the gesture operation acts on the icon of the application.
This step is an optional step. When the gesture operation acts on the icon of the application program, the terminal can directly open the application program after closing the application program, so that the time wasted by executing the operation of opening the application program after closing the application program by the terminal is saved, and the effect of improving the opening efficiency of the application program is achieved. And the application program is opened after the application program is closed, so that the situation of blocking when the application program is opened can be avoided, and the opening efficiency of the application program is further improved.
In summary, according to the application program control method provided by the disclosure, the gesture operation input on the touch screen is obtained, the memory occupation threshold corresponding to the gesture operation is obtained, and each application program with the current memory occupation amount larger than the memory occupation threshold is closed, the memory occupation threshold corresponding to each gesture operation can be preset, so that the terminal can close the application programs with the memory occupation amount larger than the memory occupation threshold corresponding to the gesture operation, the problem that the application programs are stuck due to insufficient memory when the terminal simultaneously runs a plurality of application programs is solved, and the effect of improving the smoothness of the application program running is achieved.
In addition, the memory occupation amount of each running application program is read, the icon of the corresponding application program is set according to each memory occupation amount, each icon obtained after setting is displayed, the memory occupation amount of each application program can be displayed through the icon, a user can determine which application programs need to be closed according to the icons, the problem that the user cannot acquire the memory occupation condition of each application program, and therefore the terminal cannot be controlled to select the application programs needing to be closed is solved, and the effect of visually selecting the application programs is achieved.
Fig. 3A is a flowchart illustrating an application control method applied to a terminal according to another exemplary embodiment, and as shown in fig. 3A, the application control method includes the following steps.
In step 301, an application program is opened, and an input gesture operation is acquired on an interface of the application program.
When a user feels the phenomenon of blocking in the process of using a certain application program, the gesture operation can be directly input on the interface of the application program, and the terminal acquires the gesture operation. The terminal can directly obtain the gesture operation on the interface of the application program, and does not need to obtain the gesture operation on the main interface of the terminal after exiting the interface, so that the operation time can be saved.
Since the terminal can set a response operation to the application in advance, when the terminal receives the response operation, the application can be controlled to respond to the response operation. For example, when the response operation is a back operation, the terminal control application displays an upper interface. When the response operation is set as a gesture operation input on the interface of the application program, for example, a gesture of sliding upwards is set as a back operation, at this time, when the terminal receives the gesture operation, it is further required to determine whether to control the application program to respond to the response operation, and at this time, step 302 is executed; when the response operation is not set as the gesture operation input on the interface of the application program, step 305 is executed at this time.
In step 302, when the response operation of the application program includes a gesture operation, the total memory occupied amount of all the running application programs is read.
The terminal can read the memory occupation amount of all running application programs, and the total memory occupation amount is obtained by adding all the memory occupation amounts.
For example, a certain application program opened by a user is a player, upward sliding input in a video area of the player corresponds to volume adjustment, and if a corresponding relationship between a memory occupation threshold and upward sliding is also stored in the terminal, the terminal reads the total memory occupation amount occupied by all running application programs.
In step 303, it is detected whether the total memory footprint is greater than a second threshold.
Because the total memory occupation amount plus the memory occupation amount of the application program needs to be less than or equal to the total memory of the system, when the total memory occupation amount is too large, the memory reserved for the application program is less, and the phenomenon of blocking during the operation of the application program can be caused.
In step 304, when the total memory usage is greater than a second threshold, step 305 is triggered.
In step 305, a memory usage threshold corresponding to the gesture operation is obtained.
After the terminal acquires the gesture operation, the memory occupation threshold corresponding to the gesture operation needs to be searched in the corresponding relation. When the terminal finds the memory occupation threshold corresponding to the gesture operation, executing step 306; and when the terminal does not find the memory occupation threshold corresponding to the gesture operation, the gesture operation is not responded.
In step 306, each application program whose current memory occupation amount is greater than the memory occupation threshold is closed, and the process is ended.
The terminal can read the memory occupation amount of each application program, compare each memory occupation amount with the memory occupation threshold corresponding to the gesture operation, determine each application program with the memory occupation amount larger than the memory occupation threshold, and close the application programs. The terminal can selectively close one type of application program according to the gesture operation input by the user, so that the problem that the terminal cannot select the closed application program is solved, and the effect of improving the accuracy of application program control is achieved.
For example, the downward sliding corresponds to a memory usage threshold of 7%, and when the terminal determines that the gesture operation is the downward sliding, the application program with the memory usage amount larger than 7% is closed.
In step 307, when the total memory occupancy amount is less than or equal to the second threshold, the control application responds to the gesture operation.
And when the total memory occupation amount is less than or equal to a second threshold value, the system is indicated to reserve enough memory for the current application program to run. At this time, the terminal determines that the gesture operation is a response operation, and the control application responds to the gesture operation.
For example, a user inputs a gesture of sliding upwards on an interface of the player, the terminal determines that enough memory is reserved for operating the player, the terminal recognizes the gesture of sliding upwards as adjusting the volume, and controls the application program to adjust the volume.
Referring to the schematic diagram of the gesture operation shown in fig. 3B, the interface of the application includes a plurality of sessions, and the gesture of sliding upward may display the sessions arranged before "white cloud," or may correspond to a memory usage threshold of 4%. When the terminal acquires the upward sliding gesture, the terminal detects whether the total memory occupation amount of all running application programs is larger than a second threshold value, and if the total memory occupation amount is larger than the second threshold value, the terminal closes all application programs with the memory occupation amount larger than or equal to 4%; and if the total memory occupation amount is less than or equal to a second threshold value, displaying the sessions arranged before the 'white cloud' by the terminal.
In summary, according to the application program control method provided by the disclosure, the gesture operation input on the touch screen is obtained, the memory occupation threshold corresponding to the gesture operation is obtained, and each application program with the current memory occupation amount larger than the memory occupation threshold is closed, the memory occupation threshold corresponding to each gesture operation can be preset, so that the terminal can close the application programs with the memory occupation amount larger than the memory occupation threshold corresponding to the gesture operation, the problem that the application programs are stuck due to insufficient memory when the terminal simultaneously runs a plurality of application programs is solved, and the effect of improving the smoothness of the application program running is achieved.
In addition, by directly inputting the gesture operation on the interface of the application program, when a user feels a pause in the process of using a certain application program, the user can directly input the gesture operation on the interface of the application program without obtaining the gesture operation on the main interface of the terminal after exiting the interface, so that the problems that the user needs to exit the current application interface and then close other application programs when encountering the pause in the process of using the application program every time are solved, and the effect of saving the operation time is achieved.
In addition, the real purpose of the gesture operation of the user can be obtained by comparing the total memory occupation amount of all the application programs with the second threshold value, the problem that the application programs and the terminal respond to the gesture operation at the same time to cause conflict is solved, and the effect of improving the accuracy of the gesture operation response is achieved.
Fig. 4A is a flowchart illustrating an application control method applied to a terminal according to another exemplary embodiment, and as shown in fig. 4A, the application control method includes the following steps.
In step 401, an icon of each application program is displayed, where the icon is used to indicate the memory usage amount of the corresponding application program.
The process of displaying the icons of the application programs is described in step 201 and step 204, and is not described herein again.
In step 402, gesture operations input on the touch screen are acquired.
The gesture operation refers to a gesture performed by a user on an interface of the terminal. In this embodiment, the terminal may preset a corresponding relationship between the gesture operation and the memory usage threshold. The gesture operation may be sliding upwards, sliding downwards, circling, hooking, forking, and the like, which is not limited in this embodiment.
In step 403, at least one icon on which the gesture operation acts is determined.
In this embodiment, the gesture operation is used to select an icon, and in a possible implementation manner, the icon on which the gesture operation acts may be selected. During implementation, the terminal acquires a path through which the gesture operation passes, and then determines at least one icon located on the path as at least one icon acted on by the gesture operation.
Optionally, when a gesture operation is performed on an icon, the icon may be marked so that the user can determine which icons are selected and which icons are not selected. Referring to the schematic diagram of icon selection shown in fig. 4B, if a user triggers a gesture operation of sliding up on an icon of an application program, and the gesture operation of sliding up acts on 14, 10, 6 and 2 in sequence, a mark of "√" can be displayed at the upper right corner of 14, 10, 6 and 2, indicating that 14, 10, 6 and 2 are selected.
Optionally, the user may also modify the selected icon, for example, when the user clicks the selected icon, the terminal may modify the icon to be unselected and cancel the previous mark.
Optionally, the terminal may further display a cancelled or determined control after receiving the gesture operation, and when the terminal receives a signal that the user triggers the determined control, perform step 404; when the terminal receives a signal that the user triggers the cancel control, step 402 is executed.
In step 404, the application program corresponding to the at least one icon is closed.
In summary, in the device control method provided in this embodiment, icons of each application program are displayed, where the icons are used to indicate the memory usage amount of the corresponding application program; acquiring gesture operation input on a touch screen; determining at least one icon acted on by the gesture operation; the application programs corresponding to at least one icon are closed, the memory occupation amount of each application program can be displayed through the icon, a user can determine which application programs need to be closed according to the icon, and therefore the application programs are selected by acting gesture operation on the icons of the application programs, the problem that when a plurality of application programs are simultaneously operated by the terminal, the application programs are blocked due to insufficient memory is solved, and the effect of improving the smoothness of operation of the application programs is achieved.
Fig. 5 is a block diagram illustrating an application control apparatus applied to a terminal according to an exemplary embodiment, and as shown in fig. 5, the application control apparatus includes: a gesture acquisition module 510, a threshold acquisition module 520, and a program shutdown module 530.
The gesture obtaining module 510 is configured to obtain a gesture operation input on the touch screen;
the threshold obtaining module 520 is configured to obtain a memory occupation threshold corresponding to the gesture operation obtained by the gesture obtaining module 510;
the program closing module 530 is configured to close each application program whose current memory usage amount is greater than the memory usage threshold acquired by the threshold acquisition module 520.
In summary, according to the application program control device provided by the disclosure, the gesture operation input on the touch screen is obtained, the memory occupation threshold corresponding to the gesture operation is obtained, and each application program with the current memory occupation amount larger than the memory occupation threshold is closed, the memory occupation threshold corresponding to each gesture operation can be preset, so that the terminal can close the application programs with the memory occupation amount larger than the memory occupation threshold corresponding to the gesture operation, the problem that the application programs are stuck due to insufficient memory when the terminal simultaneously runs a plurality of application programs is solved, and the effect of improving the smoothness of the application program running is achieved.
Fig. 6 is a block diagram illustrating an application control apparatus applied to a terminal according to an exemplary embodiment, and as shown in fig. 6, the application control apparatus includes: a gesture acquisition module 610, a threshold acquisition module 620, and a program shutdown module 630.
The gesture obtaining module 610 is configured to obtain a gesture operation input on the touch screen;
the threshold obtaining module 620 is configured to obtain a memory occupation threshold corresponding to the gesture operation obtained by the gesture obtaining module 610;
the program closing module 630 is configured to close each application program whose current memory usage amount is greater than the memory usage threshold acquired by the threshold acquisition module 620.
Optionally, the application control apparatus further includes: a first reading module 640, an icon setting module 650, and an icon display module 660.
The first reading module 640 is configured to read the memory occupied amount of each running application program;
the icon setting module 650 is configured to set an icon of a corresponding application program according to each memory occupation amount read by the first reading module 640;
the icon display module 660 is configured to display each icon set by the icon setting module 650.
Optionally, the icon setting module 650 includes: a memory detection sub-module 651 and a picture superposition sub-module 652.
The memory detection submodule 651 is configured to detect, for each memory footprint, whether the memory footprint is greater than a first threshold;
the image overlaying submodule 652 is configured to overlay a predetermined image on the icon of the corresponding application program when the memory detection submodule 651 detects that the memory occupied amount is greater than the first threshold, and the size of the predetermined image has a positive correlation with the memory occupied amount.
Optionally, the frame overlay sub-module 652 includes: a picture determining sub-module 653, a first generating sub-module 654, and an overlap execution sub-module 655.
The screen determining sub-module 653 is configured to, when the memory usage is the memory usage percentage, multiply the memory usage percentage by the height of the icon to obtain the screen height, and determine the width of the icon as the screen width;
the first generation submodule 654 configured to generate a predetermined screen at the screen height and the screen width determined by the screen determination submodule 653;
the superimposition executing sub-module 655 is configured to superimpose the predetermined screen generated by the first generating sub-module 654 on the icon.
Optionally, the first generating submodule 654 includes: a threshold determination submodule 656, an effect obtaining submodule 657 and a second generation submodule 658.
The threshold determination submodule 656, configured to determine, in at least one preset memory usage threshold, a memory usage threshold corresponding to a memory usage percentage;
the effect obtaining sub-module 657 is configured to obtain a display effect corresponding to the memory usage threshold determined by the threshold determining sub-module 656;
the second generating sub-module 658 is configured to generate a predetermined picture according to the picture height, the picture width, and the display effect acquired by the effect acquiring sub-module 657.
Optionally, the application control apparatus further includes: the program starts module 670.
The program opening module 670 is configured to open the application program when the gesture operation acts on the icon of the application program.
In summary, according to the application program control device provided by the disclosure, the gesture operation input on the touch screen is obtained, the memory occupation threshold corresponding to the gesture operation is obtained, and each application program with the current memory occupation amount larger than the memory occupation threshold is closed, the memory occupation threshold corresponding to each gesture operation can be preset, so that the terminal can close the application programs with the memory occupation amount larger than the memory occupation threshold corresponding to the gesture operation, the problem that the application programs are stuck due to insufficient memory when the terminal simultaneously runs a plurality of application programs is solved, and the effect of improving the smoothness of the application program running is achieved.
In addition, the memory occupation amount of each running application program is read, the icon of the corresponding application program is set according to each memory occupation amount, each icon obtained after setting is displayed, the memory occupation amount of each application program can be displayed through the icon, a user can determine which application programs need to be closed according to the icons, the problem that the user cannot acquire the memory occupation condition of each application program, and therefore the terminal cannot be controlled to select the application programs needing to be closed is solved, and the effect of visually selecting the application programs is achieved.
Fig. 7 is a block diagram illustrating an application control apparatus applied to a terminal according to another exemplary embodiment, and as shown in fig. 7, the application control apparatus includes: a gesture acquisition module 710, a threshold acquisition module 720, and a program shutdown module 730.
The gesture obtaining module 710 is configured to obtain a gesture operation input on the touch screen;
the threshold obtaining module 720 is configured to obtain a memory occupation threshold corresponding to the gesture operation obtained by the gesture obtaining module 710;
the program closing module 730 is configured to close each application program whose current memory usage amount is greater than the memory usage threshold acquired by the threshold acquisition module 720.
Optionally, the gesture obtaining module 710 is further configured to:
and opening the application program, and acquiring the input gesture operation on the interface of the application program.
Optionally, the application control apparatus further includes: a second reading module 740, a threshold detection module 750, a jump triggering module 760, a gesture response module 770.
The second reading module 740 is configured to, when the response operation of the application program includes a gesture operation, read the total memory occupied amount of all the running application programs;
the threshold detection module 750 is configured to detect whether the total memory usage amount read by the second reading module 740 is greater than a second threshold;
the jump triggering module 760 is configured to, when the threshold detection module 750 detects that the total memory occupied amount is greater than the second threshold, trigger the gesture obtaining module 710 to execute an operation of obtaining a memory occupied threshold corresponding to the gesture operation;
the gesture response module 770 is configured to control the application to respond to the gesture operation when the threshold detection module 750 detects that the total memory occupancy amount is less than or equal to the second threshold.
In summary, according to the application program control device provided by the disclosure, the gesture operation input on the touch screen is obtained, the memory occupation threshold corresponding to the gesture operation is obtained, and each application program with the current memory occupation amount larger than the memory occupation threshold is closed, the memory occupation threshold corresponding to each gesture operation can be preset, so that the terminal can close the application programs with the memory occupation amount larger than the memory occupation threshold corresponding to the gesture operation, the problem that the application programs are stuck due to insufficient memory when the terminal simultaneously runs a plurality of application programs is solved, and the effect of improving the smoothness of the application program running is achieved.
In addition, by directly inputting the gesture operation on the interface of the application program, when a user feels a pause in the process of using a certain application program, the user can directly input the gesture operation on the interface of the application program without obtaining the gesture operation on the main interface of the terminal after exiting the interface, so that the problems that the user needs to exit the current application interface and then close other application programs when encountering the pause in the process of using the application program every time are solved, and the effect of saving the operation time is achieved.
In addition, the real purpose of the gesture operation of the user can be obtained by comparing the total memory occupation amount of all the application programs with the second threshold value, the problem that the application programs and the terminal respond to the gesture operation at the same time to cause conflict is solved, and the effect of improving the accuracy of the gesture operation response is achieved.
Fig. 8 is a block diagram illustrating an application control apparatus applied to a terminal according to another exemplary embodiment, and as shown in fig. 8, the application control apparatus includes: an icon display module 810, a gesture acquisition module 820, an operation determination module 830, and a program shutdown module 840.
The icon display module 810 is configured to display an icon of each application program, where the icon is used to indicate the memory occupancy amount of the corresponding application program;
the gesture obtaining module 820 is configured to obtain a gesture operation input on the touch screen;
the operation determination module 830 configured to determine at least one icon on which the gesture operation acquired by the gesture acquisition module 820 acts;
the program closing module 840 is configured to close the application program corresponding to the at least one icon determined by the operation determining module 830.
In summary, the device control apparatus provided in this embodiment displays an icon of each application, where the icon is used to indicate the memory usage amount of the corresponding application; acquiring gesture operation input on a touch screen; determining at least one icon acted on by the gesture operation; the application programs corresponding to at least one icon are closed, the memory occupation amount of each application program can be displayed through the icon, a user can determine which application programs need to be closed according to the icon, and therefore the application programs are selected by acting gesture operation on the icons of the application programs, the problem that when a plurality of application programs are simultaneously operated by the terminal, the application programs are blocked due to insufficient memory is solved, and the effect of improving the smoothness of operation of the application programs is achieved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An exemplary embodiment of the present disclosure provides an application control apparatus capable of implementing an application control method provided by the present disclosure, the application control apparatus including: a processor, a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring gesture operation input on a touch screen;
acquiring a memory occupation threshold corresponding to the gesture operation;
and closing each application program with the current memory occupation amount larger than the memory occupation threshold value.
Fig. 9 is a block diagram illustrating an apparatus 900 for application control in accordance with an example embodiment. For example, the apparatus 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 9, apparatus 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing components 902 may include one or more processors 918 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the apparatus 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 906 provides power to the various components of the device 900. The power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
The multimedia component 908 includes a screen that provides an output interface between the device 900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, sensor assembly 914 may detect an open/closed state of device 900, the relative positioning of components, such as a display and keypad of device 900, the change in position of device 900 or a component of device 900, the presence or absence of user contact with device 900, the orientation or acceleration/deceleration of device 900, and the change in temperature of device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 918 of the device 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. An application control method, comprising:
acquiring gesture operation input on a touch screen;
acquiring a memory occupation threshold corresponding to the gesture operation, wherein the memory occupation threshold corresponding to the gesture operation is obtained by searching a corresponding relation between the gesture operation and the memory occupation threshold;
closing each application program with the current memory occupation amount larger than the memory occupation threshold value;
and when the gesture operation acts on an icon of an application program, opening the application program.
2. The method of claim 1, further comprising:
reading the memory occupation amount of each running application program;
setting icons of corresponding application programs according to the memory occupation amount;
and displaying each icon obtained after the setting.
3. The method according to claim 2, wherein the setting the icon of the corresponding application according to each memory footprint comprises:
for each memory occupation amount, detecting whether the memory occupation amount is larger than a first threshold value;
when the memory occupation amount is larger than the first threshold value, superposing a preset picture on an icon of a corresponding application program, wherein the size of the preset picture is in positive correlation with the memory occupation amount.
4. The method according to claim 3, wherein the superimposing a predetermined screen on the icon of the corresponding application program comprises:
when the memory occupation amount is the memory occupation percentage, multiplying the memory occupation percentage by the height of the icon to obtain the height of the picture, and determining the width of the icon as the width of the picture;
generating the predetermined picture with the picture height and the picture width;
and superposing the preset picture on the icon.
5. The method of claim 4, wherein said generating the predetermined picture at the picture height and the picture width comprises:
determining a memory occupation threshold corresponding to the memory occupation percentage in at least one preset memory occupation threshold;
acquiring a display effect corresponding to the memory occupation threshold;
and generating the preset picture according to the picture height, the picture width and the display effect.
6. The method according to claim 1, wherein the gesture operation of acquiring the input on the touch screen comprises:
opening an application program, and acquiring the input gesture operation on an interface of the application program.
7. The method of claim 6, further comprising:
when the response operation of the application program comprises the gesture operation, reading the total memory occupation amount of all running application programs;
detecting whether the total memory occupancy is greater than a second threshold;
when the total memory occupation amount is larger than the second threshold value, triggering and executing the step of acquiring the memory occupation threshold value corresponding to the gesture operation;
and when the total memory occupation amount is less than or equal to the second threshold value, controlling the application program to respond to the gesture operation.
8. An application control apparatus, comprising:
the gesture acquisition module is configured to acquire gesture operation input on the touch screen;
a threshold acquisition module configured to acquire a memory occupation threshold corresponding to the gesture operation acquired by the gesture acquisition module, where the memory occupation threshold corresponding to the gesture operation is obtained by searching a corresponding relationship between the gesture operation and the memory occupation threshold;
a program closing module configured to close each application program whose current memory occupation amount is greater than the memory occupation threshold acquired by the threshold acquisition module;
and the program starting module is configured to open the application program when the gesture operation acts on the icon of the application program.
9. The apparatus of claim 8, further comprising:
the first reading module is configured to read the memory occupation amount of each running application program;
the icon setting module is configured to set icons of corresponding application programs according to the memory occupation amount read by the first reading module;
and the icon display module is configured to display each icon obtained after the icon setting module is set.
10. The apparatus of claim 9, wherein the icon setting module comprises:
the memory detection submodule is configured to detect whether the memory occupation amount is larger than a first threshold value or not for each memory occupation amount;
and the picture superposition submodule is configured to superpose a preset picture on the icon of the corresponding application program when the memory detection submodule detects that the memory occupancy is greater than the first threshold, and the size of the preset picture is in positive correlation with the memory occupancy.
11. The apparatus of claim 10, wherein the frame overlay sub-module comprises:
the picture determining submodule is configured to multiply the memory occupancy percentage by the height of the icon to obtain a picture height and determine the width of the icon as a picture width when the memory occupancy is the memory occupancy percentage;
a first generation sub-module configured to generate the predetermined picture at the picture height and the picture width determined by the picture determination sub-module;
a superimposition execution sub-module configured to superimpose the predetermined screen generated by the first generation sub-module on the icon.
12. The apparatus of claim 11, wherein the first generation submodule comprises:
the threshold value determining submodule is configured to determine a memory occupation threshold value corresponding to the memory occupation percentage in at least one preset memory occupation threshold value;
the effect obtaining submodule is configured to obtain a display effect corresponding to the memory occupation threshold determined by the threshold determining submodule;
a second generation submodule configured to generate the predetermined screen according to the screen height, the screen width, and the display effect acquired by the effect acquisition submodule.
13. The apparatus of claim 8, wherein the gesture acquisition module is further configured to:
opening an application program, and acquiring the input gesture operation on an interface of the application program.
14. The apparatus of claim 13, further comprising:
the second reading module is configured to read the total memory occupation amount of all running application programs when the response operation of the application programs comprises the gesture operation;
a threshold detection module configured to detect whether the total memory occupied amount read by the second reading module is greater than a second threshold;
the skip triggering module is configured to trigger the gesture obtaining module to execute the operation of obtaining the memory occupation threshold corresponding to the gesture operation when the threshold detecting module detects that the total memory occupation amount is larger than the second threshold;
and the gesture response module is configured to control the application program to respond to the gesture operation when the threshold detection module detects that the total memory occupancy amount is less than or equal to the second threshold.
15. An application control apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring gesture operation input on a touch screen;
acquiring a memory occupation threshold corresponding to the gesture operation, wherein the memory occupation threshold corresponding to the gesture operation is obtained by searching a corresponding relation between the gesture operation and the memory occupation threshold;
closing each application program with the current memory occupation amount larger than the memory occupation threshold value;
and when the gesture operation acts on an icon of an application program, opening the application program.
CN201510642851.0A 2015-09-30 2015-09-30 Application program control method and device Active CN105260117B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510642851.0A CN105260117B (en) 2015-09-30 2015-09-30 Application program control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510642851.0A CN105260117B (en) 2015-09-30 2015-09-30 Application program control method and device

Publications (2)

Publication Number Publication Date
CN105260117A CN105260117A (en) 2016-01-20
CN105260117B true CN105260117B (en) 2020-11-10

Family

ID=55099826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510642851.0A Active CN105260117B (en) 2015-09-30 2015-09-30 Application program control method and device

Country Status (1)

Country Link
CN (1) CN105260117B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824631A (en) * 2016-03-16 2016-08-03 深圳市金立通信设备有限公司 Control method of application program and terminal
CN106055534A (en) * 2016-05-27 2016-10-26 珠海市魅族科技有限公司 Operation canceling method and operation canceling device
CN106095048B (en) * 2016-05-31 2019-02-12 Oppo广东移动通信有限公司 A kind of method for closing and device of function
CN106095412B (en) * 2016-05-31 2019-07-16 Oppo广东移动通信有限公司 A kind of method for closing and device of application program
CN106095054B (en) * 2016-05-31 2019-02-12 Oppo广东移动通信有限公司 A kind of method for closing and device of application program
CN106020907B (en) * 2016-05-31 2019-12-03 Oppo广东移动通信有限公司 A kind of method for closing and device of application program
CN106055365B (en) * 2016-05-31 2019-10-25 Oppo广东移动通信有限公司 A kind of closing application program method and apparatus
CN106095487B (en) * 2016-05-31 2019-07-16 Oppo广东移动通信有限公司 A kind of method for closing and device of application program
CN106126337A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 A kind of EMS memory management process and terminal unit
CN106383627A (en) * 2016-08-26 2017-02-08 北京小米移动软件有限公司 Information displaying method and apparatus
CN106550128A (en) * 2016-10-31 2017-03-29 努比亚技术有限公司 A kind of EMS memory management process and terminal
CN106598644B (en) * 2016-11-10 2021-03-23 Tcl科技集团股份有限公司 Memory optimization method and system for terminal equipment
CN106776041B (en) * 2016-12-30 2020-01-14 Oppo广东移动通信有限公司 Data processing method and device
CN107229500A (en) * 2017-06-26 2017-10-03 珠海市魅族科技有限公司 application processing method, device, terminal and storage medium
CN107621983A (en) * 2017-09-25 2018-01-23 维沃移动通信有限公司 A kind of memory space reminding method and mobile terminal
CN109240875B (en) * 2018-07-12 2022-05-03 北京百度网讯科技有限公司 Canton analysis method and system
CN109753316A (en) * 2018-11-22 2019-05-14 惠州Tcl移动通信有限公司 Intelligent terminal and its control method, the device with store function
CN109857615B (en) * 2018-12-29 2022-07-19 奇安信科技集团股份有限公司 Method and device for detecting memory leakage

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102089731A (en) * 2008-07-15 2011-06-08 三美电机株式会社 Mobile device, cell pack, semiconductor device, display control method, and display control program
CN102750217A (en) * 2012-05-30 2012-10-24 宇龙计算机通信科技(深圳)有限公司 Method and device for displaying application program icons and terminal device
CN103176700A (en) * 2013-03-22 2013-06-26 广东欧珀移动通信有限公司 Method and terminal for quickly displaying status information of application program
CN104077208A (en) * 2014-06-23 2014-10-01 小米科技有限责任公司 Application program icon display method and apparatus
CN104298612A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for cleaning memory in mobile terminal and mobile terminal
CN104714895A (en) * 2015-03-23 2015-06-17 努比亚技术有限公司 Mobile terminal and method and device for increasing running speed of mobile terminal
CN104793885A (en) * 2015-04-23 2015-07-22 努比亚技术有限公司 Mobile terminal and memory cleaning control method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101453519B1 (en) * 2011-08-31 2014-10-27 주식회사 케이티 Mobile terminal and Method for providing user interface thereof
CN102880386A (en) * 2012-08-30 2013-01-16 广东欧珀移动通信有限公司 Method and system for starting and closing application program of mobile terminal
CN103106002A (en) * 2013-01-28 2013-05-15 广东欧珀移动通信有限公司 Method of fast closing background application program and touch type mobile terminal thereof
CN103220427A (en) * 2013-04-16 2013-07-24 广东欧珀移动通信有限公司 Mobile phone background program cleaning method and mobile phone

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102089731A (en) * 2008-07-15 2011-06-08 三美电机株式会社 Mobile device, cell pack, semiconductor device, display control method, and display control program
CN102750217A (en) * 2012-05-30 2012-10-24 宇龙计算机通信科技(深圳)有限公司 Method and device for displaying application program icons and terminal device
CN103176700A (en) * 2013-03-22 2013-06-26 广东欧珀移动通信有限公司 Method and terminal for quickly displaying status information of application program
CN104077208A (en) * 2014-06-23 2014-10-01 小米科技有限责任公司 Application program icon display method and apparatus
CN104298612A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for cleaning memory in mobile terminal and mobile terminal
CN104714895A (en) * 2015-03-23 2015-06-17 努比亚技术有限公司 Mobile terminal and method and device for increasing running speed of mobile terminal
CN104793885A (en) * 2015-04-23 2015-07-22 努比亚技术有限公司 Mobile terminal and memory cleaning control method thereof

Also Published As

Publication number Publication date
CN105260117A (en) 2016-01-20

Similar Documents

Publication Publication Date Title
CN105260117B (en) Application program control method and device
CN106970754B (en) Screen capture processing method and device
US20180121082A1 (en) Method and apparatus for split screen display
CN106570442B (en) Fingerprint identification method and device
US20170205962A1 (en) Method and apparatus for recognizing gesture
US20170344192A1 (en) Method and device for playing live videos
US20170178289A1 (en) Method, device and computer-readable storage medium for video display
EP3786778A1 (en) Method and device for screen projection, terminal and storage medium
US10095377B2 (en) Method and device for displaying icon badge
CN105487805B (en) Object operation method and device
CN106101680B (en) Acquisition parameters setting method and device
CN105893136B (en) Multitask management method and device
CN104317402B (en) Description information display method and device and electronic equipment
CN105912258B (en) Operation processing method and device
CN107992257B (en) Screen splitting method and device
CN106547461B (en) Operation processing method, device and equipment
EP3109741B1 (en) Method and device for determining character
CN107102772A (en) Touch control method and device
CN104238911A (en) Loading icon display method and device
US9641737B2 (en) Method and device for time-delay photographing
CN109445658A (en) A kind of method, apparatus, mobile terminal and storage medium switching display pattern
CN106940653B (en) Method, apparatus and computer-readable storage medium for controlling application program
EP3255575A1 (en) Application triggering method and device
EP3168732A1 (en) Method and device for switching keyboard style
US10613622B2 (en) Method and device for controlling virtual reality helmets

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20201009

Address after: No.018, floor 8, building 6, yard 33, middle Xierqi Road, Haidian District, Beijing 100085

Applicant after: BEIJING XIAOMI MOBILE SOFTWARE Co.,Ltd.

Applicant after: Xiaomi Technology Co.,Ltd.

Address before: 100085, Haidian District, Beijing Qinghe Street No. 68, Huarun colorful city shopping center two, 13 layers

Applicant before: Xiaomi Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant