CN115525610B - File deletion method, electronic device and computer readable storage medium - Google Patents

File deletion method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN115525610B
CN115525610B CN202210148230.7A CN202210148230A CN115525610B CN 115525610 B CN115525610 B CN 115525610B CN 202210148230 A CN202210148230 A CN 202210148230A CN 115525610 B CN115525610 B CN 115525610B
Authority
CN
China
Prior art keywords
video
deletion
deleting
file
interface
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
CN202210148230.7A
Other languages
Chinese (zh)
Other versions
CN115525610A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210148230.7A priority Critical patent/CN115525610B/en
Publication of CN115525610A publication Critical patent/CN115525610A/en
Application granted granted Critical
Publication of CN115525610B publication Critical patent/CN115525610B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • 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/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to the technical field of terminals, and provides a file deleting method, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: receiving a first operation; in response to a first operation, encapsulating to-be-deleted data of the first video, the to-be-deleted data including a storage path of the first video and a number of associated files of the first video; determining parameters of a deleting prompt box based on a preset monitoring callback function; determining the filtering type of the album according to the parameters of the deleting prompt box; setting and displaying a deletion prompt box according to the data to be deleted and the album filtering type, wherein the display deletion prompt box is used for prompting a user to select a deletion mode of the first video; receiving a second operation; and deleting the first video and the associated file of the first video in response to the second operation. The file deleting method and device avoid excessive operations of deleting the file by the user, reduce time consumed by the operations, improve efficiency of deleting the file and improve user experience.

Description

