CN105426049B - A kind of delet method and terminal - Google Patents

A kind of delet method and terminal Download PDF

Info

Publication number
CN105426049B
CN105426049B CN201510817949.5A CN201510817949A CN105426049B CN 105426049 B CN105426049 B CN 105426049B CN 201510817949 A CN201510817949 A CN 201510817949A CN 105426049 B CN105426049 B CN 105426049B
Authority
CN
China
Prior art keywords
file
deleting
application icon
application
terminal
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.)
Active
Application number
CN201510817949.5A
Other languages
Chinese (zh)
Other versions
CN105426049A (en
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 China 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 China Co Ltd filed Critical Meizu Technology China Co Ltd
Priority to CN201510817949.5A priority Critical patent/CN105426049B/en
Publication of CN105426049A publication Critical patent/CN105426049A/en
Application granted granted Critical
Publication of CN105426049B publication Critical patent/CN105426049B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a kind of delet method and terminals, and wherein method includes: to be instructed according to first movement, mobile first file;It detects and forms overlapping region between first file and the second file, delete first file and/or second file according to preset rules.Using the embodiment of the present invention, can simplified-file deletion step, improve file operation efficiency.

Description

Deleting method and terminal
Technical Field
The invention relates to the technical field of computers, in particular to a deleting method and a terminal.
Background
With the continuous development of communication technology, the functions of mobile terminals are becoming rich, and people can use the terminals to store files, browse web pages, listen to music, watch videos and the like, so that the mobile terminals become an indispensable part of daily life of people.
Currently, a file deletion method provided by a terminal generally has three modes, wherein the first mode is as follows: selecting a file to be deleted, clicking a right mouse button or clicking a touch screen for the file to be deleted, and selecting a deletion option in an opened operation list to delete the file; the second way is: selecting a file to be deleted, and then clicking a delete key (a delete key) on a keyboard to delete the file; the third mode is as follows: the files to be deleted are selected and dragged to the recycle bin, and the traditional file deleting modes are complex in operation steps and poor in user experience.
Disclosure of Invention
The embodiment of the invention provides a deleting method and a terminal, which can simplify the file deleting step and improve the file operating efficiency.
The embodiment of the invention provides a deleting method, which comprises the following steps:
moving the first file according to the first moving instruction;
and if the overlapping area between the first file and the second file is detected, deleting the first file and/or the second file according to a preset rule.
Wherein, if it is detected that an overlap area is formed between the first file and the second file, the method further includes, before deleting the first file and/or the second file according to a preset rule: and moving the second file according to the second moving instruction.
Before deleting the first file and/or the second file according to a preset rule, the method further comprises: judging whether the data information of the first file is matched with the data information of the second file or not, wherein the data information comprises file content and/or file name; and if so, executing the step of deleting the first file and/or the second file according to a preset rule.
The deleting the first file and/or the second file according to a preset rule specifically includes: if the creation time of the first file is earlier than that of the second file, deleting the first file; or if the version information of the first file is earlier than the version information of the second file, deleting the first file; or if the first file is moved, deleting the first file; or deleting the first file and the second file if the first file and the second file are moved.
Wherein the first file is a first application icon, and the second file is a second application icon, the method further comprising: when the first application icon is deleted, uninstalling the first application corresponding to the first application icon; or when the second application icon is deleted, uninstalling the second application corresponding to the second application icon; or when the first application icon and the second application icon are deleted, uninstalling the first application corresponding to the first application icon and the second application corresponding to the second application icon.
Correspondingly, the embodiment of the invention also provides a terminal, which comprises:
the file moving unit is used for moving the first file according to the first moving instruction;
and the file deleting unit is used for deleting the first file and/or the second file according to a preset rule if an overlapping area is detected to be formed between the first file and the second file.
Wherein the file moving unit is further configured to: and moving the second file according to a second moving instruction before the file deleting unit detects that an overlapping area is formed between the first file and the second file and deletes the first file and/or the second file according to a preset rule.
Wherein, the terminal further includes: an information judging unit, configured to judge whether data information of the first file matches data information of the second file before the file deleting unit deletes the first file and/or the second file according to a preset rule, where the data information includes file content and/or a file name;
correspondingly, the file deleting unit is further configured to delete the first file and/or the second file according to a preset rule when the judgment result of the information judging unit is yes.
Wherein, the file deleting unit is further specifically configured to:
if the creation time of the first file is earlier than that of the second file, deleting the first file; or,
if the version information of the first file is earlier than that of the second file, deleting the first file; or,
if the first file is moved, deleting the first file; or,
and if the first file and the second file are moved, deleting the first file and the second file.
Wherein, the first file is a first application icon, the second file is a second application icon, and the terminal further comprises: the application uninstalling unit is used for uninstalling the first application corresponding to the first application icon when the first application icon is deleted; or, when the second application icon is deleted, uninstalling the second application corresponding to the second application icon; or, when the first application icon and the second application icon are deleted, uninstalling the first application corresponding to the first application icon and the second application corresponding to the second application icon.
According to the embodiment of the invention, the first file can be moved according to the first moving instruction; and an overlapping area can be formed between the first file and the second file when the first file and the second file are detected, and the first file and/or the second file are/is deleted according to a preset rule. By adopting the embodiment of the invention, the file deleting step can be simplified, and the file operating efficiency can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a deletion method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another deleting method provided in the embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In specific implementation, the terminal mentioned in the embodiment of the present invention includes but is not limited to: an electronic device such as a smart phone (e.g., an Android phone, an IOS phone), a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), or a wearable smart device.
It should be noted that the method described in the present invention is performed by a set of codes stored in a memory, which are executed in a computer system based on the von neumann architecture. The computer program may be a terminal program that performs a file deletion function. Accordingly, the computer system may be a terminal device having a file deletion function.
A deleting method and a terminal provided in an embodiment of the present invention will be specifically described below with reference to fig. 1 to 4.
Referring to fig. 1, which is a schematic flow chart of a deletion method according to an embodiment of the present invention, the deletion method shown in the figure may include the following steps:
s101, moving the first file according to the first moving instruction.
In a specific implementation, the file includes but is not limited to: audio files, video files, text files, picture files, icons for application files or files, and the like. A user may first input a first moving instruction for a first file through an input device (such as a physical keyboard or a touch screen) of the terminal, and when the terminal receives the first moving instruction, the terminal moves the first file according to the first moving instruction. For example, the terminal is a smart phone with a touch screen, the first file is a QQ application icon on a main menu interface displayed by the current smart phone, and at the moment, a user can use a finger to press the QQ application icon through the touch screen for a long time to select the QQ application icon; if the user presses the QQ application icon with a finger to move on the touch screen, the user is considered to input a first movement instruction for the QQ application icon, and the position of the QQ application icon moves along a sliding track of the finger of the user on the touch screen. For another example, the terminal is a portable computer, and the first file is a document file on a current portable computer desktop, at this time, the user can click a left mouse button for selecting the document file; if the user clicks the left mouse button to drag the document file to move on the desktop, the user is considered to input a first moving instruction aiming at the document file at the moment, and the position of the document file moves along with the dragging track of the mouse.
S102, if the overlapping area between the first file and the second file is detected, deleting the first file and/or the second file according to a preset rule.
In specific implementation, after a user finishes moving a first file, whether an overlapping area is formed between the final position of the first file and a second file is detected, and if the overlapping area is formed between the final position of the first file and the second file, the first file and/or the second file are/is deleted according to a preset rule. For example, the terminal is a smart phone with a touch screen, after a user selects a first file QQ application icon on a current main menu interface by long-pressing with a finger, the QQ application icon is dragged by the finger to move, the position of the finger on the touch screen when the user releases the finger is taken as the final position of the QQ application icon, if the position area also has a second file WeChat application icon, whether an overlapping area is formed between the QQ application icon and the WeChat application icon and between the WeChat application icons is detected, and if the overlapping area is formed, the WeChat application icon can be deleted.
In another optional embodiment, before performing step S102, the method further comprises: and moving the second file according to the second moving instruction.
In a specific implementation, the second file may be moved simultaneously when the first file is moved, or the second file may be moved after the first file is moved, or the second file may be moved before the first file is moved, and in the moving process or when the moving is completed, whether an overlapping area is formed between the first file and the second file may be detected, and when the detection result is yes, the first file and/or the second file may be deleted according to a preset rule. For example, the terminal is a smart phone with a touch screen, the first file and the second file are a QQ application icon and a wechat application icon on a main menu interface displayed by the current smart phone, at this time, the user can select the two application icons by pressing the two application icons with the thumb and the forefinger respectively, and then press the two icons to move on the main menu interface. And the first file and the second file are moved simultaneously, so that the relative positions of the first file and the second file can be changed more quickly, the files can be moved to the target position of a user more quickly and then the deletion operation is carried out, and the operation efficiency is improved.
In a further optional embodiment, before the deleting the first file and/or the second file according to the preset rule is performed, the method further includes: judging whether the data information of the first file is matched with the data information of the second file or not, wherein the data information comprises file content and/or file name; and if so, executing the step of deleting the first file and/or the second file according to a preset rule.
In a specific implementation, in order to save storage space in the same terminal, only one copy of the same file or the same type of application file is saved, so that when an overlap area is detected between the first file and the second file, whether the data information of the first file matches with the data information of the second file can be further determined, and if the determination result is yes, the step of deleting the first file and/or the second file according to a preset rule is performed. The data information includes, but is not limited to, file content, file name, file attribute, file type, or file icon graphic. For example, if the first file and the second file are document files, when it is detected that an overlap region is formed between the first file and the second file, it may be further detected whether file names of the first file and the second file are the same, and if so, it is determined that the data information of the first file and the second file are matched, and the first file and/or the second file may be deleted. For another example, the first file is a "Baidu map", the second file is a "Gade map", and it can be detected that the file names of the first file and the second file both contain the "map", at this time, the terminal can determine that the file attributes of the first file and the second file are the same (both belong to navigation application files) through the keyword "map", and therefore, it is considered that the data information of the first file and the second file are matched, and the first file or the second file can be deleted, even both are deleted; of course, in this example, when it is detected that the file names of the first file and the second file both include the "map", the data information of the first file and the second file are considered to be matched (the file names are partially identical).
In another optional embodiment, the deleting the first file and/or the second file according to a preset rule in step S102 specifically includes: if the creation time of the first file is earlier than that of the second file, deleting the first file; or if the version information of the first file is earlier than the version information of the second file, deleting the first file; or if the first file is moved, deleting the first file; or deleting the first file and the second file if the first file and the second file are moved.
For example, if it is detected that an overlap area is formed between the first file and the second file, it may be further detected whether the creation time of the first file is earlier than the creation time of the second file, if so, the first file may be deleted, and if not, the second file may be deleted. Similarly, for example, if the QQ version information corresponding to the QQ app icon in the first file is QQ2007 and the QQ version information corresponding to the QQ app icon in the second file is QQ2003, the QQ app icon whose version information is QQ2003 can be deleted because it is detected that an overlap region is formed between the first file and the second file and the version information QQ2003 is earlier than the version information QQ 2007.
In a further optional embodiment, when the first file is a first application icon and the second file is a second application icon, the method further comprises: when the first application icon is deleted, uninstalling the first application corresponding to the first application icon; or when the second application icon is deleted, uninstalling the second application corresponding to the second application icon; or when the first application icon and the second application icon are deleted, uninstalling the first application corresponding to the first application icon and the second application corresponding to the second application icon.
For example, if the QQ version information corresponding to the QQ app icon in the first file is QQ2007 and the QQ version information corresponding to the QQ app icon in the second file is QQ2003, the QQ application corresponding to the QQ app icon with version information of QQ2003 can be uninstalled while detecting that an overlap region is formed between the first file and the second file and deleting the QQ app icon with version information of QQ 2003. By adopting the method, when a user wants to uninstall an application program, the user can directly uninstall the same or similar application program by deleting the application program icon displayed on the desktop without opening a control panel of the terminal to select the corresponding application program for uninstalling.
According to the embodiment of the invention, the first file can be moved according to the first moving instruction; and an overlapping area can be formed between the first file and the second file when the first file and the second file are detected, and the first file and/or the second file are/is deleted according to a preset rule. By adopting the embodiment of the invention, the file deleting step can be simplified, and the file operating efficiency can be improved.
Referring to fig. 2, which is a schematic flow chart of another deleting method provided in the embodiment of the present invention, the deleting method shown in the figure may include the following steps:
s201, moving the first file according to the first moving instruction.
In a specific implementation, the file includes but is not limited to: audio files, video files, text files, picture files, icons for application files or files, and the like. A user may first input a first moving instruction for a first file through an input device (such as a physical keyboard or a touch screen) of the terminal, and when the terminal receives the first moving instruction, the terminal moves the first file according to the first moving instruction. For example, the terminal is a smart phone with a touch screen, the first file is a QQ application icon on a main menu interface displayed by the current smart phone, and at the moment, a user can use a finger to press the QQ application icon through the touch screen for a long time to select the QQ application icon; if the user presses the QQ application icon with a finger to move on the touch screen, the user is considered to input a first movement instruction for the QQ application icon, and the position of the QQ application icon moves along a sliding track of the finger of the user on the touch screen. For another example, the terminal is a portable computer, and the first file is a document file on a current portable computer desktop, at this time, the user can click a left mouse button for selecting the document file; if the user clicks the left mouse button to drag the document file to move on the desktop, the user is considered to input a first moving instruction aiming at the document file at the moment, and the position of the document file moves along with the dragging track of the mouse.
S202, if the overlapping area formed between the first file and the second file is detected, whether the data information of the first file is matched with the data information of the second file is judged.
In a specific implementation, in order to save storage space in the same terminal, only one copy of the same file or the same type of application file is saved, so that when an overlap area is detected between the first file and the second file, whether the data information of the first file matches with the data information of the second file can be further determined, and if the determination result is yes, the step of deleting the first file and/or the second file according to a preset rule is performed. The data information includes, but is not limited to, file content, file name, file attribute, file type, or file icon graphic. For example, if the first file and the second file are document files, when it is detected that an overlap region is formed between the first file and the second file, it may be further detected whether file names of the first file and the second file are the same, and if so, it is determined that the data information of the first file and the second file are matched, and the first file and/or the second file may be deleted. For another example, the first file is a "Baidu map", the second file is a "Gade map", and it can be detected that the file names of the first file and the second file both contain the "map", at this time, the terminal can determine that the file attributes of the first file and the second file are the same (both belong to navigation application files) through the keyword "map", and therefore, it is considered that the data information of the first file and the second file are matched, and the first file or the second file can be deleted, even both are deleted; of course, in this example, when it is detected that the file names of the first file and the second file both include the "map", the data information of the first file and the second file are considered to be matched (the file names are partially identical).
S203, deleting the first file and/or the second file according to a preset rule when the judgment result is yes.
In specific implementation, after a user finishes moving a first file, detecting that the final position of the first file and a second file form an overlapping area, and deleting the first file and/or the second file according to a preset rule when the detection result is yes. For example, the terminal is a smart phone with a touch screen, after a user selects a first file QQ application icon on a current main menu interface by long-pressing with a finger, the QQ application icon is dragged by the finger to move, the position of the finger on the touch screen when the user releases the finger is taken as the final position of the QQ application icon, if the position area also has a second file WeChat application icon, whether an overlapping area is formed between the QQ application icon and the WeChat application icon and between the WeChat application icons is detected, and if the overlapping area is formed, the WeChat application icon can be deleted.
In another optional embodiment, before performing step S203, the method further comprises: and moving the second file according to the second moving instruction.
In a specific implementation, the second file may be moved simultaneously when the first file is moved, or the second file may be moved after the first file is moved, or the second file may be moved before the first file is moved, and in the moving process or when the moving is completed, whether an overlapping area is formed between the first file and the second file may be detected, and when the detection result is yes, the first file and/or the second file may be deleted according to a preset rule. For example, the terminal is a smart phone with a touch screen, the first file and the second file are a QQ application icon and a wechat application icon on a main menu interface displayed by the current smart phone, at this time, the user can select the two application icons by pressing the two application icons with the thumb and the forefinger respectively, and then press the two icons to move on the main menu interface. And the first file and the second file are moved simultaneously, so that the relative positions of the first file and the second file can be changed more quickly, the files can be moved to the target position of a user more quickly and then the deletion operation is carried out, and the operation efficiency is improved.
In another optional embodiment, the deleting the first file and/or the second file according to the preset rule in step S203 may specifically include: if the creation time of the first file is earlier than that of the second file, deleting the first file; or if the version information of the first file is earlier than the version information of the second file, deleting the first file; or if the first file is moved, deleting the first file; or deleting the first file and the second file if the first file and the second file are moved.
In a further optional embodiment, when the first file is a first application icon and the second file is a second application icon, the method further comprises: when the first application icon is deleted, uninstalling the first application corresponding to the first application icon; or when the second application icon is deleted, uninstalling the second application corresponding to the second application icon; or when the first application icon and the second application icon are deleted, uninstalling the first application corresponding to the first application icon and the second application corresponding to the second application icon.
For example, if the QQ version information corresponding to the QQ app icon in the first file is QQ2007 and the QQ version information corresponding to the QQ app icon in the second file is QQ2003, the QQ application corresponding to the QQ app icon with version information of QQ2003 can be uninstalled while detecting that an overlap region is formed between the first file and the second file and deleting the QQ app icon with version information of QQ 2003. By adopting the method, when a user wants to uninstall an application program, the user can directly uninstall the same or similar application program by deleting the application program icon displayed on the desktop without opening a control panel of the terminal to select the corresponding application program for uninstalling.
According to the embodiment of the invention, the terminal can move the first file according to the first moving instruction; when an overlapping area is detected to be formed between the first file and the second file, whether the data information of the first file is matched with the data information of the second file is judged; and deleting the first file and/or the second file according to a preset rule when the judgment result is yes. By adopting the embodiment of the invention, the file deleting step can be simplified, and the file operating efficiency can be improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention, where the terminal at least includes: a file moving unit 301 and a file deleting unit 302.
A file moving unit 301, configured to move the first file according to the first moving instruction.
In a specific implementation, the file includes but is not limited to: audio files, video files, text files, picture files, icons for application files or files, and the like. A user may first input a first moving instruction for a first file through an input device (such as a physical keyboard or a touch screen) of the terminal, and when the terminal receives the first moving instruction, the file moving unit 301 moves the first file according to the first moving instruction. For example, the terminal is a smart phone with a touch screen, the first file is a QQ application icon on a main menu interface displayed by the current smart phone, and at the moment, a user can use a finger to press the QQ application icon through the touch screen for a long time to select the QQ application icon; if the user presses the QQ application icon with a finger to move on the touch screen, the user is considered to input a first movement instruction for the QQ application icon, and the position of the QQ application icon moves along a sliding track of the finger of the user on the touch screen. For another example, the terminal is a portable computer, and the first file is a document file on a current portable computer desktop, at this time, the user can click a left mouse button for selecting the document file; if the user clicks the left mouse button to drag the document file to move on the desktop, the user is considered to input a first moving instruction aiming at the document file at the moment, and the position of the document file moves along with the dragging track of the mouse.
A file deleting unit 302, configured to delete the first file and/or the second file according to a preset rule if it is detected that an overlapping area is formed between the first file and the second file.
In a specific implementation, after the user completes the movement of the first file, it is detected that the final position of the first file and the second file all form an overlapping area, and when the detection result is yes, the file deleting unit 302 deletes the first file and/or the second file according to a preset rule. For example, the terminal is a smartphone with a touch screen, and after a user selects a first file QQ application icon on a current main menu interface by long-pressing with a finger, the QQ application icon is dragged by the finger to move, a position of the finger on the touch screen when the user releases the finger is taken as a final position of the QQ application icon, if the position area further has a second file wechat application icon, it is detected whether an overlapping area is formed between the QQ application icon and the wechat application icon and between the wechat application icons, and if so, the file deleting unit 302 may delete the wechat application icon.
In another alternative embodiment, the file moving unit 301 is further configured to: and moving the second file according to a second moving instruction before the file deleting unit detects that an overlapping area is formed between the first file and the second file and deletes the first file and/or the second file according to a preset rule.
In a specific implementation, the second file may be moved simultaneously when the first file is moved, or the second file may be moved after the first file is moved, or the second file may be moved before the first file is moved, and in the moving process or when the moving is completed, whether an overlapping area is formed between the first file and the second file may be detected, and when the detection result is yes, the first file and/or the second file may be deleted according to a preset rule. For example, the terminal is a smart phone with a touch screen, the first file and the second file are a QQ application icon and a wechat application icon on a main menu interface displayed by the current smart phone, at this time, the user can select the two application icons by pressing the two application icons with the thumb and the forefinger respectively, and then press the two icons to move on the main menu interface. And the first file and the second file are moved simultaneously, so that the relative positions of the first file and the second file can be changed more quickly, the files can be moved to the target position of a user more quickly and then the deletion operation is carried out, and the operation efficiency is improved.
In yet another optional embodiment, the terminal further includes: an information determining unit 303, configured to determine whether data information of the first file matches data information of the second file before the file deleting unit deletes the first file and/or the second file according to a preset rule, where the data information includes file content and/or a file name;
correspondingly, the file deleting unit 302 is further configured to delete the first file and/or the second file according to a preset rule when the judgment result of the information judging unit is yes.
In a specific implementation, in order to save storage space in the same terminal, only one copy of the same file or the same type of application file is saved, so that when an overlap area is detected between the first file and the second file, the information determining unit 303 may further determine whether the data information of the first file matches with the data information of the second file, and if the determination result is yes, execute a step of deleting the first file and/or the second file according to a preset rule. The data information includes, but is not limited to, file content, file name, file attribute, file type, or file icon graphic. For example, if the first file and the second file are document files, when it is detected that an overlap region is formed between the first file and the second file, it may be further detected whether file names of the first file and the second file are the same, and if so, it is determined that the data information of the first file and the second file are matched, and the first file and/or the second file may be deleted. For another example, the first file is a "Baidu map", the second file is a "Gade map", and it can be detected that the file names of the first file and the second file both contain the "map", at this time, the terminal can determine that the file attributes of the first file and the second file are the same (both belong to navigation application files) through the keyword "map", and therefore, it is considered that the data information of the first file and the second file are matched, and the first file or the second file can be deleted, even both are deleted; of course, in this example, when it is detected that the file names of the first file and the second file both include the "map", the data information of the first file and the second file are considered to be matched (the file names are partially identical).
In another optional embodiment, the file deleting unit 302 is specifically configured to: if the creation time of the first file is earlier than that of the second file, deleting the first file; or if the version information of the first file is earlier than the version information of the second file, deleting the first file; or if the first file is moved, deleting the first file; or deleting the first file and the second file if the first file and the second file are moved.
For example, if it is detected that an overlap area is formed between the first file and the second file, it may be further detected whether the creation time of the first file is earlier than the creation time of the second file, if so, the file deleting unit 302 deletes the first file, and if not, the file deleting unit may delete the second file. Similarly, for example, if the QQ version information corresponding to the QQ app icon in the first file is QQ2007 and the QQ version information corresponding to the QQ app icon in the second file is QQ2003, the QQ app icon whose version information is QQ2003 can be deleted because it is detected that an overlap region is formed between the first file and the second file and the version information QQ2003 is earlier than the version information QQ 2007.
In another optional embodiment, the first file is a first application icon, the second file is a second application icon, and the terminal further includes: an application uninstalling unit 304, configured to uninstall a first application corresponding to the first application icon when the first application icon is deleted; or, when the second application icon is deleted, uninstalling the second application corresponding to the second application icon; or, when the first application icon and the second application icon are deleted, uninstalling the first application corresponding to the first application icon and the second application corresponding to the second application icon.
For example, if the QQ version information corresponding to the QQ application icon of the first file is QQ2007 and the QQ version information corresponding to the QQ application icon of the second file is QQ2003, the application uninstalling unit 304 may uninstall the QQ application program corresponding to the QQ application icon of which the version information is QQ2003 at the same time if it is detected that an overlapping region is formed between the first file and the second file and the file deleting unit 302 deletes the QQ application icon of which the version information is QQ 2003. By adopting the method, when a user wants to uninstall an application program, the user can directly uninstall the same or similar application program by deleting the application program icon displayed on the desktop without opening a control panel of the terminal to select the corresponding application program for uninstalling.
According to the embodiment of the invention, the file moving unit 301 can move the first file according to the first moving instruction; the file deleting unit 302 may further delete the first file and/or the second file according to a preset rule when it is detected that an overlapping area is formed between the first file and the second file. By adopting the embodiment of the invention, the file deleting step can be simplified, and the file operating efficiency can be improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another terminal provided in the embodiment of the present invention, where the terminal in the embodiment may include: at least one processor 401, such as a CPU; a memory 402. The processor 401 and the memory 402 are connected by a bus 403.
The memory 402 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 402 may optionally be at least one memory terminal located remotely from the processor 401. Wherein the processor 401 may be incorporated in the terminal shown in fig. 3, wherein the memory 402 stores a set of program codes therein, and the processor 401 calls the codes stored in the memory 402 for performing the following operations:
the processor 401 is configured to move the first file according to the first moving instruction.
The processor 401 is further configured to delete the first file and/or the second file according to a preset rule if it is detected that an overlapping area is formed between the first file and the second file.
Correspondingly, the terminal provided by the embodiment of the invention further comprises: an output device 404 for displaying file icons of folders and files, the output device 404 may be embodied as a display screen. In addition, the terminal provided by the embodiment of the present invention may further include: an input device 405, which may include input devices such as a keyboard, a touch pad, a fingerprint sensor, a voice recording device, etc., through which a user may input a first movement instruction and/or a second movement instruction via the input device 405.
In another optional embodiment, the processor 401 is further configured to, if it is detected that an overlapping area is formed between the first file and the second file, move the second file according to a second moving instruction before deleting the first file and/or the second file according to a preset rule.
In yet another optional embodiment, the processor 401 is further configured to determine whether data information of the first file matches data information of the second file before deleting the first file and/or the second file according to a preset rule, where the data information includes file content and/or a file name; when the judgment result is yes, the processor 401 deletes the first file and/or the second file according to a preset rule.
In yet another optional embodiment, the processor 401 is further specifically configured to: if the creation time of the first file is earlier than that of the second file, deleting the first file; or if the version information of the first file is earlier than the version information of the second file, deleting the first file; or if the first file is moved, deleting the first file; or deleting the first file and the second file if the first file and the second file are moved.
In a further optional embodiment, the first file is a first application icon, the second file is a second application icon, and the processor 401 is further configured to: when the first application icon is deleted, uninstalling the first application corresponding to the first application icon; or when the second application icon is deleted, uninstalling the second application corresponding to the second application icon; or when the first application icon and the second application icon are deleted, uninstalling the first application corresponding to the first application icon and the second application corresponding to the second application icon.
In a specific implementation, the processor 401 and the memory 402 described in this embodiment of the present invention may execute the implementation manners described in the first embodiment and the second embodiment of the deletion method provided in this embodiment of the present invention, and may also execute the implementation manner of the terminal described in this embodiment of the present invention, which is not described herein again.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present application is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and elements referred to are not necessarily required in this application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above detailed description is only for the preferred embodiment of the present invention, and certainly, the scope of the present invention is not limited thereto, and therefore, the equivalent changes made in the claims of the present invention are also included in the scope of the present invention.

