CN106960009A - A kind of file delet method and system - Google Patents

A kind of file delet method and system Download PDF

Info

Publication number
CN106960009A
CN106960009A CN201710112751.6A CN201710112751A CN106960009A CN 106960009 A CN106960009 A CN 106960009A CN 201710112751 A CN201710112751 A CN 201710112751A CN 106960009 A CN106960009 A CN 106960009A
Authority
CN
China
Prior art keywords
file
terminal installation
predeterminable
module
deleted
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.)
Pending
Application number
CN201710112751.6A
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.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology 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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201710112751.6A priority Critical patent/CN106960009A/en
Publication of CN106960009A publication Critical patent/CN106960009A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Abstract

The present invention relates to a kind of file delet method and system, the file delet method includes:Detection acts on the control operation of the predeterminable area of the terminal installation;If the control operation meets preparatory condition, judge whether terminal installation occurs predeterminable event;If predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event is deleted.The present invention also constructs a kind of file deleting system.Implement technical scheme, this mode deletes mode compared to existing file, and simple to operate, Consumer's Experience is good.

Description

A kind of file delet method and system
Technical field
The present invention relates to field of terminal, more particularly to a kind of file delet method and system.
Background technology
With era development, the function achieved by terminal installation is become stronger day by day, and is that people's daily life and work are brought Great convenience.Substantial amounts of file is stored in terminal installation, needs first to look for according to the store path of file usually using person To file, then filesselected, could be deleted file.But, the file delet method of existing terminal installation, control It is cumbersome, poor user experience.
The content of the invention
The technical problem to be solved in the present invention is that there is provided one for cumbersome defect when being deleted for existing file File delet method and system are planted, simple to operate, Consumer's Experience is good.
The technical solution adopted for the present invention to solve the technical problems is:The present invention provides a kind of file delet method, should In terminal installation, the file delet method includes:
Detection acts on the control operation of the predeterminable area of the terminal installation;
If the control operation meets preparatory condition, judge whether terminal installation occurs predeterminable event;
If predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event is deleted.
Preferably, it is described to judge whether terminal installation occurs predeterminable event and include:
Judge whether terminal installation occurs multiple predeterminable events;
If predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event carries out deletion bag Include:
If multiple predeterminable events, display pair multiple target texts corresponding with multiple predeterminable events difference occur for terminal installation Part carries out the selection interface of selection;
Receive and act on the selection operation of the selection interface, and delete in the multiple file destination and grasped with the selection Make corresponding file destination;Or
It is described to judge whether terminal installation occurs predeterminable event and include:
Judge whether terminal installation occurs multiple predeterminable events;
If predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event carries out deletion bag Include:
If terminal installation occurs in multiple predeterminable events, pair multiple file destinations corresponding with multiple predeterminable events difference The file destination determined according to priority rule is deleted.
Preferably, it is described to judge whether terminal installation occurs predeterminable event and include:
Judge that terminal installation whether there is the file being performed;
If predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event is deleted Including:
If terminal installation has the file being performed, the file being performed is deleted;Or
It is described to judge whether terminal installation occurs predeterminable event and include:
Judge whether terminal installation occurs the event using install failure or dismount failure;
If predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event is deleted Including:
If application install failure or the event of dismount failure occur for terminal installation, to applying install failure or dismount failure Produced file destination is deleted;Or
It is described to judge whether terminal installation occurs predeterminable event and include:
Judge that terminal installation whether there is system rubbish file;
If predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event is deleted Including:
If terminal installation has system rubbish file, system rubbish file is deleted.
Preferably, it is described that the progress deletion of the predeterminable event corresponding file destination is included:
Show the deletion prompt message of the file destination;
Receive the deletion instruction that response is deleted prompt message and inputted;
Delete and the deletion corresponding file destination of instruction.
Preferably, it is described that the progress deletion of the predeterminable event corresponding file destination is included:
The file destination is backed up into default file folder, and the file destination is deleted.
Preferably, the control operation for detecting the predeterminable area for acting on the terminal installation includes:
Detection acts on the control operation in the pressure sensitive region of the terminal installation;
The control operation, which meets preparatory condition, to be included:
The corresponding pressure value of the control operation is more than or equal to preset pressure threshold value;Or
The corresponding pressure value of the control operation is more than or equal to preset pressure threshold value, and control operation correspondence Duration be more than or equal to preset duration threshold value.
The present invention also constructs a kind of file deleting system, and applied to terminal installation, the file deleting system includes:
Detection unit, the control operation for detecting the predeterminable area for acting on the terminal installation;
Judging unit, for when the control operation meets preparatory condition, judging whether terminal installation occurs default thing Part;
Unit is deleted, for when predeterminable event occurs for the terminal installation, target corresponding to the predeterminable event to be literary Part is deleted.
Preferably,
The judging unit includes the first judge module, and the deletion unit includes the first display module, the first reception mould Block and the first removing module, moreover,
First judge module, for judging whether terminal installation occurs multiple predeterminable events;
First display module, for terminal installation occur multiple predeterminable events when, display pair with multiple default things Part distinguishes the selection interface that corresponding multiple file destinations carry out selection;
First receiver module, the selection operation of the selection interface is acted on for receiving;
First removing module, for deleting target text corresponding with the selection operation in the multiple file destination Part;
Or, the judging unit includes the second judge module, and the deletion unit includes the second removing module, moreover,
Second judge module, for judging whether terminal installation occurs multiple predeterminable events;
Second removing module, it is pair right respectively with multiple predeterminable events for when multiple predeterminable events occur for terminal installation The file destination determined in the multiple file destinations answered according to priority rule is deleted;
Or, the judging unit includes the 3rd judge module, and the deletion unit includes the 3rd removing module, moreover,
3rd judge module, for judging that terminal installation whether there is the file being performed;
3rd removing module, for when terminal installation has the file being performed, to what is be performed File is deleted;
Or,
The judging unit includes the 4th judge module, and the deletion unit includes the 4th removing module, moreover,
4th judge module, for judging whether terminal installation occurs the thing using install failure or dismount failure Part;
4th removing module, it is right during for occurring the event of application install failure or dismount failure in terminal installation Deleted using the file destination produced by install failure or dismount failure;
Or,
The judging unit includes the 5th judge module, and the deletion unit includes the 5th removing module, moreover,
5th judge module, for judging that terminal installation whether there is system rubbish file;
5th removing module, for when terminal installation has system rubbish file, being carried out to system rubbish file Delete;
Or, the deletion unit includes the second display module, the second receiver module and the 6th removing module, moreover,
Second display module, the deletion prompt message for showing the file destination;
Second receiver module, for receiving the deletion instruction that response is deleted prompt message and inputted;
6th removing module, for deleting and the deletion corresponding file destination of instruction.
Preferably, the deletion unit includes:
Backup module, for the file destination to be backed up into default file folder;
7th removing module, for deleting the file destination.
Preferably, the detection unit includes:
First detection module, the control operation for detecting the pressure sensitive region for acting on the terminal installation;
Include moreover, the control operation meets preparatory condition:
The corresponding pressure value of the control operation is more than or equal to preset pressure threshold value;Or
The corresponding pressure value of the control operation is more than or equal to preset pressure threshold value, and control operation correspondence Duration be more than or equal to preset duration threshold value.
Implement technical scheme, when needing to delete some specific file in terminal installation, user Operation can be controlled to the predeterminable area of terminal installation, when terminal installation judges that the control operation meets preparatory condition, and end When predeterminable event occurs for end device, so that it may which file destination corresponding to the predeterminable event is deleted.Therefore, this mode phase Deleting mode than existing file, (need first find file according to the store path of file, then filesselected, finally could be to text Part is deleted), simple to operate, Consumer's Experience is good.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the first embodiment for file delet method that the present invention is provided.
Fig. 2 is a kind of structural representation of the first embodiment for file deleting system that the present invention is provided.
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 only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow sheet of the first embodiment for file delet method that the present invention is provided, The file delet method of the embodiment can apply in terminal installation.Wherein, terminal installation includes but is not limited to mobile phone, flat board Computer, intelligent watch, Intelligent bracelet, MP3, MP4 etc..The operating system of terminal installation may include but be not limited to Flyme operations system System, Android operation system, IOS, Symbian (Saipan) operating system, Black Berry (blackberry, blueberry) operations system System, Windows Phone operating systems etc..As shown in figure 1, the file delet method of the embodiment comprises the following steps:
S10. detection acts on the control operation of the predeterminable area of the terminal installation;
In this step, on control operation of the user to terminal, in a specific embodiment, it can be that function is pressed Operation such as key, the click of touch key-press, pressing, slip etc..In another specific embodiment, it is alternatively the point on touch-screen The operation etc. such as hit, press, sliding, wherein, clicking operation can include clicking, double-click or repeatedly click on etc., and pressing operation can be with Pressing operation (such as again as, flicking) including short-press, long-press and with different pressures value, slide, which can refer to, to be touched Control on region along linear slide, specific symbol etc. can also be slided out.In another specific embodiment, it can also be to end Whipping, upset of end device etc. are operated.
In addition, on predeterminable area, its default mode that can be provided for system can also be pre-set by user and be obtained, example Such as, user can set predeterminable area, or terminal installation in use by inputting certain when terminal installation is first powered on Be configured after one preset password, etc., the embodiment of the present invention is not limited.For example, when setting predeterminable area, for example can be by The a certain pressure sensitive region of terminal installation is arranged to predeterminable area.
If S20. the control operation meets preparatory condition, judge whether terminal installation occurs predeterminable event;
In this step, after terminal installation detects the control operation of user, control operation information may be output to terminal In device built-in master controller or other there is the processor or controller of data operation processing function, it is including but not limited to micro- Processor, microcontroller, digital signal processor, micro calculator, central processing unit, field programming gate array, FPGA Equipment, stater, logic circuit, analog circuit, digital circuit and/or it is any based on operational order operation signal (simulation and/or Numeral) equipment.Then, judge whether control operation meets preparatory condition by the processor or controller.When judging the control When operation processed meets preparatory condition, then judge whether terminal installation occurs predeterminable event.
On preparatory condition, its default mode that can be provided for system can also be pre-set by user and be obtained, for example, with Family can set preparatory condition when terminal installation is first powered on, or terminal installation is a certain preset by inputting in use Be configured after password, etc., the embodiment of the present invention is not limited.For example, set preparatory condition when, can be set it is following in One or more combinations:The pressure threshold of control operation, the duration threshold value of control operation, frequency threshold, whipping amplitude threshold, Flip angle threshold value etc..
On predeterminable event, its default mode that can be provided for system can also be pre-set by user and be obtained, for example, with Family can set predeterminable event when terminal installation is first powered on, or terminal installation is a certain preset by inputting in use Be configured after password, etc., the embodiment of the present invention is not limited.For example, when setting predeterminable event, following thing can be set Part:In the presence of the file being performed, using install failure or dismount failure, there is system rubbish file etc..
The present invention can pass through the set preparatory condition of various memory devices storage and predeterminable event.Each memory device can Realized by one or more storage assemblies.In this, storage assembly can be internal memory or buffer etc., but not right herein It is limited.Internal memory can such as read-only storage (Read-Only Memory;ROM), random access memory (Random Access Memory;RAM), non-permanent internal memory, permanent memory, static memory, volatile memory, flash memory and/or any storage numeral The equipment of information.
In addition, in one embodiment, when step S10 is:Detection acts on the pressure sensitive region of the terminal installation Control operation when, judge that the step of control operation meets preparatory condition includes in step S20:The control operation is corresponding Pressure value is more than or equal to preset pressure threshold value;Or, the corresponding pressure value of the control operation is more than or equal to default Pressure threshold, and the control operation corresponding duration is more than or equal to preset duration threshold value.Certainly, in others In embodiment, judge that the step of control operation meets preparatory condition may also comprise in step S20:The control operation is corresponding Duration is more than or equal to preset duration threshold value;Or, the frequency of control operation is more than or equal to predetermined registration operation frequency Threshold value;The whipping amplitude of control operation is more than or equal to default whipping range value;The flip angle of control operation is more than or waited In default flip angle angle value, or, combinations thereof.
If S30. predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event is deleted Remove.
In this step, only when judging that predeterminable event occurs for terminal installation, ability pair mesh corresponding with predeterminable event Mark file is deleted.
When predeterminable event is provided with it is multiple when, the file destination corresponding to it also has multiple, and now there is provided selection interface Allow user to select, the file destination for needing to delete is selected by user;Or, can automatically it locate according to default priority rule Reason.Specifically:
In one alternate embodiment, step S20 includes:
S21. judge whether terminal installation occurs multiple predeterminable events;
Moreover, step S30 includes:
If S311. multiple predeterminable events occur for terminal installation, display pair is corresponding multiple with multiple predeterminable events difference File destination carries out the selection interface of selection;
In this step, specifically, in selection interface, a choice box is shown at the upper right corner of each file, is supplied User chooses.Certainly, this is a specific embodiment of the invention, in other embodiments, and the file under selection state shows Show and show there can be the change of other forms compared to the file under nonselection mode, for example, color change, size variation.
S312. receive and act on the selection operation of the selection interface, and delete in the multiple file destination with it is described The corresponding file destination of selection operation.
In this step, user can select file destination to be deleted by way of choosing choice box, also can be by defeated Enter slip signals, the file that choosing is enclosed in sliding trace is defined as file destination to be deleted.
In another alternative embodiment, step S20 includes:
S22. judge whether terminal installation occurs multiple predeterminable events;
Moreover, step S30 includes:
If S32. multiple predeterminable events occur for terminal installation, pair multiple target texts corresponding with multiple predeterminable events difference The file destination determined in part according to priority rule is deleted.
In this step, set priority rule is for example, according to priority deleted by order from high to low, For example, predeterminable event is when there is the file being performed, the highest priority of corresponding file destination, predeterminable event is When generation application install failure or dismount failure, the priority of corresponding file destination is taken second place, and predeterminable event is the presence of system During garbage files, the priority of corresponding file destination is minimum.Or, pair multiple mesh corresponding with multiple predeterminable events difference The file destination of highest priority is deleted in mark file.
In a specific embodiment, predeterminable event is the presence of the file being performed, for example, that plays regards Frequently/music, the word document/pdf document/picture browsed etc..So, step S20 includes:
S23. judge that terminal installation whether there is the file being performed;
Moreover, step S30 includes:
If S33. terminal installation has the file being performed, the file being performed is deleted.
In another specific embodiment, predeterminable event is occurs to apply install failure or dismount failure, corresponding to it File destination for install or uninstall process in malfunction after caused by install not exclusively, critical file missing etc. generation part text Part.So, step S20 includes:
S24. judge whether terminal installation occurs the event using install failure or dismount failure;
Moreover, step S30 includes:
If S34. application install failure or the event of dismount failure occur for terminal installation, to applying install failure or unloading File destination produced by failure is deleted.
In another specific embodiment, is there is system rubbish file in predeterminable event, for example, journal file, system are slow Deposit, temporary file etc., so, step S20 includes:
S25. judge that terminal installation whether there is system rubbish file;
Moreover, step S30 includes:
If S35. terminal installation has system rubbish file, system rubbish file is deleted.
Preferably, when deletion system garbage files, the rubbish in certain time produced by terminal installation can also be pre-set Rubbish file, for example, nearly one week or nearly one month.
On the basis of above-described embodiment, further, in step s 30, target text corresponding to the predeterminable event The step of part is deleted specifically includes:
S361. the deletion prompt message of the file destination is shown;
In this step, in a specific implementation, can by way of prompting interface (such as prompting frame) come The deletion prompt message of display target file, deleting prompt message is, for example,:Whether this file is deleted.Implemented at another In mode, deletion prompt message can be also exported by voice.
S362. the deletion instruction that response is deleted prompt message and inputted is received;
In this step, also carried in a specific implementation, in prompting frame and select "Yes" or "No" for user Control.When user confirms to delete the file destination, deletion instruction can be inputted by triggering the control of "Yes".In another tool In body implementation, user can also be deleted by phonetic entry and be instructed, or, passed by the pressure for holding terminal installation again Sensor (pressure value is more than or equal to preset pressure threshold value, or the duration is more than or equal to preset duration threshold value, or both Combination) delete instruction to input.
S363. delete and the deletion corresponding file destination of instruction.
In this step, only after the confirmation of user is received, the file destination is just deleted, can so avoid missing Delete.
Preferably, when file destination is video/music for playing, or for browsed word document/pdf document/ During picture, after file destination is deleted, it user may also be prompted whether to perform next file (such as next that to be played Music) deletion, if do not receive confirm instruction if stop perform, if receive confirm instruction if perform this document deletion, equally Ground, confirms that instruction can be come in and gone out by prompting interface touch-control, can also be by phonetic entry, can also be by holding terminal again The pressure sensor of device is (when pressure value is more than or equal to preset pressure threshold value, or duration more than or equal to presetting Long threshold value, or both combination) input.
On the basis of above-described embodiment, yet further, in step s 30, target corresponding to the predeterminable event The step of file is deleted specifically includes:
S37. the file destination is backed up into default file folder, and the file destination is deleted.
In this embodiment, while delete target file, default file folder is backuped to, so, when user's hair Existing file destination is deleted by mistake after, it can also recover the deleted file.
Preferably, after the file destination to be backed up to default file folder, it can also further comprise:
Judge whether the BACKUP TIME of the file destination reaches preset time, and when reaching preset time, empty institute State default file.
In this embodiment, the backup file in default file folder can retain a preset time, when preset time reaches, The All Files in default file folder will be emptied, so, both family can be used to recover deleted file when deleting by mistake, and again might be used The memory space of saving system.
Preferably, it before default file is emptied, user may also be prompted whether to empty, only receiving user's Confirm just to be emptied during instruction, confirming the input mode of instruction can have a variety of, for example, touch control manner, voice mode etc..
Referring to Fig. 2, Fig. 2 is a kind of structural representation of the first embodiment for file deleting system that the present invention is provided, The file deleting system of the embodiment is applied in terminal installation.Wherein, terminal installation includes but is not limited to mobile phone, flat board electricity Brain, intelligent watch, Intelligent bracelet, MP3, MP4 etc..The operating system of terminal installation may include but be not limited to Flyme operating systems, Android operation system, IOS, Symbian (Saipan) operating system, Black Berry (blackberry, blueberry) operating system, Windows Phone operating systems etc..As shown in Fig. 2 the file deleting system of the embodiment includes detection unit 10, judged Unit 20 and deletion unit 30.
In this embodiment, detection unit 10 is used for the control behaviour for detecting the predeterminable area for acting on the terminal installation Make.On control operation of the user to terminal, in a specific embodiment, it can be the point to function button, touch key-press The operation etc. such as hit, press, sliding.In another specific embodiment, it is alternatively click, pressing, slip on touch-screen etc. Operation etc., wherein, clicking operation can include click, double-click or repeatedly click on etc., pressing operation can include short-press, long-press with And the pressing operation (such as again as, flicking) with different pressures value, slide can refer on touch area along straight line Slide, specific symbol etc. can also be slided out.In another specific embodiment, its can also be to the whipping of terminal installation, The operation such as upset.
In addition, on predeterminable area, its default mode that can be provided for system can also be pre-set by user and be obtained, example Such as, user can set predeterminable area, or terminal installation in use by inputting certain when terminal installation is first powered on Be configured after one preset password, etc., the embodiment of the present invention is not limited.For example, when setting predeterminable area, for example can be by The a certain pressure sensitive region of terminal installation is arranged to predeterminable area.
In this embodiment, judging unit 20 is used for when the control operation meets preparatory condition, judges terminal installation Whether predeterminable event is occurred.After terminal installation detects the control operation of user, control operation information may be output to terminal dress In putting built-in master controller or other there is the processor or controller of data operation processing function, including but not limited to micro- place Reason device, microcontroller, digital signal processor, micro calculator, central processing unit, field programming gate array, FPGA are set Standby, stater, logic circuit, analog circuit, digital circuit and/or any operational order operation signal that is based on (are simulated and/or number Word) equipment.Then, judge whether control operation meets preparatory condition by the processor or controller.When judging the control When operation meets preparatory condition, then judge whether terminal installation occurs predeterminable event.
On preparatory condition, its default mode that can be provided for system can also be pre-set by user and be obtained, for example, with Family can set preparatory condition when terminal installation is first powered on, or terminal installation is a certain preset by inputting in use Be configured after password, etc., the embodiment of the present invention is not limited.For example, set preparatory condition when, can be set it is following in One or more combinations:The pressure threshold of control operation, the duration threshold value of control operation, frequency threshold, whipping amplitude threshold, Flip angle threshold value etc..
On predeterminable event, its default mode that can be provided for system can also be pre-set by user and be obtained, for example, with Family can set predeterminable event when terminal installation is first powered on, or terminal installation is a certain preset by inputting in use Be configured after password, etc., the embodiment of the present invention is not limited.For example, when setting predeterminable event, following thing can be set Part:In the presence of the file being performed, using install failure or dismount failure, there is system rubbish file etc..
The present invention can pass through the set preparatory condition of various memory devices storage and predeterminable event.Each memory device can Realized by one or more storage assemblies.In this, storage assembly can be internal memory or buffer etc., but not right herein It is limited.Internal memory can such as read-only storage (Read-Only Memory;ROM), random access memory (Random Access Memory;RAM), non-permanent internal memory, permanent memory, static memory, volatile memory, flash memory and/or any storage numeral The equipment of information.
In addition, in one embodiment, when detection unit includes first detection module, and the first detection module is used to examine When survey acts on the control operation in pressure sensitive region of the terminal installation, judging unit is judging that it is pre- that the control operation is met If during condition, can be specially:The corresponding pressure value of the control operation is more than or equal to preset pressure threshold value;Or, it is described The corresponding pressure value of control operation is more than or equal to preset pressure threshold value, and the control operation corresponding duration is big In or equal to preset duration threshold value.Certainly, in other embodiments, judging unit 20 is judging that it is pre- that the control operation is met If during condition, may also comprise:The control operation corresponding duration is more than or equal to preset duration threshold value;Or, control The frequency of system operation is more than or equal to predetermined registration operation frequency threshold;The whipping amplitude of control operation is more than or equal to default get rid of Dynamic range value;The flip angle of control operation is more than or equal to default flip angle angle value, or, combinations thereof.
In this embodiment, deleting unit 30 is used for when predeterminable event occurs for the terminal installation, to the default thing The corresponding file destination of part is deleted.Only when judging that predeterminable event occurs for terminal installation, ability pair and predeterminable event pair The file destination answered is deleted.
When predeterminable event is provided with it is multiple when, the file destination corresponding to it also has multiple, and now there is provided selection interface Allow user to select, the file destination for needing to delete is selected by user;Or, can automatically it locate according to default priority rule Reason.Specifically:
In one alternate embodiment, judging unit 20 includes the first judge module, and deleting unit 30 includes the first display Module, the first receiver module and the first removing module.Moreover, the first judge module is multiple for judging whether terminal installation occurs Predeterminable event.First display module is used for when multiple predeterminable events occur for terminal installation, display pair and multiple predeterminable events point Not corresponding multiple file destinations carry out the selection interface of selection;First receiver module acts on the selection interface for reception Selection operation;First removing module is used to delete target text corresponding with the selection operation in the multiple file destination Part.
In the selection interface of the embodiment, a choice box is shown at the upper right corner of each file, is chosen for user. Certainly, this is a specific embodiment of the invention, in other embodiments, and the file under selection state is shown compared to non-choosing The file selected under state shows can there is the change of other forms, for example, color change, size variation.In addition, user can pass through The mode for choosing choice box selects file destination to be deleted, will can also be enclosed by inputting slip signals in sliding trace The file of choosing is defined as file destination to be deleted.
In one alternate embodiment, judging unit 20 includes the second judge module, and deleting unit includes the second deletion mould Block.Moreover, the second judge module is used to judge whether terminal installation occurs multiple predeterminable events.Second removing module was used at end When multiple predeterminable events occur for end device, pair distinguish with multiple predeterminable events and to be advised in corresponding multiple file destinations according to priority The file destination then determined is deleted.In this embodiment, set priority rule is for example, according to priority pressed from height Deleted to low order, for example, predeterminable event is when there is the file being performed, corresponding file destination it is excellent First level highest, predeterminable event is occurs during application install failure or dismount failure, and the priority of corresponding file destination is taken second place, Predeterminable event is when there is system rubbish file, the priority of corresponding file destination is minimum.In other embodiments, may be used also Deleted with pair file destination for distinguishing highest priority in corresponding multiple file destinations with multiple predeterminable events.
In addition, in a specific embodiment, judging unit includes the 3rd judge module, deleting unit includes the 3rd deletion Module.Moreover, the 3rd judge module is used to judge that terminal installation whether there is the file being performed, for example, playing Video/music, word document/pdf document/picture for being browsed etc..3rd removing module is used in terminal installation During in the presence of the file being performed, the file being performed is deleted.
In a specific embodiment, judging unit includes the 4th judge module, and deleting unit includes the 4th removing module. Moreover, the 4th judge module is used for the event for judging whether terminal installation occurs using install failure or dismount failure, its institute is right The file destination answered for install or uninstall process in malfunction after caused by install not exclusively, critical file missing etc. generation portion Single cent part.4th removing module is used to, in the event that application install failure or dismount failure occur for terminal installation, pacify application File destination produced by dress failure or dismount failure is deleted.
In a specific embodiment, judging unit includes the 5th judge module, and deleting unit includes the 5th removing module. Moreover, the 5th judge module be used for judge terminal installation whether there is system rubbish file, for example, journal file, system cache, Temporary file etc..5th removing module is used for when terminal installation has system rubbish file, and system rubbish file is deleted Remove.Preferably, when deletion system garbage files, the rubbish text produced by terminal installation in certain time can also be pre-set Part, for example, nearly one week or nearly one month.
In a specific embodiment, deleting unit 30 includes the second display module, the second receiver module and the 6th deletion Module.Moreover, the second display module is used for the deletion prompt message for showing the file destination, for example, can be by pointing out boundary The mode in face (such as prompting frame) carrys out the deletion prompt message of display target file, deletes prompt message and is, for example,:Whether delete This file;Also deletion prompt message can be exported by voice.Second receiver module is for reception response deletion prompt message The deletion instruction of input, for example, also carrying the control that "Yes" or "No" is selected for user in prompting frame, being deleted when user's confirmation should During file destination, deletion instruction can be inputted by triggering the control of "Yes".Certainly, user can also be deleted by phonetic entry Instruction, or, by hold again terminal installation pressure sensor (pressure value be more than or equal to preset pressure threshold value, or Duration be more than or equal to preset duration threshold value, or both combination) come input delete instruction.6th removing module is used to delete Except with it is described deletion the corresponding file destination of instruction.In this embodiment, only after the confirmation of user is received, just delete Except the file destination, it can so avoid deleting by mistake.
Preferably, when file destination is video/music for playing, or for browsed word document/pdf document/ During picture, after file destination is deleted, it user may also be prompted whether to perform next file (such as next that to be played Music) deletion, if do not receive confirm instruction if stop perform, if receive confirm instruction if perform this document deletion, equally Ground, confirms that instruction can be come in and gone out by prompting interface touch-control, can also be by phonetic entry, can also be by holding terminal again The pressure sensor of device is (when pressure value is more than or equal to preset pressure threshold value, or duration more than or equal to presetting Long threshold value, or both combination) input.
In a specific embodiment, deleting unit 30 includes backup module and the 7th removing module.Moreover, backup module For the file destination to be backed up into default file folder.7th removing module is used to delete the file destination. In the embodiment, while delete target file, default file folder is backuped to, so, when user has found file destination By delete by mistake after, it can also recover the deleted file.
Preferably, deleting unit can also further comprise emptying module, moreover, emptying module is used to judge the target text Whether the BACKUP TIME of part reaches preset time, and when reaching preset time, empties the default file.In the implementation In example, the backup file in default file folder can retain a preset time, when preset time reaches, will empty the default file All Files in folder, so, both family can be used to recover deleted file when deleting by mistake, the storage that system can be saved again is empty Between.
Preferably, it before default file is emptied, user may also be prompted whether to empty, only receiving user's Confirm just to be emptied during instruction, confirming the input mode of instruction can have a variety of, for example, touch control manner, voice mode etc..
Step in the method for the embodiment of the present invention can according to actual needs the adjustment of carry out order, merge and delete.This Module or unit or subelement in the device of inventive embodiments can be combined, divided and deleted according to actual needs.This The all or part of step that field those of ordinary skill is appreciated that in the various methods of above-described embodiment can be by program Carry out the device-dependent hardware of command terminal to complete, the program can be stored in a computer-readable recording medium, storage is situated between Matter can include:Flash disk, read only memory ROM, random access device RAM, disk or CD etc..
Above disclosed is only presently preferred embodiments of the present invention, can not limit the right of the present invention with this certainly Scope, one of ordinary skill in the art will appreciate that all or part of flow of above-described embodiment is realized, and according to right of the present invention It is required that the equivalent variations made, still fall within and invent covered scope.