File deletion method, electronic device and computer readable storage medium
Technical Field
The present disclosure relates to the field of intelligent control technologies for electronic devices, and in particular, to a file deletion method, an electronic device, and a computer readable storage medium.
Background
With the development of electronic technology, electronic devices (such as mobile phones, tablet computers, smart watches, etc.) have more and more functions, and particularly, shooting functions of the electronic devices are greatly enriched. For example, cameras are installed in most electronic devices, so that the electronic devices have a function of recording video. Taking a mobile phone in the electronic equipment as an example, the mobile phone records a video, and based on a preset scene algorithm, the mobile phone extracts a wonderful instant photo and a wonderful short video which are matched with the scene algorithm from the recorded original video.
However, in the use process of the electronic device, as the number of recorded original videos increases, the number of wonderful instantaneous photos and wonderful short videos increases more rapidly, and the remaining storage space of the electronic device is more and more scarce, and meanwhile, as the preference of a user for the recorded videos changes, the recorded files in the electronic device are often required to be deleted. In the face of such a huge number of recorded files, users have to check, select and delete one by one in order to prevent erroneous deletion, which results in large user operation amount, long time consumption and low deletion efficiency.
The foregoing description is provided for general background information and does not necessarily constitute prior art.
Disclosure of Invention
The application provides a file deleting method, electronic equipment and a computer readable storage medium, and aims to solve the technical problems of large operation amount, long time consumption and low deleting efficiency of a user for deleting recorded files.
In a first aspect, the present application provides a method for deleting a file, including: receiving a first operation; in response to the first operation, encapsulating to-be-deleted data of a first video, wherein the to-be-deleted data comprises a storage path of the first video and the number of associated files of the first video; determining parameters of a deleting prompt box based on a preset monitoring callback function; determining the filtering type of the album according to the deleting prompt box parameters; setting and displaying a deletion prompt box according to the data to be deleted and the album filtering type, wherein the display deletion prompt box is used for prompting a user to select a deletion mode of the first video; receiving a second operation; and deleting the first video and the associated file of the first video in response to the second operation. In this way, after the user selects the first video to be deleted based on the first operation of clicking to delete the first video, the data to be deleted of the first video is packaged, then the deleting prompt box is set and displayed according to the album filtering type determined by the data to be deleted and the deleting prompt box parameters, so that the user selects the second operation of all deletion based on the deleting prompt box, and synchronously deletes the associated files of the first video and the first video.
The file deleting method is applied to a gallery of the electronic equipment.
Illustratively, the data to be deleted includes a storage path of the first video and a number of AI photos associated with the first video.
Illustratively, the association file includes an AI photograph of the first video and an AI video.
The interface for detecting the operation of clicking to delete the first video includes a timeline interface of a gallery, an entity album interface, and a virtual album interface.
The deletion prompt box parameters comprise a first deletion prompt box parameter and a second deletion prompt box parameter; the first deletion prompt box parameter comprises description information of whether the first video is synchronously stored in the cloud and other equipment, and the second deletion prompt box parameter comprises description information of whether the first video is a one-record-multiple-data type.
Illustratively, the album filtering type includes deleting or not deleting the first video and the AI photos of the first video at the same time or deleting only the first video from the cloud and other devices.
According to a first aspect, the step of determining the album filtering type according to the deletion prompt box parameter includes: extracting first description information of whether the first video is synchronously stored in the cloud and other equipment from the deletion prompt box parameters; extracting second description information of whether the first video is a one-record-multiple-data class from the deletion prompt box parameters; and determining the album filtering type according to the first description information and the second description information. Thus, the album filter type may be set as: simultaneously deleting the first video from the cloud and other devices or deleting the first video and the associated file of the first video, not simultaneously deleting the first video from the cloud and other devices or deleting the first video and the associated file of the first video, simultaneously deleting the first video and the associated file of the first video or deleting the first video only. And a diversified deleting mode is provided for the first video and the associated file of the first video, so that the diversified deleting requirement of a user is met.
Exemplary album filter types include: simultaneously deleting the first video and the associated file of the first video, deleting the first video and the associated file of the first video from the cloud and other devices, deleting the first video only, deleting the first video from the cloud and other devices, deleting the first video only, and deleting the first video from the cloud and other devices.
The first deletion prompt box parameter includes first description information, and the second deletion prompt box parameter includes second description information.
According to the first aspect, or any implementation manner of the first aspect, the step of determining the album filtering type according to the first description information and the second description information includes: if the first description information is that the first video is synchronously stored in the cloud and other equipment, deleting the first video from the cloud and other equipment at the same time by the album filtering type; if the second description information is that the first video is a one-record-multiple-data type, the album filtering type comprises deleting the first video and the associated file of the first video at the same time. In this way, whether the first video is synchronously stored in the cloud end and other equipment is determined by the first description information, whether the first video is a one-record-multiple-function data class is determined by the second description information, if the first video is synchronously stored in the cloud end and other equipment, the user is likely to have a first video requirement of synchronously deleting the cloud end and other equipment when deleting the local first video, and if the first video is a one-record-multiple-function data class, the user is likely to have an associated file obtained by synchronously deleting the first video through the one-record-multiple-function when deleting the first video.
According to the first aspect, or any implementation manner of the first aspect, the step of setting and displaying a deletion prompt box according to the data to be deleted and the album filtering type includes: setting a prompt title, a subheading and a bullet frame button content of the deletion prompt frame according to the album filtering type; refreshing the prompt title of the deletion prompt box according to the data to be deleted, and displaying the deletion prompt box. In this way, the prompt title is used for prompting whether the first video of the cloud end and other devices is synchronously deleted in the album filtering type, the subtitle is used for enabling a user to select whether the first video of the cloud end and the first video of other devices are synchronously deleted in the album filtering type, the popup button content is used for enabling the user to select whether the first video and the associated file of the first video are synchronously deleted in the album filtering type, a deletion prompt box is set based on the album filtering type, and different deletion prompts and deletion selections are provided for the user.
Illustratively, different album filtering types correspond to different prompt titles, sub-titles and box button contents of the deletion prompt box.
Illustratively, the hint header includes content of the number of AI photos.
According to the first aspect, or any implementation manner of the first aspect, after the step of setting and displaying the deletion prompt box, the method further includes: receiving a third operation; and deleting the first video in response to the third operation. Therefore, the user can select to delete only the first video based on the third operation of deleting the prompt box, and the diversified file deleting requirement of the user is met.
According to a first aspect, or any implementation manner of the first aspect, the step of deleting the first video and the associated file of the first video includes: deleting the associated file of the first video; and deleting the first video after deleting the associated file of the first video. Therefore, the database change of the gallery caused by deleting the first video is avoided, the large-scale view interface or the grid interface is driven to change, and the false image of deleting errors caused by displaying the deleting action before deleting the task is executed is avoided, so that the user experience is poor.
According to a first aspect, or any implementation manner of the first aspect, the step of deleting the associated file of the first video includes: acquiring a storage path of an associated file of the first video, wherein the associated file comprises an AI photo and an AI video of the first video; determining a corresponding AI video to be deleted according to the associated information and deletion selection of the AI video; and moving the AI photo and the AI video to be deleted to a recycle bin of a gallery, and modifying a storage path of the associated file to be a storage path of the recycle bin. Therefore, the AI video of the first video is classified, the AI video which is actually and independently stored is moved to a recycle bin of a gallery together with the AI photo, the storage paths of the AI video and the AI photo are adapted to be adjusted, the AI video which is not actually stored and is attached to the first video is directly and clearly stored, the residual file of the AI video is prevented from being stored after the first video is deleted, and the storage space is saved.
According to the first aspect, or any implementation manner of the first aspect, after the step of deleting the associated file of the first video, the method further includes: and recording the original information of the AI photo and the AI video to be deleted. In this way, the original information is used for recovering the deleted file selected by the user, and when the user deletes the file by mistake, the user can be helped to recover the AI photo and the AI video which are deleted by mistake.
Illustratively, the original information includes: AI photos and AI videos of the recycle bin that have been put into the gallery are not put into the storage path before the recycle bin.
According to a first aspect, or any implementation manner of the first aspect, the step of deleting the first video includes: acquiring a storage path of the first video; the first video has an associated AI video; determining a corresponding AI video to be deleted according to the associated information and deletion selection of the AI video; and moving the AI video to be deleted and the first video to a recycle bin of a gallery, and modifying a storage path of the first video to be a storage path of the recycle bin. In this way, the first video, the AI video and the AI photo are temporarily stored in the recycle bin of the gallery, and file crushing and cleaning are not performed temporarily so as to prepare files which need to be restored and deleted later by a user.
According to the first aspect, or any implementation manner of the first aspect, after the step of setting and displaying the deletion prompt includes: and displaying a preset preview frame, and displaying the thumbnail of the associated file in the preview frame. Therefore, the user can clearly know which pictures or videos the associated file of the first video is, and is beneficial to judging whether the associated file needs to be deleted synchronously or not.
Illustratively, after the step of displaying the preset preview frame, the method further includes: and adding a preset association mark at a first preset position in the thumbnail of the association file.
For example, the step of displaying a preset preview frame and displaying the thumbnail of the associated file in the preview frame includes: determining a main scene of the first video, and acquiring scene relativity of each associated file and the main scene;
displaying a preset preview frame, and orderly displaying the thumbnail of each associated file in the preview frame according to the size relation of the scene relativity.
According to the first aspect, or any implementation manner of the first aspect, the step of displaying a preset preview frame includes: according to the position of the deletion control in the deletion prompt box, associating and displaying a preset preview box; and adding a preset hook control at a second preset position in the thumbnail of each associated file in the preview frame. In this way, the user may selectively delete the associated file of the first video.
Illustratively, after the step of setting and displaying the deletion prompt, the method further includes: selecting a target associated file meeting a preset similarity condition and/or a preset default selected condition from the associated files, and determining the target associated file as a selected state to be deleted; and adding a selection mark corresponding to the selected state to be deleted for the target associated file in the deletion prompt box.
In a second aspect, the present application provides an electronic device, comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the electronic device, cause the electronic device to perform the steps of:
receiving a first operation;
in response to the first operation, encapsulating to-be-deleted data of a first video, wherein the to-be-deleted data comprises a storage path of the first video and the number of associated files of the first video;
determining parameters of a deleting prompt box based on a preset monitoring callback function;
determining the filtering type of the album according to the deleting prompt box parameters;
Setting and displaying a deletion prompt box according to the data to be deleted and the album filtering type, wherein the display deletion prompt box is used for prompting a user to select a deletion mode of the first video;
receiving a second operation;
and deleting the first video and the associated file of the first video in response to the second operation.
According to a second aspect, the computer program, when executed by the one or more processors, causes the electronic device to perform the steps of:
according to a second aspect, the computer program, when executed by the one or more processors, causes the electronic device to perform the steps of:
extracting first description information of whether the first video is synchronously stored in the cloud and other equipment from the deletion prompt box parameters;
extracting second description information of whether the first video is a one-record-multiple-data class from the deletion prompt box parameters;
and determining the album filtering type according to the first description information and the second description information.
According to a second aspect, or any implementation of the second aspect above, the computer program, when executed by the one or more processors, causes the electronic device to perform the steps of:
If the first description information is that the first video is synchronously stored in the cloud and other equipment, deleting the first video from the cloud and other equipment at the same time by the album filtering type;
if the second description information is that the first video is a one-record-multiple-data type, the album filtering type comprises deleting the first video and the associated file of the first video at the same time.
According to a second aspect, or any implementation of the second aspect above, the computer program, when executed by the one or more processors, causes the electronic device to perform the steps of:
setting a prompt title, a subheading and a bullet frame button content of the deletion prompt frame according to the album filtering type;
refreshing the prompt title of the deletion prompt box according to the data to be deleted, and displaying the deletion prompt box.
According to a second aspect, or any implementation of the second aspect above, the computer program, when executed by the one or more processors, causes the electronic device to perform the steps of: receiving a third operation; and deleting the first video in response to the third operation.
According to a second aspect, or any implementation of the second aspect above, the computer program, when executed by the one or more processors, causes the electronic device to perform the steps of: deleting the associated file of the first video; and deleting the first video after deleting the associated file of the first video.
According to a second aspect, or any implementation of the second aspect above, the computer program, when executed by the one or more processors, causes the electronic device to perform the steps of:
acquiring a storage path of an associated file of the first video, the associated file comprising AI (Artificial Intelligence ) photos and AI videos of the first video;
determining a corresponding AI video to be deleted according to the associated information and deletion selection of the AI video;
and moving the AI photo and the AI video to be deleted to a recycle bin of a gallery, and modifying a storage path of the associated file to be a storage path of the recycle bin.
According to a second aspect, or any implementation of the second aspect above, the computer program, when executed by the one or more processors, causes the electronic device to perform the steps of: and recording the original information of the AI photo and the AI video to be deleted.
According to a second aspect, or any implementation of the second aspect above, the computer program, when executed by the one or more processors, causes the electronic device to perform the steps of:
Acquiring a storage path of the first video; the first video has an associated AI video;
determining a corresponding AI video to be deleted according to the associated information and deletion selection of the AI video;
and moving the AI video to be deleted and the first video to a recycle bin of a gallery, and modifying a storage path of the first video to be a storage path of the recycle bin.
According to a second aspect, or any implementation of the second aspect above, the computer program, when executed by the one or more processors, causes the electronic device to perform the steps of: and displaying a preset preview frame, and displaying the thumbnail of the associated file in the preview frame.
According to a second aspect, or any implementation of the second aspect above, the computer program, when executed by the one or more processors, causes the electronic device to perform the steps of: according to the position of the deletion control in the deletion prompt box, associating and displaying a preset preview box; and adding a preset hook control at a second preset position in the thumbnail of each associated file in the preview frame.
Any implementation manner of the second aspect and the second aspect corresponds to any implementation manner of the first aspect and the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation manner of the second aspect may be referred to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which are not described herein.
In a third aspect, the present application provides a computer readable storage medium having stored therein a computer program which, when executed by a processor, causes the processor to perform the method of file deletion as described in the first aspect or any one of the possible implementations of the first aspect.
Any implementation manner of the third aspect and any implementation manner of the third aspect corresponds to any implementation manner of the first aspect and any implementation manner of the first aspect, respectively. The technical effects corresponding to the third aspect and any implementation manner of the third aspect may be referred to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which are not described herein.
In a fourth aspect, embodiments of the present application provide a computer program comprising instructions for performing the method of the first aspect and any possible implementation manner of the first aspect.
Any implementation manner of the fourth aspect and any implementation manner of the fourth aspect corresponds to any implementation manner of the first aspect and any implementation manner of the first aspect, respectively. Technical effects corresponding to any implementation manner of the fourth aspect may be referred to the technical effects corresponding to any implementation manner of the first aspect, and are not described herein.
In a fifth aspect, embodiments of the present application provide a chip that includes a processing circuit, a transceiver pin. Wherein the transceiver pin and the processing circuit communicate with each other via an internal connection path, the processing circuit performing the method of the second aspect or any one of the possible implementations of the second aspect to control the receiver pin to receive signals and to control the transmitter pin to transmit signals. The chip is an electronic device, which may be a mobile phone.
Any implementation manner of the fifth aspect and any implementation manner of the fifth aspect corresponds to any implementation manner of the first aspect and any implementation manner of the first aspect, respectively. Technical effects corresponding to any implementation manner of the fifth aspect may be referred to the technical effects corresponding to any implementation manner of the first aspect, and are not described herein.
Drawings
FIG. 1 is a schematic interface scene diagram of file deletion in the prior art;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 3 is a software structural block diagram of an electronic device according to an embodiment of the present application;
FIG. 4 is another software architecture block diagram of an application layer and an application framework layer in a software architecture of an electronic device according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating a method for deleting a file according to an embodiment of the present disclosure;
FIG. 6 is a flowchart illustrating a second method for deleting a file according to an embodiment of the present disclosure;
FIG. 7 is a diagram illustrating a desktop interface of an electronic device according to the present application;
FIG. 8 is a second diagram of a desktop interface of the electronic device of the present application;
FIG. 9a is a first schematic diagram of a timeline interface of an electronic device;
FIG. 9b is a schematic diagram of an album list interface of an electronic device according to the present application;
FIG. 10 is a schematic diagram of a large view interface of an electronic device of the present application;
FIG. 11 is a second schematic diagram of a large view interface of an electronic device according to the present application;
FIG. 12 is a third schematic diagram of a large view interface of an electronic device of the present application;
FIG. 13 is a second schematic diagram of a timeline interface of an electronic device;
FIG. 14 is a diagram of an entity album interface of an electronic device according to the present application;
FIG. 15 is a second schematic diagram of an entity album interface of the electronic device according to the present application;
FIG. 16 is a third diagram of an entity album interface of an electronic device according to the present application;
FIG. 17 is a diagram of a physical album interface of an electronic device according to the present application;
FIG. 18 is a diagram of an entity album interface of an electronic device according to the present application;
FIG. 19 is a schematic diagram of a virtual album interface of an electronic device according to the present application;
FIG. 20 is a second schematic diagram of a virtual album interface of an electronic device according to the present application;
FIG. 21 is a third schematic view of a virtual album interface of an electronic device according to the present application;
FIG. 22 is a schematic diagram of a virtual album interface of an electronic device according to the present application;
FIG. 23 is a fifth exemplary virtual album interface for an electronic device according to the present disclosure;
FIG. 24 is a flowchart third illustrating a method for deleting a file according to an embodiment of the present disclosure;
FIG. 25 is a flowchart illustrating a method for deleting a file according to an embodiment of the present disclosure;
fig. 26 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms first and second and the like in the description and in the claims of embodiments of the present application are used for distinguishing between different objects and not necessarily for describing a particular sequential order of objects. For example, the first target object and the second target object, etc., are used to distinguish between different target objects, and are not used to describe a particular order of target objects.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more. For example, the plurality of processing units refers to two or more processing units; the plurality of systems means two or more systems.
Before the technical scheme of the embodiment of the application is described, an application scenario of the embodiment of the application is described with reference to the accompanying drawings. For convenience of description, the embodiment of the present application takes a file to be deleted as an example to be implemented by using a gallery application program (hereinafter referred to as gallery application), and takes an electronic device, i.e. a mobile phone, as an implementation device end of a file deletion process.
For clarity and conciseness in the following description of the embodiments, a brief description of an implementation scheme of a file deletion method is first given:
currently, terminal electronic devices such as mobile phones and tablet computers basically have related application programs for recording and storing videos and pictures, such as camera applications, gallery applications, and the like, and many first videos and highlight instant photos and highlight short videos related to the first videos are stored in the electronic devices, so that due to limited storage space of the electronic devices or change of favorites of users on the photos or videos, the users often delete the videos and the photos. However, due to the large number of videos and photos, as shown in fig. 1, an exemplary grid interface 10 of a certain album (such as a camera album, all photo albums, etc.) in the gallery application is displayed in a display area of the electronic device 200, where the grid interface 10 includes a thumbnail 101, a return control 102, a view control 103, and a hook control 104, the thumbnail 101 is a schematic diagram of a picture or video stored in the electronic device 200, the return control 102 may be used to exit the grid interface 10 of the gallery application, the view control 103 may be used to display the thumbnail 101 selected by the user in a large graphic format, and the hook control 104 is used to mark the picture or video selected by the user for subsequent operations such as deletion, sharing, etc.
In the grid interface 10 of the gallery application, the videos or photos are displayed in the display area of the electronic device 200 in the form of a grid with smaller size of the thumbnail 101, in order to prevent the user from deleting the precious videos and photos by mistake, the user often needs to click the view control 103 one by one to view the videos and/or photos corresponding to each thumbnail 101 in a large graphic form, then evaluate and selectively delete unnecessary videos and photos, and then trigger the delete function of the electronic device 200 to delete files, for example, the user clicks the hook control 104 to select the 3 thumbnails 101 with the hook control being in the "hook state", in fig. 1, the first thumbnail 101 in the grid interface 10 in fig. 1, the third thumbnail 101 in the first row and the first thumbnail 101 in the third row (i.e. the thumbnail with the hook control in the lower right corner in fig. 1) at least needs to click the view control 103 for seven times and view the 7 thumbnails 101 in the whole process, so that the user can finish the deletion of the videos or photos displayed in the large graphic form after the thumbnail is unfolded, and the whole process has low operation cost and long time consumption of the user is required to evaluate and delete files in a large amount.
Based on the problems in the technical scheme, the application provides a file deleting method, which comprises the steps of packaging to-be-deleted data of a first video after a user selects the to-be-deleted first video based on clicking to delete the first video, setting and displaying a deleting prompt box according to the to-be-deleted data and the album filtering type determined according to the deleting prompt box parameters, so that the user can select second operation of all deletion based on the deleting prompt box to synchronously delete the related files of the first video and the first video, each video and each photo do not need to be checked one by one, only the first video to be deleted needs to be determined, so that excessive operations of deleting the files by the user can be avoided, the time consumed by the operations is reduced, the file deleting efficiency is improved, and the user experience is improved.
The file deleting method provided by the application can be applied to electronic devices such as mobile phones, tablet computers, desktop computers, laptops, notebook computers, ultra-mobile personal computers (UMPC), handheld computers, netbooks, personal digital assistants (Personal Digital Assistant, PDA), wearable electronic devices, intelligent watches and the like. The structure of the electronic device to which the file deletion method is applied may be as shown in fig. 2.
As shown in fig. 2, fig. 2 is a diagram illustrating an example of the composition of an electronic device provided in the present application, the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (universal serial bus, USB) interface 230, a charge management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a sensor module 280, a key 290, an indicator 291, a camera 292, a display 293, and the like. Wherein the sensor module 280 may include a pressure sensor 280A or the like.
It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 200. In other embodiments, the electronic device 200 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units such as, for example: the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processingunit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 200, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 210 is reduced, thereby improving the efficiency of the system.
The charge management module 240 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 240 may receive a charging input of a wired charger through the USB interface 230. In some wireless charging embodiments, the charge management module 240 may receive wireless charging input through a wireless charging coil of the electronic device 200. The charging management module 240 may also power the electronic device 200 through the power management module 241 while charging the battery 242.
The wireless communication function of the electronic device 200 can be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 200 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 250 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied on the electronic device 200. The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 250 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 250 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be provided in the same device as at least some of the modules of the processor 210.
The wireless communication module 260 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied on the electronic device 200. The wireless communication module 260 may be one or more devices that integrate at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 250 of electronic device 200 are coupled, and antenna 2 and wireless communication module 260 are coupled, such that electronic device 200 may communicate with a network and other devices via wireless communication techniques.
The electronic device 200 implements display functions through a GPU, a display screen 293, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 293 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 293 is used to display images, videos, and the like. The display screen 293 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, electronic device 200 may include 1 or N displays 293, N being a positive integer greater than 1.
A series of graphical user interfaces (graphical user interface, GUIs), which are all home screens of the electronic device 200, may be displayed on the display 293 of the electronic device 200. Generally, the display 293 of the electronic device 200 is fixed in size and only limited controls can be displayed in the display 293 of the electronic device 200. A control is a GUI element that is a software component contained within an application program that controls all data processed by the application program and interactive operations on that data, and a user can interact with the control by direct manipulation (direct manipulation) to read or edit information about the application program. In general, controls may include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and the like. For example, in the embodiment of the present application, the display 291 may display virtual keys (one-key arrangement, start arrangement, scene arrangement).
The electronic device 200 may implement photographing functions through an ISP, a camera 292, a video codec, a GPU, a display screen 293, an application processor, and the like.
The external memory interface 220 may be used to connect an external memory card, such as a MicroSD card, to enable expansion of the memory capabilities of the electronic device 200. The external memory card communicates with the processor 210 through an external memory interface 220 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
Internal memory 221 may be used to store computer executable program code that includes instructions. The processor 210 executes various functional applications of the electronic device 200 and data processing by executing instructions stored in the internal memory 221.
The electronic device 200 may implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an ear-headphone interface 270D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 270 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 270 may also be used to encode and decode audio signals. In some embodiments, the audio module 270 may be disposed in the processor 210, or some functional modules of the audio module 270 may be disposed in the processor 210.
The pressure sensor 280A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 280A may be disposed on display 293. The pressure sensor 280A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor 280A, the capacitance between the electrodes changes. The electronic device 200 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 293, the electronic device 200 detects the intensity of the touch operation based on the pressure sensor 280A. The electronic device 200 may also calculate the location of the touch based on the detection signal of the pressure sensor 280A.
Keys 290 include a power on key, a volume key, etc. The keys 290 may be mechanical keys. Or may be a touch key. The electronic device 200 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 200.
The indicator 291 may be an indicator light, which may be used to indicate a state of charge, a change in power, a message indicating a missed call, a notification, etc.
In addition, an operating system is run on the components. Such as the hong Monte System, the iOS operating system, the Android open source operating system, the Windows operating system, and the like. An operating application may be installed on the operating system.
Fig. 3 is a software structural block diagram of an electronic device according to an embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments of the present application, an Android system is taken as an example of a system for operating an electronic device, and a software architecture of the Android system is divided into four layers, namely an application layer, an application framework layer, an installation runtime (Android run) and a system library, and a kernel layer from top to bottom.
The application layer may include a series of applications. As shown in fig. 3, the application layer may include applications (hereinafter, simply referred to as applications) such as cameras, gallery, calendar, phone calls, map, navigation, WLAN, bluetooth, music, video, short messages, and so on. It should be noted that the application program layer shown in fig. 3 includes an application that is only exemplary, and the present application is not limited thereto. It will be appreciated that the application program layer includes applications that do not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer applications than the application program layer shown in fig. 3, and different electronic devices 200 may include the same applications or completely different applications.
In some possible embodiments, the application layer in the software architecture of the electronic device 200 includes a gallery, which can provide the electronic device with a regular function of pictures and videos, so that a user can find and use the pictures and videos in the gallery conveniently.
Illustratively, referring to FIG. 4, the gallery may include functional modules of a base gallery, a base extension, a data gallery, a wisdom gallery, a search, and the like.
Illustratively, referring to FIG. 4, the functional modules of the base gallery may be used to provide various albums and interfaces for electronic devices, and the functional modules of the base gallery may include functional sub-modules of timelines, albums, recycle bins, interface management, and the like.
Illustratively, the functional sub-module of the timeline provides a timeline interface for a gallery, and in an embodiment of the timeline interface shown in fig. 9, the timeline interface 40 may include a file type field 401, a search box 402, a time point 403, and thumbnails 404 of photos or videos, the file type field 401 is used to mark a file type of an object displayed by the thumbnails 404 in the current timeline interface 40, the search box 402 is used to provide a function of searching the gallery for a file required by a user based on a keyword input by the user, the time point 403 is used to mark a generation time of each thumbnail 404 in the timeline interface 40, and the thumbnails 404 are used to briefly display photos or videos stored in the electronic device 200.
Illustratively, the album function sub-module provides an album interface for a gallery, such as the entity album interface (e.g., camera album interface) shown in FIG. 14, and the entity album interface 60 may include a file type field 601 and a thumbnail 602 showing a picture or video, the file type field 601 being used to mark the file type of the object shown by the thumbnail 601 in the current entity album interface 60, the thumbnail 602 being used to refer briefly to the picture or video stored in the electronic device 200.
In order to assist in understanding the embodiments of the present application, an exemplary explanation is made on an entity album and a virtual album, where the entity album is a folder in which a storage path of a picture and/or a video on a storage card of an electronic device corresponds to a source file, and the picture or the video in the entity album is the source file of the picture or the video on the storage card of the electronic device. The virtual album is a folder of storage paths of pictures and/or videos on a storage card of the electronic device, the virtual album does not exist on the storage card of the electronic device, and the pictures or videos in the virtual album are only thumbnail images or source files of the pictures or videos which call the storage path index of the pictures or videos.
Illustratively, the functional sub-module of the recycle bin provides a recycle bin interface for the gallery, and illustratively, the layout of the recycle bin interface and the physical album interface may be substantially the same, and the photos or videos deleted by the user and temporarily stored in the recycle bin are displayed in the recycle bin interface.
For example, the functional sub-module of interface management provides a deletion button or a deletion control triggered by user operation for the gallery, and in some embodiments, the interface management of the electronic device starts a file deletion flow of the application in response to the user operation trigger (e.g., the operation trigger of the first operation) on the deletion button or the deletion control. Wherein interface management is also used for: after a user inputs a first operation to the mobile phone to select a first video to be deleted, the storage path of the first video on a memory card of the mobile phone and the AI Photo number of AI photos associated with the first video are packaged, and operation type information is sent to data management in a data query API of a Photo data interface of an application program framework layer of the electronic device. In the embodiment of the present application, the operation type information is a deletion type.
Illustratively, referring to FIG. 4, the underlying extended functionality may be used to provide an interface for gallery editing capabilities of pictures or videos, classifying capabilities of pictures or videos, and multi-channel enabling capabilities. In some embodiments, the basic extended functional modules include functional sub-modules such as picture editing, video editing portals, place albums, and desktop widgets.
Exemplary, the functional submodule for editing the picture provides an interface for the gallery with the ability to edit the picture, and in some embodiments, the interface for the ability to edit the picture includes interface controls for picture rotation, picture cropping, picture adding filters, picture blurring, picture skin beautifying, picture adding mosaics, picture adding graffiti, picture adding watermarks, and the like.
Illustratively, the functional sub-module of the video editing portal provides an interface for the gallery of video editing capabilities, which in some embodiments include interface controls such as video captioning, video cutting, video play speed adjustment, video modification, or adding background music.
Illustratively, the functional sub-module of the place album provides an interface to the gallery that categorizes the pictures or videos based on their location of capture, and in some embodiments, the functional sub-module of the place album includes an interface control that extracts the location of capture of the pictures or videos in the gallery and categorizes the pictures or videos.
The function sub-module of the desktop widget provides a new starting interface for the gallery, and in some embodiments, the function sub-module of the desktop widget adds the widget to the gallery on the desktop interface of the electronic device, and the electronic device starts the gallery in response to the user clicking the widget of the gallery. The widget is a widget displayed on a desktop interface of the electronic device, and when a user clicks the widget, the user can open an application interface associated with the widget in advance, for example, an interface of a widget associated gallery, and when the user clicks the widget on the desktop of the electronic device, the user can start the gallery and display the interface of the gallery. Referring to fig. 7, the desktop interface 30 of the electronic device 200 includes a calendar widget 301, a weather widget 302, a gallery widget 303, a status bar 304, a conversation application icon 305, a contact application icon 306, and a gallery application icon 307. Calendar widget 301 may be used to indicate a current time, such as a date, day of the week, time-of-day information, and the like. Weather widget 302 may be used to indicate weather types, such as cloudy weather, rainy weather, etc. Gallery widget 303 may be used to quickly launch the gallery and display the interface of the gallery. Status bar 304 may include the name of the operator (e.g., chinese movement), time, signal strength, and current remaining power. The call application icon 305 is used for the user to click on and launch a call application, which is used for the user to dial, view missed calls, etc. The contact application icon 306 is used for the user to click and launch a contact application, which is used for the user to add, edit contacts, etc. The gallery application icon 307 is used for a user to click and open a gallery, which is used for the user to view and edit centrally pictures and videos stored in the electronic device.
For example, referring to fig. 4, the functional modules of the database may be used to provide an interface for data synchronization services between the local side and the cloud side for the database. In some embodiments, the functional modules of the database include end cloud synchronization, shared album, clone, and other functional sub-modules.
Exemplary, the cloud-synchronization-end function sub-module provides an interface control for the gallery to provide the capability of the local electronic device to upload pictures or videos to the cloud and an interface control for the gallery to provide the capability of the local electronic device to download pictures or videos from the cloud.
The function sub-module of the shared album provides an interface for the cloud album function for the gallery, and in some embodiments, the cloud album has a plurality of album member electronic devices; the plurality of album member electronic devices can upload pictures or videos to the cloud sharing album through the interface control provided by the function sub-module of the sharing album, or the plurality of album member electronic devices can download pictures or videos from the cloud sharing album through the interface control provided by the function sub-module of the sharing album.
Illustratively, the cloned function sub-module provides an interface for cloning electronic device local gallery data to a new electronic device for the gallery, and provides an interface control for file migration capabilities of pictures and videos for the gallery of the electronic device.
For example, referring to FIG. 4, the functional module of the Smart gallery may be used to provide an interface to the gallery for the ability to categorize pictures or videos based on a preset algorithm. In some embodiments, the functional modules of the smart gallery include functional sub-modules such as highlight reel, essence clip, transaction classification, and figure analysis.
Illustratively, the highlight functional sub-module provides an interface for the gallery to continuously play pictures from video or pictures in the gallery based on a preset first algorithm. In some embodiments, the user plays on a weekend, takes a lot of interesting photos, the function sub-module at the wonderful moment provides an interface control of the gallery, and the electronic device clips a part of the photos taken on the weekend based on a preset algorithm and plays continuously in the interface of the gallery in response to the user triggering the interface control.
The functional sub-module of the essence fragment provides an interface for extracting pictures from videos or pictures of the gallery to form the essence fragment based on a preset second algorithm for the gallery. In some embodiments, multiple clips of essence are played in succession to form a highlight reel.
The transaction classification function sub-module provides an interface for extracting pictures or videos of different transaction types from the videos or pictures of the gallery based on a preset third algorithm for the gallery. In some embodiments, presetting a third algorithm may categorize the transaction type of the picture or video as landscape, night view, document, etc.
The functional sub-module of the figure analysis provides an interface for extracting a picture or a video containing a figure from the video or the picture of the figure library based on a preset fourth algorithm for the figure library.
Illustratively, referring to FIG. 4, the functional module of the search may be used to provide an interface for picture retrieval for a gallery. In some embodiments, the functional modules of the search include functional sub-modules of picture retrieval and voice retrieval.
Illustratively, the functional sub-module of picture retrieval provides an interface for the gallery to retrieve pictures that the user wants to find based on keywords. In some embodiments, the functional sub-module of picture retrieval may provide an interface control for a search box in the interface of the gallery.
Illustratively, the voice retrieval function sub-module provides an interface for gallery based on the pictures or videos that the voice retrieval user wants to find. In some embodiments, the voice retrieval function sub-module may provide an interface control for a search box in the interface of the gallery, where text based on user input voice recognition is automatically written.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a telephony manager, a resource manager, a notification manager, a view system, a distributed query system, and a Photo database interface, among others.
In some embodiments, referring to fig. 4, the distributed query interface provides a gallery with the ability for accounts of the same gallery to be logged in at multiple electronic devices, synchronized in the galleries of multiple electronic devices. Illustratively, the distributed query interface includes a capability query API, a service query API, and the like. The capability query API provides the gallery with the capability of judging whether the local electronic device supports the account number of the same gallery on hardware and software to log in a plurality of electronic devices and synchronize pictures and videos in the galleries of the plurality of electronic devices. The service query API provides the gallery with the following capabilities: the picture and the video carry out service calling logic of data synchronization among a plurality of electronic devices, checking of account numbers, opening and closing of the data synchronization service, and data inquiry, data loading, data displaying and the like after the opening of the data synchronization service.
In some embodiments, referring to FIG. 4, a photo data interface provides the gallery with data editing, data decoding, data querying, rights management, data searching, and the like capabilities. Illustratively, the Photo data interface includes a video editing API, a self-grinding picture format editing API, a picture editing API, a display soft engine API, a data query API, a data update API, a distributed device management API, a search API, and the like.
Illustratively, the video editing API provides the gallery with video editing capabilities, which in some embodiments include video captioning, video cutting, video play speed adjustment, video modification or addition of background music, and the like.
Illustratively, the self-grinding picture format editing API provides the gallery with editing capabilities for picture formats, which in some embodiments may adjust or set the format of pictures (e.g., photos) in the gallery.
Illustratively, the picture editing API provides picture editing capabilities for the gallery, which in some embodiments include picture rotation, picture cropping, picture adding filters, picture blurring, picture skin beautifying, picture adding mosaics, picture adding graffiti, picture adding watermarks, and the like.
Illustratively, the display soft engine API provides video decoding capability and/or picture decoding capability for the gallery to enable playback of video and display of pictures by the gallery.
Illustratively, the data query API provides the gallery with data query and data loading capabilities for pictures and videos. In some embodiments, the data query API includes a data management one, a data management two, a delete management one, and a delete management two functional modules.
The data management firstly receives operation type information about a first video sent by interface management of a basic gallery of an application program layer of the electronic equipment, and the data management firstly sends a query request for querying a first deletion prompt box parameter to the deletion management and sends a query request for querying a second deletion prompt box parameter to the deletion management. In some embodiments, the first deletion hint box parameter includes description information of whether the first video is synchronously stored in a cloud end of the electronic device or other devices outside the electronic device, and the second deletion hint box parameter includes description information of whether the first video is a one-record-multiple-data class. After the deletion management one receives a query request sent by the data management one, monitoring user clicking operation based on a preset monitoring callback function, determining a first deletion prompt box parameter, and returning the first deletion prompt box parameter to the data management one by the deletion management one. After the second deletion management receives the query request sent by the first data management, the user clicking operation is monitored based on a preset monitoring callback function, the second deletion prompt box parameter is determined, and then the first deletion management data management returns to the second deletion prompt box parameter.
Furthermore, the data management sends the AI Photo number of the first video to the second deletion management, the first deletion prompt box parameter returned by the first deletion management and the second deletion prompt box parameter returned by the second deletion management are received by the first deletion prompt box parameter, the album filtering type is set according to the first deletion prompt box parameter and the second deletion prompt box parameter by the data management, and the data management starts a monitor and a multi-channel monitor of a data update API of a Photo data interface of an application framework layer of the electronic equipment. And the data management firstly acquires the prompt title of the deletion prompt box of the large-drawing scene of the gallery, then the data management firstly notifies the deletion management secondly pops up the deletion prompt box and updates the prompt title to the deletion prompt box. And the second deletion management sets an interface of the deletion prompt box, and then the second deletion management refreshes the prompt title of the deletion prompt box according to the number of the AI photos. And data management II updates the database of the gallery and initiates media scanning of the gallery.
Illustratively, the data update API provides database update flow and processing logic for the gallery after the pictures and/or video are edited, and provides the gallery with the ability to expose the pictures and/or video after they are edited. In some embodiments, the data update API includes functional modules of listeners, one-way-many-listeners, menu operations, data processing, and one-way-many-management.
And after the deleting management of the data query API of the software framework layer of the electronic equipment refreshes the prompt title of the deleting prompt box according to the number of the AI photos, a monitor of the data update API of the software framework layer of the electronic equipment monitors the user operation sensed by the deleting prompt box.
In some embodiments, when the listener monitors a second operation that the user clicks all deletion, the listener encapsulates a storage path of the first video, a storage path of the AI photo of the first video, a storage path of the AI video of the first video, and associated information of the first video, the AI photo, and the AI video in a gallery as parameters of files waiting to be deleted, the listener deletes the first video and the AI photo simultaneously, and then the listener submits a notification of execution of an AI photo deletion task to data management of a data query API of a software framework layer of the electronic device. Data management a deletion task is constructed according to deletion parameters of the first video, and then the data management sends the deletion task to a menu operation of a data update API of a software framework layer of the electronic device, wherein the deletion parameters comprise associated information of AI photos and AI videos of the first video and deletion selection.
For example, after receiving a deletion task sent by data management, the menu operation stores the associated information as true in a database of a gallery (the AI video has a storage path in a memory card of a mobile phone) and deletes the AI video selected as a recycle bin transferred to the gallery to a storage container of one record of more AI photos to be transferred to the recycle bin of the gallery together with the AI photos according to the associated information and deletion selection of the AI video. The menu operation clears the associated information as a database that is not actually stored in the gallery (AI video is not in the memory path of the memory card of the handset) or as AI video that is selected for complete deletion.
Illustratively, the menu operation, upon receipt of a delete task sent by the data management entity, notifies the data processing to perform logical processing of file movement. After receiving the notification sent by the menu operation, the data processing moves the AI photo and AI video in the storage container to the recycle bin of the gallery. The data processing records the original information of the file to be deleted in the recycle bin in a database of the gallery, and sends the original information to one-record-multiple-access management and data management II. And data management II updates the database of the gallery and initiates media scanning of the gallery.
Illustratively, the data processing of the data update API of the software framework layer of the electronic device notifies the one-record-multiple-listener AI photo deletion task to completion. And after the record multi-purpose monitor receives the notification of the completion of the AI photo deletion task, submitting the first video deletion task to the menu operation. And after the menu operation receives the first video deletion task, executing a first video deletion flow. In some embodiments, the first video deletion procedure may refer to: the listener monitors the flow of the user deleting only the first video, for example, steps S102 to S109 in fig. 5.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
In some embodiments, when the listener detects that the user clicks on a third operation of deleting only the first video, the listener encapsulates a storage path of the first video and a file parameter to be deleted of association information of the first video, the listener sets to delete only the first video, and then the listener submits a notification of execution of the first video deletion task to data management of a data query API of a software framework layer of the electronic device. Data management a deletion task is constructed according to deletion parameters of the first video, and then the data management sends the deletion task to a menu operation of a data update API of a software framework layer of the electronic device, wherein the deletion parameters comprise associated information and deletion selection of AI video of the first video.
For example, after receiving a deletion task sent by data management, the menu operation stores the associated information as true in a database of a gallery (the AI video has a storage path in a memory card of a mobile phone) and deletes the AI video selected as a recycle bin transferred to the gallery to a storage container of the one-record-multiple first video according to the associated information and the deletion selection of the AI video. The menu operation clears the associated information as a database that is not actually stored in the gallery (AI video is not in the memory path of the memory card of the handset) or as AI video that is selected for complete deletion.
Illustratively, the menu operation notifies the data processing to perform logical processing of file movement. The data processing moves the first video and the AI video in the storage container to a recycle bin of the gallery. And the data processing updates the database of the gallery and initiates the media scanning of the gallery.
Illustratively, the distributed device management API provides the gallery with rights management, device master-slave relationship management, login management, etc. capabilities for logging in a gallery account at multiple electronic devices.
Illustratively, the search API provides the gallery with search logic and capabilities for pictures and/or videos based on preset dimension keys, which in some embodiments include shooting time, shooting place, file tags, and the like. The preset dimension key is from a search box of an interface of the gallery.
In some embodiments, referring to FIG. 4, the base gallery and base extensions of the gallery of the application layer, along with the video editing APIs, self-grinding picture format editing APIs, picture editing APIs, and display soft engine APIs in the distributed query interface and Photo data interface of the application framework layer, together build a base gallery subsystem.
In some embodiments, referring to FIG. 4, the data gallery of the application layer, along with the data query API, the data update API, and the distributed device management API in the Photo data interface of the application framework layer, together build a data gallery subsystem.
In some embodiments, referring to FIG. 4, the Smart gallery and search of the gallery of the application layer, along with the search API in the Photo data interface of the application framework layer, together build a Smart gallery subsystem.
The base gallery subsystem illustratively supports the base functions of data processing of the base gallery and the base extended function sub-modules based on the capabilities and services provided by the distributed query interface and the Photo data interface. Illustratively, the data gallery subsystem provides services such as data query, data update, distributed device management, etc. to the base gallery subsystem and the smart gallery subsystem. Illustratively, the intelligent gallery subsystem provides an intelligent gallery service other than the basic service of the basic gallery subsystem for the gallery to meet the user's diversified use needs for the gallery.
Further, in some embodiments, referring to fig. 3:
the window manager is used for managing window programs. The window manager can acquire the size of the display screen of the electronic device, judge whether a status bar exists on the display screen of the electronic device, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications in the electronic device. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build a display interface for an application. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is for providing communication functions of the electronic device. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources, such as localization strings, icons, pictures, layout files, video files, and the like, to applications in the electronic device.
The notification manager enables an application in the electronic device to display notification information in a status bar, can be used to convey notification type messages, can automatically disappear after a short stay, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time (Android Runtime) includes a core library and virtual machines. And the android running process is responsible for skip and management of the android system. The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library, two-dimensional graphics engine, three-dimensional graphics processing library (e.g., openGL ES), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
The media library is used for realizing the input of different streaming media; illustratively, the media library supports a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. In some embodiments, the media library includes a MediaLibrary (media database) and a MediaProvider (media database), the MediaLibrary providing the function of querying the database for the data query API of the Photo data interface of the gallery to screen the satisfactory data; mediaProvider provides the function of initiating media scan and updating database for the data update API of Photo data interface of gallery.
The two-dimensional graphic engine is used for realizing two-dimensional graphic drawing, image rendering, synthesis, layer processing and the like;
the three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like;
the kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver. The hardware may include a camera, a display screen, a microphone, a processor, a memory, and the like.
Although the Android system is taken as an example for explanation, the basic principle of the embodiment of the present application is equally applicable to electronic devices based on operating systems such as hong and Monte, iOS, windows, and the like.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
The entire file deletion process is described in detail below with reference to a timing chart of interactions between functional modules in the electronic device shown in fig. 5.
Referring to fig. 5, an embodiment of a file deletion method of the present application specifically includes:
step S1, the interface management detects the operation of clicking to delete the first video.
For example, the electronic device takes a mobile phone as an example, and the mobile phone participates in hardware of the file deleting method embodiment of the application, which comprises the following steps: the software function modules of the embodiment of the file deleting method of the display screen and the mobile phone involved in the application comprise: interface management of a basic gallery of a gallery of an application program layer of the mobile phone, data management I, deletion management II and data management II of a data query API of a Photo data interface of an application framework layer, a monitor of a data update API of the Photo data interface of the application framework layer, a one-record-multiple-access monitor, menu operation, data processing and one-record-multiple-access management. Illustratively, the interface management detects a first operation of the user clicking to delete the first video.
In some embodiments, the user may operate the switch keys of the handset to illuminate the display of the handset, which may display a desktop interface 30 as shown in fig. 7 or 8. In fig. 7, the desktop interface 30 of the handset 200 may include a calendar widget 301, a weather widget 302, a gallery widget 303, a status bar 304, a conversation application icon 305, a contacts application icon 306, and a gallery application icon 307. Calendar widget 301 may be used to indicate a current time, such as a date, day of the week, time-of-day information, and the like. Weather widget 302 may be used to indicate weather types, such as cloudy weather, rainy weather, etc. Gallery widget 303 may be used to quickly launch the gallery and display the interface of the gallery. Status bar 304 may include the name of the operator (e.g., chinese movement), time, signal strength, and current remaining power. The call application icon 305 is used for the user to click on and launch a call application, which is used for the user to dial, view missed calls, etc. The contact application icon 306 is used for the user to click and launch a contact application, which is used for the user to add, edit contacts, etc. The gallery application icon 307 is used for a user to click and launch a gallery for the user to view and edit centrally pictures and videos stored in the electronic device.
Illustratively, referring to FIG. 7, while viewing the desktop interface 30 of the handset 200, the user clicks or triggers the gallery widget 303, and the handset quickly opens the gallery of the handset in response to user operation to display the interface of the gallery on the handset display. For example, the user clicks on a gallery widget on the desktop interface of the cell phone, the cell phone displays a timeline interface of the gallery or the cell phone displays an album list interface of the gallery.
Alternatively, referring to fig. 8, when viewing the desktop interface 30 of the mobile phone 200, the user may click or trigger the gallery application icon 307, open the gallery of the mobile phone to display the gallery interface on the mobile phone display, e.g., the user clicks the gallery application icon 307 of the desktop interface of the mobile phone, the time axis interface of the mobile phone display gallery, or the album list interface of the mobile phone display gallery.
In some possible implementations, the timeline interface may refer to fig. 9a, and the timeline interface 40 of the gallery may include a file type field 401, a search box 402, a time point 403, and a thumbnail 404 of a photo or video, where the file type field 401 is used to mark a file type presented by the thumbnail 404 in the current timeline interface 40, the search box 402 is used to search in the gallery for a file desired by the user based on a keyword input by the user, the time point 403 is used to mark a time of generation of each thumbnail 404 in the timeline interface 40, and the thumbnail 404 is used to refer briefly to a photo (i.e., picture) or video stored in the electronic device 200. Illustratively, after the cell phone displays the timeline interface, the user clicks on the thumbnail in the timeline interface and the cell phone displays the large-scale view interface of the gallery.
In some possible implementations, referring to fig. 9b, the album list interface 20 is used to show each entity album and virtual album in the mobile phone, the album list interface 20 includes thumbnails 201 of files in the album and album names 202, each thumbnail 201 is used to refer briefly to a certain picture or video in this album, the album names 202 are used to identify different albums, for example, all photo albums with album names 202 being "all photos", all video albums with album names 202 being "all videos", camera albums with album names 202 being "cameras", and recycle site albums with album names 202 being "recycle site" (i.e., recycle site of gallery), all photo albums and all video albums being entity albums, camera albums and recycle site albums being entity albums. Illustratively, after the phone displays the album list interface, the user clicks on the thumbnail in the album list interface and the phone displays the grid interface of the gallery. In some embodiments, the gallery interface of the gallery includes a physical album interface, a virtual album interface.
For example, in some scenarios of the entity album interface, where the entity album is a camera album, referring to fig. 14, the entity album interface 60 displays photos and videos in the album in a centralized manner in a thumbnail grid manner, and the entity album interface 60 may include a file type field 601 and a thumbnail 602 for displaying the photos or videos, where the file type field 601 is used to mark the file type displayed by the thumbnail 602 in the current entity album interface 60, for example, the file type field 601 in fig. 14 is the album, and indicates that the files in the current album are photos and videos shot by a mobile phone. Thumbnail 602 is used to refer briefly to a photograph (i.e., picture) or video stored in electronic device 200.
For example, in some scenarios of virtual album interfaces, the virtual album is all video albums, referring to fig. 19, the virtual album interface 70 centrally displays all videos stored in the mobile phone 200 in a manner of one row and two thumbnails, and the virtual album interface 70 includes a file type field 701, a thumbnail 702 of the video, and an operation control 703, where the file type field 701 is used to mark the file type displayed by the thumbnail 702 in the current virtual album interface 70, for example, the file type field 601 in fig. 19 is all videos, indicating that the file in the current album is all videos stored in the mobile phone. The thumbnails 702 are used to refer briefly to all videos stored in the electronic device 200, and each thumbnail 702 displays a main image frame and a video duration of the video, where the video duration is marked on the lower left side of the thumbnail 702, for example, the main image frame of the first row of the left thumbnail 702 of the virtual album interface 70 is a six-star, the video duration is 1 minute, and for example, the main image frame of the second row of the right thumbnail 703 of the virtual album interface 70 is a five-star, and the video duration is 1 minute and 30 seconds. The operation controls 703 are arranged at the bottom of the virtual album interface 70, the operation controls 703 provide different operation functions for the user on the video associated with the thumbnail 702, and the operation controls 703 can include a sharing control, a collection control, an editing control, a deleting control and more. Illustratively, clicking the share control by the user may share the video associated with the selected thumbnail 703 into an application such as WeChat, circle of friends, bluetooth, cloud disk, etc.; clicking the collection control by the user can copy or move the video associated with the selected thumbnail 703 to the collection folder of the gallery; clicking the editing control by the user can clip the video associated with the selected thumbnail 703, adjust the playing speed and other operations; clicking the deletion control by the user can delete the video associated with the selected thumbnail 703; the user clicks on more controls to drop down and view alternate controls of the gallery (e.g., detailed information controls, movement controls, etc.).
After the gallery is launched by the handset, in some alternative embodiments, the handset displays a timeline interface in response to a first operation by the user, referring to FIG. 9a, the user clicks on and views the file associated with the left thumbnail 404 at the time point of 2022, 1 month, 10 days, and the handset displays, illustratively, a large view viewing interface 50 as shown in FIG. 10. Referring to fig. 10, the large view interface 50 includes a return control 501, a large view box 502 for a user selected video, a video play/pause control 503, a played time point 504, a total length of video 505, a play progress bar 506, an indicator 507, an AI video thumbnail 508, an AI photo thumbnail 509, an operations control 510, and a generation time stamp 511. Clicking on the return control 501 by the user may exit the large view interface 50. The large view box 502 is used to display the first video selected by the user in a preset large-sized area. Video play/pause control 503 provides for the user to control the play and pause of the video shown in large view box 502. The played time point 504, the total video duration 505, and the playing progress bar 506 respectively mark the played time length of the first video, the total first video time, and the playing progress of the first video, which are shown in the user mark-up large view box 502. Illustratively, below the large view box 502 in the large view interface 50, a thumbnail list of AI videos and AI photos of the first video currently displayed, including AI video thumbnail 508 and AI photo thumbnail 509, and an operation control 510 are included. The indication mark 507 is used to indicate the position of the thumbnail list in the large view interface 50 of the currently displayed file in the large view box 502, the AI video thumbnail 508 is used to briefly display the AI video (i.e., the highlight short video) of the first video currently displayed in the large view box 502, and the AI photo thumbnail 509 briefly displays the AI photo (i.e., the highlight instant photo) of the first video currently displayed in the large view box 502.
Illustratively, referring to FIG. 10, the operational controls 510 of the large view interface 50 are laid out at the bottom of the large view interface 50, the operational controls 510 providing the user with different operational functions for the first video presented by the large view box 502, the operational controls 510 including a share control, a collection control, an edit control, a delete control, and more controls. Clicking the sharing control by the user can share the first video displayed in the large-scale view box 502 into an APP such as WeChat, friend circle, bluetooth, cloud disk, etc.; clicking the collection control by the user can copy or move the first video displayed in the large-image viewing frame 502 to a preset collection folder; clicking the editing control by the user can perform editing operations such as editing, adjusting playing speed and the like on the first video displayed in the large-image viewing frame 502; clicking the delete control by the user may delete the first video displayed in the large view box 502; the user clicks on more controls to drop down and view alternate controls of the gallery (e.g., detailed information controls, movement controls, etc.). The generation time stamp 511 is used to mark the shooting and production time points of the video presented in the large-drawing view box 502.
In an exemplary scenario where the mobile phone displays a time axis interface, referring to fig. 10, the mobile phone responds to an operation (such as a first operation) of a user and displays a large-scale view interface 50 based on a first video, a function module of interface management of a base gallery of an application layer of the mobile phone detects a trigger condition of an operation control 510 in the large-scale view interface 50, and after the user clicks a delete control in the operation control 510 in the large-scale view interface 50, the interface management detects an operation of clicking to delete the first video.
After the gallery is started by the phone, in some alternative embodiments, the phone displays an album list interface in response to a user operation (e.g., a first operation), and referring to fig. 9b, an exemplary user clicks and views a thumbnail 201 with album name 202 "camera album" in the album list interface 20, and the phone starts the camera album and displays an entity album interface of the camera album. Referring to fig. 14, the entity album interface 60 displays photos and videos in the camera album in a grid form, and when the mobile phone detects that the user presses the thumbnails 602 in the entity album interface 60 for a long time, referring to fig. 15, a new view control 603 is added at the upper left corner, a new check control 604 is added at the lower right corner of each thumbnail 602, and an operation control 604 is added at the bottom of the entity album interface 60. The view control 603 is used to display the picture or video associated with the view control 603 in the form of a large-scale view interface upon clicking or triggering by the user. The tick control 604 is used to provide the user with a choice of files (e.g., pictures or videos) to be processed. The operation controls 604 are laid out at the bottom of the entity album interface 60, the operation controls 604 provide the user with different operation functions on the video associated with the thumbnail 602, and the operation controls 604 may include a share control, a collection control, an edit control, a delete control, and more. Illustratively, clicking the share control by the user may share the video associated with the selected thumbnail 602 into an application such as WeChat, circle of friends, bluetooth, cloud disk, etc.; clicking the collection control by the user can copy or move the video associated with the selected thumbnail 602 into the collection folder of the gallery; clicking the editing control by the user can clip the video associated with the selected thumbnail 602, adjust the playing speed and other operations; clicking the deletion control by the user can delete the video associated with the selected thumbnail 602; the user clicks on more controls to drop down and view alternate controls of the gallery (e.g., detailed information controls, movement controls, etc.).
For example, after the mobile phone detects that the user operates the check control 604 of the entity album interface 60 to select the first video, referring to fig. 15, the function module of the interface management of the base gallery of the application program layer of the mobile phone detects the triggering condition of the operation control 604 in the entity album interface 60, and after the user clicks the deletion control in the operation control 604 in the entity album interface 60, the interface management detects the first operation of clicking to delete the first video. For example, after detecting that the user operates the view control 603 and displays the first video on the large-scale view interface 50, the mobile phone specifically refers to the description of the related embodiment of the first operation of detecting the clicking and deleting the first video in the scene of the large-scale view interface 50.
After the gallery is started by the phone, in some alternative embodiments, the phone displays an album list interface in response to a user operation (e.g., a first operation), and referring to fig. 9b, an exemplary user clicks and views a thumbnail 201 with album name 202 "all videos" in the album list interface 20, and the phone starts all video albums and displays a virtual album interface for all video albums. Referring to fig. 19, the virtual album interface 70 includes a file type field 701, a thumbnail 702 of a video, and an operation control 703. For example, referring to fig. 20, the virtual album interface 70 presents videos in all video albums in a grid format, and when the mobile phone detects that the user presses the thumbnail images 702 in the virtual album interface 70 for a long time, a tick control 704 is newly added to the lower right corner of each thumbnail image 702. The tick control 704 is used to provide the user with a selection of the video to be processed.
For example, after the mobile phone detects that the user operates the check control 704 of the virtual album interface 70 to select the first video, referring to fig. 20, the function module of the interface management of the base gallery of the application program layer of the mobile phone detects the triggering condition of the operation control 703 in the virtual album interface 70, and when the user clicks the deletion control in the operation control 703 in the virtual album interface 70, the interface management detects the first operation of clicking to delete the first video.
For example, fig. 24 is a schematic flow chart of the execution logic of the file deletion method of the present application, where the step of clicking deletion by the user in fig. 24 corresponds to step S1, and the above analysis and expansion of the operation related to step S1 are also applicable to fig. 24.
And S2, interface management encapsulation is carried out on the data to be deleted.
The interface management package of the base gallery of the application layer of the handset responds to the operation of deleting the first video by, illustratively, including the storage path of the first video on the memory card of the handset and the AI photo number of AI photos associated with the first video.
For a better understanding of the embodiments of the present application, the first video, AI photos, and AI videos are illustratively described. Illustratively, the first video refers to: after the mobile phone opens the gallery and displays the interface of the gallery based on the operation of the user, the user selects and determines the deleted video. By way of example, AI photos refer to: the method comprises the steps that a functional sub-module of an essence fragment of an intelligent gallery of an application program layer of a mobile phone and a searching API of a Photo data interface of an application framework layer of the mobile phone are based on pictures extracted from a first video of the gallery by a preset second algorithm, and AI pictures are image frames meeting the requirement of the preset second algorithm in the first video. By way of example, AI video refers to: the method comprises the steps of presetting a short video composed of pictures extracted from a first video of a gallery by a first algorithm, wherein the short video is composed of a function sub-module of a smart gallery of an application program layer of a mobile phone at a highlight moment and a search API of a Photo data interface of an application framework layer of the mobile phone. In some embodiments, the AI video is a clip of some or all of the AI photos of the first video, the AI video is a real file actually stored on the memory card of the handset, and the AI video may also be an index of a storage path of the AI photos related to the clip and not stored on the memory card of the handset.
For example, fig. 24 is a schematic flow chart of the execution logic of the file deleting method of the present application, where the step of encapsulating the deleted data in fig. 24 corresponds to step S2, and the above analysis and expansion of the operation related to step S2 also applies to fig. 24.
Step S3, the interface management sends operation type information to the data management.
In some possible embodiments, the interface management of the base gallery of the application layer of the mobile phone determines the operation type information of the gallery of the mobile phone on the first video in response to an operation of an operation control of the large-scale view interface, an operation control of the entity album interface or an operation control of the virtual album interface by a user. Based on the above related embodiment of step S101, the user clicks the delete control, and the interface management determines that the operation type information of the first video is a delete type. Further, in some embodiments, the operation type information includes a move type, a copy type, a hide type, a rename type, and the like.
Illustratively, after the interface management determines the operation type information for the first video, the interface management sends the operation type information to the data management in the data query API of the Photo data interface of the application framework layer of the mobile phone, where the operation type information is a delete operation. Illustratively, the interface management sync sends the encapsulated data to be deleted to the data management one.
Step S4, the data management inquires the first deletion prompt box parameter to the deletion management.
After data management in a data query API of a Photo data interface of an application program framework layer of the mobile phone receives operation type information sent by interface management, the data management determines the process of deleting the operation type of the first video. The data management sends a query request for querying the first deletion prompt box parameter to the deletion management in the data query API of the Photo data interface of the application framework layer of the mobile phone.
The first deletion prompt box parameter includes description information of whether the first video is synchronously stored in the cloud of the mobile phone and other devices outside the mobile phone. After the deletion management one receives a query request sent by the data management one, monitoring clicking operation of a user based on a preset monitoring callback function, determining a first deletion prompt box parameter, and then feeding back the first deletion prompt box parameter to the data management one by the deletion management one. The first selection control is displayed and selected on the interface of the mobile phone, whether the first video is stored in the cloud or not, the first selection control is monitored by the deletion management based on a preset monitoring callback function, a user is aware of which first selection control is clicked, and then the first deletion prompt box parameter is determined by the deletion management.
Step S5, the data management inquires the second deletion prompt box parameter from the second deletion management.
After data management in a data query API of a Photo data interface of an application program framework layer of the mobile phone receives operation type information sent by interface management, the data management determines the process of deleting the operation type of the first video. The data management sends a query request for querying the second deletion prompt box parameter to the deletion management II in the data query API of the Photo data interface of the application program framework layer of the mobile phone.
The second deletion hint box parameter includes, for example, descriptive information of whether the first video is a one-record-multiple-data class. After the second deletion management receives the query request sent by the first data management, the user clicking operation is monitored based on a preset monitoring callback function, the second deletion prompt box parameter is determined, and then the second deletion prompt box parameter is fed back to the first deletion prompt box parameter by the second deletion management. The second deletion management displays and selects a second selection control on the interface of the mobile phone, wherein the second selection control is related to whether the first video is the one-record-multiple-data type, the second deletion management monitors the second selection control respectively based on a preset monitoring callback function, and perceives which second selection control is clicked by a user, so that the second deletion management determines a second deletion prompt box parameter. After the video is recorded by the camera of the mobile phone, the smart gallery subsystem of the gallery of the mobile phone synchronously generates the AI video and/or AI photos of the recorded video, wherein the recorded video is one-record-multiple-data type, and the deletion management can analyze the first video and determine the parameters of the second deletion prompt box.
Step S6, the data management sends the AI photo quantity to the deletion management II.
After the data management in the data query API of the Photo data interface of the application program framework layer of the mobile phone receives the operation type information sent by the interface management, the data management always deletes and manages the AI Photo number of the second sent first video. Illustratively, the data management may obtain the AI number of photos of the first video from an interface management of a base gallery of an application layer of the mobile phone.
And S7, setting an album filtering type according to the first deleting prompt box parameter and the second deleting prompt box parameter, and starting the monitor and the one-record-multiple-access monitor by data management.
And after the first deletion prompt box parameter and the second deletion prompt box parameter are acquired, setting an album filtering type of the first video according to the first deletion prompt box parameter and the second deletion prompt box parameter by the data management I in the data query API of the Photo data interface of the application program framework layer of the mobile phone. In some optional embodiments, if the first deletion prompt box parameter is that the first video is stored in the cloud and other devices synchronously, the album filtering type includes deleting the first video from the cloud and other devices simultaneously; if the second deletion prompting frame parameter is that the first video is a one-record-multiple-data type, the album filtering type comprises deleting the first video and AI photos of the first video at the same time. Illustratively, data management a listener and a one-record-multiple-get listener in a data update API that synchronously initiates the Photo data interface of the application framework layer of the handset.
Step S8, data management is carried out on a prompt title of a deletion prompt box of the large-image scene.
Exemplary, data management in the data query API of the Photo data interface of the application framework layer of the mobile phone is that the text content of the prompt title of the prompt box is deleted in the scene of the large-scale view interface by acquiring the gallery of the mobile phone. For example, the text content of the prompt title may be preset in the mobile phone, and the user may edit the text content of the prompt title, for example, delete the text content of the prompt title of the prompt box is "whether to delete the video and the N wonderful instant photos generated by smart multi-shots? N is the AI photo number of AI photos of the first video. In some embodiments, the data management sends a prompt header of the delete prompt box to the delete management two in the data query API of the Photo data interface of the application framework layer of the handset.
In addition, the exemplary large-image scene (i.e. the scene of the gallery of the mobile phone in the large-image viewing interface) is the prompt title of the deletion prompt box, and is also applicable to the deletion prompt box of the gallery of the mobile phone in the entity album interface or the virtual album interface. For example, in the physical album interface or the virtual album interface, the text content of the prompt title of the deletion prompt box may be "whether to delete the video and the N wonderful instant photos generated by the smart multi-shot? ".
Step S9, the data management I notifies the deletion management II to pop up the deletion prompt box and updates the prompt title to the deletion prompt box.
For example, the first data management in the data query API of the Photo data interface of the application framework layer of the mobile phone notifies the second deletion management to pop up the deletion prompt box and updates the prompt title to the deletion prompt box.
Step S10, deleting the interface of the second setting deletion prompt box.
The second deletion management in the data query API of the Photo data interface of the application program framework layer of the mobile phone sets the style, text font and text space of the deletion prompt box according to the default setting or user setting of the gallery of the mobile phone after receiving the notification of the first data management; setting a subtitle and a bullet box button content according to the album filtering type, wherein the subtitle is used for prompting a user whether to synchronously delete a first video in the cloud and other devices, for example, the text content of the subtitle is 'synchronously deleted from the cloud and all synchronous devices'; the box button content prompts the user to select different delete types and cancel the delete, e.g., the box button content includes "delete only this video", "delete all" and "cancel". And the second deletion management finishes setting the interface of the deletion prompt box, and pops up the deletion prompt box on the display screen of the mobile phone.
For example, fig. 24 is a schematic flow chart of a file deletion method execution logic of the present application, and the step of setting a deletion dialog (i.e. deleting a prompt box) in fig. 24 corresponds to steps S3 to S10, and the above analysis and expansion regarding steps S3 to S10 are also applicable to fig. 24.
Step S11, the deleting management II refreshes the prompt title of the deleting prompt box according to the number of the AI photos.
The second deletion management in the data query API of the Photo data interface of the application framework layer of the mobile phone refreshes the AI Photo number of the first video to the prompt title of the deletion prompt box after the interface of the deletion prompt box is set. For example, AI photos are 3 in number, and the prompt title of the delete management two refresh delete prompt box is "whether to delete 3 highlight instant photos generated by the video and smart multi-shot? ".
Specifically, in some possible embodiments, referring to fig. 11, a deletion prompt box 520 is popped up at the bottom of the large-scale view interface 50 of the mobile phone, where the deletion prompt box 520 includes a prompt title 521, an end cloud synchronization control 522 and a deletion control 523, and the prompt text content of the end cloud synchronization control 522 is a subtitle, and the prompt text content of the deletion control 523 is a box button content. The prompt title 521 is used to prompt the user whether to delete the first video and AI photos simultaneously, and prompt the user to delete the AI number of AI photos synchronously, and the text content of an alternative implementation of the prompt title 521 is "whether to delete N wonderful instant photos generated by the video and smart multi-shot? N is the AI photo number of the AI photo associated with the first video (i.e., the highlight instant photo). The end cloud synchronization control 522 is configured to prompt the user whether to delete the first video synchronously on the cloud paired with the mobile phone and backup of other synchronous devices, where the end cloud synchronization control 522 may, in an implementation manner, be composed of a hook control and a subtitle, where the hook control is used for the user to click to determine whether to trigger the end cloud to delete the first video synchronously, and the subtitle is used to prompt the user of the meaning of end cloud synchronization, for example, the subtitle may be "delete from the cloud and all synchronous devices simultaneously". Delete control 523 is used for the user to select further refined delete operations, e.g., delete control 523 may include delete-only video control, all delete control, and cancel control. The user clicks the delete-only video control, and the data management module knows that the user only needs to delete the first video; the user clicks all deletion controls, and the data management module knows that the user needs to delete the first video and the AI photo simultaneously; and when the user clicks to cancel, the second cancel delete prompt box 520 is deleted, and the operation interface returns to the previous step.
Specifically, in some possible embodiments, referring to fig. 16, a deletion prompt box 610 is popped up at the bottom of the entity album interface 60 of the mobile phone, where the deletion prompt box 610 includes a prompt title 611, an end cloud synchronization control 612, and a deletion control 613, and the prompt text content of the end cloud synchronization control 612 is a subtitle, and the prompt text content of the deletion control 613 is a box button content. Prompt header 611 is used to prompt the user whether to delete the first video and AI photos simultaneously, and to prompt the user to delete the AI number of AI photos synchronously, the text content of an alternative implementation of prompt header 611 is "whether to delete N wonderful instant photos generated by this video and smart multi-shot? N is the AI photo number of the AI photo associated with the first video (i.e., the highlight instant photo). The end cloud synchronization control 612 is configured to prompt the user whether to delete the first video synchronously on the cloud paired with the mobile phone and backup of other synchronous devices, where the end cloud synchronization control 612 may, in an implementation manner, be composed of a hook control and a subtitle, where the hook control is used for the user to click to determine whether to trigger the end cloud to delete the first video synchronously, and the subtitle is used to prompt the user of the meaning of the end cloud synchronization, for example, the subtitle may be "delete from the cloud and all synchronous devices simultaneously". The delete control 613 is used for the user to select further refined delete operations, for example, the delete control 613 may include a delete only video control, a delete all control, and a cancel control. The user clicks the delete-only video control, and the data management module knows that the user only needs to delete the first video; the user clicks all deletion controls, and the data management module knows that the user needs to delete the first video and the AI photo simultaneously; the user clicks cancel, and the second cancel prompt box 610 is returned to the previous operation interface.
Specifically, in some possible embodiments, referring to fig. 21, a deletion prompt box 710 is popped up at the bottom of the virtual album interface 70 of the mobile phone, where the deletion prompt box 710 includes a prompt title 711, an end cloud synchronization control 712, and a deletion control 713, and the prompt text content of the end cloud synchronization control 712 is a subtitle, and the prompt text content of the deletion control 713 is a box button content. The prompt title 711 is used to prompt the user whether to delete the first video and AI photos simultaneously, and to prompt the user to delete the AI number of AI photos synchronously, the text content of an alternative implementation of the prompt title 711 is "whether to delete N wonderful instant photos generated by this video and smart multi-shot? N is the AI photo number of the AI photo associated with the first video (i.e., the highlight instant photo). The end cloud synchronization control 712 is configured to prompt the user whether to delete the first video synchronously on the cloud paired with the mobile phone and backup of other synchronous devices, where the end cloud synchronization control 712 may, in an implementation manner, be composed of a hook control and a subtitle, where the hook control is used for the user to click to determine whether to trigger the end cloud to delete the first video synchronously, and the subtitle is used to prompt the user of the meaning of the end cloud synchronization, for example, the subtitle may be "delete from the cloud and all synchronous devices simultaneously". Delete control 713 is used for the user to select further refined delete operations, for example delete control 713 may include delete only video control, all delete control, and cancel control. The user clicks the delete-only video control, and the data management module knows that the user only needs to delete the first video; the user clicks all deletion controls, and the data management module knows that the user needs to delete the first video and the AI photo simultaneously; and when the user clicks to cancel, the second cancel delete prompt box 710 is deleted, and the operation interface returns to the previous step.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
In addition, in some possible embodiments of the file deleting method of the present invention, after the deleting management refreshes the prompt header of the deleting prompt box according to the AI photo number, the monitor monitors the triggering condition of the deleting control of the deleting prompt box, and referring to fig. 6, an embodiment of the file deleting method of the present invention further includes the following steps:
in step S12, the listener detects a second operation of clicking all deletions.
The monitor of the data update API of the Photo data interface of the application framework layer of the mobile phone detects that the user clicks the second operation of all deletion, that is, the monitor detects that the user clicks the delete control of all deletion, which indicates that the user needs to delete the first video together with the AI Photo of the first video, and the monitor acquires the storage path of the first video, the storage path of the AI Photo of the first video, the storage path of the AI video of the first video, and the association information (such as database field identification) of the first video, the AI Photo, and the AI video in the gallery.
For example, fig. 24 is a schematic flow chart of the execution logic of the file deletion method of the present application, and the steps of selecting all deletion by the user in fig. 24 correspond to steps S11 to S12, and the same applies to fig. 24 with respect to the analysis and expansion of steps S11 to S12.
And S13, the monitor packages the file parameters to be deleted, and sets the first video and the AI photo to be deleted simultaneously.
The listener of the data update API of the Photo data interface of the application framework layer of the mobile phone encapsulates the storage path of the first video, the storage path of the AI Photo of the first video, the storage path of the AI video of the first video, and the association information of the first video, the AI Photo, and the AI video in the gallery as file parameters to be deleted. The listener sets a deletion parameter for deleting the first video and the AI Photo of the first video at the same time, and sends the file parameter to be deleted and the deletion parameter to the first data management unit of the data query API of the Photo data interface of the application framework layer of the mobile phone, and the listener submits an execution notice of the AI Photo deletion task to the first data management unit at the same time, so that the first data management unit constructs and executes the AI Photo deletion task.
Step S14, the monitor submits an execution notice of the AI photo deletion task to the data management.
Illustratively, a listener of a data update API of a Photo data interface of an application framework layer of a handset notifies data management to initially construct and issue an AI Photo deletion task.
In step S15, the data management constructs a deletion task according to the deletion parameter of the first video, and sends the deletion task to the menu operation.
The data management is used for forming a deletion task according to the deletion parameters of the first video, wherein the deletion task comprises an AI Photo deletion task and the first video deletion task, and the data management sends the deletion task to the menu operation of the data update API of the Photo data interface of the application framework layer of the mobile phone.
For example, fig. 24 is a schematic flow chart of the execution logic of the file deletion method of the present application, and the steps of submitting the AI photo deletion task and submitting the first video deletion task on the left side in fig. 24 correspond to steps S13 to S15, and the above analysis and expansion regarding steps S13 to S15 apply to fig. 24 as well.
And S16, transferring the corresponding AI video to a storage container of the gallery according to the associated information and the deletion selection of the AI video by the menu operation.
The menu operation of the data update API of the Photo data interface of the application framework layer of the mobile phone stores the associated information as true in the database of the gallery (the AI video has a storage path in the memory card of the mobile phone) and deletes the AI video selected as the recycle bin transferred to the gallery to the storage container of the one-record-multiple AI photos to be transferred to the recycle bin of the gallery together with the AI photos, according to the associated information and deletion selection of the AI video. The menu operation clears the associated information as a database that is not actually stored in the gallery (AI video is not in the memory path of the memory card of the handset) or as AI video that is selected for complete deletion.
In step S17, the menu operation notifies the data processing to execute logical processing of file movement.
For example, after the menu operation of the data update API of the Photo data interface of the application framework layer of the mobile phone transfers the AI video to the storage container of the gallery, the menu operation notifies the data processing of the data update API of the Photo data interface of the application framework layer of the mobile phone to perform the logic processing of moving the file in the storage container of the gallery in which the AI photos are recorded and obtained to the recycle bin of the gallery.
And S18, data processing moves the AI photo and the AI video in the storage container to a recycling station of the gallery.
The data processing of the data update API of the Photo data interface of the application framework layer of the mobile phone moves the AI photos and AI videos in the storage container of the one-record-multiple-AI-photos to the recycle bin of the gallery, and adjusts the storage paths of the AI photos and AI videos in the storage container of the one-record-multiple-AI-photos to the new storage path currently in the recycle bin of the gallery.
Step S19, the data processing records the original information of the file to be deleted in the recycle bin in the database of the gallery, and sends the original information to the one-record-multiple-access management and the data management II.
The data processing of the data update API of the Photo data interface of the application framework layer of the mobile phone takes the AI photos and AI videos of the recycle bin that have been put into the gallery as files to be deleted, and the data processing records the original information of the files to be deleted, and in some embodiments, the original information includes a storage path before the files to be deleted are put into the recycle bin. The original information may be used for restoration of the deleted file as selected by the user. In some embodiments, the data processing synchronizes the primary information of the file to be deleted to one-record-multiple-access management and data management two of the data update API of the Photo data interface of the application framework layer of the mobile phone, so that the one-record-multiple-access management and the data management two restore the file to be deleted to the storage path before deletion according to the primary information.
Step S20, data management is carried out on the database of the second updated gallery, and media scanning of the gallery is initiated.
Illustratively, the data management of the data query API of the Photo data interface of the application framework layer of the mobile phone informs the media database (MediaProvider) of the mobile phone software system to initiate media scanning, and updates the database of the gallery to refresh the interface content of the gallery.
In some alternative embodiments, referring to FIG. 13, after the first video is deleted by the large map viewing interface 50, after the interface of the gallery is refreshed, the deleted first video 540 disappears and subsequent other files fill in the display area before the first video.
In some embodiments, referring to FIG. 18, after the entity album interface 60 deletes the file to be deleted, after the gallery's interface is refreshed, the deleted file 630 disappears and subsequent other files fill in the show area before the file to be deleted.
In some embodiments, referring to FIG. 23, after the virtual album interface 70 deletes the first video, after the gallery's interface is refreshed, the deleted file 730 disappears and subsequent other files fill in the display area before the first video.
Step S21, the data processing informs the one-record-multiple-access monitor of the completion of the AI photo deletion task.
The data processing of the data update API of the Photo data interface of the application framework layer of the mobile phone notifies the one-record-multiple-access monitor of the data update API of the Photo data interface of the application framework layer of the mobile phone that the AI Photo deletion task of the first video has been completed.
Step S22, the one-record-multiple-function monitor submits a first video deletion task to the menu operation.
The method includes that after a one-record-multiple-function monitor of a data update API of a Photo data interface of an application framework layer of a mobile phone receives a notification of completion of an AI Photo deletion task, the one-record-multiple-function monitor submits a first video deletion task to a menu operation of the data update API of the Photo data interface of the application framework layer of the mobile phone.
In step S23, the menu operation executes the first video deletion procedure.
Illustratively, the menu operation of the data update API of the Photo data interface of the application framework layer of the handset performs a first video deletion procedure. In some embodiments, the first video deletion process is substantially the same as the following steps S102 to S109, and the embodiment of the operation of deleting only the first video when the monitor detects the click in step S102 will not be described herein.
In step S24, the data processing notifies the one-record-multiple-output monitor that the deletion of the first video is completed.
For example, after the data processing of the data update API of the Photo data interface of the application framework layer of the mobile phone detects that the menu operation is performed and the first video deletion process is completed, the data processing notifies the one-record-multiple-access monitor that the first video deletion is completed.
For example, fig. 24 is a schematic flow chart of the execution logic of the file deletion method of the present application, the deletion is completed in fig. 24, the steps of interface refreshing correspond to steps S16 to S24, and the above analysis and expansion regarding steps S16 to S24 are also applicable to fig. 24.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
In addition, in some possible embodiments of the file deleting method of the present invention, after the deleting management refreshes the prompt header of the deleting prompt box according to the AI photo number, the monitor monitors the triggering condition of the deleting control of the deleting prompt box, and referring to fig. 5, an embodiment of the file deleting method of the present invention further includes the following steps:
in step S102, the listener detects a third operation of clicking to delete only the first video.
The monitor of the data update API of the Photo data interface of the application framework layer of the mobile phone detects that the user clicks the third operation of deleting only the first video, that is, the monitor detects that the user clicks the delete control of deleting only the first video, which indicates that the user only needs to delete the first video, and the monitor obtains the storage path of the first video and the association information (such as database field identifier) of the first video.
Step S103, the monitor encapsulates the file parameters to be deleted, and sets to delete only the first video.
The listener of the data update API of the Photo data interface of the application framework layer of the mobile phone encapsulates the storage path of the first video and the associated information of the first video as file parameters to be deleted. The monitor sets a deletion parameter for deleting only the first video, and the monitor sends the file parameter to be deleted and the deletion parameter to the first data management of the data query API of the Photo data interface of the application framework layer of the mobile phone together, and simultaneously submits an execution notification of the first video deletion task to the first data management for the first data management to construct and execute the first video deletion task.
In step S104, the listener submits a notification of the execution of the first video deletion task to the data management.
Illustratively, a listener of a data update API of a Photo data interface of an application framework layer of a handset notifies data management to initially construct and issue a first video deletion task.
In step S105, the data management constructs a deletion task according to the deletion parameter of the first video, and sends the deletion task to the menu operation.
The data management program is used for managing the data of the mobile phone, and the data management program is used for managing the data of the mobile phone.
And S106, transferring the corresponding AI video to a storage container of the gallery according to the associated information and the deletion selection of the AI video by the menu operation.
The menu operation of the data update API of the Photo data interface of the application framework layer of the mobile phone stores the associated information as true in the database of the gallery (the AI video has a storage path in the memory card of the mobile phone) and deletes the AI video selected as the recycle bin transferred to the gallery to the storage container of the first video. The menu operation clears the associated information as a database that is not actually stored in the gallery (AI video is not in the memory path of the memory card of the handset) or as AI video that is selected for complete deletion.
In step S107, the menu operation notifies the data processing to execute logical processing of file movement.
For example, after the AI video is transferred to the storage container of the gallery by the menu operation of the data update API of the Photo data interface of the application framework layer of the mobile phone, the menu operation notifies the data processing of the data update API of the Photo data interface of the application framework layer of the mobile phone to perform the logic processing of moving the file in the storage container of the first video recorded in one record of the gallery to the recycle bin of the gallery.
In step S108, the data processing moves the first video and the AI video in the storage container to the recycle bin of the gallery.
The data processing of the data update API of the Photo data interface of the application framework layer of the mobile phone moves the AI video in the storage container of the first video and the one-record-more-to-one-more-to the recycle bin of the gallery, and adjusts the storage paths of the AI video in the storage container of the first video and the one-record-more-to-one-more-to the new storage path currently in the recycle bin of the gallery.
Step S109, the data processing updates the database of the gallery and initiates the media scanning of the gallery.
Illustratively, the data processing of the data update API of the Photo data interface of the application framework layer of the mobile phone notifies the media database (MediaProvider) of the mobile phone software system to initiate media scanning, and updates the database of the gallery to refresh the interface content of the gallery.
In some alternative embodiments, referring to FIG. 13, after the first video is deleted by the large map viewing interface 50, after the interface of the gallery is refreshed, the deleted first video 540 disappears and subsequent other files fill in the display area before the first video.
In some embodiments, referring to FIG. 18, after the entity album interface 60 deletes the file to be deleted, after the gallery's interface is refreshed, the deleted file 630 disappears and subsequent other files fill in the show area before the file to be deleted.
In some embodiments, referring to FIG. 23, after the virtual album interface 70 deletes the first video, after the gallery's interface is refreshed, the deleted file 730 disappears and subsequent other files fill in the display area before the first video.
For example, fig. 24 is a schematic flow chart of the execution logic of the file deletion method of the present application, and the steps of submitting the first video deletion task on the right side in fig. 24 correspond to steps S102 to S109, and the above analysis and expansion regarding steps S102 to S109 are also applicable to fig. 24.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
In order to better understand the overall flow and the realizable manner of the file deletion method provided in the present application, referring to fig. 25, regarding the file deletion method provided in the present application, the method includes the following steps:
step A10, receiving a first operation;
step A20, in response to the first operation, encapsulating data to be deleted of a first video, wherein the data to be deleted comprises a storage path of the first video and the number of associated files of the first video;
For the convenience of explanation and explanation of the technical solution of the present application, the electronic device to which the file deletion method of the present application is applied is exemplified by a mobile phone, but the electronic device to which the file deletion method of the present application is applied is not limited to a mobile phone.
The file deleting method is applied to a gallery of the electronic equipment.
Illustratively, the data to be deleted includes a storage path of the first video and a number of AI photos associated with the first video.
Illustratively, the association file includes an AI photo (i.e., a highlight instant photo) and an AI video (i.e., a highlight short video) of the first video.
The interface for detecting the operation of clicking to delete the first video includes a timeline interface of a gallery, an entity album interface, and a virtual album interface.
Illustratively, prior to step a10, the file deletion method of the present application further includes: the mobile phone monitors an external input operation, wherein the external input operation is triggered by a user.
For a better understanding of the embodiments of the present application, the first video, AI photos, and AI videos are illustratively described. Illustratively, the first video refers to: after the mobile phone opens the gallery and displays the interface of the gallery based on the operation of the user, the user selects and determines the deleted video. By way of example, AI photos refer to: the method comprises the steps that a functional sub-module of an essence fragment of an intelligent gallery of an application program layer of a mobile phone and a searching API of a Photo data interface of an application framework layer of the mobile phone are based on pictures extracted from a first video of the gallery by a preset second algorithm, and AI pictures are image frames meeting the requirement of the preset second algorithm in the first video. By way of example, AI video refers to: the method comprises the steps of presetting a short video composed of pictures extracted from a first video of a gallery by a first algorithm, wherein the short video is composed of a function sub-module of a smart gallery of an application program layer of a mobile phone at a highlight moment and a search API of a Photo data interface of an application framework layer of the mobile phone. In some embodiments, the AI video is a clip of some or all of the AI photos of the first video, the AI video is a real file actually stored on the memory card of the handset, and the AI video may also be an index of a storage path of the AI photos related to the clip and not stored on the memory card of the handset.
Step A30, determining parameters of a deleting prompt box based on a preset monitoring callback function;
step A40, determining the filtering type of the album according to the deleting prompt box parameters;
the method comprises the steps of monitoring clicking operation of a user based on a preset monitoring callback function, and determining a first deleting prompt box parameter; and monitoring clicking operation of a user based on a preset monitoring callback function, and determining a second deletion prompt box parameter.
The deletion prompt box parameters comprise a first deletion prompt box parameter and a second deletion prompt box parameter; the first deletion prompt box parameter comprises description information of whether the first video is synchronously stored in the cloud and other equipment, and the second deletion prompt box parameter comprises description information of whether the first video is a one-record-multiple-data type.
After detecting the operation of clicking to delete the first video, the mobile phone determines the operation type information of the first video as a deletion type.
Illustratively, the album filtering type includes deleting or not deleting the first video and the AI photos of the first video at the same time or deleting only the first video from the cloud and other devices.
In some embodiments, the step of determining the album filtering type in step a40 according to the deletion prompt parameter includes:
Step A41, extracting first description information of whether the first video is synchronously stored in the cloud and other equipment from the deletion prompt box parameters; extracting second description information of whether the first video is a one-record-multiple-data class from the deletion prompt box parameters;
and step A42, determining the album filtering type according to the first description information and the second description information.
Thus, the album filter type may be set as: simultaneously deleting the first video from the cloud and other devices or deleting the first video and the associated file of the first video, not simultaneously deleting the first video from the cloud and other devices or deleting the first video and the associated file of the first video, simultaneously deleting the first video and the associated file of the first video or deleting the first video only. And a diversified deleting mode is provided for the first video and the associated file of the first video, so that the diversified deleting requirement of a user is met.
Exemplary album filter types include: simultaneously deleting the first video and the associated file of the first video, deleting the first video and the associated file of the first video from the cloud and other devices, deleting the first video only, deleting the first video from the cloud and other devices, deleting the first video only, and deleting the first video from the cloud and other devices.
The first deletion prompt box parameter includes first description information, and the second deletion prompt box parameter includes second description information.
In some possible embodiments, step a42, determining the album filtering type according to the first description information and the second description information includes:
step a421, if the first description information is that the first video is synchronously stored in the cloud end and other devices, the album filtering type includes deleting the first video from the cloud end and other devices at the same time;
in step a422, if the second description information is that the first video is a one-record-multiple-data type, the album filtering type includes deleting the first video and the associated file of the first video at the same time.
In this way, whether the first video is synchronously stored in the cloud end and other equipment is determined by the first description information, whether the first video is a one-record-multiple-function data class is determined by the second description information, if the first video is synchronously stored in the cloud end and other equipment, the user is likely to have a first video requirement of synchronously deleting the cloud end and other equipment when deleting the local first video, and if the first video is a one-record-multiple-function data class, the user is likely to have an associated file obtained by synchronously deleting the first video through the one-record-multiple-function when deleting the first video.
Step A50, setting and displaying a deleting prompt box according to the data to be deleted and the album filtering type; the display deletion prompt box is used for prompting a user to select a deletion mode of the first video;
the deletion prompting box is used for prompting a user to select a deletion mode of the first video, wherein the deletion mode comprises deleting all of the first video and associated files of the first video, and deleting only the first video.
In some possible embodiments, the step a50 of setting and displaying a deletion prompt box according to the data to be deleted and the album filtering type includes:
step A51, setting a prompt title, a subheading and a bullet frame button content of the deletion prompt frame according to the album filtering type;
and step A52, refreshing the prompt title of the deletion prompt box according to the data to be deleted, and displaying the deletion prompt box.
In this way, the prompt title is used for prompting whether the first video of the cloud end and other devices is synchronously deleted in the album filtering type, the subtitle is used for enabling a user to select whether the first video of the cloud end and the first video of other devices are synchronously deleted in the album filtering type, the popup button content is used for enabling the user to select whether the first video and the associated file of the first video are synchronously deleted in the album filtering type, a deletion prompt box is set based on the album filtering type, and different deletion prompts and deletion selections are provided for the user.
Illustratively, different album filtering types correspond to different prompt titles, sub-titles and box button contents of the deletion prompt box.
Illustratively, the hint header includes content of the number of AI photos.
Step A60, receiving a second operation;
and step A70, deleting the first video and the associated file of the first video in response to the second operation.
For example, after the step of setting and displaying the deletion prompt box in the step a50, the file deletion method of the present application further includes: the mobile phone monitors an external input operation, wherein the external input operation is triggered by a user. The external input operation is a touch operation of the user on the deletion prompt box, or the external input operation is a pressing operation of the user on a physical key of the mobile phone.
Illustratively, the step of deleting the first video and the associated file of the first video in step a70 includes: deleting the associated file of the first video; and deleting the first video after deleting the associated file of the first video.
Therefore, the database change of the gallery caused by deleting the first video is avoided, the large-scale view interface or the grid interface is driven to change, and the false image of deleting errors caused by displaying the deleting action before deleting the task is executed is avoided, so that the user experience is poor.
Illustratively, after the step of setting and displaying the deletion prompt in the step a50, the method further includes:
step A81, receiving a third operation;
step a82, deleting the first video in response to the third operation.
For example, the user may select to delete only the first video based on the third operation on the deletion prompt box, so as to meet the diversified file deletion requirement of the user.
Illustratively, the deleting the associated file of the first video includes:
step B1, acquiring a storage path of an associated file of the first video, wherein the associated file comprises an AI photo and an AI video of the first video;
step B2, determining the corresponding AI video to be deleted according to the associated information and deletion selection of the AI video;
and B3, moving the AI photo and the AI video to be deleted to a recycle bin of a gallery, and modifying a storage path of the associated file to be a storage path of the recycle bin.
Therefore, the AI video of the first video is classified, the AI video which is actually and independently stored is moved to a recycle bin of a gallery together with the AI photo, the storage paths of the AI video and the AI photo are adapted to be adjusted, the AI video which is not actually stored and is attached to the first video is directly and clearly stored, the residual file of the AI video is prevented from being stored after the first video is deleted, and the storage space is saved.
Illustratively, after the step of deleting the associated file of the first video, the method further includes: and recording the original information of the AI photo and the AI video to be deleted. In this way, the original information is used for recovering the deleted file selected by the user, and when the user deletes the file by mistake, the user can be helped to recover the AI photo and the AI video which are deleted by mistake.
Illustratively, the original information includes: AI photos and AI videos of the recycle bin that have been put into the gallery are not put into the storage path before the recycle bin.
Illustratively, the deleting the first video includes: acquiring a storage path of the first video; the first video has an associated AI video; determining a corresponding AI video to be deleted according to the associated information and deletion selection of the AI video; and moving the AI video to be deleted and the first video to a recycle bin of a gallery, and modifying a storage path of the first video to be a storage path of the recycle bin. In this way, the first video, the AI video and the AI photo are temporarily stored in the recycle bin of the gallery, and file crushing and cleaning are not performed temporarily so as to prepare files which need to be restored and deleted later by a user.
In this embodiment, after the user selects the first video to be deleted based on the operation of clicking to delete the first video, the data to be deleted of the first video is encapsulated, and then a deletion prompt box is set and displayed according to the data to be deleted and the album filtering type determined according to the deletion prompt box parameters, so that the user selects all deletion operations based on the deletion prompt box, and therefore, the associated files of the first video and the first video are synchronously deleted, each video and each photo do not need to be checked one by one, only the first video to be deleted needs to be determined, the associated files of the first video and the first video can be deleted by one, excessive operations of the user for deleting the files are avoided, the time consumed by the operations is reduced, the file deleting efficiency is improved, and the user experience is improved.
In addition, in some possible embodiments of the present application, after the step of setting and displaying the deletion prompt box in step a30, the file deletion method of the present application further includes: and displaying a preset preview frame, and displaying the thumbnail of the associated file in the preview frame. Therefore, the user can clearly know which pictures or videos the associated file of the first video is, and is beneficial to judging whether the associated file needs to be deleted synchronously or not.
The preview box is a dialog box which can be displayed on a mobile phone interface and is used for displaying the thumbnail of the associated file placed in the preview box. Optionally, after determining the associated file of the first video, performing element omission on the associated file to generate a corresponding thumbnail may include: the resolution, definition and the like of the video or the picture are reduced, so that a thumbnail with a smaller size than the associated file is generated, the thumbnail can be displayed in a preview frame according to a preset layout sequence based on the fact that a user can identify main contents of the associated file. Therefore, when the mobile phone displays the deletion prompt box of the associated file, the preview box of the thumbnail containing the associated file is synchronously displayed, the user can clearly view the associated file related to the video to be deleted, the user can clearly know which associated files can be deleted, and the user can accurately adapt to deletion of the video to be deleted and the associated files.
For example, referring to fig. 10, in the large-view interface 50 of the mobile phone, the region constituted by the AI video thumbnail 508 and the AI photo thumbnail 509 is a preview box.
In some embodiments, referring to fig. 12, the interface management displays a preset preview box 531 in the large view interface 50 of the mobile phone, where the preview box 531 is a dialog box that can be displayed on the mobile phone interface, the preview box 531 is used to display a thumbnail 532 of an associated file (such as an AI photo and/or AI video) placed therein, and the preview box 531 can be placed in the delete prompt box 530.
In some embodiments, referring to fig. 17, the interface management module displays a preset preview box 621 in the physical album interface 60 of the mobile phone, where the preview box 621 is a dialog box that can be displayed on the mobile phone interface, the preview box 621 is used to show a thumbnail 622 of an associated file (such as an AI photo and/or AI video) placed therein, and the preview box 621 can be placed in the delete prompt box 620.
In some embodiments, referring to fig. 22, the interface management module displays a preset preview box 721 in the virtual album video interface 70 of the mobile phone, the preview box 721 is a dialog box that can be displayed on the mobile phone interface, the preview box 721 is used for displaying a thumbnail 722 for placing related files (such as AI photos and/or AI videos) therein, and the preview box 721 can be placed in the deletion prompt box 720.
The smart gallery subsystem based on the mobile phone generates a related file by taking a first video as a source file, determines a main scene of the first video after a user shoots and obtains the first video through a camera of the mobile phone, acquires the correlation degree between each image frame in the first video and the main scene, takes the image frames with the correlation degree larger than a preset correlation degree threshold as related image frames, takes the related image frames with continuous time sequence as a highlight short video (i.e. an AI video), takes the related image frames with discontinuous time sequence as a highlight instant photo (i.e. an AI photo), and further takes the highlight short video and the highlight instant photo as the related file of the first video. For example, when the main scene of the first video is a portrait, the girl in the first video is an associated portrait of the main scene, and the related image frames may be image frames including a girl portrait, a definition greater than a preset definition threshold, and an expression of the girl belonging to a preset expression type (such as smiling and happy), and the highlight short video is a related image frame that is continuous in time sequence (i.e. continuous image frames including smiling expression and higher definition of the girl). The main scene of the first video can be understood as: the main scene may include a portrait, a landscape, a food, a building, a consumer product (such as an electronic product like a mobile phone, a computer, etc.), and the like.
In some specific implementations, the file types of the associated file of the first video include pictures and videos, for example, the associated file is a highlight instant photo and a highlight short video of the first video, the associated file may be generated based on a main scene of the first video, the main scene may include a portrait, a landscape, a delicacy, and the like, first, related image frames with a degree of relatedness greater than a preset relatedness threshold and a degree of sharpness greater than the preset sharpness threshold are determined from all image frames of the first video, that is, image frames with a degree of relatedness greater than the preset relatedness threshold are selected from the first video as related image frames, then a plurality of related image frames with a degree of relatedness greater than the main scene are selected from the related image frames as highlight short videos, a single Zhang Xiangguan image frame with a non-continuous time sequence is selected as the highlight instant photo, further, the user only needs to record the video, does not take excessive time and effort to take photos and short videos, and the user can directly select videos and photos of himself at the highlight instant photo and the highlight short videos.
Illustratively, after the step of displaying the preset preview frame, the method further includes: and adding a preset association mark at a first preset position in the thumbnail of the association file.
In some embodiments, referring to fig. 12, the interface management module displays a preset preview box 531 in the large view interface 50 of the mobile phone, where the preview box 531 is used to display a thumbnail 532 of an associated file (such as an AI photo and/or AI video) placed therein, the first preset position may be an upper left corner position of the thumbnail 532 of the associated file, and the associated mark 533 is used to identify the associated file generated using the video to be deleted as the source file.
In some embodiments, referring to fig. 17, the interface management module displays a preset preview box 621 in the entity album interface 60 of the mobile phone, where the preview box 621 is used to show a thumbnail 622 of an associated file (such as an AI photo and/or AI video) placed therein, the first preset position may be the upper left corner position of the thumbnail 622 of the associated file, and the associated mark 623 is used to identify the associated file generated using the video to be deleted as the source file.
In some embodiments, referring to fig. 22, the interface management module displays a preset preview box 721 in the virtual album video interface 70 of the mobile phone, where the preview box 721 is used to display a thumbnail 722 for placing therein an associated file (such as an AI photo and/or an AI video), the first preset position may be the upper left corner position of the thumbnail 722 for the associated file, and the associated mark 723 is used to identify the associated file generated using the video to be deleted as the source file.
In a possible implementation manner, the association mark is imprinted on the first preset position of the highlight instant photo of the video to be deleted and the thumbnail of the highlight short video in an icon or watermark manner, and in the process of viewing the preview frame and deleting the prompt frame, the user can quickly locate the thumbnail of the associated file in the preview frame through the association mark, so that the user can quickly distinguish the thumbnail of the associated file from other files irrelevant to the video to be deleted.
For example, the step of displaying a preset preview frame and displaying the thumbnail of the associated file in the preview frame includes: determining a main scene of the first video, and acquiring scene relativity of each associated file and the main scene; displaying a preset preview frame, and orderly displaying the thumbnail of each associated file in the preview frame according to the size relation of the scene relativity.
Identifying the image element with the largest frequency of occurrence in each image frame in the first video through an image identification technology, and analyzing the image element with the largest frequency of occurrence to obtain a main scene of the first video; or, determining the main scene of the first video by looking at the main scene information of the first video. The main scene may include a landscape, portrait, food, etc.
In a possible implementation manner, the image element with the largest occurrence frequency in the first video is identified as a girl and a fish tank behind the girl, in the first video, more than ten frames of image frames are taken away from the girl and are taken out of the window, so that the main scene of the first video is a portrait (namely the girl), the non-main scene is taken as a small tree, and the situation that the user is likely to shift to the small tree out of the window in the recording process due to the shake of holding a mobile phone and the collision of external force in the recording process of the first video is determined, the scene relativity of the related file containing the girl is determined to be a first value, the scene relativity of the related file containing the small tree is determined to be a second value, and the first value is larger than the second value.
The greater the scene correlation degree between the associated file and the main scene of the first video, the more image elements of the main scene appear in the associated file, the closer the associated file is to the content of the first video, the stronger the deletion intention or the attention intention of the user is, because the user selects to delete the first video, the user generally wants to delete all the associated files related to the first video, or after the user wants to delete the first video, part of the associated files of the first video are reserved to be used as souvenirs.
After the scene correlation degree between each associated file and the main scene is obtained, a preset preview frame is displayed based on interface management, and the thumbnails of each associated file can be orderly displayed in the preview frame according to the sequence of the scene correlation degree from large to small, as shown in fig. 12, 17 or 22, the thumbnails of the associated files are arranged in the preview frame according to the scene correlation degree from large to small, so that a user can conveniently view the thumbnails of the associated files with high scene correlation degree, select to delete or not delete the corresponding associated files conveniently and rapidly, the operation amount and the consumed time for selecting to delete the files by the user are reduced, and the deletion efficiency of the files is further improved.
In addition, the thumbnail images of the related files are displayed in the preview frame according to a preset layout sequence, and the preset layout sequence is displayed: the method can be displayed in a grid interface mode according to the correlation degree of the associated file and the main scene of the video to be deleted from high to low or from low to high.
In some possible embodiments, the step of displaying the preset preview box includes: according to the position of the deletion control in the deletion prompt box, associating and displaying a preset preview box; and adding a preset hook control at a second preset position in the thumbnail of each associated file in the preview frame. In this way, the user may selectively delete the associated file of the first video.
The deletion prompt box is provided with a deletion control, and a user can trigger the selective deletion of the associated file of the first video by clicking the deletion control. In general, before confirming deletion and triggering the deletion control, a user tends to know which files are to be deleted, so that a preset preview frame is displayed in association with the position of the deletion control in the deletion prompt frame, thumbnails of associated files in the preview frame can be orderly arranged according to the scene relevance, and meanwhile, a hook control is added at a second preset position in the thumbnails of each associated file in the preview frame through interface management.
In some embodiments, the interface management module displays a preset preview box 531 in the large-scale view interface 50 of the mobile phone, the second preset position is the lower right corner position of the thumbnail 532, and a preset hook control 534 is added to the lower right corner of the thumbnail 532 of each associated file in the preview box 531.
In some embodiments, referring to fig. 17, the interface management module displays a preset preview box 621 in the physical album interface 60 of the mobile phone, and the second preset position may be a lower right corner position of the thumbnail 622 of the associated file, and a preset hook control 624 is added to a lower right corner of the thumbnail 622 of each associated file in the preview box 621.
In some embodiments, referring to fig. 22, the interface management module displays a preset preview box 721 in the virtual album interface 70 of the mobile phone, and the second preset position may be a lower right corner position of the thumbnail 722 of the associated file, and a preset hook control 724 is added to a lower right corner of the thumbnail 722 of each associated file in the preview box 721.
Optionally, a preset choosing control can be added at the lower right corner of the thumbnail of each associated file in the preview frame, the choosing control is a selection frame, the choosing control comprises a chosen state and an unselected state, one choosing control can be configured for the thumbnail of each associated file, and a user can operate the choosing component to choose or not choose the thumbnail of the corresponding associated file, so that the user can select or not choose the associated file synchronously deleted with the video to be deleted, the operation amount of the user is reduced, the operation consumption time is saved, and the operation efficiency of deleting the file is provided. And after the user operates the checking control, taking the associated file with the checking control in the selected state as the associated file for deleting with the first video in a subsequent synchronization mode.
In addition, in other realizable modes, if the user clicks to delete the first video in all video interfaces in the time axis interface, the entity album interface and the virtual album interface of the mobile phone, triggering a step of executing the file deleting method of the application to package the data to be deleted of the first video so as to provide a one-key deleting function for the user. The method comprises the steps of calling a gallery to select pictures or adding pictures by the gallery itself in a virtual album interface, calling a media gallery by a third party application, calling a map album, searching results, hiding the album, previewing a mode, a smart multi-shot album, sharing the album and the like, wherein a user is more prone to viewing files, does not need to waste system materials to display thumbnails of associated files in an associated mode with videos to be deleted, namely does not trigger the step of packaging data to be deleted of the first video for executing the file deleting method of the application, and does not provide a one-key deleting function for the user.
In addition, in other realizable modes, if the first video is included in the file to be deleted in a single selection or multiple selection mode by the user in a grid interface such as an entity album interface and a virtual album interface, triggering a step of packaging the data to be deleted of the first video to execute the file deleting method of the application so as to provide a one-key deleting function for the user. In the large-scale view interface, if the user selects to delete the first video, the step of encapsulating the data to be deleted of the first video for executing the file deleting method of the application is triggered to provide a one-key deleting function for the user. Illustratively, in the large-drawing viewing interface, if the user selects to delete an AI photo or AI video, only the currently selected item is deleted. In the album list interface, if the user selects to delete the first video in the whole album, the AI photo and the AI video of the first video are not deleted.
In addition, in other possible manners, after the step of setting and displaying the deletion prompt box, the method further includes: selecting a target associated file meeting a preset similarity condition and/or a preset default selected condition from the associated files, and determining the target associated file as a selected state to be deleted; and adding a selection mark corresponding to the selected state to be deleted for the target associated file in the deletion prompt box. In the deletion prompt box, a selection mark corresponding to the to-be-deleted selection state is added for the selection control of the target associated file, namely, the selection control of the target associated file is set to be in the selection state.
Exemplary, the preset similarity conditions are: and reserving one associated file from a plurality of associated files with similarity larger than a preset similarity threshold, and determining other associated files with the reserved associated files with similarity larger than the preset similarity threshold as target associated files.
The default selected condition may be: and defaulting all the associated files to be target associated files, or defaulting the associated files with the size larger than the preset amount of the files to be target associated files, or defaulting the associated files with the main scene correlation degree of the first video smaller than the preset correlation degree threshold to be target associated files, or defaulting the associated files with the type of the files to be video to be target associated files, or defaulting the associated files with the type of the files to be pictures to be target associated files, so as to rapidly determine the target associated files.
After determining the target associated file from the associated files of the first video, determining the target associated file as the selected state to be deleted, wherein the target associated file is the file which the user wants to delete together with the video to be deleted in a one-pass way with a high probability, and the user does not need to spend time and perform operations to select the target associated file to be converted into the selected state to be deleted in the embodiment.
Meanwhile, after the target associated files are determined to be in the to-be-deleted selected state, selecting marks corresponding to the to-be-deleted selected state are added to each target associated file in a deleting prompt box so as to prompt a user to know which associated files are selected to be deleted, and the user can conveniently adjust the associated files in the to-be-deleted selected state.
Optionally, adding, in the deletion prompt box, a selection flag corresponding to the to-be-deleted selection state to the target associated file includes: displaying a preview frame in a deleting prompt frame, displaying thumbnails of target associated files in the preview frame, adding a selection mark corresponding to the to-be-deleted selection state for each target associated file in the preview frame, wherein the selection mark can be highlighting, heterochromatic displaying, watermarking or identifier of the thumbnails of the target associated files, and in an alternative implementation manner, adjusting a hook control at a second preset position in the thumbnails of the target associated files to be in a hook state.
It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware and/or software modules that perform the respective functions. The steps of the examples described in connection with the embodiments disclosed herein may be embodied in hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art can implement the described functionality using different approaches for each particular application in conjunction with the embodiments.
The present embodiment may divide the functional modules of the electronic device according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules described above may be implemented in hardware. It should be noted that, in this embodiment, the division of the modules is schematic, only one logic function is divided, and another division manner may be implemented in actual implementation.
In the case of dividing the respective functional modules with the respective functions, fig. 26 shows a schematic diagram of one possible composition of the electronic device involved in the above-described embodiment, and as shown in fig. 11, the electronic device 500 may include: an acquisition unit 501, a display unit 502, and a deletion unit 503, wherein:
an obtaining unit 501, configured to encapsulate data to be deleted of a first video after detecting an operation of clicking to delete the first video; acquiring a deletion prompt box parameter, and determining the filter type of the album according to the deletion prompt box parameter
A display unit 502, configured to set and display a deletion prompt box according to the data to be deleted and the album filtering type;
A deleting unit 503, configured to detect whether the deletion prompt box receives an operation of all deletion; and deleting the first video and the associated file of the first video if the operation of all deletion is detected.
In a possible implementation manner, the obtaining unit 501 is configured to extract, from the deletion prompt box parameter, first description information about whether the first video is synchronously stored in the cloud end and other devices; extracting second description information of whether the first video is a one-record-multiple-data class from the deletion prompt box parameters; and determining the album filtering type according to the first description information and the second description information.
In a possible implementation manner, the obtaining unit 501 is configured to, if the first description information is that the first video is synchronously stored in the cloud end and other devices, delete the first video from the cloud end and other devices at the same time by the album filtering type; if the second description information is that the first video is a one-record-multiple-data type, the album filtering type comprises deleting the first video and the associated file of the first video at the same time.
In a possible implementation manner, the display unit 502 is configured to set, according to the album filtering type, a prompt title, a subtitle, and a box button content of the deletion prompt box; refreshing the prompt title of the deletion prompt box according to the data to be deleted, and displaying the deletion prompt box.
In a possible implementation manner, the deleting unit 503 is configured to delete the first video if an operation of deleting only the first video is detected.
In a possible implementation manner, the deleting unit 503 is configured to delete the association file of the first video; and deleting the first video after deleting the associated file of the first video.
In a possible implementation manner, the deleting unit 503 is configured to obtain a storage path of an association file of the first video, where the association file includes an AI photo and an AI video of the first video; determining a corresponding AI video to be deleted according to the associated information and deletion selection of the AI video; and moving the AI photo and the AI video to be deleted to a recycle bin of a gallery, and modifying a storage path of the associated file to be a storage path of the recycle bin.
In a possible implementation manner, the deleting unit 503 is configured to record the AI photos and the original information of the AI video to be deleted.
In a possible implementation manner, the deleting unit 503 is configured to acquire a storage path of the first video; the first video has an associated AI video; determining a corresponding AI video to be deleted according to the associated information and deletion selection of the AI video; and moving the AI video to be deleted and the first video to a recycle bin of a gallery, and modifying a storage path of the first video to be a storage path of the recycle bin.
In a possible implementation manner, the display unit 502 is configured to display a preset preview frame, and display a thumbnail of the associated file in the preview frame.
In a possible implementation manner, the display unit 502 is configured to display a preset preview frame in an associated manner according to a position of the deletion control in the deletion prompt frame; and adding a preset hook control at a second preset position in the thumbnail of each associated file in the preview frame.
It should be understood that the electronic device herein is embodied in the form of functional modules. The term "module" herein may be implemented in software and/or hardware, and is not specifically limited thereto. For example, a "module" may be a software program, a hardware circuit, or a combination of both that implements the functionality described above. The hardware circuitry may include application specific integrated circuits (application specific integrated circuit, ASICs), electronic circuits, processors (e.g., shared, proprietary, or group processors, etc.) and memory for executing one or more software or firmware programs, merged logic circuits, and/or other suitable components that support the described functions.
The application also provides an electronic device comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the electronic device, cause the electronic device to perform the file deletion method as set forth in the first aspect or any one of the possible implementations of the first aspect.
The present application also provides a computer readable storage medium having stored therein a computer program which, when executed by a processor, causes the processor to perform the file deletion method as described in the first aspect or any of the possible implementation manners of the first aspect.
The application also provides a chip comprising a processor and a data interface, wherein the processor reads instructions stored on a memory through the data interface, and executes the file deletion method according to the first aspect or any one of the possible implementation manners of the first aspect.
Optionally, the chip may further comprise a memory, in which instructions are stored, the processor being configured to execute the instructions stored on the memory, the processor being configured to perform the method of deleting a file according to the first aspect or any of the possible implementations of the first aspect when the instructions are executed.
The memory may be read-only memory (ROM), other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM) or other types of dynamic storage devices that can store information and instructions, electrically erasable programmable read-only memory (electrica llyerasable programmable read-only memory, EEPROM), compact disc read-only memory (compact disc read-only memory) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media, or any other magnetic storage device that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, etc.
In this embodiment, "and/or" describes an association relationship of an association object, which means that there may be three relationships, for example, a and/or B, and may mean that there is a alone, a and B together, and B alone. Wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of the following" and the like means any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in the embodiments disclosed herein can be implemented as a combination of electronic hardware, computer software, and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In several embodiments provided herein, any of the functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, and any person skilled in the art may easily conceive of changes or substitutions within the technical scope of the present application, which should be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method of deleting a file, the method comprising the steps of:
receiving a first operation;
in response to the first operation, encapsulating to-be-deleted data of a first video, wherein the to-be-deleted data comprises a storage path of the first video and the number of associated files of the first video;
determining parameters of a deleting prompt box based on a preset monitoring callback function;
determining the filtering type of the album according to the deleting prompt box parameters;
setting and displaying a deletion prompt box according to the data to be deleted and the album filtering type, wherein the display deletion prompt box is used for prompting a user to select a deletion mode of the first video;
receiving a second operation;
deleting the first video and the associated file of the first video in response to the second operation;
the step of determining the album filtering type according to the deleting prompt box parameter comprises the following steps:
Extracting first description information of whether the first video is synchronously stored in the cloud and other equipment from the deletion prompt box parameters;
extracting second description information of whether the first video is a one-record-multiple-data class from the deletion prompt box parameters;
and determining the album filtering type according to the first description information and the second description information.
2. The method of deleting a file as set forth in claim 1, wherein the step of determining the album filter type based on the first description information and the second description information includes:
if the first description information is that the first video is synchronously stored in the cloud and other equipment, deleting the first video from the cloud and other equipment at the same time by the album filtering type;
if the second description information is that the first video is a one-record-multiple-data type, the album filtering type comprises deleting the first video and the associated file of the first video at the same time.
3. The method for deleting files as claimed in claim 1, wherein the step of setting and displaying a deletion prompt according to the data to be deleted and the album filter type comprises:
setting a prompt title, a subheading and a bullet frame button content of the deletion prompt frame according to the album filtering type;
Refreshing the prompt title of the deletion prompt box according to the data to be deleted, and displaying the deletion prompt box.
4. The method for deleting a file as set forth in claim 1, further comprising, after said step of setting and displaying a deletion prompt:
receiving a third operation;
and deleting the first video in response to the third operation.
5. The method of deleting a file according to claim 1, wherein the step of deleting the first video and the associated file of the first video comprises:
deleting the associated file of the first video;
and deleting the first video after deleting the associated file of the first video.
6. The method of deleting a file according to claim 5, wherein the step of deleting the associated file of the first video comprises:
acquiring a storage path of an associated file of the first video, wherein the associated file comprises an AI photo and an AI video of the first video;
determining a corresponding AI video to be deleted according to the associated information and deletion selection of the AI video;
and moving the AI photo and the AI video to be deleted to a recycle bin of a gallery, and modifying a storage path of the associated file to be a storage path of the recycle bin.
7. The method of deleting a file according to claim 6, further comprising, after said step of deleting an associated file of said first video:
and recording the original information of the AI photo and the AI video to be deleted.
8. The file deletion method as claimed in any one of claims 4 to 7, wherein the step of deleting the first video includes:
acquiring a storage path of the first video; the first video has an associated AI video;
determining a corresponding AI video to be deleted according to the associated information and deletion selection of the AI video;
and moving the AI video to be deleted and the first video to a recycle bin of a gallery, and modifying a storage path of the first video to be a storage path of the recycle bin.
9. The method of deleting a file as set forth in claim 1, wherein after the step of setting and displaying a deletion hint box, comprising:
and displaying a preset preview frame, and displaying the thumbnail of the associated file in the preview frame.
10. The method of deleting a file as set forth in claim 9, wherein the step of displaying a preset preview frame includes:
according to the position of the deletion control in the deletion prompt box, associating and displaying a preset preview box;
And adding a preset hook control at a second preset position in the thumbnail of each associated file in the preview frame.
11. An electronic device, comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the electronic device, cause the electronic device to perform the file deletion method of any one of claims 1-10.
12. A computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, which when executed by a processor causes the processor to perform the file deletion method of any one of claims 1 to 10.
CN202210148230.7A 2022-02-17 2022-02-17 File deletion method, electronic device and computer readable storage medium Active CN115525610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210148230.7A CN115525610B (en) 2022-02-17 2022-02-17 File deletion method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210148230.7A CN115525610B (en) 2022-02-17 2022-02-17 File deletion method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN115525610A CN115525610A (en) 2022-12-27
CN115525610B true CN115525610B (en) 2023-05-09