Claims (8)

1. A deletion method, the method comprising:
moving the first file according to the first moving instruction;
if a second file is detected to exist in the position of the first file and an overlapping area is formed between the first file and the second file, deleting the first file and/or the second file according to a preset rule; before deleting the first file and/or the second file according to a preset rule, the method further comprises the following steps:
judging whether the data information of the first file is matched with the data information of the second file or not, wherein the data information comprises file content and/or file name;
and if so, executing the step of deleting the first file and/or the second file according to a preset rule.
2. The method according to claim 1, wherein if it is detected that a second file exists at the location of the first file and an overlapping area is formed between the first file and the second file, before deleting the first file and/or the second file according to a preset rule, the method further comprises:
and moving the second file according to the second moving instruction.
3. The method according to any one of claims 1-2, wherein deleting the first file and/or the second file according to a preset rule comprises:
if the creation time of the first file is earlier than that of the second file, deleting the first file; or,
if the version information of the first file is earlier than that of the second file, deleting the first file; or,
if the first file is moved, deleting the first file; or,
and if the first file and the second file are moved, deleting the first file and the second file.
4. The method of any of claims 1-2, wherein the first file is a first application icon and the second file is a second application icon, the method further comprising:
when the first application icon is deleted, uninstalling the first application corresponding to the first application icon; or,
when the second application icon is deleted, uninstalling a second application corresponding to the second application icon; or,
and when the first application icon and the second application icon are deleted, uninstalling a first application corresponding to the first application icon and a second application corresponding to the second application icon.
5. A terminal, characterized in that the terminal comprises:
the file moving unit is used for moving the first file according to the first moving instruction; the file deleting unit is used for deleting the first file and/or the second file according to a preset rule if the second file is detected to exist at the position of the first file and an overlapping area is formed between the first file and the second file; wherein, the terminal further includes:
an information judging unit, configured to judge whether data information of the first file matches data information of the second file before the file deleting unit deletes the first file and/or the second file according to a preset rule, where the data information includes file content and/or a file name;
the file deleting unit is further configured to delete the first file and/or the second file according to a preset rule when the judgment result of the information judging unit is yes.
6. The terminal of claim 5, wherein the file moving unit is further configured to:
and moving a second file according to a second moving instruction before the file deleting unit detects that the second file exists at the position of the first file and an overlapping area is formed between the first file and the second file, and deleting the first file and/or the second file according to a preset rule.
7. The terminal according to any one of claims 5 to 6, wherein the file deletion unit is specifically configured to:
if the creation time of the first file is earlier than that of the second file, deleting the first file; or,
if the version information of the first file is earlier than that of the second file, deleting the first file; or,
if the first file is moved, deleting the first file; or,
and if the first file and the second file are moved, deleting the first file and the second file.
8. The terminal according to any of claims 5-6, wherein the first file is a first application icon and the second file is a second application icon, the terminal further comprising:
the application uninstalling unit is used for uninstalling the first application corresponding to the first application icon when the first application icon is deleted; or,
the second application icon is deleted, and the corresponding second application of the second application icon is unloaded; or,
the application icon is used for deleting the first application icon and the second application icon, and the first application corresponding to the first application icon and the second application corresponding to the second application icon are uninstalled.
CN201510817949.5A 2015-11-20 2015-11-20 A kind of delet method and terminal Active CN105426049B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510817949.5A CN105426049B (en) 2015-11-20 2015-11-20 A kind of delet method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510817949.5A CN105426049B (en) 2015-11-20 2015-11-20 A kind of delet method and terminal