Claims (10)

1. a kind of file delet method, is applied in terminal installation, it is characterised in that the file delet method includes:
Detection acts on the control operation of the predeterminable area of the terminal installation;
If the control operation meets preparatory condition, judge whether terminal installation occurs predeterminable event;
If predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event is deleted.
2. file delet method according to claim 1, it is characterised in that described to judge whether terminal installation is preset Event includes:
Judge whether terminal installation occurs multiple predeterminable events;
If predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event, which carries out deletion, to be included:
If multiple predeterminable events occur for terminal installation, corresponding multiple file destinations enter respectively with multiple predeterminable events for display pair The selection interface of row selection;
Receive and act on the selection operation of the selection interface, and delete in the multiple file destination with the selection operation pair The file destination answered;Or
It is described to judge whether terminal installation occurs predeterminable event and include:
Judge whether terminal installation occurs multiple predeterminable events;
If predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event, which carries out deletion, to be included:
If terminal installation occur in multiple predeterminable events, pair multiple file destinations corresponding with multiple predeterminable events difference according to The file destination that priority rule is determined is deleted.
3. file delet method according to claim 1, it is characterised in that described to judge whether terminal installation is preset Event includes:
Judge that terminal installation whether there is the file being performed;
If predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event carries out deletion bag Include:
If terminal installation has the file being performed, the file being performed is deleted;Or
It is described to judge whether terminal installation occurs predeterminable event and include:
Judge whether terminal installation occurs the event using install failure or dismount failure;
If predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event carries out deletion bag Include:
If application install failure or the event of dismount failure occur for terminal installation, application install failure or dismount failure are produced Raw file destination is deleted;Or
It is described to judge whether terminal installation occurs predeterminable event and include:
Judge that terminal installation whether there is system rubbish file;
If predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event carries out deletion bag Include:
If terminal installation has system rubbish file, system rubbish file is deleted.
4. file delet method according to claim 1, it is characterised in that described to the corresponding target of the predeterminable event File, which carries out deletion, to be included:
Show the deletion prompt message of the file destination;
Receive the deletion instruction that response is deleted prompt message and inputted;
Delete and the deletion corresponding file destination of instruction.
5. file delet method according to claim 1, it is characterised in that described to the corresponding target of the predeterminable event File, which carries out deletion, to be included:
The file destination is backed up into default file folder, and the file destination is deleted.
6. file delet method according to claim 1, it is characterised in that the detection acts on the terminal installation The control operation of predeterminable area includes:
Detection acts on the control operation in the pressure sensitive region of the terminal installation;
The control operation, which meets preparatory condition, to be included:
The corresponding pressure value of the control operation is more than or equal to preset pressure threshold value;Or
The corresponding pressure value of the control operation is more than or equal to preset pressure threshold value, and the control operation is corresponding holds The continuous time is more than or equal to preset duration threshold value.
7. a kind of file deleting system, applied to terminal installation, it is characterised in that the file deleting system includes:
Detection unit, the control operation for detecting the predeterminable area for acting on the terminal installation;
Judging unit, for when the control operation meets preparatory condition, judging whether terminal installation occurs predeterminable event;
Unit is deleted, for when predeterminable event occurs for the terminal installation, file destination corresponding to the predeterminable event to enter Row is deleted.
8. file deleting system according to claim 7, it is characterised in that
The judging unit include the first judge module, the deletion unit include the first display module, the first receiver module and First removing module, moreover,
First judge module, for judging whether terminal installation occurs multiple predeterminable events;
First display module, for when multiple predeterminable events occur for terminal installation, display pair to divide with multiple predeterminable events Not corresponding multiple file destinations carry out the selection interface of selection;
First receiver module, the selection operation of the selection interface is acted on for receiving;
First removing module, for deleting file destination corresponding with the selection operation in the multiple file destination;
Or, the judging unit includes the second judge module, and the deletion unit includes the second removing module, moreover,
Second judge module, for judging whether terminal installation occurs multiple predeterminable events;
Second removing module, it is pair corresponding with multiple predeterminable events difference for when multiple predeterminable events occur for terminal installation The file destination determined in multiple file destinations according to priority rule is deleted;
Or, the judging unit includes the 3rd judge module, and the deletion unit includes the 3rd removing module, moreover,
3rd judge module, for judging that terminal installation whether there is the file being performed;
3rd removing module, for when terminal installation has the file being performed, to the file being performed Deleted;
Or,
The judging unit includes the 4th judge module, and the deletion unit includes the 4th removing module, moreover,
4th judge module, for judging whether terminal installation occurs the event using install failure or dismount failure;
4th removing module, during for occurring the event of application install failure or dismount failure in terminal installation, to application File destination produced by install failure or dismount failure is deleted;
Or,
The judging unit includes the 5th judge module, and the deletion unit includes the 5th removing module, moreover,
5th judge module, for judging that terminal installation whether there is system rubbish file;
5th removing module, for when terminal installation has system rubbish file, deleting system rubbish file;
Or, the deletion unit includes the second display module, the second receiver module and the 6th removing module, moreover,
Second display module, the deletion prompt message for showing the file destination;
Second receiver module, for receiving the deletion instruction that response is deleted prompt message and inputted;
6th removing module, for deleting and the deletion corresponding file destination of instruction.
9. file deleting system according to claim 7, it is characterised in that the deletion unit includes:
Backup module, for the file destination to be backed up into default file folder;
7th removing module, for deleting the file destination.
10. file deleting system according to claim 7, it is characterised in that the detection unit includes:
First detection module, the control operation for detecting the pressure sensitive region for acting on the terminal installation;
Include moreover, the control operation meets preparatory condition:
The corresponding pressure value of the control operation is more than or equal to preset pressure threshold value;Or
The corresponding pressure value of the control operation is more than or equal to preset pressure threshold value, and the control operation is corresponding holds The continuous time is more than or equal to preset duration threshold value.
CN201710112751.6A 2017-02-28 2017-02-28 A kind of file delet method and system Pending CN106960009A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710112751.6A CN106960009A (en) 2017-02-28 2017-02-28 A kind of file delet method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710112751.6A CN106960009A (en) 2017-02-28 2017-02-28 A kind of file delet method and system