Family

ID=84694779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210148230.7A Active CN115525610B (en) 2022-02-17 2022-02-17 File deletion method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115525610B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750632A (en) * 2004-09-14 2006-03-22 Lg电子株式会社 Display device having electronic album function and method for controlling the same
CN110401766A (en) * 2019-05-22 2019-11-01 华为技术有限公司 A kind of image pickup method and terminal
CN111480158A (en) * 2018-10-12 2020-07-31 华为技术有限公司 File management method and electronic equipment
CN112765383A (en) * 2021-04-07 2021-05-07 荣耀终端有限公司 File cleaning method and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7751628B1 (en) * 2001-12-26 2010-07-06 Reisman Richard R Method and apparatus for progressively deleting media objects from storage
US8683519B2 (en) * 2007-09-26 2014-03-25 At&T Intellectual Property I, L.P. Favorites mosaic
CN106648656B (en) * 2016-12-20 2020-06-12 北京猎豹移动科技有限公司 Message deleting method and device and electronic equipment
CN106991179B (en) * 2017-04-07 2020-06-19 Oppo广东移动通信有限公司 Data deleting method and device and mobile terminal
CN108170787A (en) * 2017-12-27 2018-06-15 努比亚技术有限公司 A kind of image file delet method, mobile terminal and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750632A (en) * 2004-09-14 2006-03-22 Lg电子株式会社 Display device having electronic album function and method for controlling the same
CN111480158A (en) * 2018-10-12 2020-07-31 华为技术有限公司 File management method and electronic equipment
CN110401766A (en) * 2019-05-22 2019-11-01 华为技术有限公司 A kind of image pickup method and terminal
CN112765383A (en) * 2021-04-07 2021-05-07 荣耀终端有限公司 File cleaning method and electronic equipment

