A kind of control method of Automatic clearance terminal device, system and terminal device
Technical field
The invention belongs to mobile communication technology field, relate to a kind of control method and system, particularly relate to a kind of control method of Automatic clearance terminal device, system and terminal device.
Background technology
Android mobile phone is not when shutting down for a long time, many useless processes and service are at running background after the meeting, and the buffer memory that user browses webpage and uses APP to produce, both of these case Android mobile phone card can be caused to pause and low memory when, the present invention mainly uses mobile phone to be accustomed to according to user, judge the cell phone standby time period, at this moment in section, the useless process of mobile phone Automatic clearance mobile phone running background and service, and user browses the Cookie that webpage produces and the buffer memory using APP to produce.
In the method for existing clean up process and buffer memory, the method of clearing up useless process and service is generally shutdown and utilizes cleaning software, such as Qihoo 360 etc., removing webpage Cookie and App buffer memory are generally enter in App, in App is arranged, there is the option of cleaning buffer memory, click this option to clear up buffer memory.
For clean up process and service, prior art is generally utilize software to clear up or shut down to clear up, for buffer memory, generally utilize App to carry cleaning cache option to clear up, but for user, generally can not if having time and energy all clear up these every day, this just likely causes only immediately just going clean up process at equipment card, just go when low memory to clear up internal memory, and when clearing up internal memory, common problem be user need a little to open App one by one, can not disposable complete liquidation to clear up buffer memory.
Therefore, how a kind of control method of Automatic clearance terminal device, system and terminal device are provided, needing when clearing up buffer memory and process and service user to be come by application program point one by one cleaning and can not disposable complete liquidation and the many disadvantages such as the not convenient property brought to solve in prior art, having become practitioner in the art's technical matters urgently to be resolved hurrily in fact.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of control method of Automatic clearance terminal device, system and terminal device, needing when clearing up buffer memory and process and service user to be come by application program point one by one cleaning and can not disposable complete liquidation and the problem of not convenient property brought for solving in prior art.
For achieving the above object and other relevant objects, one aspect of the present invention provides a kind of control method of Automatic clearance terminal device, the control method of described Automatic clearance terminal device comprises the following steps: when described terminal device enters using forestland, detects all application programs be present in described terminal device; Judge whether described terminal device opens Automatic clearance function; If, create in the application program being present in described terminal device in order to record the first cleaning list that can produce the application program of buffer memory and the second cleaning list in order to record all application programs in described terminal device, use the use habit of described terminal device simultaneously according to user, obtain the stand-by time section of described terminal device; If not, process is terminated; According to the stand-by time section of described terminal device, and described first cleaning list and the second cleaning list are simultaneously to the application program of the generation buffer memory in described terminal device and the application program execution cleaning operation do not opened.
Alternatively, after the step creating described first cleaning list, the control method of described Automatic clearance terminal device also comprises the application program that the application program that the application program that can produce buffer memory in described first cleaning list to be divided into and to authorize and can produce buffer memory and unauthorized can produce buffer memory, and obtains the operating application program producing buffer memory.
Alternatively, described first cleaning list comprises: authorized the title of the application program that can produce buffer memory, unauthorized can produce the title of the application program of buffer memory and the CACHE DIRECTORY of having authorized the application program mandate that can produce buffer memory to enter and the directory path of having authorized the application program mandate that can produce buffer memory to enter.
Alternatively, after the step creating described second cleaning list, the control method of described Automatic clearance terminal device also comprises the application program obtaining and opened in described terminal device.
Alternatively, described second cleaning list comprises the title of all application programs in described terminal device and the process of application program of having opened when opening Automatic clearance function at described terminal device and Service name.
Alternatively, after the step creating described first cleaning list and the second cleaning list, the control method of described Automatic clearance terminal device also comprises the application program of the operating application program and the described first produced buffer memory cleared up in list that produce buffer memory that obtain being divided to compare to obtain simultaneously has operatingly authorized the application program that can produce buffer memory, application program and described second all application programs of clearing up in list of having opened in the described terminal device of acquisition is compared to obtain the application program of not opening.
Alternatively, the application program that can produce buffer memory has been authorized for operating, then perform cache cleaner according to CACHE DIRECTORY and directory path, for the undelegated application program producing buffer memory, then send notice to inform the software cache cleaner not performing this application program.
Alternatively, for the application program of not opening, then close process and the service of this application program.
The present invention also provides a kind of control system of Automatic clearance terminal device on the other hand, the control system of described Automatic clearance terminal device comprises: detection module, for when described terminal device enters using forestland, detect all application programs be present in described terminal device; Judge module, is connected with described detection module, for judging whether described terminal device opens Automatic clearance function; If, call for create be present in described terminal device in order to record application program in can produce the first cleaning list of the application program of buffer memory and the list creating module in order to the second cleaning list of recording all application programs in described terminal device, and the use habit simultaneously called for using described terminal device according to user, obtain the stand-by time section trapping module of the stand-by time section of described terminal device; If not, then the termination module for stopping clearing function is called; Cleaning module, be connected with described list creating module and stand-by time section trapping module, for the stand-by time section according to described terminal device, and described first cleaning list and the second cleaning list are simultaneously to the application program of the generation buffer memory in described terminal device and the application program execution cleaning operation do not opened.
Alternatively, the control system of described Automatic clearance terminal device also comprises: the first processing module, with described list creating module and clear up model calling, for the application program application program that can produce buffer memory in described first cleaning list being divided into the application program of authorizing and can produce buffer memory and unauthorized can produce buffer memory, obtain the operating application program producing buffer memory, and the application program of the operating application program and the described first produced buffer memory cleared up in list that produce buffer memory obtained is divided compare to obtain and operatingly authorized the application program that can produce buffer memory, second processing module, with described list creating module and clear up model calling, for obtaining the application program of having opened in described terminal device, and application program and described second all application programs of clearing up in list of having opened in the described terminal device obtained are compared to obtain the application program of not opening.
Another aspect of the invention also provides a kind of terminal device, comprising: the control system of described Automatic clearance terminal device.
As mentioned above, the control method of Automatic clearance terminal device of the present invention, system and terminal device, have following beneficial effect:
The control method of Automatic clearance terminal device of the present invention, system and terminal device have following advantage:
First, clean up process software need not be pre-installed and carry out the useless process of Automatic clearance and service;
The second, user need not enter third party App and carry out cache cleaner, adds convenience, it also avoid and does not clear up the situation causing low memory for a long time;
3rd, make use of the use habit that user uses terminal device, Automatic clearance in the stand-by time section of terminal device, the internal memory of this equipment can not be taken when user uses terminal device and cause the card of terminal device to pause and the phenomenon of low memory.
Accompanying drawing explanation
Fig. 1 is shown as the control method schematic flow sheet of Automatic clearance terminal device of the present invention.
Fig. 2 is shown as step S6 idiographic flow schematic diagram schematic diagram in the control method of Automatic clearance terminal device of the present invention.
Fig. 3 is shown as the theory structure schematic diagram of the control system of Automatic clearance terminal device of the present invention.
Fig. 4 is shown as the theory structure schematic diagram of terminal device of the present invention.
Element numbers explanation
1 terminal device
The control system of 10 Automatic clearance terminal devices
101 detection modules
102 judge modules
103 list creating modules
104 stand-by time section trapping modules
105 first processing modules
106 second processing modules
107 cleaning modules
108 stop module
S1 ~ S6 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
The control method of Automatic clearance terminal device of the present invention, system and terminal device are the customs utilizing user to use terminal device, judge the stand-by time section of terminal device, and utilize this time period to clear up the process of the not enabled of equipment and service and webpage Cookie and App buffer memory.
Embodiment one
The present embodiment provides a kind of control method of Automatic clearance terminal device, and the control method of described Automatic clearance terminal device comprises the following steps:
When described terminal device enters using forestland, detect all application programs be present in described terminal device;
Judge whether described terminal device opens Automatic clearance function; If, create in the application program being present in described terminal device in order to record the first cleaning list that can produce the application program of buffer memory and the second cleaning list in order to record all application programs in described terminal device, use the use habit of described terminal device simultaneously according to user, obtain the stand-by time section of described terminal device; If not, process is terminated;
According to the stand-by time section of described terminal device, and described first cleaning list and the second cleaning list are simultaneously to the application program of the generation buffer memory in described terminal device and the application program execution cleaning operation do not opened.
Below with reference to diagram, the control method of the Automatic clearance terminal device described in the present embodiment is described in detail.Described terminal device comprises smart mobile phone, panel computer, IPAD, notebook computer etc.In the present embodiment, described terminal device adopts smart mobile phone.Refer to Fig. 1, be shown as the control method schematic flow sheet of Automatic clearance terminal device.As shown in Figure 1, the control method of described Automatic clearance terminal device specifically comprises following step:
S1, when described terminal device enters using forestland, detects all application programs be present in described terminal device.All application programs be present in described terminal device refer to the application program in the user interface being present in display screen in described terminal device, and such as, system carries application program and is derived from the application program that third party provides.
S2, judges whether described terminal device opens Automatic clearance function; If so, then perform step S3, if not, terminate process.In the present embodiment, user can select whether to open Automatic clearance function according to self-demand.That is, described terminal device can eject a clearing function choice box when entering using forestland, two kinds of selections are had in described clearing function choice box, the first is chosen as cleaning, second is chosen as and does not temporarily clear up, if user selects cleaning, then export cleaning instruction and judge that Automatic clearance function opened by described terminal device with this.
S3, if open Automatic clearance function, then create in the application program being present in described terminal device in order to record the first cleaning list that can produce the application program of buffer memory and the second cleaning list in order to record all application programs in described terminal device, use the use habit of described terminal device simultaneously according to user, obtain the stand-by time section of described terminal device.Judging that user uses in the stage of the use habit of terminal device, with a week for benchmark, within this week, cleanup action is carried out with general user's use habit, cleanup action is carried out at 3 in morning Beijing time, and with 1 hour for node, if user does not have operating handset within an hour, then this user is not used mobile phone time segment record, then the time period of mobile phone is not used to gather user in the middle of this week, with the non-operating handset of user 5 hours for benchmark, draw subscriber equipment stand-by time section, cleaning operation is carried out in this stand-by time section.
S4, is divided into the application program that can produce buffer memory in described first cleaning list the application program of authorizing and can produce buffer memory and unauthorized can produce the application program of buffer memory, and obtains the operating application program producing buffer memory; Obtain the application program of having opened in described terminal device simultaneously.Wherein, described first cleaning list comprises: authorized the title of the application program that can produce buffer memory, unauthorized can produce the title of the application program of buffer memory and the CACHE DIRECTORY of having authorized the application program mandate that can produce buffer memory to enter and the directory path of having authorized the application program mandate that can produce buffer memory to enter.Described second cleaning list comprises the title of all application programs in described terminal device and the process of application program of having opened when opening Automatic clearance function at described terminal device and Service name.In the present embodiment, set up the first cleaning list and the second cleaning list can not need to enter each application program and carries out cache cleaner, add the convenience that user uses.
S5, the application program of the operating application program and the described first produced buffer memory cleared up in list that produce buffer memory obtained is divided compare to obtain and operatingly authorized the application program that can produce buffer memory, application program and described second all application programs of clearing up in list of having opened in the described terminal device of acquisition are compared to obtain the application program of not opening.
S6, according to the stand-by time section of described terminal device, and described first cleaning list and the second cleaning list are simultaneously to the application program of the generation buffer memory in described terminal device and the application program execution cleaning operation do not opened.Refer to Fig. 2, be shown as step S6 idiographic flow schematic diagram.As shown in Figure 2, described step S6 performs following step simultaneously:
S61, has authorized the application program that can produce buffer memory for operating, then perform cache cleaner according to CACHE DIRECTORY and directory path.
S62, for the undelegated application program producing buffer memory, then send notice to inform the software cache cleaner not performing this application program, also unauthorized clears up the software cache cleaner of this application program in other words.
S63, for the application program of not opening, then directly closes process and the service of this application program.
First the control method of the Automatic clearance terminal device described in the present embodiment need not be pre-installed clean up process software and carry out the useless process of Automatic clearance and service; The second, user need not enter third party App and carry out cache cleaner, adds convenience, it also avoid and does not clear up the situation causing low memory for a long time; 3rd, make use of the use habit that user uses terminal device, Automatic clearance in the stand-by time section of terminal device, the internal memory of this equipment can not be taken when user uses terminal device and cause the card of terminal device to pause and the phenomenon of low memory.
Embodiment two
The present embodiment provides a kind of control system of Automatic clearance terminal device, and the control system of described Automatic clearance terminal device comprises:
Detection module, for when described terminal device enters using forestland, detects all application programs be present in described terminal device;
Judge module, is connected with described detection module, for judging whether described terminal device opens Automatic clearance function; If, call for create be present in described terminal device in order to record application program in can produce the first cleaning list of the application program of buffer memory and the list creating module in order to the second cleaning list of recording all application programs in described terminal device, and the use habit simultaneously called for using described terminal device according to user, obtain the stand-by time section trapping module of the stand-by time section of described terminal device; If not, then the termination module for stopping clearing function is called;
Cleaning module, be connected with described list creating module and stand-by time section trapping module, for the stand-by time section according to described terminal device, and described first cleaning list and the second cleaning list are simultaneously to the application program of the generation buffer memory in described terminal device and the application program execution cleaning operation do not opened.
Below with reference to diagram, the control system of the Automatic clearance terminal device described in the present embodiment is described in detail.Described terminal device comprises smart mobile phone, panel computer, IPAD, notebook computer etc.In the present embodiment, described terminal device adopts smart mobile phone.Refer to Fig. 3, be shown as the theory structure schematic diagram of the control system of Automatic clearance terminal device.As shown in Figure 3, the control system 10 of described Automatic clearance terminal device comprises: detection module 101, judge module 102, list creating module 103, stand-by time section trapping module 104, first processing module 105, second processing module 106, cleaning module 107 and termination module 108.
Described detection module 101, for when described terminal device enters using forestland, detects all application programs be present in described terminal device.All application programs be present in described terminal device refer to the application program in the user interface being present in display screen in described terminal device, and such as, system carries application program and is derived from the application program that third party provides.
The judge module 102 be connected with described detection module 101 is for judging whether described terminal device opens Automatic clearance function; If so, then calling described list creating module 103 and stand-by time section trapping module 104 simultaneously, if not, then calling the termination module 108 for stopping clearing function.In the present embodiment, user can select whether to open Automatic clearance function according to self-demand.That is, described terminal device can eject a clearing function choice box when entering using forestland, two kinds of selections are had in described clearing function choice box, the first is chosen as cleaning, second is chosen as and does not temporarily clear up, if user selects cleaning, then export cleaning instruction and judge that Automatic clearance function opened by described terminal device with this.
If when the described list creating module 103 be connected with described judge module 102 is for opening Automatic clearance function, create in the application program being present in described terminal device in order to record the first cleaning list that can produce the application program of buffer memory and the second cleaning list in order to record all application programs in described terminal device.
The described stand-by time section trapping module 104 be connected with described judge module 102 and described list creating module 103, for using the use habit of described terminal device according to user, obtains the stand-by time section of described terminal device.Judging that user uses in the stage of the use habit of terminal device, with a week for benchmark, within this week, cleanup action is carried out with general user's use habit, cleanup action is carried out at 3 in morning Beijing time, and with 1 hour for node, if user does not have operating handset within an hour, then this user is not used mobile phone time segment record, then the time period of mobile phone is not used to gather user in the middle of this week, with the non-operating handset of user 5 hours for benchmark, draw subscriber equipment stand-by time section, cleaning operation is carried out in this stand-by time section.
The first processing module 105 be connected with described list creating module 103 is divided into the application program of authorizing and can produce buffer memory and unauthorized can produce the application program of buffer memory for clearing up the application program that can produce buffer memory in list by described first, and obtain the operating application program producing buffer memory, the application program of the operating application program and the described first produced buffer memory cleared up in list that produce buffer memory obtained is divided compare to obtain and operatingly authorized the application program that can produce buffer memory.
The second processing module 106 be connected with described list creating module 103 and the first processing module 105 obtains the application program of having opened in described terminal device while running in the first processing module 105, and application program and described second all application programs of clearing up in list of having opened in the described terminal device obtained is compared to obtain the application program of not opening.Wherein, described first cleaning list comprises: authorized the title of the application program that can produce buffer memory, unauthorized can produce the title of the application program of buffer memory and the CACHE DIRECTORY of having authorized the application program mandate that can produce buffer memory to enter and the directory path of having authorized the application program mandate that can produce buffer memory to enter.Described second cleaning list comprises the title of all application programs in described terminal device and the process of application program of having opened when opening Automatic clearance function at described terminal device and Service name.In the present embodiment, set up the first cleaning list and the second cleaning list can not need to enter each application program and carries out cache cleaner, add the convenience that user uses.
The cleaning module 107 be connected with described stand-by time section trapping module 104, first processing module 105, second processing module 106 is for the stand-by time section according to described terminal device, and described first cleaning list and the second cleaning list are simultaneously to the application program of the generation buffer memory in described terminal device and the application program execution cleaning operation do not opened.Described cleaning module 107 specifically performs following functions:
Authorize the application program that can produce buffer memory for operating, then perform cache cleaner according to CACHE DIRECTORY and directory path.
For the undelegated application program producing buffer memory, then send notice to inform the software cache cleaner not performing this application program, also unauthorized clears up the software cache cleaner of this application program in other words.
For the application program of not opening, then directly close process and the service of this application program.
The present embodiment also provides a kind of terminal device 1, refers to Fig. 4, is shown as terminal device theory structure schematic diagram.As shown in Figure 4, described terminal device 1 comprises the control system 10 of above-mentioned Automatic clearance terminal device.
In sum, the control method of Automatic clearance terminal device of the present invention, system and terminal device have following advantage:
First, clean up process software need not be pre-installed and carry out the useless process of Automatic clearance and service;
The second, user need not enter third party App and carry out cache cleaner, adds convenience, it also avoid and does not clear up the situation causing low memory for a long time;
3rd, make use of the use habit that user uses terminal device, at the stand-by time section Automatic clearance of terminal device, the internal memory of this equipment can not be taken when user uses terminal device and cause the card of terminal device to pause and the phenomenon of low memory.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.