Publications (1)

Publication Number Publication Date
CN106960009A true CN106960009A (en) 2017-07-18

Family

ID=59470110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710112751.6A Pending CN106960009A (en) 2017-02-28 2017-02-28 A kind of file delet method and system

Country Status (1)

Country Link
CN (1) CN106960009A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107807975A (en) * 2017-10-25 2018-03-16 珠海市魅族科技有限公司 A kind of file memory method and device, file moving method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100107150A1 (en) * 2007-03-20 2010-04-29 Tomihisa Kamada Terminal having application update managing function, and application update managing program and system
CN102867041A (en) * 2012-09-03 2013-01-09 东莞宇龙通信科技有限公司 Terminal and storage space management method
CN103365977A (en) * 2013-06-28 2013-10-23 北京奇艺世纪科技有限公司 Storage processing method and device for data on nonvolatile storage medium
CN104063164A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Method and device for screen control
CN104346062A (en) * 2013-08-07 2015-02-11 联想(北京)有限公司 Information processing method and electronic equipment
CN105847593A (en) * 2016-05-25 2016-08-10 宁波萨瑞通讯有限公司 Method for quickly deleting file and mobile device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100107150A1 (en) * 2007-03-20 2010-04-29 Tomihisa Kamada Terminal having application update managing function, and application update managing program and system
CN102867041A (en) * 2012-09-03 2013-01-09 东莞宇龙通信科技有限公司 Terminal and storage space management method
CN104063164A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Method and device for screen control
CN103365977A (en) * 2013-06-28 2013-10-23 北京奇艺世纪科技有限公司 Storage processing method and device for data on nonvolatile storage medium
CN104346062A (en) * 2013-08-07 2015-02-11 联想(北京)有限公司 Information processing method and electronic equipment
CN105847593A (en) * 2016-05-25 2016-08-10 宁波萨瑞通讯有限公司 Method for quickly deleting file and mobile device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107807975A (en) * 2017-10-25 2018-03-16 珠海市魅族科技有限公司 A kind of file memory method and device, file moving method and device