Also Published As

Publication number Publication date
CN115525610A (en) 2022-12-27

Similar Documents

Publication Publication Date Title
JP2022529159A (en) How to add comments and electronic devices
WO2021088881A1 (en) Picture selecting method and electronic device
CN114356258A (en) Electronic device, screen projection method thereof and medium
CN114827342B (en) Video processing method, electronic device and readable medium
US20230367464A1 (en) Multi-Application Interaction Method
CN116095413B (en) Video processing method and electronic equipment
CN111480158A (en) File management method and electronic equipment
US20240126424A1 (en) Picture sharing method and electronic device
CN113312115A (en) Information collection method, electronic device and computer readable storage medium
CN112099892B (en) Communication terminal and method for rapidly scanning two-dimension code
CN113055585B (en) Thumbnail display method of shooting interface and mobile terminal
CN115525610B (en) File deletion method, electronic device and computer readable storage medium
CN115098449B (en) File cleaning method and electronic equipment
WO2022237317A1 (en) Display method and electronic device
CN115525783B (en) Picture display method and electronic equipment
WO2023061298A1 (en) Picture backup system and method, and device
CN115061758B (en) Application display method, terminal, electronic device and storage medium
WO2023160208A1 (en) Image deletion operation notification method, device, and storage medium
CN115145457B (en) Method and device for scrolling screen capturing
CN113747098B (en) Photo file generation method with audio identification, photo display method and equipment
CN113641533B (en) Terminal and short message processing method
US20240061549A1 (en) Application switching method, graphical interface, and related apparatus
WO2024078120A1 (en) File management method, and device and storage medium
WO2024036998A1 (en) Display method, storage medium, and electronic device
CN116701704A (en) File processing method, electronic device, and computer-readable storage medium

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
GR01 Patent grant
GR01 Patent grant