Summary of the invention
The object of the embodiment of the present invention is to provide a kind of intelligent terminal file clean-up method and device, cleaning object and trigger condition when user carries out file clean-up automatically by setting, when arrive for set trigger condition time, the cleaning object that intelligent terminal is set user is cleared up, cache file and the multimedia file of Automatic clearance intelligent terminal inside.
The embodiment of the present invention is achieved in that a kind of intelligent terminal file clean-up method, and described method comprises the steps:
Set the cleaning object while automatically carrying out file clean-up and the trigger condition of automatically carrying out file clean-up;
When detecting that the trigger condition of automatically carrying out file clean-up reaches, startup file clearing function, scans and according to scanning result, cleaning object is carried out to file clean-up the cleaning object of setting.
Cleaning object when further, described setting is carried out file clean-up automatically and the step of automatically carrying out the trigger condition of file clean-up comprise:
Set target cleaning file and target cleaning file type while automatically carrying out file clean-up;
Set the trigger condition of automatically carrying out file clean-up.
Further, the trigger condition that file clean-up is carried out in described setting automatically comprises:
Set the time interval of automatically carrying out file clean-up, when arriving certain time interval, with regard to triggering, carry out a file clean-up;
Set storage space remaining proportion while automatically carrying out file clean-up, when the ratio of residual memory space is less than certain threshold value, just trigger a file clean-up.
Further, described when detecting that the trigger condition of automatically carrying out file clean-up reaches, startup file clearing function, scans and the step of cleaning object being carried out to file clean-up according to scanning result comprises the cleaning object of setting:
When detecting that the trigger condition of automatically carrying out file clean-up reaches, startup file clearing function;
The cleaning object of setting is carried out to file scanning, according to the result of scanning, cache file is cleared up, the multimedia file of storing is deleted simultaneously in cleaning object.
Another object of the embodiment of the present invention is to provide a kind of intelligent terminal file clean-up device, and described device comprises:
Setup unit, the cleaning object while automatically carrying out file clean-up for setting and the trigger condition of automatically carrying out file clean-up;
Cleaning unit, for when detecting that the trigger condition of automatically carrying out file clean-up reaches, startup file clearing function, scans and to clearing up object, carries out file clean-up according to scanning result the cleaning object of setting.
Further, described setup unit comprises:
Goal-setting unit, the target cleaning file while automatically carrying out file clean-up for setting and target cleaning file type;
Trigger setup unit, for setting the trigger condition of automatically carrying out file clean-up.
Further, the trigger condition that file clean-up is carried out in described triggering setup unit setting automatically comprises:
Set the time interval of automatically carrying out file clean-up, when arriving certain time interval, with regard to triggering, carry out a file clean-up;
Set storage space remaining proportion while automatically carrying out file clean-up, when the ratio of residual memory space is less than certain threshold value, just trigger a file clean-up.
Further, described cleaning unit comprises:
Cleaning start unit, for when detecting that the trigger condition of automatically carrying out file clean-up reaches, startup file clearing function;
Cleaning performance element, for the cleaning object of setting is carried out to file scanning, clears up cache file according to the result of scanning, the multimedia file of storing is deleted in cleaning object simultaneously.
The embodiment of the present invention is by a kind of intelligent terminal file clean-up method and device, according to user's use habit, object and the trigger condition of mobile terminal being carried out to file clean-up arrange, the object that user specifically clears up when cleaning file is set, trigger condition when cleaning file is set afterwards again, specifically comprise according to the time interval and trigger and clear up and trigger according to intelligent terminal residual memory space ratio, after triggering is cleared up, automatically to data cached, clear up, multimedia file is cleared up, avoid the gibberish of the storing excess in system, it is more smooth and easy making intelligent terminal operation.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Below in conjunction with specific embodiment, specific implementation of the present invention is described in detail:
Embodiment mono-:
Fig. 1 shows the realization flow of a kind of intelligent terminal file clean-up method that first embodiment of the invention provides, and details are as follows:
S101, sets the cleaning object while automatically carrying out file clean-up and the trigger condition of automatically carrying out file clean-up.
User is according to oneself using the custom of intelligent terminal to set the object that automatically carries out file clean-up, such as user often uses intelligent terminal to watch the multimedia files such as Online Video, owing to watching the multimedia files such as video, intelligent terminal often can pass through the mode downloading video files of buffer memory, user just can set the data cached of scanning multimedia file, timing is cleared up multimedia cache file, user also can set for the data file of other types and clear up, or according to the mode of system default, cleaning object is set, user arranges the cleaning rule while carrying out file clean-up afterwards, for example user once clears up between can setting at regular intervals, or when being less than certain threshold value, user's storage space carries out file clean-up.
S102, when detecting that the trigger condition of automatically carrying out file clean-up reaches, startup file clearing function, scans and according to scanning result, cleaning object is carried out to file clean-up the cleaning object of setting.
When intelligent terminal detects that cleaning trigger condition that user sets reaches, can be specifically clearance time interval that user sets reach or user's intelligent terminal in residual memory space ratio lower than set threshold value time, now startup file clearing function, intelligent terminal scans whole file system automatically, in file system, scan the removing object that user sets, specifically comprise the data of intelligent terminal automatic buffer and the multi-medium data of download that user sets, afterwards the multi-medium data of buffered data and download is cleared up, treating buffered data can directly delete, multi-medium data to be downloaded is cleared up multimedia file according to the mode of multi-medium data storage, for example multimedia file is the data of using, do not carry out cleanup action, if being user, multi-medium data clicks the data of download, continue the multi-medium data that keeps user to download.
The embodiment of the present invention by the way, a kind of intelligent terminal file clean-up method, first user is according to the use habit of oneself, object and the trigger condition of mobile terminal being carried out to file clean-up arrange, the object that user specifically clears up when cleaning file is set, trigger condition when cleaning file is set afterwards again, specifically comprise according to the time interval and trigger and clear up and trigger according to intelligent terminal residual memory space ratio, after triggering is cleared up, automatically to data cached, clear up, multimedia file is cleared up, avoid the gibberish of the storing excess in system, it is more smooth and easy making intelligent terminal operation.
Embodiment bis-:
Fig. 2 shows the realization flow of a kind of intelligent terminal file clean-up method that second embodiment of the invention provides, and details are as follows:
S201, sets target cleaning file and target cleaning file type while automatically carrying out file clean-up.
First user is according to oneself using the custom of intelligent terminal to set the object that automatically carries out file clean-up, such as user often uses intelligent terminal to watch the multimedia files such as Online Video, owing to watching the multimedia files such as video, intelligent terminal often can be by the some or all of data of the mode downloading video files of buffer memory, user just can set the data cached of scanning multimedia file, wherein user is when the type of target setting cleaning file, need to scan hiding the file arranging, multimedia file is hidden and is arranged as .nomedia file there will be in some cases, now can be by the scan setting clearing function to .nomedia file be set separately.
S202, sets the trigger condition of automatically carrying out file clean-up.
User, set after target cleaning file type, user continues to set the cleaning rule while carrying out file clean-up, user can set the time interval of automatically carrying out file clean-up, when arriving certain time interval, with regard to triggering, carry out a file clean-up, also can set storage space remaining proportion while automatically carrying out file clean-up, when being less than certain threshold value, the ratio of residual memory space just triggers a file clean-up, for example user can set the interval time of one day and once clear up, or when being less than 15% storage space, user's storage space carries out file clean-up.
S203, when detecting that the trigger condition of automatically carrying out file clean-up reaches, startup file clearing function.
Intelligent terminal automatically checks in start operational process, when detecting that the trigger condition of automatically carrying out file clean-up reaches, just start clearing function, specifically comprise the time of setting that arrives, or when intelligent terminal storage space arrives the threshold value of setting, now automatically on the backstage of intelligent terminal, carry out file clean-up work.
S204, carries out file scanning to the cleaning object of setting, and according to the result of scanning, cache file is cleared up, and the multimedia file of storing is deleted in cleaning object simultaneously.
Intelligent terminal carries out file scanning to the cleaning object of setting automatically, by scanning document system, multimedia file under file system folder is scanned out, especially be provided with the multimedia file of hiding attribute, the multimedia file that while passing through to differentiate the multimedia file under file system folder afterwards, the multimedia file of interim buffer memory or user oneself download, specifically can be by the naming rule of file, judge the store path of file and the storage time of file etc., by multimedia file is judged, multimedia file is cleared up, to data cachedly directly deleting in storage, be embodied as the weight reducing of whole system file, the redundant file of minimizing system, make intelligent terminal when operation, automatically delete redundant file, the data cached Automatic clearance that carries out that system is produced when moving, guarantee the long-play of system stability.
The embodiment of the present invention by the way, a kind of intelligent terminal file clean-up method, user is when using mobile terminal, cleaning object while automatically carrying out file clean-up by setting and the trigger condition of automatically carrying out file clean-up, when trigger condition reaches, startup file clearing function, the cleaning object of setting is scanned and according to scanning result, cleaning object carried out to file clean-up, by automatically the multimedia file of the redundant file in system especially buffer memory being scanned and is cleared up, avoid the gibberish of storing excess in system, guarantee that whole system running paper is good, simultaneously by automatically file being cleared up, more smooth and easy in the time of can making intelligent terminal use, assurance intelligent terminal can be stablized use for a long time in the situation that not shutting down.
Embodiment tri-:
Fig. 3 shows the structural drawing of a kind of intelligent terminal file clean-up device that third embodiment of the invention provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.
Setup unit 31, the cleaning object while automatically carrying out file clean-up for setting and the trigger condition of automatically carrying out file clean-up.
Setup unit is used for user according to oneself using the custom of intelligent terminal to set the object that automatically carries out file clean-up, such as user often uses intelligent terminal to watch the multimedia files such as Online Video, owing to watching the multimedia files such as video, intelligent terminal often can pass through the mode downloading video files of buffer memory, user just can set the data cached of scanning multimedia file, timing is cleared up multimedia cache file, user also can set for the data file of other types and clear up, or according to the mode of system default, cleaning object is set, user arranges the cleaning rule while carrying out file clean-up afterwards, for example user once clears up between can setting at regular intervals, or when being less than certain threshold value, user's storage space carries out file clean-up.
Cleaning unit 32, for when detecting that the trigger condition of automatically carrying out file clean-up reaches, startup file clearing function, scans and to clearing up object, carries out file clean-up according to scanning result the cleaning object of setting.
Cleaning unit is when detecting that when intelligent terminal cleaning trigger condition that user sets reaches, can be specifically clearance time interval that user sets reach or user's intelligent terminal in residual memory space ratio lower than set threshold value time, now startup file clearing function, intelligent terminal scans whole file system automatically, in file system, scan the removing object that user sets, specifically comprise the data of intelligent terminal automatic buffer and the multi-medium data of download that user sets, afterwards the multi-medium data of buffered data and download is cleared up, treating buffered data can directly delete, multi-medium data to be downloaded is cleared up multimedia file according to the mode of multi-medium data storage, for example multimedia file is the data of using, do not carry out cleanup action, if being user, multi-medium data clicks the data of download, continue the multi-medium data that keeps user to download.
The embodiment of the present invention by the way, a kind of intelligent terminal file clean-up device, first user is according to the use habit of oneself, object and the trigger condition of mobile terminal being carried out to file clean-up arrange, the object that user specifically clears up when cleaning file is set, trigger condition when cleaning file is set afterwards again, specifically comprise according to the time interval and trigger and clear up and trigger according to intelligent terminal residual memory space ratio, after triggering is cleared up, automatically to data cached, clear up, multimedia file is cleared up, avoid the gibberish of the storing excess in system, it is more smooth and easy making intelligent terminal operation.
Embodiment tetra-:
Fig. 4 shows the structural drawing of a kind of intelligent terminal file clean-up device that fourth embodiment of the invention provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.
Goal-setting unit 41, the target cleaning file while automatically carrying out file clean-up for setting and target cleaning file type.
Goal-setting unit sets according to the custom of own use intelligent terminal the object that automatically carries out file clean-up for user first, such as user often uses intelligent terminal to watch the multimedia files such as Online Video, owing to watching the multimedia files such as video, intelligent terminal often can be by the some or all of data of the mode downloading video files of buffer memory, user just can set the data cached of scanning multimedia file, wherein user is when the type of target setting cleaning file, need to scan hiding the file arranging, multimedia file is hidden and is arranged as .nomedia file there will be in some cases, now can be by the scan setting clearing function to .nomedia file be set separately.
Trigger setup unit 42, for setting the trigger condition of automatically carrying out file clean-up.
Trigger setup unit for having set user after target cleaning file type, user continues to set the cleaning rule while carrying out file clean-up, user can set the time interval of automatically carrying out file clean-up, when arriving certain time interval, with regard to triggering, carry out a file clean-up, also can set storage space remaining proportion while automatically carrying out file clean-up, when being less than certain threshold value, the ratio of residual memory space just triggers a file clean-up, for example user can set the interval time of one day and once clear up, or when being less than 15% storage space, user's storage space carries out file clean-up.
Cleaning start unit 43, for when detecting that the trigger condition of automatically carrying out file clean-up reaches, startup file clearing function.
Cleaning start unit checks at start operational process automatically for intelligent terminal, when detecting that the trigger condition of automatically carrying out file clean-up reaches, just start clearing function, specifically comprise the time of setting that arrives, or when intelligent terminal storage space arrives the threshold value of setting, now automatically on the backstage of intelligent terminal, carry out file clean-up work.
Cleaning performance element 44, for the cleaning object of setting is carried out to file scanning, clears up cache file according to the result of scanning, the multimedia file of storing is deleted in cleaning object simultaneously.
Cleaning performance element carries out file scanning to the cleaning object of setting automatically for intelligent terminal, by scanning document system, multimedia file under file system folder is scanned out, especially be provided with the multimedia file of hiding attribute, the multimedia file that while passing through to differentiate the multimedia file under file system folder afterwards, the multimedia file of interim buffer memory or user oneself download, specifically can be by the naming rule of file, judge the store path of file and the storage time of file etc., by multimedia file is judged, multimedia file is cleared up, to data cachedly directly deleting in storage, be embodied as the weight reducing of whole system file, the redundant file of minimizing system, make intelligent terminal when operation, automatically delete redundant file, the data cached Automatic clearance that carries out that system is produced when moving, guarantee the long-play of system stability.
The embodiment of the present invention by the way, a kind of intelligent terminal file clean-up device, user is when using mobile terminal, cleaning object while automatically carrying out file clean-up by setting and the trigger condition of automatically carrying out file clean-up, when trigger condition reaches, startup file clearing function, the cleaning object of setting is scanned and according to scanning result, cleaning object carried out to file clean-up, by automatically the multimedia file of the redundant file in system especially buffer memory being scanned and is cleared up, avoid the gibberish of storing excess in system, guarantee that whole system running paper is good, simultaneously by automatically file being cleared up, more smooth and easy in the time of can making intelligent terminal use, assurance intelligent terminal can be stablized use for a long time in the situation that not shutting down.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is can carry out the hardware that instruction is relevant by program to complete, described program can be stored in computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.