Similar Documents

Publication Publication Date Title
CN102821193B (en) A kind of method of prompt operation file of smart mobile phone and smart mobile phone
CN104750495B (en) A kind of screenshot method and device
CN103164432B (en) Recover method and the mobile terminal of deleted file by mistake
CN103488337B (en) A kind of method of adjusting sensitivity of touch screen in pad pasting situation
CN103810437A (en) Method and terminal for hiding application program
CN106325663B (en) Mobile terminal and its screenshotss method
CN102520821B (en) Content editing device and method for touch screen
CN106502493A (en) A kind of multi-screen display method and terminal
CN106919317A (en) A kind of information displaying method and system
CN103620542A (en) A physical key simulating method and apparatus based on a touch screen
CN105224222B (en) A kind of method for deleting, erasing apparatus and electronic equipment
CN106547676A (en) A kind of user operation method for recording and terminal
US20190124481A1 (en) SMS Message Processing Method for Mobile Terminal and Mobile Terminal
CN104750575B (en) The restoring method and device of a kind of mobile terminal operating system
CN106873888A (en) A kind of method and terminal for showing user interface
CN103995719A (en) System reset method and device and electronic equipment
CN106790581A (en) Application data processing method, device and terminal
CN104077050A (en) Terminal operating method
CN104364738A (en) Method and apparatus for entering symbols from a touch-sensitive screen
CN104809373A (en) Terminal unlocking method
CN106960009A (en) A kind of file delet method and system
CN104199608A (en) Method for fast starting recording on touch terminal and touch terminal
CN109683739A (en) The method and apparatus for adjusting operation interface, storage medium and electronic equipment
CN103941957A (en) Method and device for deleting content of user equipment and user equipment
CN104076923A (en) 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170718