Publications (2)

Publication Number Publication Date
CN105426049A CN105426049A (en) 2016-03-23
CN105426049B true CN105426049B (en) 2019-03-26

Family

ID=55504292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510817949.5A Active CN105426049B (en) 2015-11-20 2015-11-20 A kind of delet method and terminal

Country Status (1)

Country Link
CN (1) CN105426049B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201279A (en) * 2016-06-30 2016-12-07 珠海市魅族科技有限公司 A kind of file operation method and device
CN107656743B (en) * 2017-09-28 2021-04-16 努比亚技术有限公司 Application unloading method, terminal and readable storage medium
CN107729110A (en) * 2017-10-16 2018-02-23 深圳依偎控股有限公司 Application program child control management method, mobile terminal and storage medium
CN108958583A (en) * 2018-06-29 2018-12-07 维沃移动通信有限公司 A kind of method for sorting and terminal device of icon
CN112416192A (en) * 2020-11-11 2021-02-26 北京梧桐车联科技有限责任公司 Application program control method and device, electronic equipment and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989176A (en) * 2009-08-04 2011-03-23 Lg电子株式会社 Mobile terminal and icon collision controlling method thereof
CN102253803A (en) * 2011-07-06 2011-11-23 汉王科技股份有限公司 Unlocking method and device for touch screen
CN102968277A (en) * 2012-11-30 2013-03-13 北京小米科技有限责任公司 Method and device for deleting or cutting file based on touch screen
CN103713828A (en) * 2013-12-11 2014-04-09 上海斐讯数据通信技术有限公司 Method of deleting two desktop icons by collision
CN104636027A (en) * 2014-08-22 2015-05-20 康佳集团股份有限公司 Method and system for managing tabletop icons based on intelligent television

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631504A (en) * 2012-08-22 2014-03-12 腾讯科技(深圳)有限公司 Method for managing application programs and user equipment
CN102929706B (en) * 2012-10-31 2015-11-25 广州市久邦数码科技有限公司 A kind of method of merged file folder

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989176A (en) * 2009-08-04 2011-03-23 Lg电子株式会社 Mobile terminal and icon collision controlling method thereof
CN102253803A (en) * 2011-07-06 2011-11-23 汉王科技股份有限公司 Unlocking method and device for touch screen
CN102968277A (en) * 2012-11-30 2013-03-13 北京小米科技有限责任公司 Method and device for deleting or cutting file based on touch screen
CN103713828A (en) * 2013-12-11 2014-04-09 上海斐讯数据通信技术有限公司 Method of deleting two desktop icons by collision
CN104636027A (en) * 2014-08-22 2015-05-20 康佳集团股份有限公司 Method and system for managing tabletop icons based on intelligent television

