CN103034400A - Method for preventing file from being mistakenly deleted - Google Patents
Method for preventing file from being mistakenly deleted Download PDFInfo
- Publication number
- CN103034400A CN103034400A CN2012105334137A CN201210533413A CN103034400A CN 103034400 A CN103034400 A CN 103034400A CN 2012105334137 A CN2012105334137 A CN 2012105334137A CN 201210533413 A CN201210533413 A CN 201210533413A CN 103034400 A CN103034400 A CN 103034400A
- Authority
- CN
- China
- Prior art keywords
- file
- identifying code
- electronic installation
- operation interface
- deletion
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to a method for preventing a file from being mistakenly deleted. The method comprises the following steps that 1, a file to be deleted is selected from the file manager of an electronic device; 2, after the electronic device receives a relevant operating command for the selected file to be deleted, a group of verification codes is generated and displayed on an operating interface; 3, the same verification codes are input into the electronic device according to the verification codes displayed on the operating interface of the electronic device; 4, the input verification codes are compared with the verification codes displayed on the operating interface of the electronic device; and 5, when the input verification codes are consistent with the verification codes displayed on the operating interface of the electronic device, the electronic device conducts the operation of deleting the selected file.
Description
Technical field
The present invention relates to the file processing field, relate in particular to a kind of method that in the electronic installations such as mobile phone, prevents the deletion of file mistake.
Background technology
In the use procedure of the electronic installations such as smart mobile phone, cause mistake deletion because of the wrong icon of point in order to prevent the user when the deleted file, generally can when the user clicks " deletion " button, affirmation/cancellation dialog box of ejection allow the user be confirmed whether really will carry out deletion action.Yet, in the middle of this mode, because a lot of users are used to rapidly adopting consecutive click chemical reaction button, when confirming/cancelling that dialog box ejects, still probably subconsciously continue to click " affirmation " button in this dialog box because of the inertia on the operational cognition, still be easy to cause the mistake deletion of file.
Summary of the invention
The present invention causes the problem of mistake deletion when solving in the prior art in electronic installation deleted file easily, and a kind of method that prevents the deletion of file mistake is provided.
The present invention is achieved in that a kind of method that prevents the deletion of file mistake, comprises the steps:
Step S1: the file that selection will be deleted in the file manager of electronic installation;
Step S2: electronic installation generates one group of identifying code, and identifying code is presented on the operation interface after receiving the associative operation instruction of the selected file that will delete;
Step S3: according to the identifying code character that shows on the electronic installation operation interface, with same identifying code input electronic device;
Step S4: compare according to the identifying code that shows on the electronic installation operation interface;
Step S5: when the identifying code of the identifying code of inputting and electronic installation demonstration was consistent, electronic installation carried out deletion action to selected file.
Preferably, described step S1 comprises:
Substep S11: long by wanting deleted file in the file manager of electronic installation, electronic installation senses this length by after operating, and ejects a tabulation at operation interface;
Substep S12: in ejecting tabulation, select deletion action.
Preferably, described step S1 also comprises: the file of selecting in tabulation is current to be opened or have been used by other application programs, then provides information at operation interface.
Preferably, described step S1 also comprises: with judging from tape function whether the file of selecting in the tabulation has been opened or is used by other application programs in the programming language.
Preferably, described step S2 comprises:
Substep S21: generate the identifying code character set that the numeral by 26 English alphabets and 0 to 9 consists of;
Substep S22: from the identifying code character set, get at random wherein form an identifying code as doing a character, be kept at this identifying code in the interim array and be presented on the operation interface.
Preferably, if the identifying code of input is consistent with the identifying code on being presented at operation interface, deleted file also provides information, and the identifying code of input is inconsistent with the identifying code that is presented on the operation interface, provide information, empty the identifying code of input and regenerate identifying code.
Preferably, step S2 also comprises: show " not seeing " button at operation interface, when this " does not see " when button is clicked, this electronic installation regenerates identifying code and is presented on the page.
Preferably, step S2 also comprises: display suppression button on operation interface, when this cancel button was clicked, cancellation was to the deletion action of file.
Implementation of the present invention is simple, can be good at solving the mistake deletion problem of the file that the user causes owing to the inertia on the operational cognition in the deleted file process in electronic installation.
Description of drawings
Fig. 1 is the process flow diagram that prevents the method that the file mistake is deleted that preferred embodiments of the present invention provides.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing, the present invention is further elaborated.Should be appreciated that concrete mode described herein only is used for explaining the present invention, be not intended to limit the present invention.
Fig. 1 shows the process flow diagram that the present invention prevents file mistake delet method, comprises the steps:
Step S1: the file that selection will be deleted in the file manager of electronic installation;
Step S2: electronic installation generates one group of identifying code, and identifying code is presented on the operation interface after receiving the associative operation instruction of the selected file that will delete;
Step S3: according to the identifying code character that shows on the electronic installation operation interface, with same identifying code input electronic device;
Step S4: compare according to the identifying code that shows on the electronic installation operation interface;
Step S5: when the identifying code of the identifying code of inputting and electronic installation demonstration was consistent, electronic installation carried out deletion action to selected file.
In step S1: according to existing touch-control sensing technology, after the long file icon of pressing on the electronic installation operation interface of user, electronic installation senses this length and namely ejects a tabulation by operation, wherein contains the option of operation such as " copying ", " movement ", " rename ", " deletion ", " details ".When wanting to delete file corresponding to this document icon, select " deletion " option of operation to be clicked.After sensing the operator and clicking " deletion ", judging from tape function (generally adopting the renameTo function) that this file that need to delete is current and whether be opened or used by other application programs in the electronic installation employing programming language.In the situation that if file is opened or used by other application programs, the user can not carry out deletion action to it, then this moment, electronic installation was pointed out an information to the user, for example: " current file is opened or is used by other application programs, can't delete! ".
In step S2: if the file of this needs deletion is not opened or is used by other application programs, then electronic installation ejects an identifying code page near this document icon.Be used for showing the identifying code of a location number on the page that ejects, this identifying code length is 4 characters in the present embodiment.Be appreciated that identifying code also can have different figure places among other embodiment.Identifying code nearby also shows input frame that the identifying code that to show on the input page be used to " not seeing " button that refreshes identifying code, for the user compares, be used for " cancellation " button of submitting " affirmation " button of the complete identifying code of input to and being used for cancelling the identifying code of input error.
In the present embodiment, identifying code is taken from the identifying code set, this identifying code set is to consist of a character set by the numeral between 26 English alphabets and the 0-9, and this character set is as an array, and the length of array is that 36(namely is comprised of 10 numerals of 26 English alphabets and 0 to 9); Adopt the random number generation function in the programming language, generate at random 40 to 35(and comprise 0 and 35) between integer, allow identical digital beings in these 4 integers, then go to search corresponding character in the character array of above-mentioned correspondence according to these 4 numerals that generate at random, interim 4 characters that find of preserving, it is that 4 interim character array is preserved that these 4 characters adopt array lengths, at last these 4 characters is presented at identifying code position on the page as this identifying code.If the user does not see this identifying code, then can click " not seeing " button, after electronic installation receives dependent instruction, can regenerate identifying code and be presented on the page, if can see identifying code clearly, then press the DISPLAY ORDER input validation code of identifying code on the page.
When the user confirms that the input validation code is complete, then can click " affirmation " button submits to, after electronic installation is received and is submitted request to, judge whether identifying code input correct, system use 4 characters of input go successively with top interim character array in 4 characters preserving go to make comparisons one by one; If in full accord behind the charactor comparison, electronic installation judges that the identifying code of input is correct, deleted file, and pop-up window prompting user " deleted file success ", if the identifying code mistake of input, then electronic installation refusal deleted file, and pop-up window prompting user " input validation code mistake, deleted file failure ".This moment, electronic installation can directly return the initial operation interface, perhaps still keeps the current operation interface, but the identifying code input frame is emptied, and regenerated identifying code, provided new deletion action chance to the user.
In addition, in the whole process of input validation, the user can click at any time " cancellation " button and cancel deletion action to file.
Claims (8)
1. a method that prevents the deletion of file mistake is characterized in that described method comprises the steps:
Step S1: the file that selection will be deleted in the file manager of electronic installation;
Step S2: electronic installation generates one group of identifying code, and identifying code is presented on the operation interface after receiving the associative operation instruction of the selected file that will delete;
Step S3: according to the identifying code character that shows on the electronic installation operation interface, with same identifying code input electronic device;
Step S4: compare according to the identifying code that shows on the electronic installation operation interface;
Step S5: when the identifying code of the identifying code of inputting and electronic installation demonstration was consistent, electronic installation carried out deletion action to selected file.
2. the file that prevents as claimed in claim 1 misses the method for deletion, it is characterized in that described step S1 comprises:
Substep S11: long by wanting deleted file in the file manager of electronic installation, electronic installation senses this length by after operating, and ejects a tabulation at operation interface;
Substep S12: in ejecting tabulation, select deletion action.
3. the method that prevents file mistake deletion as claimed in claim 2 is characterized in that this step S1 also comprises: the file of selecting in tabulation is current to be opened or have been used by other application programs, then provides information at operation interface.
4. the method that prevents file mistake deletion as claimed in claim 3 is characterized in that this step S1 also comprises: with judging from tape function whether the file of selection in the tabulation has been opened or is used by other application programs in the programming language.
5. the file that prevents as claimed in claim 1 misses the method for deletion, it is characterized in that described step S2 comprises:
Substep S21: generate the identifying code character set that the numeral by 26 English alphabets and 0 to 9 consists of;
Substep S22: from the identifying code character set, get at random wherein form an identifying code as doing a character, be kept at this identifying code in the interim array and be presented on the operation interface.
6. the file that prevents as claimed in claim 5 misses the method for deletion, it is characterized in that, if the identifying code of input is consistent with the identifying code on being presented at operation interface, deleted file also provides information, the identifying code of input is inconsistent with the identifying code that is presented on the operation interface, provide information, empty the identifying code of input and regenerate identifying code.
7. such as claim 1 or the method that prevents that the file mistake from deleting claimed in claim 5, it is characterized in that, step S2 also comprises: show " not seeing " button at operation interface, when this " does not see " when button is clicked, this electronic installation regenerates identifying code and is presented on the page.
8. such as claim 1 or the method that prevents that the file mistake from deleting claimed in claim 5, it is characterized in that step S2 also comprises: show " cancellation " button at operation interface, when this cancel button was clicked, cancellation was to the deletion action of file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105334137A CN103034400A (en) | 2012-12-11 | 2012-12-11 | Method for preventing file from being mistakenly deleted |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105334137A CN103034400A (en) | 2012-12-11 | 2012-12-11 | Method for preventing file from being mistakenly deleted |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103034400A true CN103034400A (en) | 2013-04-10 |
Family
ID=48021344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012105334137A Pending CN103034400A (en) | 2012-12-11 | 2012-12-11 | Method for preventing file from being mistakenly deleted |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103034400A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103605563A (en) * | 2013-11-11 | 2014-02-26 | 北京飞流九天科技有限公司 | System and method for avoiding maloperation |
CN105893534A (en) * | 2016-03-31 | 2016-08-24 | 乐视控股(北京)有限公司 | Media file deleting method and device |
CN106055963A (en) * | 2016-06-30 | 2016-10-26 | 珠海市魅族科技有限公司 | Verification method and device |
CN106484245A (en) * | 2016-10-19 | 2017-03-08 | 珠海格力电器股份有限公司 | Information processing method and device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101340486A (en) * | 2008-08-26 | 2009-01-07 | 深圳华为通信技术有限公司 | Method and apparatus for deleting information |
CN102404557A (en) * | 2011-12-06 | 2012-04-04 | 南京信息工程大学 | 3G mobile intelligent monitoring system and method |
CN102411684A (en) * | 2011-09-26 | 2012-04-11 | 奇智软件(北京)有限公司 | Data protection method and device |
-
2012
- 2012-12-11 CN CN2012105334137A patent/CN103034400A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101340486A (en) * | 2008-08-26 | 2009-01-07 | 深圳华为通信技术有限公司 | Method and apparatus for deleting information |
CN102411684A (en) * | 2011-09-26 | 2012-04-11 | 奇智软件(北京)有限公司 | Data protection method and device |
CN102404557A (en) * | 2011-12-06 | 2012-04-04 | 南京信息工程大学 | 3G mobile intelligent monitoring system and method |
Non-Patent Citations (4)
Title |
---|
祝良钰等: "《玩转我的Android手机》", 31 August 2011, article "第3.6节 长按联系人", pages: 42-43 * |
贾亚萍等: "《旅游信息系统应用实训教程》", 30 April 2011, article "实训项目20 病毒防治", pages: 209-210 - 8-69 * |
陈丹丹等: "《Java全能速查宝典》", 30 April 2012, article "第3.7.36节 renameTo方法—重命名文件或文件夹", pages: 183-184 * |
齐俊杰等: "《数码影音播放应用指南》", 31 January 2009, article "第10.4.1节 软件安装及删除方法", pages: 238 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103605563A (en) * | 2013-11-11 | 2014-02-26 | 北京飞流九天科技有限公司 | System and method for avoiding maloperation |
CN105893534A (en) * | 2016-03-31 | 2016-08-24 | 乐视控股(北京)有限公司 | Media file deleting method and device |
CN106055963A (en) * | 2016-06-30 | 2016-10-26 | 珠海市魅族科技有限公司 | Verification method and device |
CN106055963B (en) * | 2016-06-30 | 2019-10-01 | 珠海市魅族科技有限公司 | A kind of verification method and device |
CN106484245A (en) * | 2016-10-19 | 2017-03-08 | 珠海格力电器股份有限公司 | Information processing method and device and electronic equipment |
CN106484245B (en) * | 2016-10-19 | 2019-08-23 | 珠海格力电器股份有限公司 | Information processing method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10140014B2 (en) | Method and terminal for activating application based on handwriting input | |
CN104320756B (en) | A kind of variation and device of account information | |
CN103618830B (en) | A kind of people of unread information inspection method and device | |
CN105898456A (en) | Multimedia playback interaction method and device | |
US11163943B2 (en) | Method and system for partial application data collection | |
CN106095261B (en) | Method and device for adding notes to electronic equipment | |
CN104346267A (en) | Method and device for generating program bug positioning information | |
CN102663055A (en) | Method, device and browser for realizing browser navigation | |
CN102681667A (en) | Text input backspacing method and terminal | |
CN103034400A (en) | Method for preventing file from being mistakenly deleted | |
CN104038560A (en) | Remote assistance method between mobile terminals, client side, electronic device and system | |
CN106682561B (en) | Scanning function using method and device | |
CN102945243A (en) | Contact information identification method based on browsing contents | |
EP3640788A1 (en) | Convenient operating method and terminal | |
CN108108249A (en) | Data inputting method and device | |
CN111669744B (en) | Information processing method and device and electronic equipment | |
US10140265B2 (en) | Apparatuses and methods for phone number processing | |
CN102984675A (en) | Method and device for replying messages | |
CN102438062A (en) | Method, device and mobile terminal for switching multiple tasks | |
CN107015719A (en) | Notify reminding method and device | |
US8265396B2 (en) | Data entry retrieval | |
CN101610605A (en) | A kind of method and system of avoiding focus loss for multi-task user interface interaction | |
CN105335169A (en) | Method and apparatus for starting up communication in intelligent terminal | |
CN105893402A (en) | Information displaying method used for terminal equipment, and terminal equipment | |
CN105159701A (en) | System resetting method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130410 |