CN106547640A - A kind of method and terminal of backstage cleaning - Google Patents

A kind of method and terminal of backstage cleaning Download PDF

Info

Publication number
CN106547640A
CN106547640A CN201611046785.1A CN201611046785A CN106547640A CN 106547640 A CN106547640 A CN 106547640A CN 201611046785 A CN201611046785 A CN 201611046785A CN 106547640 A CN106547640 A CN 106547640A
Authority
CN
China
Prior art keywords
application process
terminal
white list
unit
user
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.)
Withdrawn
Application number
CN201611046785.1A
Other languages
Chinese (zh)
Inventor
张泽民
李奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201611046785.1A priority Critical patent/CN106547640A/en
Publication of CN106547640A publication Critical patent/CN106547640A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The method and terminal of a kind of backstage cleaning are embodiments provided, wherein method includes:Terminal obtains the operational order of user;Judge that whether terminal interface instructs the time delay for responding more than the first preset time threshold to user operation;If so, operating lag action is marked;Judge whether exceed predetermined threshold value in the number of the second Preset Time internal labeling;If so, the application process of terminal running background is cleared up.By being marked to the response action more than very first time threshold value, judge whether Caton phenomenon occur, and whether the number of times of the interim card for judging to occur in the second Preset Time exceedes preset times, preset times if more than, then automatically terminal backstage can be cleared up, the use state of automatic detection terminal current interface is judging whether to need to clear up backstage to reclaim internal memory, the Caton phenomenon occurred when just can solve and cause because of memory problem and use without the need for user operation, reduce the operation of user, it is convenient and swift, improve the experience of user.

Description