Also Published As

Publication number Publication date
CN105426049A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
WO2019128732A1 (en) Icon management method and device
KR102113272B1 (en) Method and apparatus for copy and paste in electronic device
US9003283B2 (en) Copying text using parameters displayed on a clipboard
US8269736B2 (en) Drop target gestures
US9304668B2 (en) Method and apparatus for customizing a display screen of a user interface
US10042681B2 (en) Systems and methods for managing navigation among applications
CN101937310B (en) File copying method and terminal
US20150106766A1 (en) Method for quickly operating file of smart phone and smart phone
US20150347358A1 (en) Concurrent display of webpage icon categories in content browser
WO2022194004A1 (en) Application icon arrangement method and apparatus, and electronic device
US10551998B2 (en) Method of displaying screen in electronic device, and electronic device therefor
WO2018166434A1 (en) Icon processing method and mobile terminal
CN105426049B (en) A kind of delet method and terminal
US8952912B1 (en) Selection of elements on paginated touch sensitive display
CN108064368A (en) The control method and device of flexible display device
US20190220170A1 (en) Method and apparatus for creating group
KR20130133980A (en) Method and apparatus for moving object in terminal having touchscreen
KR20140078629A (en) User interface for editing a value in place
KR101978239B1 (en) Method for editing contents and an electronic device thereof
WO2023005835A1 (en) Icon control method, apparatus, electronic device, and readable storage medium
US20150363069A1 (en) Display control
US10089001B2 (en) Operating system level management of application display
CN112269523B (en) Object editing processing method and device and electronic equipment
WO2018196668A1 (en) Method of performing search operation for selected object content and terminal
CN114415886A (en) Application icon management method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 519085 Guangdong Zhuhai science and technology innovation coastal Meizu Technology Building

Patentee after: MEIZU TECHNOLOGY Co.,Ltd.

Address before: 519080 Technology Innovation Coast Meizu science and technology building, Xiangzhou District, Zhuhai, Guangdong

Patentee before: Meizu Technology (China) Co.,Ltd.