A kind of method and terminal of backstage cleaning
Technical field
The present invention relates to electronic technology field, more particularly to a kind of method and terminal of backstage cleaning.
Background technology
In recent years, existing intelligent mobile terminal, RAM sizes rise to 1G, 2G by 512M, always 3G till now, 4G Become main flow.At the same time, the size of the application process and size of RAM is taken during operation is also when the river rises the boat goes up, so i.e. Make in the case where mobile phone RAM is increasing, when user still results in memory usage mistake when opening program is excessive Height, so as to cause interim card, interim card to cause user's using terminal not smooth, affects Consumer's Experience.
The content of the invention
The embodiment of the present invention provides a kind of method of backstage cleaning, and backstage can be cleared up automatically when Caton phenomenon occurs in terminal Application process, conveniently reclaims internal memory, reduces the operation of user, improves the experience of user.
In a first aspect, embodiments providing a kind of method of backstage cleaning, the method includes:
Terminal obtains the operational order of user;
Judge that whether the terminal interface instructs the time delay for responding more than the first Preset Time to user operation Threshold value;
If so, the operating lag action is marked;
Judge whether the number of the mark in the second Preset Time exceedes predetermined threshold value;
If so, the application process of terminal running background is cleared up.
On the other hand, a kind of terminal is embodiments provided, the terminal includes:
First acquisition unit, obtains the operational order of user for terminal;
First judging unit, judges whether the terminal interface exceeded to the time delay that user operation instruction responds First preset time threshold;
First indexing unit, for being if so, marked to the operating lag action;
Second judging unit, for judging whether the number of the mark in the second Preset Time exceedes predetermined threshold value;
Cleaning unit, for if so, clearing up to the application process of terminal running background.
The method and terminal of the backstage cleaning of the embodiment of the present invention, by arranging a very first time threshold value, to more than the The response action of one preset time threshold is marked, and judges whether Caton phenomenon occur, and judges in the second Preset Time Whether the number of times of the interim card of appearance exceedes preset times, and preset times, then can be carried out clearly to terminal backstage automatically if more than Reason, reclaims internal memory, so can judge whether to need to clear up backstage back and forth with the use state of automatic detection terminal current interface Internal memory is received, the Caton phenomenon occurred when just can solve and cause because of memory problem and use without the need for user operation reduces use The operation at family, it is convenient and swift, improve the experience of user.
Description of the drawings
In order to be illustrated more clearly that embodiment of the present invention technical scheme, embodiment will be described below needed for it is to be used Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is a kind of schematic flow diagram of the method for backstage cleaning that the embodiment of the present invention one is provided;
Fig. 2 is a kind of schematic flow diagram of the method for backstage cleaning that the embodiment of the present invention two is provided;
Fig. 3 is a kind of schematic flow diagram of the method for backstage cleaning that the embodiment of the present invention three is provided;
Fig. 4 is the schematic block diagram of the terminal that the embodiment of the present invention one is provided;
Fig. 5 is the schematic block diagram of the terminal that the embodiment of the present invention two is provided;
Fig. 6 is the schematic block diagram of the terminal that the embodiment of the present invention three is provided;
Fig. 7 is the schematic block diagram that the embodiment of the present invention four is provided.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than the embodiment of whole.Based on this Embodiment in bright, the every other enforcement obtained under the premise of creative work is not made by those of ordinary skill in the art Example, belongs to the scope of protection of the invention.
It should be appreciated that when using in this specification and in the appended claims, term " including " and "comprising" are indicated The presence of described feature, entirety, step, operation, element and/or component, but it is not precluded from one or more of the other feature, whole The presence or addition of body, step, operation, element, component and/or its set.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are clearly indicated hereafter, otherwise " one " of singulative, " one " and " being somebody's turn to do " is intended to include plural form.
As in this specification and in the appended claims as use, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In implementing, the terminal described in the embodiment of the present invention including but not limited to such as has touch sensitive surface Other of the mobile phone of (for example, touch-screen display and/or touch pad), laptop computer or tablet PC etc are just Portable device.It is to be further understood that in certain embodiments, the equipment not portable communication device, but have and touch Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, describe to include the terminal of display and touch sensitive surface.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as it is following in one or more:Drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can be public using at least one of such as touch sensitive surface Physical user-interface device.Can adjust among applications and/or in corresponding application programs and/or change and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal (for example, is touched Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, or two or more units are integrated in a unit.It is above-mentioned integrated Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
It should be appreciated that in embodiments of the present invention, alleged processor can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), special IC (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices Part, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or the process Device can also be any conventional processor etc..
It should be appreciated that terminal be only portable multifunction device an example, and terminal can with than The more or less of component of shown component, two or more components can be combined or can have different component Configurations or cloth Put.Can be with the combination of hardware, software or hardware and software including one or more signal transactings and/or special IC To realize various parts.
It will also be understood that although first, second grade of term can be used for describing various elements with here, these elements should not This is limited to these terms.These terms are only for these elements are distinguished from each other out.For example, without departing from the scope of the invention Under the premise of, first terminal can be referred to as second terminal, and similarly, second terminal can be referred to as first terminal.First Terminal and second terminal are terminal, but their not same terminals.
Referring to Fig. 1, it is a kind of schematic flow diagram of the method for backstage cleaning that the embodiment of the present invention one is provided, as schemed institute Show, the method comprises the following steps S11~S15:
Step S11:Terminal obtains the operational order of user.
Specifically, when user is operated to terminal, the operation of terminal-pair user is understood, and obtains the operation of user Instruction.
Step S12:Judge whether the time delay that terminal interface responds to user operation instruction is default more than first Time threshold.
Specifically, terminal interface can make corresponding response to the operational order of user, and terminal can set under normal circumstances Put a normal response speed to respond user operation, for example, 0.01S of the setting program after user operation instruction is obtained enters Row response, when the response time is between 0.01S-0.1S, user is imperceptible interim card, if response delay has exceeded one Timing is long, then be recorded as interim card, and Caton phenomenon occur can largely affect user operation to experience.When pre-setting a response Between time threshold, judge that whether the time of terminal response exceed threshold value, such as, time threshold be set to into 0.1S, then can be judged Whether the response time of terminal-pair user operation, more than 0.1S, has exceeded, whether time delay has been surpassed The judgement for crossing time threshold is the judgement to whether there is Caton phenomenon.
Step S13:If so, operating lag action is marked.
Specifically, if terminal interface exceedes preset time threshold to the response time that user operation instruction is made, Then this response action can be marked, for example, in step S11, the response time, will be to action time delay more than 0.1S Response action more than 0.1S is marked, that is, occur in that a Caton phenomenon.
Step S14:Judge whether exceed predetermined threshold value in the number of the second Preset Time internal labeling.
Specifically, a time span for being counted is pre-set, is judged in the time span that pre-sets at this Whether the number of times of labeled response action exceedes frequency threshold value set in advance.For example, it is a length of during the statistics of preset limit 10S, frequency threshold value set in advance are 3 times, and the number of times of labeled response action is to be determined to be interim card in the present embodiment Response times, i.e. whether the number of times to occurring interim card in 10S is judged more than 3 times.
Step S15:If so, the application process of terminal running background is cleared up.
Specifically, if the number of Preset Time internal labeling exceedes predetermined threshold value, the application process to terminal running background Cleared up.The interim card number of times for occurring in 10S in the citing of step S13 has exceeded 3 times, then terminal running background can be answered Cleared up with process, certainly, the application process cleared up herein is nonsystematic key application process and will not be to terminal The application process that the program of interface currently operation is impacted, reclaims the running memory of terminal after cleaning.By arranging when one Between threshold value, the response action of over-time threshold value is marked, is judged whether Caton phenomenon occur, and is judged in certain time length Whether the number of times of the interim card of interior appearance exceedes preset times, and preset times, then can be carried out to terminal backstage automatically if more than Cleaning, reclaims internal memory, so can judge whether to need cleaning backstage with the use state of automatic detection terminal current interface Internal memory is reclaimed, the Caton phenomenon occurred when just can solve and cause because of memory problem and use without the need for user operation is reduced The operation of user, it is convenient and swift, improve the experience of user.
Referring to Fig. 2, it is a kind of schematic flow diagram of the method for backstage cleaning that the embodiment of the present invention two is provided, as schemed institute Show, the method comprises the following steps S21~S29:
Step S21:Application process white list is set.
Specifically, application process white list is can be understood as when platform reclaims internal memory to system after the cleaning, and these are white The backstage of list mileage sequence still can be retained, and will not remove.The white list of application process is set in terminal in advance, by some The program for being not intended to be recovered in cleaning is marked, and concentration is shelved in this white list, for example, and some system cores should Use process.
Step S22:Judge whether present terminal front stage operation application process belongs to application process white list.
Specifically, whether the application process of terminal front stage operation is sentenced in application white list set in advance It is disconnected.
Step S23:If it is not, front stage operation application process is added into application process white list temporarily, until exiting foreground.
Specifically, if the application process of terminal front stage operation is not in the application process white list for pre-setting, can The application process of terminal currently operation is added in application process white list temporarily, if this program has exited current foreground fortune Row interface, then can exit from application process white list automatically, not be then displayed at running in application process white list.
Step S24:Terminal obtains the operational order of user.
Specifically, when user is operated to terminal, the operation of terminal-pair user is understood, and obtains the operation of user Instruction.
Step S25:Judge whether the time delay that terminal interface responds to user operation instruction is default more than first Time threshold.
Specifically, terminal interface can make corresponding response to the operational order of user, and terminal can set under normal circumstances Put a normal response speed to respond user operation, for example, 0.01S of the setting program after user operation instruction is obtained enters Row response, when the response time is between 0.01S-0.1S, user is imperceptible interim card, if response delay has exceeded one Timing is long, then be recorded as interim card, and Caton phenomenon occur can largely affect user operation to experience.When pre-setting a response Between time threshold, judge that whether the time of terminal response exceed threshold value, such as, time threshold be set to into 0.1S, then can be judged Whether the response time of terminal-pair user operation, more than 0.1S, has exceeded, whether time delay has been surpassed The judgement for crossing time threshold is the judgement to whether there is Caton phenomenon.
Step S26:If so, operating lag action is marked.
Specifically, if terminal interface exceedes preset time threshold to the response time that user operation instruction is made, Then this response action can be marked, for example, in step S11, the response time, will be to action time delay more than 0.1S Response action more than 0.1S is marked, that is, occur in that a Caton phenomenon.
Step S27:Judge whether exceed predetermined threshold value in the number of the second Preset Time internal labeling.
Specifically, a time span for being counted is pre-set, is judged in the time span that pre-sets at this Whether the number of times of labeled response action exceedes frequency threshold value set in advance.For example, it is a length of during the statistics of preset limit 10S, frequency threshold value set in advance are 3 times, and the number of times of labeled response action is to be determined to be interim card in the present embodiment Response times, i.e. whether the number of times to occurring interim card in 10S is judged more than 3 times.
Step S28:If so, judge whether terminal current background operation application process belongs to application process white list.
Specifically, if the number of Preset Time internal labeling exceedes predetermined threshold value, the application process to terminal running background Cleared up.The interim card number of times for occurring in 10S in the citing of step S13 has exceeded 3 times, then terminal running background can be answered Cleared up with process.Can be to the application process of terminal current background operation whether in default application process white list before cleaning Inside judged.
Step S29:If it is not, clearing up to the application process of terminal running background.
Specifically, if the application process of current background operation can be carried out clearly to which not in application process white list Reason, reclaims the running memory of terminal after cleaning.By arranging a dynamic application process white list, it is to avoid sentence there is interim card Cleaned application process be would not want to when breaking to need and clearing up to clean out automatically, make backstage cleaning convenient, it is purposive, To current operation application process or the application process existed on backstage will not be needed to impact.
Further, identify the background application process for being not belonging to application process white list;Acquisition is not belonging to using application The size of the background application process committed memory of process white list;Committed memory maximum is gone out according to the size identification of committed memory Background application process is simultaneously cleared up.
Specifically, when needing to carry out clearing and retrieving, the background application process for being not belonging to application process white list is identified, And size of these application processes in internal memory shared by backstage is obtained, and find out the backstage accounted in a maximum non-white list of internal memory Application process, by its clearing and retrieving internal memory after finding out.After the maximum application process being not belonging in white list is cleared up, can So that sufficiently large internal memory is discharged within the shortest time, the free memory level of system is allowed to recover normal, such that it is able to quick solution Internal memory is reclaimed under low internal storage state causes the situation of interim card.
Further, if the background application process cleaning for being not belonging to application process white list is completed, judge in Preset Time Whether the number of internal labeling exceedes predetermined threshold value;If so, obtain the application process information in application process white list;According to application Application process in progress information application processes white list carries out priority flag;It is low from priority according to the order of priority Application process begin a clean up;Every time the application process of cleaning predetermined number just carry out Preset Time internal labeling number whether More than the judgement of predetermined threshold value, and prompting is sent to user.
Specifically, after the completion of the background application process for being not belonging to application process white list is cleared up, judge in Preset Time Whether the interim card number of times of appearance exceedes preset times, if there is interim card number of times exceed preset times, then can start to obtain should With the information of the application process in process white list, for example, whether whether application process belongs to system core application process, or be User needs the application process for staying in backstage.According to the application process information in the application process white list for getting will apply into The mark of Cheng Jinhang priority, marks which application process has precedence over which application process, and according to priority order from excellent The low application process of first level begins a clean up, and is just carried out in Preset Time internal labeling every time after the application process of cleaning predetermined number Whether number exceedes the judgement of predetermined threshold value, and for example, predetermined number is 1, then the application process do not cleared up in a white list is just Can be judged, and prompting can be sent to user before cleaning, can be vibrations, ejection, voice etc., tell user, in order to The smooth use of user is made, the program cleared up in white list is had begun to, voluntarily judges it is to terminate foreground application process also by user It is the application process for terminating white list.
Referring to Fig. 3, it is a kind of schematic flow diagram of the method for backstage cleaning that the embodiment of the present invention three is provided, as schemed institute Show, the method comprises the following steps S31~S37:
Step S31:Terminal obtains the operational order of user.
Specifically, when user is operated to terminal, the operation of terminal-pair user is understood, and obtains the operation of user Instruction.
Step S32:Judge whether the time delay that terminal interface responds to user operation instruction is default more than first Time threshold.
Specifically, when user is when operating to terminal, terminal interface can make phase to the operational order of user Corresponding response, under normal circumstances terminal can arrange a normal response speed to respond user operation, for example, arrange program 0.01S after user operation instruction is obtained is responded, and when the response time is between 0.01S-0.1S, user is to feel not Interim card is arrived, if response delay has exceeded certain time length, interim card is recorded as, Caton phenomenon occur largely can affect to use Family operating experience.The time threshold of a response time is pre-set, judges whether the time of terminal response exceedes threshold value, than Such as, time threshold is set to into 0.1S, then can judges that the response time of terminal-pair user operation, whether more than 0.1S, has exceeded and then remembered Record as an interim card, to time delay, the judgement of over-time threshold value is the judgement to whether there is Caton phenomenon.
Step S33:If so, operating lag action is marked.
Specifically, if terminal interface exceedes preset time threshold to the response time that user operation instruction is made, Then this response action can be marked, for example, in step S11, the response time, will be to action time delay more than 0.1S Response action more than 0.1S is marked, that is, occur in that a Caton phenomenon.
Step S34:Judge whether exceed predetermined threshold value in the number of the second Preset Time internal labeling.
Specifically, a time span for being counted is pre-set, is judged in the time span that pre-sets at this Whether the number of times of labeled response action exceedes frequency threshold value set in advance.For example, it is a length of during the statistics of preset limit 10S, frequency threshold value set in advance are 3 times, and the number of times of labeled response action is to be determined to be interim card in the present embodiment Response times, i.e. whether the number of times to occurring interim card in 10S is judged more than 3 times.
Step S35:If so, the application process of terminal running background is cleared up.
Specifically, if the number of Preset Time internal labeling exceedes predetermined threshold value, the application process to terminal running background Cleared up.The interim card number of times for occurring in 10S in the citing of step S13 has exceeded 3 times, then terminal running background can be answered Cleared up with process, certainly, the application process cleared up herein is nonsystematic key application process and will not be to terminal The application process that the program of interface currently operation is impacted, reclaims the running memory of terminal after cleaning.
Step S36:Terminal is in front stage operation current application process, if occurring clearing up running background application process Action, cleaned application process information is recorded.
Specifically, terminal is in front stage operation program, if it is decided that can make cleaning background application process for interim card, reclaim The action of internal memory, until the phenomenon of interim card is solved, while clearing up to these background application processes, can be to solving card Phenomenon of pausing cleans up which specific application process is recorded, and for example, a game A is being run on terminal foreground, when A is in operation When occur Caton phenomenon, terminal has reached the effect for solving interim card by clearing up background program b, c, d, then will can run Game application processes b, c cleared up of A, d are recorded.
Step S37:If opening current application process, the background application process that cleaning is recorded automatically on foreground again.
Specifically, terminal again front stage operation play A when, can recall automatically play game A interim cards when terminated should With process, terminal can terminate b, c, d application process according to record when running game A automatically, to guarantee running game A When be not in Caton phenomenon.Recorded by the application process terminated to solving foreground program Caton phenomenon, existed again The background application process for recording is terminated on foreground automatically while opening same program, so that Caton phenomenon is skipped, so as to So that no longer interim card when running this program again.
Referring to Fig. 4, it is a kind of schematic block diagram of terminal that the embodiment of the present invention one is provided, as illustrated, the terminal bag Include:
First acquisition unit 71, obtains the operational order of user for terminal;
Whether the first judging unit 11, judge terminal interface to user operation time delay for responding of instruction more than the One preset time threshold;
First indexing unit 21, for being if so, marked to operating lag action;
Second judging unit 12, for judging whether the number in the second Preset Time internal labeling exceedes predetermined threshold value;
Cleaning unit 30, for if so, clearing up to the application process of terminal running background.
Specifically, user is when operating to terminal, and terminal is referred to by the operation that first acquisition unit 71 obtains user Order, the first judging unit 10 can judge that terminal interface instructs the time delay for responding whether pre- more than first to user operation If time threshold, if the time delay that user operation instruction responds is more than the first preset time threshold, by the first mark This response action is marked by note unit 21, and the second judging unit 12 is then to the first indexing unit 21 in the second Preset Time Whether the number of mark is judged more than predetermined number, if in the second Preset Time the mark of the first indexing unit 21 Number is then cleared up to the application process of terminal running background by cleaning unit 30 so that front stage operation journey more than predetermined number Sequence smooth can be carried out.
Specifically, by arranging a time threshold, the response action of over-time threshold value is marked, is judged whether There is Caton phenomenon, and whether the number of times of the interim card for judging to occur in certain time length exceedes preset times, if more than in advance If number of times, then automatically terminal backstage can be cleared up, reclaim internal memory, so can be with the use of automatic detection terminal current interface State just can solve to cause to make because of memory problem without the need for user operation judging whether to need to clear up backstage to reclaim internal memory With when the Caton phenomenon that occurs, reduce the operation of user, it is convenient and swift, improve the experience of user.
Referring to Fig. 5, it is a kind of schematic block diagram of terminal that the embodiment of the present invention two is provided, as illustrated, the terminal bag Include:
First acquisition unit 71, obtains the operational order of user for terminal;
Whether the first judging unit 11, judge terminal interface to user operation time delay for responding of instruction more than the One preset time threshold;
First indexing unit 21, for being if so, marked to operating lag action;
Second judging unit 12, for judging whether the number in the second Preset Time internal labeling exceedes predetermined threshold value;
Cleaning unit 30, for clearing up to the application process of terminal running background.
Setting unit 40, for arranging application process white list;
3rd judging unit 13, for judging whether present terminal front stage operation application process belongs to the white name of application process It is single;
Interim insertion unit 50, for front stage operation application process is added application process white list temporarily, until exiting Foreground;
4th judging unit 14, for judging whether terminal current background operation application process belongs to the white name of application process It is single.
Specifically, user can arrange application process white list by setting unit 40, and the program of terminal front stage operation all can Judge by whether the 3rd judging unit 13 belongs to application process white list to which, if it is not, then single by interim insertion Unit 50 by its it is interim add application process white list, until program platform before exit, user when operating to terminal, eventually End obtains the operational order of user by first acquisition unit 71, and the first judging unit 10 can judge terminal interface to user operation The time delay for responding is instructed whether more than the first preset time threshold, if the delay that user operation instruction responds This response action more than the first preset time threshold, is then marked by the time by the first indexing unit 21, and second judges single Whether first 12 then judge more than predetermined number to the number of the mark of the first indexing unit 21 in the second Preset Time, if In second Preset Time, the number of the mark of the first indexing unit 21 exceedes predetermined number, and the 4th judging unit 14 can then judge terminal Whether current background operation application process belongs to application process white list, if it is not, will be not belonging to by cleaning unit 30 pairs white The terminal running background application process of list is cleared up so that front stage operation program smooth can be carried out.
Further, the background application process for being not belonging to application process white list is identified by the first recognition unit, and The size of the background application process committed memory for being not belonging to application process white list is obtained by second acquisition unit, the second identification is single Unit goes out the maximum background application process of committed memory according to the size identification of committed memory and is cleared up by cleaning unit 30.
Further, if the background application process cleaning for being not belonging to application process white list is completed, the second judging unit 12 Judge whether exceed predetermined threshold value in the number of the second Preset Time internal labeling, if so, obtained by the 3rd acquiring unit and applied Application process information in process white list, the second indexing unit is according to answering in application process information application processes white list Priority flag is carried out with process, cleaning unit 30 is begun a clean up from the low application process of priority according to the order of priority, The application process of each cleaning predetermined number is just carried out by the second judging unit 12 The no judgement more than predetermined threshold value, and prompting is sent to user.
Referring to Fig. 6, it is a kind of schematic block diagram of terminal that the embodiment of the present invention one is provided, as illustrated, the terminal bag Include:
First acquisition unit 71, obtains the operational order of user for terminal;
Whether the first judging unit 11, judge terminal interface to user operation time delay for responding of instruction more than the One preset time threshold;
First indexing unit 21, for being if so, marked to operating lag action;
Second judging unit 12, for judging whether the number in the second Preset Time internal labeling exceedes predetermined threshold value;
Recording unit 60, for terminal in front stage operation current application process, if occurring to running background application process The action cleared up, records to cleaned application process information;
Cleaning unit 30, for if so, clearing up to the application process of terminal running background, if opening on foreground again Current application process, the background application process that cleaning is recorded automatically.
Specifically, user is when operating to terminal, and terminal is referred to by the operation that first acquisition unit 71 obtains user Order, the first judging unit 10 can judge that terminal interface instructs the time delay for responding whether pre- more than first to user operation If time threshold, if the time delay that user operation instruction responds is more than the first preset time threshold, by the first mark This response action is marked by note unit 21, and the second judging unit 12 is then to the first indexing unit 21 in the second Preset Time Whether the number of mark is judged more than predetermined number, if in the second Preset Time the mark of the first indexing unit 21 Number is then cleared up to the application process of terminal running background by cleaning unit 30 so that front stage operation journey more than predetermined number Sequence smooth can be carried out, and record cleaned application process information by recording unit 60, if opening on foreground again Current application process, clears up the background application process that cleaning is recorded automatically of unit 30.
Fig. 7 is the structure composition schematic diagram of the example IV of the terminal of the present invention.As shown in fig. 7, which may include:At least one Individual input equipment 101, at least one output equipment 102, bus 103, transceiver 104, memory 105 and processor 100, Above-mentioned input equipment 101, output equipment 102, transceiver 104, memory 105 and processor 100 are connected by bus 103, Wherein:
Input equipment 101, for receiving the input data of outside input terminal 99.In implementing, the embodiment of the present invention Input equipment 101 may include keyboard, mouse, opto-electronic input device, audio input device, touch input device, scanner Deng.
Output equipment 102, for the output data of external output terminal.In implementing, the output of the embodiment of the present invention Equipment 102 may include display, loudspeaker, printer etc..
Bus 103, for being communicated with other equipment.In implementing, the bus 103 of the embodiment of the present invention can be and pass Broadcast an example of medium.Propagation medium typically can be by computer-readable instruction, data structure, program module or other modulation Other data materializations of data-signal (such as carrier wave or other transfer mechanisms) form, for example, propagation medium may include Wired media, such as priority network or straight line connection, propagation medium may also include wireless medium, such as sound wave, radio frequency, infrared ray Deng.In implementing, the bus 103 of the embodiment of the present invention can be used to receive the access request for accessing terminal.
Transceiver 104, for sending data or from other equipment receiving data to other equipment by bus 103. In implementing, the transceiver 104 of the embodiment of the present invention may include the transceiving devices such as radio-frequency antenna.
Memory 105, for routine data of the storage with various functions.In the embodiment of the present invention, memory 105 is stored Data include Internet Service Provider's data available and the unavailable data of Internet Service Provider, and other can call and transport Capable routine data.In implementing, the memory 105 of the embodiment of the present invention can be system storage, such as, volatile The combination of (such as RAM), non-volatile (such as ROM, flash memory etc.), or both.In implementing, the embodiment of the present invention Memory 105 can also be the external memory storage outside system, such as, disk, CD, tape etc..
Processor 100, such as CPU, for calling the routine data stored in memory 105, and perform following operation:
Terminal obtains the operational order of user;Judge that terminal interface to the time delay that user operation instruction responds is It is no more than the first preset time threshold;If so, operating lag action is marked;Judge in the second Preset Time internal labeling Whether number exceedes predetermined threshold value;If so, the application process of terminal running background is cleared up.
Application process white list is set;Judge whether present terminal front stage operation application process belongs to the white name of application process It is single;If it is not, front stage operation application process is added into application process white list temporarily, until exiting foreground;Terminal obtains user's Operational order;Judge that whether terminal interface instructs the time delay for responding more than the first Preset Time threshold to user operation Value;If so, operating lag action is marked;Judge whether exceed default threshold in the number of the second Preset Time internal labeling Value;If so, judge whether terminal current background operation application process belongs to application process white list;If it is not, transporting to terminal backstage Capable application process is cleared up.
Identify the background application process for being not belonging to application process white list;After acquisition is not belonging to application process white list The size of platform application process committed memory;The maximum background application process of committed memory is gone out simultaneously according to the size identification of committed memory Cleared up.
If the background application process cleaning for being not belonging to application process white list is completed, judge in the second Preset Time internal labeling Number whether exceed predetermined threshold value;If so, obtain the application process information in application process white list;Believed according to application process Application process in breath application processes white list carries out priority flag;According to the order of priority from the low application of priority Process begins a clean up;Whether the application process of cleaning predetermined number just carries out surpassing in the number of the second Preset Time internal labeling every time The judgement of predetermined threshold value is crossed, and prompting is sent to user.
Terminal obtains the operational order of user;Judge that terminal interface to the time delay that user operation instruction responds is It is no more than the first preset time threshold;If so, operating lag action is marked;Judge in the second Preset Time internal labeling Whether number exceedes predetermined threshold value;If so, the application process of terminal running background is cleared up;Terminal is current in front stage operation During application process, if there is the action cleared up to running background application process, cleaned application process information is carried out Record;If opening current application process, the background application process that cleaning is recorded automatically on foreground again.
In several embodiments provided herein, it should be understood that disclosed method, only schematically, Can realize by another way.
It should be noted that the step in present invention method can carry out order adjustment according to actual needs, close And and delete.
Unit in embodiment of the present invention terminal can be merged according to actual needs, divides and be deleted.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or replacement should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with right The protection domain of requirement is defined.

Claims (10)

1. a kind of method that backstage is cleared up, it is characterised in that include:
Terminal obtains the operational order of user;
Judge that whether the terminal interface instructs the time delay for responding more than the first preset time threshold to user operation;
If so, the operating lag action is marked;
Judge whether the number of the mark in the second Preset Time exceedes predetermined threshold value;
If so, the application process of terminal running background is cleared up.
2. method according to claim 1, it is characterised in that methods described also includes:
Application process white list is set;
Judge whether present terminal front stage operation application process belongs to the application process white list;
If it is not, the front stage operation application process is added into the application process white list temporarily, until exiting foreground;
Judge whether terminal current background operation application process belongs to the application process white list;
If it is not, clearing up to running background application process.
3. method according to claim 2, it is characterised in that methods described also includes:
Identify the background application process for being not belonging to the application process white list;
The size of the background application process committed memory of application process white list is not belonging to described in obtaining;
The maximum background process of committed memory is gone out according to the size identification of the committed memory and is cleared up.
4. method according to claim 2, it is characterised in that methods described also includes:
If the background application process cleaning for being not belonging to application process white list is completed, the mark in Preset Time is judged Number whether exceed predetermined threshold value;
If so, obtain the application process information in the application process white list;
Priority flag is carried out to the application process in the application process white list according to the application process information;
Begun a clean up from the low application process of priority according to the order of priority;
Whether the application process of cleaning predetermined number just carries out the number of the mark in Preset Time more than default threshold every time The judgement of value, and prompting is sent to user.
5. the method according to any one of claim 1-4, it is characterised in that methods described also includes:
Terminal is in front stage operation current process, if there is the action cleared up to running background application process, to cleaned Application process information recorded;
If the current application process is opened on foreground again, clear up the background application process of the record automatically.
6. a kind of terminal, it is characterised in that include:
First acquisition unit, obtains the operational order of user for terminal;
First judging unit, judges that whether the terminal interface instructs the time delay for responding more than first to user operation Preset time threshold;
First indexing unit, for being if so, marked to the operating lag action;
Second judging unit, for judging whether the number of the mark in the second Preset Time exceedes predetermined threshold value;
Cleaning unit, for if so, clearing up to the application process of terminal running background.
7. terminal according to claim 6, it is characterised in that the terminal also includes:
Setting unit, for arranging application process white list;
3rd judging unit, for judging whether present terminal front stage operation application process belongs to the application process white list;
Interim insertion unit, for if it is not, the front stage operation application process is added the application process white list temporarily, directly To exiting foreground;
4th judging unit, for judging whether terminal current background operation application process belongs to the application process white list;
The cleaning unit is used for if it is not, clearing up to running background application process.
8. terminal according to claim 7, it is characterised in that the terminal also includes:
First recognition unit, for identifying the background application process for being not belonging to application process white list;
Second acquisition unit, for obtaining the big of the background application process committed memory for being not belonging to application process white list It is little;
Second recognition unit, for going out the maximum background application process of committed memory according to the size identification of the committed memory.
9. terminal according to claim 7, it is characterised in that the terminal also includes:
If second judging unit is used for the background application process cleaning for being not belonging to application process white list completing, judge In Preset Time, whether the number of the mark exceedes predetermined threshold value;
3rd acquiring unit, for if so, obtaining the application process information in the application process white list;
Second indexing unit, for being carried out to the application process in the application process white list according to the application process information Priority flag;
The unit of clearing up is for beginning a clean up from the low application process of priority according to the order of priority;
Second judging unit is used for the application process of cleaning predetermined number every time just carries out the mark in Preset Time Number whether exceed the judgement of predetermined threshold value, and prompting is sent to user.
10. the terminal according to any one of claim 6-9, it is characterised in that the terminal also includes:
Recording unit, for terminal in front stage operation current application process, if occurring carrying out clearly running background application process The action of reason, records to cleaned application process information;
If the cleaning unit is used to open the current application process on foreground again, the backstage for clearing up automatically the record should Use process.
CN201611046785.1A 2016-11-23 2016-11-23 A kind of method and terminal of backstage cleaning Withdrawn CN106547640A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611046785.1A CN106547640A (en) 2016-11-23 2016-11-23 A kind of method and terminal of backstage cleaning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611046785.1A CN106547640A (en) 2016-11-23 2016-11-23 A kind of method and terminal of backstage cleaning

Publications (1)

Publication Number Publication Date
CN106547640A true CN106547640A (en) 2017-03-29

Family

ID=58395062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611046785.1A Withdrawn CN106547640A (en) 2016-11-23 2016-11-23 A kind of method and terminal of backstage cleaning

Country Status (1)

Country Link
CN (1) CN106547640A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107249074A (en) * 2017-05-16 2017-10-13 努比亚技术有限公司 Application program quick start method, mobile terminal and computer-readable recording medium
CN107391198A (en) * 2017-07-25 2017-11-24 广东欧珀移动通信有限公司 Method for scheduling task and device, computer-readable recording medium, mobile terminal
CN107450984A (en) * 2017-07-25 2017-12-08 广东欧珀移动通信有限公司 Method for scheduling task, device, storage medium and electronic equipment
CN107729224A (en) * 2017-10-13 2018-02-23 北京小米移动软件有限公司 Terminal capabilities monitoring method and device
CN108108240A (en) * 2018-01-03 2018-06-01 广东欧珀移动通信有限公司 Process management method, management of process device and mobile terminal
CN109992363A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN110515736A (en) * 2019-08-29 2019-11-29 Oppo广东移动通信有限公司 Limit method, apparatus, terminal and the storage medium of backing objects
CN110543384A (en) * 2019-09-05 2019-12-06 Oppo广东移动通信有限公司 Memory write-back method, device, terminal and storage medium
CN110618904A (en) * 2018-06-20 2019-12-27 广州优视网络科技有限公司 Stuck detection method and device
CN112905266A (en) * 2021-03-31 2021-06-04 读书郎教育科技有限公司 System and method for managing background programs of smart watch
CN114691243A (en) * 2022-04-27 2022-07-01 深圳创维-Rgb电子有限公司 Application management method of intelligent terminal device, intelligent terminal device and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530235A (en) * 2013-10-18 2014-01-22 北京奇虎科技有限公司 Method and device for clearing internal storage in mobile terminal
CN104292613A (en) * 2014-09-15 2015-01-21 合肥瑞瑶环保建材科技有限公司 Corrosion-resistant plastic manhole
CN105975301A (en) * 2016-04-29 2016-09-28 北京小米移动软件有限公司 Memory cleaning method and device, and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530235A (en) * 2013-10-18 2014-01-22 北京奇虎科技有限公司 Method and device for clearing internal storage in mobile terminal
CN104292613A (en) * 2014-09-15 2015-01-21 合肥瑞瑶环保建材科技有限公司 Corrosion-resistant plastic manhole
CN105975301A (en) * 2016-04-29 2016-09-28 北京小米移动软件有限公司 Memory cleaning method and device, and electronic equipment

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107249074A (en) * 2017-05-16 2017-10-13 努比亚技术有限公司 Application program quick start method, mobile terminal and computer-readable recording medium
CN107391198B (en) * 2017-07-25 2019-07-16 Oppo广东移动通信有限公司 Method for scheduling task and device, computer readable storage medium, mobile terminal
CN107391198A (en) * 2017-07-25 2017-11-24 广东欧珀移动通信有限公司 Method for scheduling task and device, computer-readable recording medium, mobile terminal
CN107450984A (en) * 2017-07-25 2017-12-08 广东欧珀移动通信有限公司 Method for scheduling task, device, storage medium and electronic equipment
CN107729224A (en) * 2017-10-13 2018-02-23 北京小米移动软件有限公司 Terminal capabilities monitoring method and device
CN107729224B (en) * 2017-10-13 2021-10-08 北京小米移动软件有限公司 Terminal performance monitoring method and device
CN109992363A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN108108240A (en) * 2018-01-03 2018-06-01 广东欧珀移动通信有限公司 Process management method, management of process device and mobile terminal
CN110618904A (en) * 2018-06-20 2019-12-27 广州优视网络科技有限公司 Stuck detection method and device
CN110515736A (en) * 2019-08-29 2019-11-29 Oppo广东移动通信有限公司 Limit method, apparatus, terminal and the storage medium of backing objects
CN110515736B (en) * 2019-08-29 2023-01-13 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for limiting background object
CN110543384A (en) * 2019-09-05 2019-12-06 Oppo广东移动通信有限公司 Memory write-back method, device, terminal and storage medium
CN112905266A (en) * 2021-03-31 2021-06-04 读书郎教育科技有限公司 System and method for managing background programs of smart watch
CN114691243A (en) * 2022-04-27 2022-07-01 深圳创维-Rgb电子有限公司 Application management method of intelligent terminal device, intelligent terminal device and medium

Similar Documents

Publication Publication Date Title
CN106547640A (en) A kind of method and terminal of backstage cleaning
CN102135992B (en) Terminal application program classifying method and terminal
CN107256129A (en) Switch method, device and its relevant device of application under span mode
CN104519404B (en) The player method and device of graphic interchange format file
WO2015100569A1 (en) Sidebar menu display method, device and terminal
CN103546740A (en) Method and device for detecting camera and terminal equipment
CN108920235A (en) Non- read flag control method, mobile terminal and computer readable storage medium
CN107003907A (en) A kind of data processing method and data processing equipment
CN106453511A (en) Data backup method and data backup device
CN106775809A (en) A kind of method of mobile terminal internal memory cleaning, device and mobile terminal
CN106413036A (en) Network access processing method and terminal device
CN104866167A (en) Method and device for controlling quick floating layer panel
CN106911848A (en) Export the method and terminal device of prompting message
CN106202157A (en) Video method for quickly retrieving based on time stream
CN106371964A (en) Message prompting method and apparatus
CN106484326A (en) A kind of data transmission processing method and mobile terminal
CN109348306A (en) Video broadcasting method, terminal and computer readable storage medium
CN108282834A (en) A kind of method and terminal of terminal access LTE network
CN106407771A (en) Message management method and device
CN107079349A (en) Acquisition methods, the apparatus and system of system information
CN109376062A (en) Network state reminding method and relevant apparatus
CN107526637A (en) Applied program processing method, device, mobile terminal and storage medium
CN105653112A (en) Method and device for displaying floating layer
CN108833717A (en) Information clearing method, device, mobile terminal and computer readable storage medium
CN106791074B (en) Song information display methods, device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20170329

WW01 Invention patent application withdrawn after publication