CN115525610A - 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
CN115525610A
CN115525610A CN202210148230.7A CN202210148230A CN115525610A CN 115525610 A CN115525610 A CN 115525610A CN 202210148230 A CN202210148230 A CN 202210148230A CN 115525610 A CN115525610 A CN 115525610A
Authority
CN
China
Prior art keywords
video
deletion
file
interface
deleted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210148230.7A
Other languages
Chinese (zh)
Other versions
CN115525610B (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 the first operation, packaging data to be deleted of the 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; determining to delete prompt box parameters based on a preset monitoring callback function; determining the album filtering type according to the deletion prompt box parameter; 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 in response to the second operation, deleting the first video and the associated file of the first video. According to the method and the device, the user is prevented from deleting the file to perform excessive operation, the time consumed by the operation is reduced, the efficiency of deleting the file is improved, and the user experience is improved.

Description

File deletion method, electronic device and computer-readable storage medium
Technical Field
The present application 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, and the like) have more and more functions, and particularly, shooting functions of the electronic devices are greatly enriched. For example, most electronic devices are equipped with a camera, so that the electronic devices have a function of recording videos. Taking a mobile phone in electronic equipment as an example, the mobile phone records a video, and the mobile phone extracts a wonderful instantaneous photo and a wonderful short video matched with a scene algorithm from the recorded original video based on a preset scene algorithm.
However, in the use process of the electronic device, as the number of recorded original videos increases, the number of the highlight instant photos and the highlight short videos increases more and more, the remaining storage space of the electronic device becomes more and more scarce, and meanwhile, as the preference of the user for recording the videos changes, the recorded files in the electronic device need to be deleted frequently. In the face of such a huge number of recorded files, users have to check, select and delete the recorded files one by one to prevent mistaken deletion, which results in large 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 deleting recorded files for a user.
In a first aspect, the present application provides a file deletion method, including: receiving a first operation; in response to the first operation, packaging 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; determining a deletion prompt box parameter based on a preset monitoring callback function; determining the album filtering type according to the deletion prompt box parameter; setting and displaying a deletion prompt box according to the data to be deleted and the album filtering type, wherein the deletion prompt box is used for prompting a user to select a deletion mode of the first video; receiving a second operation; and in response to the second operation, deleting the first video and the associated file of the first video. Therefore, after a user selects a first video to be deleted based on a first operation of clicking to delete the first video, the data to be deleted of the first video are packaged, then the deletion prompt box is set and displayed according to the album filtering type determined by the data to be deleted and the deletion prompt box parameters, so that the user can select a second operation of all deletion based on the deletion prompt box to synchronously delete the associated files of the first video and the first video, the user only needs to determine the first video to be deleted without checking each video and each photo one by one, the associated files of the first video and the first video can be deleted by one key, the situation that the user deletes the files and carries out excessive operation is avoided, the time consumed by operation is reduced, the file deletion efficiency is improved, and the user experience is improved.
Illustratively, the file deletion method of the application is applied to a gallery of the electronic equipment.
Illustratively, the data to be deleted includes a storage path of the first video and an AI photo number of an AI photo associated with the first video.
Illustratively, the association file includes an AI photograph and an AI video of the first video.
Illustratively, the interfaces for detecting the operation of clicking to delete the first video include a timeline interface, a physical album interface and a virtual album interface of the gallery.
Illustratively, the delete prompt box parameters include a first delete prompt box parameter and a second delete 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 recorded multi-data class.
Illustratively, the album filtering types include deleting from the cloud and other devices or not deleting from the cloud and other devices at the same time, and deleting the first video and the AI photo of the first video at the same time or deleting only the first video.
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 parameter; extracting second description information of whether the first video is a recorded multi-data type or not from the deletion prompt box parameter; and determining the filtering type of the album according to the first description information and the second description information. Thus, the album filter type may be set to: and simultaneously deleting the first video or deleting the file associated with the first video from the cloud and other equipment, simultaneously deleting the file associated with the first video or only deleting the first video. And further, a diversified deleting mode is provided for the first video and the associated file of the first video, and diversified deleting requirements of users are met.
Illustratively, album filter types include: the method comprises the steps of deleting a first video and an associated file of the first video, deleting the first video and the associated file of the first video from a cloud end and other equipment, deleting the first video and the associated file of the first video from the cloud end and other equipment, deleting only the first video, deleting the first video from the cloud end and other equipment, deleting only the first video, and not deleting the first video from the cloud end and other equipment.
Illustratively, the first delete prompt dialog parameter includes first descriptive information and the second delete prompt dialog parameter includes second descriptive information.
According to the first aspect or any implementation manner of the first aspect, the determining, according to the first description information and the second description information, an album filtering type includes: if the first description information is that the first video is synchronously stored in the cloud and other equipment, the album filtering type comprises that the first video is deleted from the cloud and other equipment at the same time; and if the second description information indicates that the first video is a recorded multiple data type, the album filtering type comprises deleting the first video and the associated file of the first video at the same time. Therefore, whether the first video is synchronously stored in the cloud and other equipment or not is determined by the first description information, whether the first video is a multiple data record or not is determined by the second description information, if the first video is synchronously stored in the cloud and other equipment, the first video requirement for synchronously deleting the cloud and other equipment is likely to exist when the first video is deleted locally, and if the first video is a multiple data record or not, the associated files obtained by the multiple data record function of the first video are likely to be synchronously deleted when the first video is deleted by the user.
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 filter type includes: setting a prompt title, a subtitle and a popup frame button content of the deletion prompt frame according to the album filtering type; and refreshing the prompt title of the deletion prompt box according to the data to be deleted, and displaying the deletion prompt box. Therefore, the prompt title is used for prompting whether the first videos of the cloud end and other equipment are deleted synchronously in the album filtering type, the subtitle is used for enabling a user to select whether the first videos of the cloud end and other equipment are deleted synchronously in the album filtering type, the pop-up frame button content is used for enabling the user to select whether the first videos and the files related to the first videos are deleted simultaneously in the album filtering type, the deletion prompt frame 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, subtitles and pop-up button contents of the deletion prompt box.
Illustratively, the hint header includes the 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 a deletion prompt box, the method further includes: receiving a third operation; deleting the first video in response to the third operation. In this way, the user can also select to delete only the first video based on the third operation on the deletion prompt box, and the requirement of the user on deleting the diversified files is met.
According to the first aspect, or any implementation manner of the first aspect, the deleting the first video and the associated file of the first video includes: deleting the associated file of the first video; deleting the first video after deleting the associated file of the first video. Therefore, the database change of the image library caused by the deletion of the first video is avoided, the large image viewing interface or the grid interface is driven to change, and the false phenomenon of deletion error caused by the fact that deletion action is displayed before the deletion task is executed is further avoided, so that the user experience is poor.
According to the first aspect, or any implementation manner of the first aspect, the deleting the file associated with 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 association 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 the gallery, and modifying the storage path of the associated file into the storage path of the recycle bin. Therefore, the AI videos of the first video are classified, the true and independently stored AI videos and the AI photos are moved to the recycle bin of the gallery together, the storage paths of the AI videos and the AI photos are adjusted in a self-adaptive mode, the unreal storage is achieved, the AI videos existing in the first video are directly clear, the fact that the first video is deleted and the residual files of the AI videos exist is avoided, 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 the user to select the recovery of the deleted files, and when the user deletes the files by mistake, the user can be helped to recover the deleted AI photos and AI videos by mistake.
Illustratively, the original information includes: the 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 the first aspect, or any implementation manner of the first aspect, 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 association 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 the gallery, and modifying a storage path of the first video to be a storage path of the recycle bin. Therefore, the first video, the AI video and the AI photo are temporarily stored in a recycle bin of the gallery, and file crushing and clearing are not performed temporarily so as to prepare for restoring the deleted files subsequently required by the user.
According to the first aspect, or any implementation manner of the first aspect, after the step of setting and displaying a deletion prompt box, the method includes: 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 files of the first video are, and the user can conveniently judge whether the associated files need to be deleted synchronously.
After the step of displaying the preset preview frame, the method may further include: and adding a preset association mark at a first preset position in the thumbnail of the association file.
Illustratively, the displaying a preset preview frame, and the displaying the thumbnail of the associated file in the preview frame includes: determining a main scene of the first video, and acquiring scene correlation of each associated file and the main scene;
displaying a preset preview frame, and displaying the thumbnails of the associated files in the preview frame in order according to the size relation of the scene relevancy.
According to the first aspect, or any implementation manner of the first aspect, the displaying a preset preview frame includes: displaying a preset preview frame in a correlated manner according to the position of the deletion control in the deletion prompt frame; and adding a preset check control at a second preset position in the thumbnail of each associated file in the preview frame. In this way, the user can selectively delete the associated file of the first video.
Illustratively, 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 selection condition from the associated files, and determining the target associated file to be in 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, packaging 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;
determining to delete prompt box parameters based on a preset monitoring callback function;
determining the album filtering type according to the deletion prompt box parameter;
setting and displaying a deletion prompt box according to the data to be deleted and the album filtering type, wherein the 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 programs, when executed by the one or more processors, cause the electronic device to perform the steps of:
according to a second aspect, the computer programs, when executed by the one or more processors, cause 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 parameter;
extracting second description information of whether the first video is a recorded multi-data type or not from the deletion prompt box parameter;
and determining the filtering type of the album 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, the album filtering type comprises that the first video is deleted from the cloud and other equipment at the same time;
and if the second description information indicates that the first video is a recorded 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 subtitle and a popup frame button content of the deletion prompt frame according to the album filtering type;
and 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; 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; 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, wherein the associated file comprises an AI (Artificial Intelligence) photo and an AI video of the first video;
determining a corresponding AI video to be deleted according to the association 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 the gallery, and modifying the storage path of the associated file into the 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 association 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 the 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: 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: displaying a preset preview frame in a correlated manner according to the position of the deletion control in the deletion prompt frame; and adding a preset check control at a second preset position in the thumbnail of each associated file in the preview frame.
Any one implementation manner of the second aspect and the second aspect corresponds to any one implementation manner of the first aspect and the first aspect, respectively. For technical effects corresponding to any one of the implementation manners of the second aspect and the second aspect, reference may be made to the technical effects corresponding to any one of the implementation manners of the first aspect and the first aspect, and details are not described here.
In a third aspect, the present application provides a computer-readable storage medium having stored thereon a computer program, which, when executed by a processor, causes the processor to execute the file deletion method according to the first aspect or any one of the possible implementations of the first aspect.
Any one implementation manner of the third aspect and the third aspect corresponds to any one implementation manner of the first aspect and the first aspect, respectively. For technical effects corresponding to any one implementation manner of the third aspect and the third aspect, reference may be made to the technical effects corresponding to any one implementation manner of the first aspect and the first aspect, and details are not repeated here.
In a fourth aspect, the present application provides a computer program including instructions for executing the method of the first aspect and any possible implementation manner of the first aspect.
Any one implementation manner of the fourth aspect and the fourth aspect corresponds to any one implementation manner of the first aspect and the first aspect, respectively. For technical effects corresponding to any one implementation manner of the fourth aspect and the fourth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the first aspect and the first aspect, and details are not described here again.
In a fifth aspect, an embodiment of the present application provides a chip, which includes a processing circuit and a transceiver pin. Wherein the transceiver pin and the processing circuit are in communication with each other via an internal connection path, and the processing circuit executes the method of the second aspect or any possible implementation manner of the second aspect to control the receiving pin to receive a signal and control the transmitting pin to transmit a signal. Illustratively, the chip is a chip of an electronic device, and the electronic device may be a mobile phone.
Any one implementation manner of the fifth aspect and the fifth aspect corresponds to any one implementation manner of the first aspect and the first aspect, respectively. For technical effects corresponding to any one of the implementation manners of the fifth aspect and the fifth aspect, reference may be made to the technical effects corresponding to any one of the implementation manners of the first aspect and the first aspect, and details are not described here.
Drawings
FIG. 1 is a schematic interface scenario diagram for file deletion in the prior art;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a block diagram of a software structure of an electronic device according to an embodiment of the present disclosure;
fig. 4 is another software structure 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 first flowchart illustrating a file deleting method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a file deletion method according to an embodiment of the present application;
FIG. 7 is a first schematic diagram of a desktop interface of an electronic device according to the present application;
FIG. 8 is a schematic diagram of a desktop interface of the electronic device of the present application;
FIG. 9a is a schematic diagram of a timeline interface of an electronic device according to the present application;
FIG. 9b is a first diagram of an album list interface of the electronic device according to the present application;
FIG. 10 is a first schematic view of a large-view viewing interface of the electronic device of the present application;
FIG. 11 is a second schematic view of a large-view viewing interface of the electronic device of the present application;
FIG. 12 is a third schematic view of a large-image viewing interface of the electronic device of the present application;
FIG. 13 is a second schematic diagram of a timeline interface of an electronic device of the present application;
FIG. 14 is a first schematic diagram of a physical album interface of the electronic device of 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 schematic diagram of a physical album interface of the electronic device of the present application;
FIG. 17 is a fourth illustration of an entity album interface of the electronic device of the present application;
FIG. 18 is a fifth illustration of a physical album interface for an electronic device of the present application;
FIG. 19 is a first schematic view of a virtual album interface of the electronic device of the present application;
FIG. 20 is a second schematic view of a virtual album interface of the electronic device of the present application;
FIG. 21 is a third schematic view of a virtual album interface of the electronic device of the present application;
FIG. 22 is a fourth schematic view of a virtual album interface of the electronic device of the present application;
FIG. 23 is a fifth schematic view of a virtual album interface of the electronic device of the present application;
fig. 24 is a schematic flowchart of a file deletion method according to an embodiment of the present application;
fig. 25 is a fourth flowchart illustrating a file deletion method according to an embodiment of the present application;
fig. 26 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second," and the like in the description and in the claims of the embodiments of the present application, are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first target object and the second target object, etc. are specific sequences for distinguishing different target objects, rather than describing target objects.
In the embodiments of the present application, the words "exemplary" or "such as" are used herein to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present application, the meaning of "a plurality" means two or more unless otherwise specified. For example, a plurality of processing units refers to two or more processing units; a plurality of systems refers to two or more systems.
Before describing the technical solution of the embodiment of the present application, an application scenario of the embodiment of the present application is first described with reference to the drawings. For convenience of description, in the embodiment of the present application, a file to be deleted is implemented by using a gallery application program (hereinafter, referred to as a gallery application), and an electronic device, which is a mobile phone, is used as an implementation device for a file deletion process.
For clarity and conciseness of description of the following embodiments, a brief introduction of an implementation scheme of a file deletion method is first given:
at present, 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, many first videos and wonderful instantaneous photos and wonderful short videos related to the first videos are stored in the electronic devices, and users often delete the videos and the photos due to limited storage space of the electronic devices or preference change of the users to the photos or the videos. However, since the number of videos and photos is large, as shown in fig. 1, for example, a grid interface 10 of a certain photo album (e.g., a camera album, all photo albums, etc.) in a gallery application is displayed in a display area of an electronic device 200, where the grid interface 10 includes a thumbnail 101, a return control 102, a view control 103, and a check control 104, where the thumbnail 101 is a schematic diagram of a picture or a 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 a user in a large-scale image, and the check control 104 is used to mark the picture or the video selected by the user for subsequent operations such as deletion, sharing, etc.
In a grid interface 10 of a gallery application, videos or photos are displayed in a display area of an electronic device 200 in a grid form by thumbnails 101 with smaller sizes, and in order to prevent users from deleting precious videos and photos by mistake, users often need to click a viewing control 103 one by one to view videos and/or photos corresponding to each thumbnail 101 in a large graph form, then evaluate and selectively delete the unwanted videos and photos, and then trigger a deletion function of the electronic device 200 to delete files, for example, in fig. 1, a user clicks a check control 104 to select 3 thumbnails 101 in a check state, namely, a first row of first thumbnails 101, a first row of third thumbnails 101, and a third row of first thumbnails 101 in the grid interface 10 in fig. 1 (namely, thumbnails of the check control checked in the check control 104 in the lower right corner in fig. 1), and the user needs to click the viewing control 103 seven times and view 7 thumbnails 101 at least to complete evaluation of videos or photos displayed in a large graph form after the thumbnails are expanded, and the user needs to pay a great deal of operation and pay attention to the user in the whole process of deleting files with low efficiency.
Based on the problems in the technical scheme, the file deleting method includes the steps that after a user selects a first video to be deleted based on an operation of clicking to delete the first video, data to be deleted of the first video are packaged, then a deletion prompt box is set and displayed according to the data to be deleted and an album filtering type determined according to deletion prompt box parameters, so that the user can select a second operation of complete deletion based on the deletion prompt box, the first video and the associated file of 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 file of the first video and the first video can be deleted by one key, the situation that the user deletes the file too many operations is avoided, the time consumed by the operation is reduced, the file deleting efficiency is improved, and the user experience is improved.
The file deleting method provided by the application can be suitable for electronic equipment such as mobile phones, tablet computers, desktop computers, laptop computers, notebook computers, ultra-mobile Personal computers (UMPCs), handheld computers, netbooks, personal Digital Assistants (PDAs), wearable electronic equipment and smart watches. 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 of an example of an electronic device provided by the present application, and the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a Universal Serial Bus (USB) interface 230, a charging 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 button 290, an indicator 291, a camera 292, a display screen 293, and the like. Wherein the sensor module 280 may include a pressure sensor 280A, etc.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device 200. In other embodiments, the electronic device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement 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: the processor 210 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
Wherein the controller may be a neural center and a command center of the electronic device 200. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in 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 have just been used or recycled by the processor 210. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 210, thereby increasing the efficiency of the system.
The charge management module 240 is configured to receive a charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 may receive charging input from a wired charger via the USB interface 230. In some wireless charging embodiments, the charging management module 240 may receive a wireless charging input through a wireless charging coil of the electronic device 200. The charging management module 240 may also supply power to the electronic device 200 through the power management module 241 while charging the battery 242.
The wireless communication function of the electronic device 200 may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor, the 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 can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as 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 including 2G/3G/4G/5G wireless communication applied on the electronic device 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 250 can receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 250 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. 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 disposed in the same device as at least some of the modules of the processor 210.
The wireless communication module 260 may provide a solution for wireless communication applied to the electronic device 200, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on 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 and amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 200 is coupled to mobile communication module 250 and antenna 2 is coupled to wireless communication module 260, such that electronic device 200 may communicate with networks and other devices via wireless communication techniques.
The electronic device 200 implements display functions through the GPU, the display screen 293, and the application processor. 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 alter display information.
The display screen 293 is used for displaying images, video, and the like. The display screen 293 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-OLED, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 200 may include 1 or N display screens 293, N being a positive integer greater than 1.
A series of Graphical User Interfaces (GUIs) may be displayed on the display screen 293 of the electronic device 200, and these GUIs are the main screens of the electronic device 200. Generally, the size of the display 293 of the electronic device 200 is fixed, and only limited controls can be displayed in the display 293 of the electronic device 200. A widget is a GUI element, which is a software component included in an application program, controls all data processed by the application program and interactive operations on the data, and a user can interact with the widget through direct manipulation (direct manipulation) to read or edit information related to the application program. Generally, a control may include a visual interface element such as an icon, button, menu, tab, text box, dialog box, status bar, navigation bar, widget, and the like. For example, in the present embodiment, the display 291 may display virtual keys (one-key layout, start layout, scene layout).
The electronic device 200 may implement a shooting function through the ISP, the camera 292, the video codec, the GPU, the display screen 293, the 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 extend the storage capability of the electronic device 200. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 221 may be used to store computer-executable program code, including 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.
Electronic device 200 may implement audio functions via audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone interface 270D, and an application processor, among other things. Such as music playing, recording, etc.
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. Audio module 270 may also be used to encode and decode audio signals. In some embodiments, audio module 270 may be disposed in processor 210, or some functional modules of audio module 270 may be disposed in processor 210.
The pressure sensor 280A is used to sense a pressure signal, which can be converted into an electrical signal. In some embodiments, pressure sensor 280A may be disposed on display screen 293. The pressure sensor 280A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on 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 apparatus 200 detects the intensity of the touch operation according to the pressure sensor 280A. The electronic apparatus 200 may also calculate the touched position from the detection signal of the pressure sensor 280A.
The keys 290 include a power-on key, a volume key, etc. The keys 290 may be mechanical keys. Or may be touch keys. The electronic apparatus 200 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 200.
The indicator 291 may be an indicator light, and may be used to indicate a charging status, a change in power, or a message, a missed call, a notification, or the like.
In addition, an operating system runs on the above components. Such as the hongmeng system, the iOS operating system, the Android open source operating system, the Windows operating system, etc. A running application may be installed on the operating system.
Fig. 3 is a block diagram of a software structure of an electronic device according to an embodiment of the present disclosure.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments of the present application, an operating system of the electronic device takes an Android system as an example, and a software architecture of the Android system is divided into four layers, which are an application layer, an application framework layer, an installation runtime (Android runtime) and 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 camera, gallery, calendar, call, map, navigation, WLAN, bluetooth, music, video, short message, etc. It should be noted that the applications included in the application layer shown in fig. 3 are only exemplary, and the application is not limited to this. It is to be understood that the application layer includes applications that do not constitute a specific limitation of the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or less applications than the applications included in the application 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 of the present application includes a gallery, which can provide a regular function of pictures and videos for the electronic device, so that users can find and use the pictures and videos in the gallery conveniently.
Illustratively, referring to FIG. 4, the gallery may include functional modules such as a base gallery, base extension, data gallery, smart gallery, search, and so on.
For example, referring to fig. 4, the function modules of the basic gallery may be used to provide various albums and interfaces for the electronic device, and the function modules of the basic gallery may include function sub-modules such as a timeline, an album, a recycle bin, and an interface management module.
Illustratively, the function submodule of the timeline provides a timeline interface for a gallery, and as shown in an embodiment of the timeline interface in fig. 9, the timeline interface 40 may include a file type column 401, a search box 402, a time point 403, and thumbnails 404 of photos or videos, where the file type column 401 is used for marking the file types of objects displayed by the thumbnails 404 in the current timeline interface 40, the search box 402 is used for providing a function of searching for files required by a user in the gallery based on keywords input by the user, the time point 403 is used for marking the generation time of each thumbnail 404 in the timeline interface 40, and the thumbnails 404 are used for briefly displaying photos or videos stored in the electronic device 200.
Illustratively, the functional sub-module of the album provides an album interface for the gallery, such as a physical album interface (e.g., a camera album interface) shown in fig. 14, the physical album interface 60 may include a file type column 601 and a thumbnail 602 showing a picture or a video, the file type column 601 is used for marking the file type of the object shown by the thumbnail 601 in the current physical album interface 60, and the thumbnail 602 is used for briefly referring to the picture or the video stored in the electronic device 200.
In order to assist in understanding the embodiments of the present application, an entity album and a virtual album are exemplarily explained, where the entity album is a folder in which a storage path of a picture and/or a video on a memory 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 memory card of the electronic device. The virtual album is a folder of a storage path of the picture and/or the video on the storage card of the electronic equipment, the virtual album does not exist on the storage card of the electronic equipment, and the picture or the video in the virtual album is only a thumbnail or a source file of the picture or the video for calling the storage path index of the picture or the video.
Illustratively, the function 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 recycle bin interface displays the photos or videos deleted by the user and temporarily stored in the recycle bin.
For example, the functional sub-module of the interface management provides a deletion button or a deletion control triggered by a user operation for the gallery, and in some embodiments, the interface management of the electronic device starts the file deletion process of the application in response to an operation trigger (for example, an operation trigger of a first operation) of the deletion button or the deletion control by the user. Wherein the interface management is further for: after a user inputs a first operation to the mobile phone to select a first video to be deleted, packaging a storage path of the first video on a memory card of the mobile phone and the AI Photo quantity of the AI photos related to the first video, and sending operation type information to data management in a data query API of a Photo data interface of an application program framework layer of the electronic equipment. In an embodiment of the present application, the operation type information is a deletion type.
Illustratively, referring to FIG. 4, the functionality of the base extension may be used to provide an interface for editing capabilities of pictures or videos, an interface for categorizing capabilities of pictures or videos, and an interface for multi-channel launch capabilities for a gallery. In some embodiments, the basic extended functional modules include functional sub-modules such as picture editing, video editing portals, place albums, and desktop widgets.
Illustratively, the functional sub-module for picture editing provides an interface for the gallery of picture editing capability, and in some embodiments, the interface for picture editing capability includes interface controls such as picture rotation, picture trimming, picture adding filter, picture blurring, picture skin beautifying, picture adding mosaic, picture adding graffiti, picture adding watermark, and the like.
For example, the functional sub-module of the video editing portal provides an interface of video editing capability for the gallery, and in some embodiments, the interface of video editing capability includes interface controls such as video subtitle adding, video cutting, video playing speed adjusting, video modifying or adding background music, and the like.
For example, the function sub-module of the place album provides an interface for the gallery to classify the pictures or videos based on the shooting positions of the pictures or videos, and in some embodiments, the function sub-module of the place album includes an interface control for extracting the shooting position of the pictures or videos in the gallery and classifying the pictures or videos.
Illustratively, 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 a 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. For example, a widget is a widget displayed on a desktop interface of an electronic device, and a user may open an application interface pre-associated with the widget by clicking the widget, for example, an interface of a widget-associated gallery, and the user may start the gallery and display the interface of the gallery by clicking the widget on the desktop of the electronic device. 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 call 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 week, time division information, and the like. The weather widget 302 may be used to indicate a weather type, such as cloudy sunny, light rain, and so forth. The gallery widget 303 may be used to quickly launch a gallery and display the gallery's interface. The status bar 304 may include the name of the operator (e.g., china mobile), time, signal strength, and current remaining power. The call application icon 305 is used for the user to click and start a call application, and the call application is used for the user to dial, check missed calls, and the like. The contact application icon 306 is used for the user to click and start a contact application, and the contact application is used for the user to add, edit and the like contacts. The gallery application icon 307 is used for the user to click and open a gallery for the user to collectively view and edit pictures and videos stored in the electronic device.
For example, referring to fig. 4, functional modules of the data gallery can be used to provide an interface of data synchronization service between the local end and the cloud end for the gallery. In some embodiments, the functional modules of the database gallery include functional submodules such as end cloud synchronization, shared photo album and clone.
For example, the function sub-module of the end cloud synchronization provides an interface control for the gallery to provide the capability of uploading the picture or the video to the cloud end of the local electronic device, and provides an interface control for the gallery to provide the capability of downloading the picture or the video from the cloud end of the local electronic device.
Illustratively, the function sub-module of the shared album provides an interface with a function of a cloud shared album for the gallery, and in some embodiments, the cloud shared album has a plurality of album member electronic devices; the plurality of album member electronic devices can upload pictures or videos to the cloud side shared album through the interface control provided by the function sub-module of the shared album, or the plurality of album member electronic devices can download the pictures or videos from the cloud side shared album through the interface control provided by the function sub-module of the shared album.
Illustratively, the cloned function sub-module provides an interface for a gallery to clone the local gallery data of the electronic equipment to the new electronic equipment, and provides an interface control of the file migration capability of pictures and videos for the gallery of the electronic equipment.
For example, referring to fig. 4, the functional modules of the smart gallery may be used to provide an interface for the gallery with the ability to classify pictures or videos based on a predetermined algorithm. In some embodiments, the functional modules of the intelligent gallery include functional sub-modules such as highlight, essence, transaction classification and portrait analysis.
Illustratively, the function sub-module of the highlight moment provides an interface for the gallery to clip pictures from videos or pictures of the gallery for continuous playing based on a preset first algorithm. In some embodiments, the user plays on a weekend, takes a number of interesting photos, the fun-time function sub-module provides an interface control for the gallery, and in response to the user triggering the interface control, the electronic device clips a portion of the photos taken on the weekend based on a preset algorithm and plays the photos continuously in the interface of the gallery.
Illustratively, the function sub-module of the essence fragment provides an interface for the gallery to extract pictures from the video or pictures of the gallery to form the essence fragment based on a preset second algorithm. In some embodiments, a plurality of essence segments are continuously played to form a wonderful moment.
Illustratively, the functional sub-module for transaction classification provides an interface for the gallery to extract pictures or videos of different transaction types from the videos or pictures of the gallery based on a preset third algorithm. In some embodiments, the preset third algorithm may classify the transaction type of the picture or video as landscape, night view, document, etc.
Illustratively, the functional sub-module for portrait analysis provides an interface for the gallery to extract a picture or video containing the portrait from the videos or pictures of the gallery based on a preset fourth algorithm.
For example, referring to fig. 4, the searching function module may be used to provide an interface for image retrieval for a gallery. In some embodiments, the searching functional module comprises functional sub-modules such as picture retrieval and voice retrieval.
Illustratively, the function sub-module of picture retrieval provides an interface for the gallery to retrieve the picture that the user wants to find based on the keywords. In some embodiments, the functional sub-module for picture retrieval may provide an interface control for a search box in an interface of the gallery.
Illustratively, the function sub-module of voice retrieval provides an interface for retrieving a picture or a video which a user wants to find based on voice for the gallery. In some embodiments, the functional sub-module of speech retrieval may provide an interface control of a search box in the interface of the gallery, in which text recognized based on user input speech is automatically written.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program 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 phone manager, a resource manager, a notification manager, a view system, a distributed query system, a Photo database interface, and the like.
In some embodiments, referring to fig. 4, the distributed query interface provides the gallery with the ability for accounts of the same gallery to log on to multiple electronic devices, and for pictures and videos to be synchronized in 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 account number of the same gallery is supported by the local electronic equipment on hardware and software to log in the plurality of electronic equipment, and the pictures and videos are synchronized in the galleries of the plurality of electronic equipment. The service query API provides the gallery with the following capabilities: the method comprises the steps that data synchronization service calling logic, account number verification, data synchronization service opening and closing, data inquiry, data loading, data displaying and the like are carried out on the pictures and the videos among a plurality of electronic devices after the data synchronization service is opened.
In some embodiments, referring to FIG. 4, a photo data interface provides gallery capabilities for data editing, data decoding, data querying, rights management, data searching, and the like. Illustratively, the Photo data interface includes a video editing API, a self-research 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 video editing capabilities for the gallery, which in some embodiments include video subtitling, video cropping, video playback speed adjustment, video modification or adding background music, and the like.
For example, the self-research picture format editing API provides editing capabilities for a picture format for a gallery, and in some embodiments, the self-research picture format editing API may adjust or set the format of a picture (e.g., a photograph) 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 mosaic, picture adding graffiti, picture adding watermarks, and so forth.
Illustratively, the display soft engine API provides video decoding capability and/or picture decoding capability for the gallery to enable the gallery to play video and display pictures.
Illustratively, the data query API provides gallery data query capability and data loading capability for pictures and videos. In some embodiments, the data query API includes functional modules for data management one, data management two, deletion management one, and deletion management two.
The method comprises the steps that a first data management unit 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 a second data management unit sends a query request for querying a first deletion prompt box parameter to a first deletion management unit and a query request for querying a second deletion prompt box parameter to a second deletion management unit. In some embodiments, the first deletion prompt box parameter includes description information of whether the first video is synchronously stored in a cloud of the electronic device or in other devices outside the electronic device, and the second deletion prompt box parameter includes description information of whether the first video is a multiple data record class. And after the deletion management I receives a query request sent by the data management I, monitoring the click operation of a user based on a preset monitoring callback function, determining a first deletion prompt box parameter, and then returning the first deletion prompt box parameter to the data management I by the deletion management I. And after the second deletion management receives the query request sent by the first data management, monitoring the click operation of the user based on a preset monitoring callback function, determining a second deletion prompt box parameter, and then returning the second deletion prompt box parameter to the first deletion management.
And the data management unit is used for setting an album filtering type according to the first deletion prompt box parameter and the second deletion prompt box parameter, and starting a listener and a plurality of listeners of a data updating API of a Photo data interface of an application framework layer of the electronic equipment. And the first data management unit acquires a prompt title of a deletion prompt box of a large picture scene of the picture library, notifies the deletion management unit and pops up the deletion prompt box and updates the prompt title to the deletion prompt box. And then deleting the interface of the second management system for setting the deletion prompt box, and then deleting the prompt title of the second management system for refreshing the deletion prompt box according to the number of the AI photos. And the second data management step updates the database of the gallery and initiates the media scanning of the gallery.
For example, the data update API provides database update flow and processing logic for the gallery after the picture and/or video is edited, and provides the gallery with the ability to expose the picture and/or video after being edited. In some embodiments, the data update API includes function modules for listeners, multiple-way listeners, menu operations, data processing, and multiple-way management.
After the deletion management II of the data query API of the software framework layer of the electronic equipment refreshes the prompt title of the deletion prompt box according to the number of the AI photos, a listener of the data update API of the software framework layer of the electronic equipment monitors the user operation induced by the deletion prompt box.
In some embodiments, when the listener monitors a second operation of clicking all deletion by the user, 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 the gallery as a file-waiting-to-delete parameter, the listener deletes the first video and the AI photo at the same time, and then the listener manages a data management submitting an execution notification of an AI photo deletion task to a data query API of a software framework layer of the electronic device. And the data management module is used for constructing a deletion task according to the deletion parameters of the first video, and then sending the deletion task to a menu operation of a data updating API of a software framework layer of the electronic equipment, wherein the deletion parameters comprise the association information and deletion selection of the AI photo and the AI video of the first video.
Illustratively, after receiving a delete task sent by data management, the menu operation transfers the AI video which is actually stored in the database of the gallery (the AI video has a storage path of a memory card in a mobile phone) and is deleted to be transferred to the recycle bin of the gallery together with the AI photos according to the association information of the AI video and the delete selection. And the menu operation directly clears the associated information which is not really stored in the database of the gallery (the AI video is not stored in the storage path of the memory card of the mobile phone) or the deleted AI video selected as the completely deleted AI video.
Illustratively, the menu operation notifies the data processing to execute the logical process of file movement after receiving a delete task sent by the data management. The data processing moves the AI picture and the AI video in the storage container to a recycle bin of the gallery after receiving the notification sent by the menu operation. And 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 second management module and the second data management module. And the second data management step updates the database of the gallery and initiates the media scanning of the gallery.
Illustratively, data processing of a data update API of a software framework layer of the electronic device informs the multitudes listener AI of the completion of the photo deletion task. And after receiving the notification of finishing the AI photo deleting task, the multi-recorder monitor submits the first video deleting task to the menu operation. And after the menu operation receives the first video deleting task, executing a first video deleting process. In some embodiments, the first video deletion process may refer to: the listener monitors the flow of deleting only the first video by the user, for example, step S102 to step 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 monitors a third operation of only deleting the first video when the user clicks, the listener encapsulates a storage path of the first video and a to-be-deleted file parameter of the associated information of the first video, the listener sets only deleting the first video, and then the listener submits an execution notification of a first video deletion task to a data management of a data query API of a software framework layer of the electronic device. And the data management module is used for constructing a deletion task according to the deletion parameters of the first video, and then sending the deletion task to the menu operation of a data updating API of a software framework layer of the electronic equipment, wherein the deletion parameters comprise the association information and the deletion selection of the AI video of the first video.
Illustratively, after receiving a delete task sent by data management, the menu operation transfers the AI video which is actually stored in the database of the gallery (the AI video has a storage path of a memory card of a mobile phone) and is selected to be transferred to the recycle bin of the gallery to a storage container for recording a plurality of first videos according to the associated information of the AI video and the delete selection. And the menu operation directly clears the associated information which is not really stored in the database of the gallery (the AI video is not stored in the storage path of the memory card of the mobile phone) or the deleted selected AI video is completely deleted.
Illustratively, the menu operation informs the data processing to perform logical processing of the file movement. 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 the capabilities of authority management, device master-slave relationship management, login management and the like for logging in a gallery account of multiple electronic devices.
For example, the search API provides the gallery with picture and/or video retrieval logic and capabilities based on preset dimension keys, which in some embodiments include time of capture, place of capture, file tags, and the like. The preset dimension keywords come 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, together with the video editing API, the self-developed picture format editing API, the picture editing API, and the display soft engine API in the distributed query interface and Photo data interface of the application framework layer, build a base gallery subsystem.
In some embodiments, referring to FIG. 4, the data gallery of the application layer, together 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, build a data gallery subsystem.
In some embodiments, referring to FIG. 4, the intelligent gallery and search of the gallery at the application layer, together with the search API in the Photo data interface at the application framework layer, build an intelligent gallery subsystem.
The basic gallery subsystem supports basic functions of data processing of the basic gallery and the functional sub-modules of the basic extension 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 equipment management and the like for the basic gallery subsystem and the intelligent gallery subsystem. Illustratively, the intelligent gallery subsystem provides a gallery with intelligent gallery services beyond the basic services of the basic gallery subsystem, so as to meet the diversified use requirements of users for the gallery.
Further, in some embodiments, with reference 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 equipment, judge whether a status bar exists on the display screen of the electronic equipment, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications in the electronic device. The data may include video, images, audio, calls made and answered, browsing history and bookmarks, phone books, 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, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device. Such as management of call status (including on, off, etc.).
The resource manager provides various resources, such as localized strings, icons, pictures, layout files, video files, and the like, for applications in the electronic device.
The notification manager enables applications in the electronic device to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, 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, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. And the android runtime is responsible for the skip reading and management of the android system. The core library comprises 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 layer and the application framework layer as binary files. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: 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 provide a fusion of the 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, and still image files, among others. The media library may support a variety of audio-video encoding formats such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. In some embodiments, the media library includes MediaLibrary and MediaProvider, the MediaLibrary provides a function for querying a data query API of a Photo data interface of the gallery to filter data meeting requirements; the MediaProvider provides the functions of initiating media scanning and updating the database for a data updating API of a Photo data interface of the gallery.
The two-dimensional graph engine is used for realizing two-dimensional graph drawing, image rendering, composition, layer processing and the like;
the three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, composition, 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, a microphone, a processor, and a memory, among other devices.
Although the Android system is taken as an example for description in the embodiment of the present application, the basic principle is also applicable to electronic devices based on operating systems such as hongmeng, iOS, and Windows.
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 intended to limit the present embodiment.
The following describes the whole file deletion process in detail with reference to the sequence diagram of interaction of functional modules in the electronic device shown in fig. 5.
Referring to fig. 5, an embodiment of the file deletion method of the present application specifically includes:
step S1, interface management detects the operation of clicking to delete the first video.
Illustratively, the electronic device takes a mobile phone as an example, and hardware of the mobile phone participating in the file deletion method embodiment of the present application includes: the software functional modules of the display screen and the mobile phone participating in the file deletion method embodiment of the application comprise: the method comprises the following steps of interface management of a basic gallery of a mobile phone application program layer, first data management, first deletion management, second deletion management and second data management of a data query API of a Photo data interface of an application framework layer, and a monitor, a monitor for monitoring more than one record, menu operation, data processing and management for monitoring more than one record of a data update API of the Photo data interface of the application framework layer. Illustratively, the interface management detects a user click to delete a first video.
In some embodiments, the user may operate the switch keys of the cell phone to illuminate the display of the cell phone, which may display a desktop interface 30 as shown in fig. 7 or fig. 8. In FIG. 7, desktop interface 30 of cell phone 200 may include a calendar widget 301, a weather widget 302, a gallery widget 303, a status bar 304, a call 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 week, time division information, and the like. The weather widget 302 may be used to indicate a weather type, such as cloudy-to-sunny, light rain, and so forth. The gallery widget 303 may be used to interface with a gallery at a quick start and display. The status bar 304 may include the name of the operator (e.g., china mobile), time, signal strength, and current remaining power. The call application icon 305 is used for the user to click and start a call application, and the call application is used for the user to dial a call, check a missed call, and the like. The contact application icon 306 is used for the user to click and start a contact application, and the contact application is used for the user to add, edit contacts and the like. The gallery application icon 307 is used for the user to click and launch a gallery for the user to collectively view and edit pictures and videos stored in the electronic device.
Illustratively, referring to fig. 7, when the user views the desktop interface 30 of the mobile phone 200, the user clicks or triggers the gallery widget 303, and the mobile phone rapidly opens the gallery of the mobile phone to display the gallery interface on the display screen of the mobile phone in response to the user operation. For example, the user clicks a gallery widget on the desktop interface of the mobile phone, the mobile phone displays a timeline interface of the gallery or the mobile 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 to open the gallery of the mobile phone to display the gallery interface on the display screen of the mobile phone, for example, the user clicks the gallery application icon 307 of the desktop interface of the mobile phone, the mobile phone displays the timeline interface of the gallery or the album list interface of the gallery displayed by the mobile phone.
In some possible implementations, the timeline interface may refer to fig. 9a, the timeline interface 40 of the gallery may include a file type column 401, a search box 402, a time point 403, and a thumbnail 404 of a photo or video, the file type column 401 is used for marking the file type shown by the thumbnail 404 in the current timeline interface 40, the search box 402 is used for searching for a user-desired file in the gallery based on a keyword input by the user, the time point 403 is used for marking the generation time of each thumbnail 404 in the timeline interface 40, and the thumbnail 404 is used for briefly referring to a photo (i.e., a picture) or a video stored in the electronic device 200. Illustratively, after the mobile phone displays the timeline interface, the user clicks the thumbnail in the timeline interface, and the mobile phone displays the large-image viewing interface of the gallery.
In some possible implementations, the album list interface may refer to fig. 9b, the album list interface 20 is used to display each physical album and virtual album in the mobile phone, the album list interface 20 includes thumbnails 201 and album names 202 of files in the album, each thumbnail 201 is used to briefly refer to a certain picture or video in this album, the album name 202 is used to identify different albums, for example, all photo albums with album name 202 being "all photos", all video albums with album name 202 being "all videos", camera album with album name 202 being "camera", and recycle bin album with album name 202 being "recycle bin" (i.e., recycle bin of gallery), all photo albums and all video albums are physical albums, and camera album and recycle bin are physical albums. Illustratively, after the mobile phone displays the album list interface, the user clicks the thumbnail in the album list interface, and the mobile phone displays the grid interface of the gallery. In some embodiments, the grid interfaces of the gallery include a physical album interface, a virtual album interface.
For example, in some scenarios of the physical album interface, the physical album is a camera album, referring to fig. 14, the physical album interface 60 displays photos and videos in the album in a centralized manner in a thumbnail grid display manner, the physical album interface 60 may include a file type column 601 and thumbnails 602 for displaying the photos or videos, the file type column 601 is used to mark a file type displayed by the thumbnails 602 in the current physical album interface 60, for example, the file type column 601 in fig. 14 is an album, and indicates that files in the current album are photos and videos shot by a mobile phone. The thumbnail 602 is used to briefly refer to a photograph (i.e., picture) or video stored in the electronic device 200.
Illustratively, in some scenarios of the virtual album interface, the virtual album is an all-video album, referring to fig. 19, the virtual album interface 70 collectively displays all videos stored in the mobile phone 200 in a row by two thumbnails, the virtual album interface 70 includes a file type column 701, thumbnails 702 of videos, and an operation control 703, the file type column 701 is used to mark a file type displayed by the thumbnails 702 in the current virtual album interface 70, for example, the file type column 601 in fig. 19 is an all-video, which indicates that a file in the current album is an all-video stored by the mobile phone. The thumbnails 702 are used to briefly refer to all videos stored in the electronic device 200, each thumbnail 702 may show a main image frame and a video duration of the video, and the video duration is marked at the lower left of the thumbnail 702, for example, the main image frame of the first row of left thumbnails 702 on the virtual album interface 70 is a six-pointed star and the video duration is 1 minute, and for example, the main image frame of the second row of right thumbnails 703 on the virtual album interface 70 is a five-pointed star and the video duration is 1 minute and 30 seconds. The operating controls 703 are laid out at the bottom of the virtual album interface 70, the operating controls 703 provide different operating functions for the user on the video associated with the thumbnail 702, and the operating controls 703 may include a sharing control, a collection control, an editing control, a deletion control, and more controls. For example, when a user clicks the sharing control, the video associated with the selected thumbnail 703 can be shared into applications such as WeChat, circle of friends, bluetooth, cloud disk, and the like; the user clicks the favorite control to copy or move the video associated with the selected thumbnail 703 to a favorite folder of the gallery; the user can clip the video associated with the selected thumbnail 703 and adjust the playing speed by clicking the editing control; the user clicks the deletion control to delete the video associated with the selected thumbnail 703; clicking on more controls by the user may pull down and view alternative controls (e.g., detailed information controls, movement controls, etc.) of the gallery.
After the cell phone starts the gallery, in some optional embodiments, the cell phone displays a timeline interface in response to a first operation by the user, and referring to fig. 9a, the user clicks and views the file associated with the left thumbnail 404 at the time point of 1 month 10 days 2022, and the cell phone displays the large map viewing interface 50 as shown in fig. 10. Referring to fig. 10, the large drawing viewing interface 50 includes a return control 501, a large drawing viewing frame 502 in which a user has selected a video, a video play/pause control 503, a played time point 504, a video total length 505, a play progress bar 506, an indication mark 507, an AI video thumbnail 508, an AI photo thumbnail 509, an operation control 510, and a generation time mark 511. The user may exit the large-view viewing interface 50 by clicking on the return control 501. The large view viewing box 502 is used for displaying the first video selected by the user in a preset large-size area. A video play/pause control 503 provides the user with control over the playing and pausing of the video presented in the thumbnail view box 502. The played time point 504, the total video time 505 and the playing progress bar 506 respectively mark the playing progress of the first video, and the played time length, the total first video time and the playing progress of the first video, which are shown in the user marked big picture viewing box 502. Illustratively, the thumbnail list of the AI video and the AI photo of the currently displayed first video, which includes the AI video thumbnail 508 and the AI photo thumbnail 509, is included in the large map viewing interface 50 below the large map viewing box 502, and the operation control 510. The indication mark 507 is used to indicate the position of the currently displayed file in the large map viewing frame 502 in the thumbnail list in the large map viewing interface 50, the AI video thumbnail 508 is used to briefly display the AI video (i.e., highlight short video) of the first video currently displayed in the large map viewing frame 502, and the AI photo thumbnail 509 briefly displays the AI photo (i.e., highlight moment photo) of the first video currently displayed in the large map viewing frame 502.
Illustratively, referring to fig. 10, the operation controls 510 of the large drawing viewing interface 50 are laid out at the bottom of the large drawing viewing interface 50, the operation controls 510 provide different operation functions for the user on the first video displayed in the large drawing viewing frame 502, and the operation controls 510 include a sharing control, a collecting control, an editing control, a deleting control and more controls. The user clicks the sharing control to share the first video displayed by the big picture viewing frame 502 into APPs such as WeChat, a friend circle, bluetooth, a cloud disk and the like; the user clicks the favorite control to copy or move the first video displayed by the large image viewing box 502 into a preset favorite folder; the user clicks the edit control to perform editing operations such as editing and adjusting the playing speed on the first video displayed in the large-image viewing box 502; the user clicks the delete control to delete the first video displayed in the large-image viewing box 502; clicking on more controls by the user may pull down and view alternative controls (e.g., detailed information controls, movement controls, etc.) of the gallery. The generation time stamp 511 is used to mark the shooting and production time points of the video presented by the large chart view box 502.
Illustratively, in a scenario where a mobile phone displays a timeline interface, referring to fig. 10, the mobile phone responds to a user operation (e.g., a first operation) and displays a large graph viewing interface 50 based on a first video, a functional module of interface management of a basic gallery of an application layer of the mobile phone detects a trigger condition of an operation control 510 in the large graph viewing interface 50, and after the user clicks a delete control in the operation controls 510 in the large graph viewing interface 50, the interface management detects that the operation of clicking to delete the first video is performed.
After the cell phone starts the gallery, in some optional embodiments, the cell phone displays an album list interface in response to a user operation (e.g., the first operation), and referring to fig. 9b, for example, the user clicks and views the thumbnail 201 with the album name 202 being "camera album" in the album list interface 20, and the cell phone starts the camera album and displays the physical album interface of the camera album. Referring to fig. 14, the entity album interface 60 displays photos and videos in a 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, the new viewing control 603 at the upper left corner of each thumbnail 602, the new selecting control 604 at the lower right corner, and the operation control 604 at the bottom of the entity album interface 60 are added. The view control 603 is used to display a picture or video associated with the view control 603 in the form of a large-format view interface after the user clicks or triggers. The check control 604 is used to provide the user with a selection of files (e.g., pictures or videos) to be processed. Operational controls 604 are laid out at the bottom of the entity album interface 60, the operational controls 604 provide different operational functionality for the user with respect to the video associated with the thumbnail 602, and the operational controls 604 may include a share control, a favorite control, an edit control, a delete control, and more controls. For example, when a user clicks the sharing control, the video associated with the selected thumbnail 602 may be shared into an application program such as WeChat, circle of friends, bluetooth, cloud disk, and the like; the user clicking the favorite control can copy or move the video associated with the selected thumbnail 602 to a favorite folder of the gallery; the user clicks the editing control to perform operations such as clipping and adjusting the playing speed on the video associated with the selected thumbnail 602; the user clicks the deletion control to delete the video associated with the selected thumbnail 602; clicking on more controls by the user may pull down and view alternative controls (e.g., detailed information controls, move controls, etc.) of the gallery.
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 interface management function module of the basic gallery in the application layer of the mobile phone detects the trigger condition of the operation control 604 in the entity album interface 60, and when the user clicks the delete control in the operation control 604 in the entity album interface 60, the interface management detects that the first operation of clicking to delete the first video is performed. For example, after the mobile phone detects that the user operates the viewing control 603 and displays the first video on the large-image viewing interface 50, the description is specifically given with reference to the related embodiment of the first operation of clicking to delete the first video in the scene of the large-image viewing interface 50 by interface management detection, and details are not repeated here.
After the cell phone starts the gallery, in some optional embodiments, the cell phone displays an album list interface in response to a user operation (e.g., the first operation), and referring to fig. 9b, the cell phone illustratively clicks and views the thumbnail 201 with the album name 202 "all videos" in the album list interface 20, and the cell 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 column 701, a thumbnail 702 of a video, and an operation control 703. Illustratively, referring to fig. 20, the virtual album interface 70 displays videos in all video albums in a grid form, and when the mobile phone detects that the user presses the thumbnails 702 in the virtual album interface 70 for a long time, a pointing control 704 is added to the lower right corner of each thumbnail 702. The check control 704 is used to provide the user with a check for the video to be processed.
For example, after detecting that the user operates the check control 704 of the virtual album interface 70 to select the first video, referring to fig. 20, the functional module of the interface management of the basic gallery in the application layer of the mobile phone detects the trigger condition of the operation control 703 in the virtual album interface 70, and when the user clicks the delete control in the operation control 703 in the virtual album interface 70, the interface management detects that the first operation of deleting the first video is clicked.
Illustratively, fig. 24 is a schematic flow chart of the execution logic of the file deletion method of the present application, where the step of deleting by user click in fig. 24 corresponds to step S1, and the above analysis and expansion of the operation of step S1 are also applicable to fig. 24.
And S2, interface management packaging the data to be deleted.
The interface management of the basic gallery of the application layer of the mobile phone encapsulates the data to be deleted in response to the operation of deleting the first video, and illustratively, the data to be deleted includes a storage path of the first video on the memory card of the mobile phone and the number of AI photos of the AI photos associated with the first video.
For better understanding of the embodiments of the present application, the first video, the AI photograph, and the AI video are explained. Illustratively, the first video refers to: after the mobile phone opens the gallery based on the operation of the user and displays the interface of the gallery, the user selects and determines the deleted video. Illustratively, AI photos refer to: the method comprises the steps that a functional submodule of an essence fragment of an intelligent gallery of an application program layer of the mobile phone and a search API of a Photo data interface of an application framework layer of the mobile phone extract a picture from a first video of the gallery based on a preset second algorithm, and the AI picture is an image frame which meets the requirement of the preset second algorithm in the first video. Illustratively, AI video refers to: the short video is composed of a wonderful moment functional submodule of an intelligent gallery of an application program layer of the mobile phone and a search API of a Photo data interface of an application framework layer of the mobile phone, and pictures extracted from a first video of the gallery based on a preset first algorithm. In some embodiments, the AI video is a clip of part 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 mobile phone, 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 mobile phone.
Illustratively, fig. 24 is a schematic flow chart of the execution logic of the file deletion method of the present application, the step of encapsulating the deletion data in fig. 24 corresponds to step S2, and the above analysis and expansion of the operation of step S2 are also applicable to fig. 24.
And S3, sending the operation type information to the data management by the interface management.
In some possible embodiments, interface management of a basic gallery of an application layer of a mobile phone is in response to a user operating an operation control of a large-picture viewing interface, an operation control of an entity album interface or an operation control of a virtual album interface, and the interface management determines operation type information of the gallery of the mobile phone on a first video. Based on the above related embodiment of step S101, when the user clicks the delete control, the interface management determines that the operation type information of the first video is the 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 of 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 deletion operation. Illustratively, the interface management synchronization sends the encapsulated data to be deleted to the data management one.
And S4, inquiring a first deletion prompt box parameter to a deletion management vector by the data management vector.
After a first data management module 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, a second data management module determines to delete the operation type of the first video. The data management sends a query request for querying the parameter of the first deletion prompt box to the deletion management in the data query API of the Photo data interface of the application program framework layer of the mobile phone.
Illustratively, 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 except the mobile phone. And after receiving a query request sent by the data management I, the deletion management I monitors the click operation of a user based on a preset monitoring callback function, determines a first deletion prompt box parameter, and then feeds back the first deletion prompt box parameter to the data management I. Illustratively, a deletion management module displays and selects a first selection control about whether a first video is stored in a cloud on an interface of a mobile phone, monitors the first selection control based on a preset monitoring callback function, senses which first selection control is clicked by a user, and determines a first deletion prompt box parameter.
And S5, inquiring parameters of a second deletion prompt box from the first deletion management step to the second deletion management step by the data management step.
After a first data management module 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, a second data management module determines to delete the operation type of the first video. And the data management sends a query request for querying parameters of a second deletion prompt box to a deletion management unit in a data query API of a Photo data interface of an application program framework layer of the mobile phone.
Illustratively, the second deletion prompt box parameter includes description information of whether the first video is a multiple data record class. And after receiving the query request sent by the first data management, the second deletion management module monitors the click operation of the user based on a preset monitoring callback function, determines a second deletion prompt box parameter, and then feeds back the second deletion prompt box parameter to the first data management module through the second deletion management module. Illustratively, a second deletion management step of displaying and selecting a second selection control about whether the first video is a data type with multiple records or not on an interface of the mobile phone, monitoring the second selection control based on a preset monitoring callback function, sensing which second selection control is clicked by the user, and determining a second deletion prompt box parameter. Illustratively, after a camera of the mobile phone records a video, an intelligent gallery subsystem of a gallery of the mobile phone synchronously generates an AI video and/or an AI photo of the recorded video, the recorded video is a category of a plurality of data, and the deletion management module can analyze the first video and determine a second deletion prompt box parameter.
And S6, sending the AI photo quantity to the second deletion management unit by the data management unit.
After a first data management Application Program Interface (API) of a Photo data interface of an application program framework layer of the mobile phone receives operation type information sent by interface management, a second data management process sends the number of AI photos of a first video to a second deletion management process. Illustratively, the data management module may manage the number of AI photos taken of the first video from an interface of an underlying gallery at an application layer of the handset.
And S7, setting the album filtering type according to the first deletion prompt frame parameter and the second deletion prompt frame parameter by the first data management unit, and starting the monitor and the monitor with one record and more records.
After a first data management in a data query API of a Photo data interface of an application program framework layer of the mobile phone obtains a first deletion prompt box parameter and a second deletion prompt box parameter, a second data management sets an album filtering type of the first video according to the first deletion prompt box parameter and the second deletion prompt box parameter. In some optional embodiments, if the first deletion prompt box parameter indicates that the first video is stored in the cloud and the other device synchronously, the album filtering type includes deletion from the cloud and the other device at the same time; and if the second deletion prompt box parameter indicates that the first video is a multiple data category, the album filtering type comprises the step of deleting the first video and the AI photo of the first video at the same time. Illustratively, the data management system synchronously starts a listener and a multi-recorder listener in a data updating API of a Photo data interface of an application framework layer of the mobile phone.
And S8, managing the data to acquire a prompt title of the deletion prompt box of the large map scene.
Illustratively, data management in a data query API of a Photo data interface of an application framework layer of the mobile phone acquires the text content of a prompt title of a prompt box in a scene of a large-image viewing interface of an image library of the mobile phone. For example, the text content of the prompt title may be preset in the mobile phone, and the user may also edit the text content of the prompt title, for example, the text content of the prompt title of the delete prompt box is "whether to delete the video and the N wonderful transient photos generated by smart multi-shot? ", N is the AI picture number of the AI picture of the first video. In some embodiments, the data management sends a prompt title of the delete prompt box to a delete management two in a data query API of a Photo data interface of an application framework layer of the mobile phone.
In addition, for example, the prompt title of the deletion prompt box of the large-picture scene (namely, the gallery of the mobile phone is in the scene of the large-picture viewing interface) 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, under the physical album interface or the virtual album interface, the text content of the prompt title of the delete prompt box may also be "whether to delete the video and the N wonderful moment photos generated by smart multi-shot? ".
And S9, informing the deletion management of the first data management unit and popping up a deletion prompt box and updating the prompt title to the deletion prompt box.
For example, in the data query API of the Photo data interface of the application framework layer of the mobile phone, the first data management module notifies the second deletion management module to pop up a deletion prompt box and update a prompt title to the deletion prompt box.
And step S10, deleting the interface of the second management setting deletion prompt box.
Illustratively, after receiving a notification of data management I, deleting the default setting or user setting of a graphic library of the mobile phone according to the deletion management II in a data query API of a Photo data interface of an application program framework layer of the mobile phone, and setting the style, text font and text interval of a deletion prompt box; setting a subtitle and pop-up button content according to the filtering type of the album, wherein the subtitle is used for prompting a user whether to synchronously delete the 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 pop-up button contents prompt the user to select different deletion types and cancel deletions, including, for example, "delete this video only", "delete all", and "cancel". And then, the second deletion management unit completes the setting of the interface of the deletion prompt box and pops up the deletion prompt box on the display screen of the mobile phone.
Illustratively, fig. 24 is a schematic flow chart of the execution logic of the file deletion method of the present application, and the step of setting the deletion dialog (i.e., the deletion prompt box) in fig. 24 corresponds to step S3 to step S10, and the above analysis and expansion regarding step S3 to step S10 are also applicable to fig. 24.
And step S11, the second deletion management unit refreshes the prompt title of the deletion prompt box according to the number of the AI photos.
Illustratively, after the interface of the deletion prompt box is set, the deletion management module refreshes the number of the AI photos of the first video to the prompt title of the deletion prompt box. For example, the number of AI photos is 3, and the title of the reminder managing the two-refresh deletion cue box is "whether to delete this video and 3 highlight instantaneous photos generated by smart multi-shot? ".
Specifically, in some possible embodiments, referring to fig. 11, a deletion prompt box 520 pops up at the bottom of the large image viewing 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, the suggestive text content of the end cloud synchronization control 522 is a subtitle, and the suggestive text content of the deletion control 523 is a pop-up button content. The prompt header 521 is used to prompt the user whether to delete the first video and the AI photo at the same time, and prompt the user to delete the number of AI photos of the AI photo synchronously, and the text content of an optional implementation of the prompt header 521 is "whether to delete the video and N wonderful instantaneous photos generated by smart multi-shooting? ", N is the number of AI pictures of the AI picture associated with the first video (i.e., the highlight picture). The end cloud synchronization control 522 is used for prompting a user whether to synchronously delete the first video from the cloud end paired with the mobile phone and the backup of other synchronous devices, in an implementation manner, the end cloud synchronization control 522 may be composed of a hooking control and a subtitle, the hooking control is used for a user to click to determine whether to trigger the end cloud to synchronously delete the first video, and the subtitle is used for prompting the meaning of cloud synchronization of the user end, for example, the subtitle may be "deleted from the cloud and all synchronous devices at the same time". The delete control 523 is used for the user to select further refined delete operations, for example, the delete control 523 may include a delete only video control, a delete all control, and a cancel control. When the user clicks the video only deleting control, the data management module knows that the user only needs to delete the first video; if the user clicks all the deletion controls, the data management module knows that the user needs to delete the first video and the AI photo at the same time; and if the user clicks to cancel, deleting the second cancel deletion prompt box 520, and returning to the previous operation interface.
Specifically, in some possible embodiments, referring to fig. 16, a deletion prompt box 610 pops 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, the suggestive text content of the end cloud synchronization control 612 is a subtitle, and the suggestive text content of the deletion control 613 is a pop-up button content. The prompt header 611 is used to prompt the user whether to delete the first video and the AI photos at the same time, and prompt the user to delete the number of the AI photos synchronously, and the text content of an optional implementation manner of the prompt header 611 is "whether to delete the video and N highlight instantaneous photos generated by intelligent multi-shooting? ", N is the number of AI photos of the AI photo associated with the first video (i.e., the highlight moment photo). The cloud synchronization control 612 is used for prompting a user whether to synchronously delete the first video from the cloud end paired with the mobile phone and the backup of other synchronous devices, in an implementation manner, the cloud synchronization control 612 may be composed of a check control and a subtitle, the check control is used for the user to click to determine whether to trigger the cloud synchronization deletion of the first video at the end, and the subtitle is used for prompting the meaning of the cloud synchronization at the user end, for example, the subtitle may be "deleted from the cloud and all synchronous devices at the same time". 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. When the user clicks the video only deleting control, the data management module knows that the user only needs to delete the first video; when the user clicks all the deletion controls, the data management module knows that the user needs to delete the first video and the AI photo at the same time; and if the user clicks to cancel, deleting the second cancel deletion prompt box 610, and returning to the previous operation interface.
Specifically, in some possible embodiments, referring to fig. 21, a deletion prompt box 710 pops 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, a terminal cloud synchronization control 712, and a deletion control 713, and the suggestive text content of the terminal cloud synchronization control 712 is a subtitle, and the suggestive text content of the deletion control 713 is a pop-up button content. The prompt header 711 is used to prompt the user whether to delete the first video and the AI photos at the same time, and prompt the user to delete the number of the AI photos synchronously, and the text content of the prompt header 711 in an optional implementation manner is "whether to delete the video and N highlight instantaneous photos generated by intelligent multi-shooting? ", N is the number of AI pictures of the AI picture associated with the first video (i.e., the highlight picture). The end cloud synchronization control 712 is used to prompt a user whether to synchronously delete the backup of the first video at the cloud end paired with the mobile phone and other synchronous devices, in an implementation manner, the end cloud synchronization control 712 may be composed of a check control and a subtitle, the check control is used for a user to click to determine whether to trigger the end cloud to synchronously delete the first video, and the subtitle is used to prompt a user end to have a meaning of cloud synchronization, for example, the subtitle may be "deleted from the cloud and all synchronous devices at the same time". A delete control 713 is used for the user to select further refined delete operations, for example, the delete control 713 may include a delete only video control, a delete all control, and a cancel control. If the user clicks the video only deleting control, the data management module knows that the user only needs to delete the first video; when the user clicks all the deletion controls, the data management module knows that the user needs to delete the first video and the AI photo at the same time; and if the user clicks to cancel, the second cancel delete management prompt box 710 is deleted, and the operation returns to the previous operation interface.
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 feasible embodiments of the file deletion method of the present invention, after the second management entity deletes the prompt header of the deletion prompt box according to the number of the AI photos, the listener monitors the trigger condition of the deletion control of the deletion prompt box, and referring to fig. 6, an embodiment of the file deletion method of the present application further includes the following steps:
and S12, the listener detects a second operation of clicking all the deletes.
For example, a listener of a data update API of a Photo data interface of an application framework layer of a mobile phone detects that a user clicks a second operation of all deletion, that is, the listener detects that the user clicks a deletion control of all deletion, indicating that the user needs to delete a first video and an AI Photo of the first video together, and the listener acquires 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 (such as a database field identifier) of the first video, the AI Photo, and the AI video in a gallery.
Illustratively, fig. 24 is a schematic flow chart of the execution logic of the file deletion method of the present application, and the steps of fig. 24 where the user selects all deletions correspond to steps S11 to S12, and the above analysis and expansion regarding steps S11 to S12 are also applicable to fig. 24.
And S13, the monitor packages the parameters of the file to be deleted and sets to delete the first video and the AI photo at the same time.
Exemplarily, a listener of a data update API of a Photo data interface of an application framework layer of the mobile phone encapsulates a storage path of the first video, a storage path of an AI Photo of the first video, a storage path of an AI video of the first video, and associated information of the first video, the AI Photo, and the AI video in the gallery as parameters of a file to be deleted. Illustratively, the method includes the steps that a listener sets a deletion parameter for deleting a first video and an AI Photo of the first video at the same time, the listener sends a file parameter to be deleted and the deletion parameter to a first data management unit of a data query API of a Photo data interface of an application framework layer of the mobile phone, and the listener submits an execution notice of an AI Photo deletion task to the first data management unit at the same time so as to construct and execute the AI Photo deletion task.
In step S14, the listener submits an execution notification of the AI photo deletion task to the data management entity.
Illustratively, a listener of a data update API of a Photo data interface of an application framework layer of the mobile phone notifies data management to construct and issue an AI Photo deletion task at the beginning.
And S15, constructing a deletion task according to the deletion parameter of the first video by the data management unit, and sending the deletion task to the menu operation.
Illustratively, the data management module is used for forming a deletion task according to a deletion parameter of the first video, the deletion task comprises an AI Photo deletion task and a first video deletion task, and the data management module is used for sending the deletion task to a menu operation of a data updating API of a Photo data interface of an application framework layer of the mobile phone.
Exemplarily, fig. 24 is a schematic flowchart 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 also apply to fig. 24.
And S16, the menu operation transfers the corresponding AI video to a storage container of the gallery according to the association information and the deletion selection of the AI video.
Illustratively, 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, which is actually stored in the database of the gallery (the AI video has a storage path in the memory card of the mobile phone) and is deleted to be selected as the recycle bin to be transferred to the gallery, to a storage container for recording a plurality of AI photos according to the association information and deletion selection of the AI video, so as to be transferred to the recycle bin of the gallery together with the AI photos. And the menu operation directly clears the associated information which is not really stored in the database of the gallery (the AI video is not stored in the storage path of the memory card of the mobile phone) or the deleted selected AI video is completely deleted.
In step S17, the menu operation notification data processing executes logic processing of file movement.
Illustratively, 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 logic processing of moving the file in the storage container of the gallery containing a plurality of AI photos to the recycle bin of the gallery.
Step S18, the data processing moves the AI photo and the AI video in the storage container to a recycle bin of the gallery.
Illustratively, data processing of a Photo data interface of an application framework layer of the mobile phone updates data processing of an API, moves an AI Photo and an AI video in a storage container for recording a plurality of AI photos to a recycle bin of the gallery, and adaptively adjusts a storage path of the AI Photo and the AI video in the storage container for moving the plurality of AI photos to a new storage path currently in the recycle bin of the gallery.
And step S19, recording the original information of the file to be deleted in the recycle bin in the database of the gallery through data processing, and sending the original information to the first-record-multiple-record management and the second data management.
For example, data processing of a data update API of a Photo data interface of an application framework layer of a mobile phone takes an AI Photo and an AI video that have been put into a recycle bin of a gallery as a file to be deleted, and records original information of the file to be deleted, where in some embodiments, the original information includes a storage path of the file to be deleted before the file is put into the recycle bin. The original information may be used for a user to select a restore of the deleted file. In some embodiments, the original information of the file to be deleted is synchronously sent to the multiple-in-one management and the second data management of a data updating API of a Photo data interface of an application framework layer of the mobile phone, so that the multiple-in-one management and the second data management can restore the file to be deleted to a storage path before deletion according to the original information.
And step S20, updating the database of the gallery by the data management II, and initiating media scanning of the gallery.
Illustratively, the data management notification 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 update the database of the gallery, so as to refresh the interface content of the gallery.
In some alternative embodiments, referring to FIG. 13, after the deletion of the first video by the large view interface 50, and the refreshing of the gallery interface, the deleted first video 540 disappears and subsequent other files fill 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, the deleted file 630 disappears after the gallery interface is refreshed, and subsequent other files fill the display area before the file to be deleted.
In some embodiments, referring to FIG. 23, after the virtual album interface 70 deletes the first video, the deleted file 730 disappears after the interface of the gallery is refreshed, and subsequent other files fill the display area before the first video.
And step S21, the data processing informs the multiple-recorder monitor AI that the photo deleting task is completed.
Illustratively, the data processing of the data update API of the Photo data interface of the application framework layer of the mobile phone notifies a listener 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.
And step S22, the monitor with one record and more records submits a first video deleting task to the menu operation.
Illustratively, after the multiple-recording monitor of the data update API of the Photo data interface of the application framework layer of the mobile phone receives the notification that the AI Photo deletion task is completed, the multiple-recording monitor submits the first video 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.
In step S23, the menu operation executes a first video deletion process.
Illustratively, a menu operation of a data update API of a Photo data interface of an application framework layer of the mobile phone executes a first video deletion procedure. In some embodiments, the first video deleting process is substantially the same as that in steps S102 to S109 described below, and specific reference may be made to an embodiment in which the listener in step S102 detects that the click is only to delete the first video, which is not described herein again.
And step S24, the data processing informs the monitor with one record and more to complete the deletion of the first video.
Illustratively, 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 executed to complete the first video deletion process, the data processing notifies the one-record-many listener that the first video deletion is completed.
Illustratively, fig. 24 is a schematic flow chart of the execution logic of the file deletion method of the present application, and fig. 24 is a schematic flow chart of the deletion completion and the interface refresh steps corresponding to steps S16 to S24, and the above analysis and expansion steps from step 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 intended to limit the present embodiment.
In addition, in some feasible embodiments of the file deletion method of the present invention, after the second management entity deletes the prompt header of the deletion prompt box according to the number of the AI photos, the listener monitors the trigger condition of the deletion control of the deletion prompt box, and referring to fig. 5, an embodiment of the file deletion method of the present application further includes the following steps:
step S102, the monitor detects a third operation of only deleting the first video by clicking.
For example, a listener of a data update API of a Photo data interface of an application framework layer of the handset detects that a user clicks a third operation of only deleting the first video, that is, the listener detects that the user clicks a delete control of only deleting the video, indicating that the user only deletes the first video, and the listener acquires a storage path of the first video and associated information (such as a database field identifier) of the first video.
And step S103, the monitor packages the parameters of the file to be deleted and sets to delete the first video only.
Exemplarily, a listener of a data update API of a Photo data interface of an application framework layer of the mobile phone encapsulates the storage path of the first video and the associated information of the first video as parameters of the file to be deleted. Illustratively, the listener sets a deletion parameter for deleting only the first video, the listener sends the file parameter to be deleted and the deletion parameter to a first data management component of a data query API of a Photo data interface of an application framework layer of the mobile phone, and the listener submits an execution notification of the first video deletion task to the first data management component at the same time, so that the first data management component constructs and executes the first video deletion task.
Step S104, the listener submits an execution notice of the first video deleting task to the first data management unit.
Illustratively, a listener of a data update API of a Photo data interface of an application framework layer of a mobile phone notifies data management to start constructing and issuing a first video deletion task.
Step S105, the data management unit constructs a deletion task according to the deletion parameter of the first video and sends the deletion task to the menu operation.
Illustratively, the first data management step is to form a deletion task according to a deletion parameter of the first video, the deletion task is the first video deletion task, and the data management step sends the deletion task to a menu operation of a data update API of a Photo data interface of an application framework layer of the mobile phone.
And step S106, the menu operation transfers the corresponding AI video to a storage container of the gallery according to the association information and the deletion selection of the AI video.
Illustratively, 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, which is actually stored in the database of the gallery (the AI video has a storage path in the memory card of the mobile phone) and is selected as the recycle bin to be transferred to the gallery, to a storage container for recording a plurality of first videos according to the association information and the deletion selection of the AI video. And the menu operation directly clears the associated information which is not really stored in the database of the gallery (the AI video is not stored in the storage path of the memory card of the mobile phone) or the deleted selected AI video is completely deleted.
In step S107, the menu operation notification data processing executes logical processing of file movement.
Illustratively, 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 logic processing of moving a file in the storage container of the gallery with a large number of first videos to the recycle bin of the gallery.
Step S108, the data processing moves the first video and the AI video in the storage container to a recycle bin of the gallery.
Exemplarily, data processing of a data update API of a Photo data interface of an application framework layer of the mobile phone moves the AI videos in the storage containers of the first video and the first and second videos to the recycle bin of the gallery, and adaptively adjusts the storage paths of the first video and the AI videos in the storage containers of the first video and the first and second videos to be new storage paths currently in the recycle bin of the gallery.
Step S109, the database of the gallery is updated by data processing, and the media scanning of the gallery is initiated.
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 deletion of the first video by the large view interface 50, and the refreshing of the gallery interface, the deleted first video 540 disappears and subsequent other files fill 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 interface of the gallery is refreshed, the deleted file 630 disappears and subsequent other files fill the area of the display before the file to be deleted.
In some embodiments, referring to FIG. 23, after the virtual album interface 70 deletes the first video, the deleted file 730 disappears after the interface of the gallery is refreshed, and subsequent other files fill the display area before the first video.
Illustratively, fig. 24 is a schematic flow chart of the execution logic of the file deletion method of the present application, the step of submitting the first video deletion task on the right side in fig. 24 corresponds to step S102 to step S109, and the above analysis and expansion regarding step S102 to step S109 also apply 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.
For better understanding of the overall flow and the implementation manner of the file deletion method provided by the present application, referring to fig. 25, the file deletion method provided by the present application includes the following steps:
step A10, receiving a first operation;
step A20, responding to the first operation, packaging 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;
in order to facilitate explanation and explanation of the technical solution of the present application, the electronic device applied to the file deletion method of the present application is exemplified by a mobile phone, but the electronic device applied to the file deletion method of the present application is not limited to a mobile phone.
Illustratively, the file deletion method of the application is applied to a gallery of the electronic equipment.
Illustratively, the data to be deleted includes a storage path of the first video and an AI photo number of an AI photo associated with the first video.
Illustratively, the association file includes an AI photo (i.e., highlight moment photo) and an AI video (i.e., highlight short video) of the first video.
Illustratively, the interfaces for detecting the operation of clicking to delete the first video include a timeline interface, a physical album interface and a virtual album interface of the gallery.
Illustratively, before step a10, the file deletion method of the present application further includes: the mobile phone monitors the operation of external input, and the operation of external input is triggered by a user.
For better understanding of the embodiments of the present application, the first video, the AI photograph, and the AI video are explained. Illustratively, the first video refers to: after the mobile phone opens the gallery based on the operation of the user and displays the interface of the gallery, the user selects and determines the deleted video. Exemplarily, the AI photos refer to: the method comprises the steps that a functional submodule of an essence fragment of an intelligent gallery of an application program layer of the mobile phone and a search API of a Photo data interface of an application framework layer of the mobile phone extract a picture from a first video of the gallery based on a preset second algorithm, and the AI picture is an image frame which meets the requirement of the preset second algorithm in the first video. Illustratively, AI video refers to: the short video is composed of a wonderful moment functional submodule of an intelligent gallery of an application program layer of the mobile phone and a search API of a Photo data interface of an application framework layer of the mobile phone, and pictures extracted from a first video of the gallery based on a preset first algorithm. In some embodiments, the AI video is a clip of part 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 mobile phone, and the AI video may also be an index of a storage path of the AI photos related to the clip and is not stored on the memory card of the mobile phone.
Step A30, determining parameters of a deletion prompt box based on a preset monitoring callback function;
step A40, determining the filtering type of the photo album according to the parameters of the deletion prompt box;
illustratively, a user clicking operation is monitored based on a preset monitoring callback function, and a first deletion prompt box parameter is determined; and monitoring the user click operation based on a preset monitoring callback function, and determining a second deletion prompt box parameter.
Illustratively, the delete prompt box parameters include a first delete prompt box parameter and a second delete 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 recorded multi-data class.
After detecting the operation of clicking to delete the first video, the mobile phone determines that the operation type information of the first video is a deletion type.
Illustratively, the album filtering types include deleting from the cloud and other devices or not deleting from the cloud and other devices at the same time, and deleting the first video and the AI photo of the first video at the same time or deleting only the first video.
In some embodiments, the step of determining the album filtering type according to the deletion prompt box parameter in step a40 includes:
step A41, extracting first description information of whether a first video is synchronously stored in a cloud end and other equipment from the deletion prompt box parameter; extracting second description information whether the first video is a recorded multi-data type or not from the deletion prompt box parameter;
and A42, determining the filtering type of the album according to the first description information and the second description information.
Thus, the album filter type may be set to: the method comprises the steps of deleting a first video or a file associated with the first video from the cloud and other equipment, deleting the first video or the file associated with the first video from the cloud and other equipment at the same time, deleting the file associated with the first video or only deleting the first video. And further, a diversified deleting mode is provided for the first video and the associated file of the first video, and diversified deleting requirements of users are met.
Illustratively, album filter types include: the method comprises the steps of deleting a first video and an associated file of the first video, deleting the first video and the associated file of the first video from a cloud end and other equipment, deleting the first video and the associated file of the first video from the cloud end and other equipment, deleting only the first video, deleting the first video from the cloud end and other equipment, deleting only the first video, and not deleting the first video from the cloud end and other equipment.
Illustratively, the first delete prompt dialog parameter includes first descriptive information and the second delete prompt dialog parameter includes second descriptive information.
In some possible embodiments, step a42, determining the album filter 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 and other devices, the album filtering type includes deleting the first video from the cloud and other devices at the same time;
step a422, if the second description information indicates that the first video is a category of data with multiple records, the album filtering type includes deleting the first video and the file associated with the first video at the same time.
Therefore, whether the first video is synchronously stored in the cloud and other equipment or not is determined by the first description information, whether the first video is a multiple data record or not is determined by the second description information, if the first video is synchronously stored in the cloud and other equipment, the first video requirement for synchronously deleting the cloud and other equipment is likely to exist when the first video is deleted locally, and if the first video is a multiple data record or not, the associated files obtained by the multiple data record function of the first video are likely to be synchronously deleted when the first video is deleted by the user.
Step A50, setting and displaying a deletion 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;
illustratively, the deletion prompt box is used for prompting the user to select a deletion mode of the first video, and the deletion mode includes deleting all the first video and the associated file 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 filter type includes:
step A51, setting a prompt title, a subtitle and a popup frame button content of the deletion prompt frame according to the album filtering type;
step A52, refreshing the prompt title of the deletion prompt box according to the data to be deleted, and displaying the deletion prompt box.
Therefore, the prompt title is used for prompting whether the first videos of the cloud end and other equipment are deleted synchronously in the album filtering type, the subtitle is used for enabling a user to select whether the first videos of the cloud end and other equipment are deleted synchronously in the album filtering type, the pop-up frame button content is used for enabling the user to select whether the first videos and the files related to the first videos are deleted simultaneously in the album filtering type, the deletion prompt frame 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, subtitles and pop-up button contents of the deletion prompt box.
Illustratively, the hint header includes the content of the AI photo quantity.
Step A60, receiving a second operation;
step A70, responding to the second operation, deleting the first video and the associated file of the first video.
Illustratively, after the step of setting and displaying the deletion prompt box in step a50, the file deletion method of the present application further includes: the mobile phone monitors the operation of external input, and the operation of external input is triggered by a user. Illustratively, the external input operation is a touch operation of a user on a 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 the step a70 includes: deleting the associated file of the first video; deleting the first video after deleting the associated file of the first video.
Therefore, the database change of the image library caused by the deletion of the first video is avoided, the large image viewing interface or the grid interface is driven to change, and the false phenomenon of deletion error caused by the fact that deletion action is displayed before the deletion task is executed is further avoided, so that the user experience is poor.
Illustratively, after the step of setting and displaying the delete prompt box in step a50, the method further includes:
step A81, receiving a third operation;
step a82, in response to the third operation, deleting the first video.
For example, the user may also select to delete only the first video based on the third operation on the deletion prompt box, so as to meet the requirement of the user on deleting the diversified files.
Illustratively, the step of 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;
b2, determining a corresponding AI video to be deleted according to the association 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 the gallery, and modifying the storage path of the associated file into the storage path of the recycle bin.
Therefore, the AI videos of the first video are classified, the true and independently stored AI videos and the AI photos are moved to the recycle bin of the gallery together, the storage paths of the AI videos and the AI photos are adjusted in a self-adaptive mode, the unreal storage is achieved, the AI videos existing in the first video are directly clear, the fact that the first video is deleted and the residual files of the AI videos exist is avoided, 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 the user to select the recovery of the deleted file, and when the user deletes the file by mistake, the user can be helped to recover the deleted AI photo and AI video by mistake.
Illustratively, the original information includes: the 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 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 association 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 the gallery, and modifying a storage path of the first video to be a storage path of the recycle bin. Therefore, the first video, the AI video and the AI photo are temporarily stored in a recycle bin of the gallery, and file crushing and clearing are not performed temporarily so as to prepare for restoring the deleted files subsequently required by the user.
In the embodiment, after a user selects a first video to be deleted based on the operation of clicking and deleting the first video, the data to be deleted of the first video are packaged, then, according to the data to be deleted and the album filtering type determined according to the parameters of the deletion prompt box, the deletion prompt box is set and displayed, so that the user can select all deletion operations based on the deletion prompt box to synchronously delete the associated files of the first video and the first video, the user only needs to determine the first video to be deleted without viewing each video and each photo one by one, and then, the associated files of the first video and the first video can be deleted by one key, so that the user is prevented from performing excessive operations on file deletion, the time consumed by the operations is reduced, the file deletion 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: 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 files of the first video are, and the user can conveniently judge whether the associated files need to be deleted synchronously.
The preview box is a dialog box which can be displayed on a mobile phone interface, and is used for displaying thumbnails of the associated files 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, for example: the resolution, the definition and the like of the video or the picture are reduced, so that the thumbnail with a smaller size relative to the associated file is generated, the thumbnail is based on the fact that the user can identify the main content of the associated file, and the thumbnail of the associated file can be displayed in the preview frame according to the preset layout sequence. Therefore, when the deleting prompt box of the associated file is displayed on the mobile phone, 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 and adaptively delete the video to be deleted and the associated files.
Illustratively, referring to fig. 10, in the thumbnail viewing interface 50 of the mobile phone, the area formed by the AI video thumbnail 508 and the AI photo thumbnail 509 is a preview frame.
In some embodiments, referring to fig. 12, the interface management displays a preset preview box 531 in the thumbnail viewing interface 50 of the mobile phone, where the preview box 531 is a dialog box that can be displayed on the interface of the mobile phone, the preview box 531 is used to display a thumbnail 532 of an associated file (such as an AI photo and/or an AI video) placed inside the preview box 531, 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 entity album interface 60 of the mobile phone, where the preview box 621 is a dialog box that can be displayed on the interface of the mobile phone, the preview box 621 is used to show a thumbnail 622 of an associated file (such as an AI photo and/or an AI video) placed inside the preview box 621, and the preview box 621 can be placed in the deletion prompt box 620.
In some embodiments, referring to fig. 22, the interface management module displays a preset preview box 721 in the virtual photo 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 to show a thumbnail 722 of an associated file (such as an AI photo and/or an AI video) placed inside the preview box 721, and the preview box 721 can be placed in the deletion prompt box 720.
Illustratively, the smart gallery subsystem based on the mobile phone generates an association 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 frame of which the correlation degree is greater than a preset correlation degree threshold value as a related image frame, takes the related image frame continuous in time sequence as a highlight short video (AI video), takes the related image frame discontinuous in time sequence as a highlight instant photo (AI photo), and further takes the highlight short video and the highlight instant photo as the association file of the first video. For example, when the main scene of the first video is a portrait, a girl in the first video is a related portrait of the main scene, the related image frames may be image frames including a girl portrait, the definition of which is greater than a preset definition threshold value, and the expression of the girl belongs to a preset expression type (such as smile and happy), and the highlight short video is a related image frame which is continuous in time sequence (i.e., a continuous image frame including a smile expression of the girl and having a higher definition). The main scene of the first video may be understood as: the main scene may include a portrait, a landscape, a food, a building, a consumer product (e.g., an electronic product such as a mobile phone or a computer), and the like.
In some specific implementations, the file type of the associated file of the first video includes pictures and videos, for example, the associated file is a highlight moment 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 gourmet, and the like, a related image frame having a correlation degree with the main scene greater than a preset correlation degree threshold and a definition greater than a preset definition threshold is determined from all image frames of the first video, that is, an image frame having a correlation degree with the main scene and a higher definition is selected from the first video as a related image frame, then a plurality of related image frames continuous in time sequence are selected from the related image frames as a highlight short video, and a single related image frame discontinuous in time sequence is selected as a highlight moment photo, and the user only needs to record the video without spending too much time and effort to take the photo and the short video separately, and the user may directly select a favorite video and photo in the highlight short video and the highlight moment photo.
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-image viewing 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 an AI video) placed inside the preset preview box 531, the first preset position may be an upper left corner position of the thumbnail 532 of the associated file, and the associated marker 533 is used to identify the associated file generated by using a video to be deleted as a 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 display a thumbnail 622 of an associated file (such as an AI photo and/or an AI video) placed inside the preview box 621, the first preset position may be an upper left corner position of the thumbnail 622 of the associated file, and the association mark 623 is used to identify the associated file generated by using a video to be deleted as a source file.
In some embodiments, referring to fig. 22, the interface management module displays a preset preview frame 721 in the virtual album video interface 70 of the mobile phone, where the preview frame 721 is used to show a thumbnail 722 of an associated file (such as an AI photo and/or an AI video) placed inside the preview frame 721, the first preset position may be an upper left corner position of the thumbnail 722 of the associated file, and the association mark 723 is used to identify the associated file generated by using a video to be deleted as a source file.
In a possible implementation mode, the associated mark is imprinted at a first preset position of the thumbnail of the highlight moment photo and the highlight short video of the video to be deleted in an icon or watermark mode, and in the process of viewing the preview frame and the deletion prompt box, a user can quickly position the thumbnail of the associated file in the preview frame through the associated mark, so that the user can conveniently and quickly distinguish the thumbnail of the associated file from other files irrelevant to the video to be deleted.
Illustratively, the displaying a preset preview frame, and the displaying the thumbnail of the associated file in the preview frame includes: determining a main scene of the first video, and acquiring scene correlation of each associated file and the main scene; displaying a preset preview frame, and displaying the thumbnails of the associated files in the preview frame in order according to the size relationship of the scene relevancy.
Identifying image elements with the maximum frequency of occurrence in each image frame in the first video through an image identification technology, and analyzing the image elements with the maximum frequency of occurrence to obtain a main scene of the first video; or, by viewing the main scene information of the first video, the main scene of the first video is determined. The main scene may include a landscape, a portrait, a delicacy, etc.
In a possible implementation manner, the image element with the largest frequency of occurrence in the first video is identified as a girl and a fish tank behind the girl, in the first video, tens of frames of image frames are small trees removed from the girl and outside the window, so that the main scene of the first video can be determined as a portrait (i.e., the girl), the non-main scene is the small trees, and it is likely that the lens deviates to the small trees outside the window in the recording process due to shaking of the holding mobile phone and external force collision during the recording process of the user, and further the scene correlation of the associated file containing the girl is determined to be a first value, the scene correlation of the associated file containing the small trees is determined to be a second value, and the first value is greater than the second value.
The more scene-related the associated file is related to the main scene of the first video, the more image elements showing that the main scene appears in the associated file, the closer the associated file is to the content of the first video, the stronger the deletion will or attention will of the user, 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 the user wants to delete the first video and then keep part of the associated file of the first video for keeping a souvenir.
After the scene correlation degree of each associated file and the main scene is obtained, a preset preview frame is displayed based on interface management, thumbnails of the associated files can be displayed in the preview frame in order from large to small according to the scene correlation degree, as shown in fig. 12, 17 or 22, the thumbnails of the associated files are arranged in the preview frame from large to small according to the scene correlation degree, a user can conveniently view the thumbnails of the associated files with high scene correlation degree, so that the user can conveniently and quickly select to delete or not delete the corresponding associated files, the operation amount and time consumption of the user for selecting to delete the files are reduced, and the file deletion efficiency is further improved.
In addition, the thumbnails related to the associated files are displayed in the preview frame according to a preset layout sequence, and the preset layout sequence is displayed as follows: the display can be performed in a grid interface mode according to the relevance between 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 frame includes: displaying a preset preview frame in a correlated manner according to the position of the deletion control in the deletion prompt frame; and adding a preset check 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 file associated with the first video.
And a deletion control is arranged in the deletion prompt box, and a user can trigger selective deletion of the associated file of the first video by clicking the deletion control. Generally speaking, before the user confirms deletion and triggers the deletion control, the user tends to know which files are to be deleted, so that a preset preview box is displayed in the vicinity of the position of the deletion control in the deletion prompt box in an associated manner, thumbnails of the associated files in the preview box can be arranged in order according to the scene relevance, and meanwhile, the interface management adds a check control at a second preset position in the thumbnails of the associated files in the preview box.
In some embodiments, the interface management module displays a preset preview box 531 in the large-image viewing interface 50 of the mobile phone, where the second preset position is a lower right corner position of the thumbnail 532, and a preset check 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 entity album interface 60 of the mobile phone, where the second preset position may be a lower right corner position of a thumbnail 622 of an associated file, and a preset check 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, where the second preset position may be a lower right corner position of the thumbnail 722 of the associated file, and a preset check control 724 is added to the lower right corner of the thumbnail 722 of each associated file in the preview box 721.
Optionally, a preset check control may be added to a lower right corner of a thumbnail of each associated file in the preview frame, the check control is a selection frame, the check control includes a selected state and an unselected state, a check control may be configured for the thumbnail of each associated file, and a user may operate the check member to check or uncheck the thumbnail of the corresponding associated file, so that the user may select or uncheck the associated file to be deleted synchronously with the video to be deleted, thereby reducing the amount of operation of the user, saving the time consumed by the operation, and improving the operation efficiency of deleting the file. And after the user operates the check control, taking the associated file of which the check control is in the selected state as the associated file which is subsequently deleted synchronously with the first video.
In addition, in other realizable modes, in all video interfaces of a time axis interface, an entity album interface and a virtual album interface of the mobile phone, if a user clicks to delete a first video, the step of encapsulating the to-be-deleted data of the first video is triggered to execute the file deletion method of the application, so that a one-key deletion function is provided for the user. The method comprises the steps that all pictures, my collections, recycle bins, smart photo albums and system applications (such as memorandums and information) in a virtual photo album interface call a gallery to select pictures or the gallery adds pictures, a third party application calls a media library, a map photo album, search results, a hidden photo album, a preview mode, a smart multi-shot photo album, a shared photo album and other interfaces, and at the moment, a user is more inclined to view files without wasting system data to display thumbnails of the associated files and videos to be deleted in an associated mode, namely, the step of packaging the data to be deleted of the first video in the file deletion method is not triggered, and the function of deleting by one key is not provided for the user.
In addition, in other realizable modes, in a grid interface such as a solid album interface and a virtual album interface, if a user selects or selects more files to be deleted to include a first video, the step of encapsulating the data to be deleted of the first video for executing the file deletion method of the application is triggered, so that a one-key deletion function is provided for the user. Illustratively, in a large-graph viewing interface, if a user selects to delete a first video, a step of executing a file deletion method of the present application to encapsulate data to be deleted of the first video is triggered, so as to provide a function of deleting by one key for the user. Illustratively, in a large-graph viewing interface, if a user selects to delete an AI photo or AI video, only the currently selected item is deleted. For example, in the album list interface, if the entire album selected by the user to be deleted includes the first video, the AI photo and the AI video of the first video are not deleted.
In addition, in other realizable manners, after the step of setting and displaying the deletion prompt box, the method further comprises the following steps: selecting a target associated file meeting a preset similarity condition and/or a preset default selection condition from the associated files, and determining the target associated file to be in a to-be-deleted selection state; and adding a selection mark corresponding to the selected state to be deleted for the target associated file in the deletion prompt box. Illustratively, in the deletion prompt box, a selection mark corresponding to the selected state to be deleted is added to the checking control of the target associated file, that is, the checking control of the target associated file is set to the selected state.
Illustratively, the preset similarity condition is: and reserving one associated file from the plurality of associated files with the similarity larger than the preset similarity threshold, and determining other associated files with the similarity larger than the preset similarity threshold with the reserved associated files as target associated files.
The preset default selection condition may be: and defaulting all the associated files as target associated files, or defaulting the associated files with the file size larger than the preset file amount as the target associated files, or defaulting the associated files with the main scene correlation degree of the first video smaller than a preset correlation degree threshold value as the target associated files, or defaulting the associated files with the file type of the video as the target associated files, or defaulting the associated files with the file type of the picture as the target associated files, so as to quickly determine the target associated files.
After the target associated file is determined from the associated files of the first video, the target associated file is determined to be in the selected state to be deleted, and because the target associated file has a high probability that the user wants to delete the target associated file together with the video to be deleted, in the embodiment, the user does not need to spend time and perform operation to select the target associated file and convert the target associated file into the selected state to be deleted.
Meanwhile, after the target associated files are determined to be in the selected state to be deleted, the selected marks corresponding to the selected state to be deleted are added to the target associated files in the deletion prompt box, so that a user is prompted to know which associated files are selected to be deleted, and the user can conveniently adjust the associated files in the selected state to be deleted.
Optionally, the adding, in the deletion prompt box, the selected flag corresponding to the selected state to be deleted to the target associated file includes: and in an optional implementation mode, adjusting a check control at a second preset position in the thumbnail of the target associated file to be in a check state.
It will be appreciated that the electronic device, in order to implement the above-described functions, comprises corresponding hardware and/or software modules for performing the respective functions. The present application can be implemented in hardware or a combination of hardware and computer software in conjunction with the steps of the various examples described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware 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, with the implementation of embodiments.
In this embodiment, the electronic device may be divided into functional modules 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 module may be implemented in the form of hardware. It should be noted that, the division of the modules in this embodiment is schematic, and is only one logic function division, and another division manner may be available in actual implementation.
In the case of dividing each functional module by corresponding functions, fig. 26 shows a possible composition diagram of the electronic device involved in the above 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:
the acquiring unit 501 is configured to package 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 filtering type of the photo 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 filter type;
a deleting unit 503, configured to detect whether the deletion prompt box receives all deletion operations; and if the operation of deleting all the videos is detected, deleting the first video and the associated file of the first video.
In a possible implementation manner, the obtaining unit 501 is configured to extract, from the deletion prompt box parameter, first description information indicating whether a first video is synchronously stored in a cloud and other devices; extracting second description information whether the first video is a recorded multi-data type or not from the deletion prompt box parameter; and determining the filtering type of the album 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 indicates that the first video is synchronously stored in the cloud and other devices, delete the first video from the cloud and other devices at the same time in the album filtering type; and if the second description information indicates that the first video is a recorded 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 a prompt title, a subtitle, and a pop-up button content of the delete prompt box according to the album filter type; and 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 an associated file of the first video; 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 photograph and an AI video of the first video; determining a corresponding AI video to be deleted according to the association 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 the gallery, and modifying the storage path of the associated file into the storage path of the recycle bin.
In a possible implementation manner, the deleting unit 503 is configured to record the AI photo and original information of the AI video to be deleted.
In a possible implementation manner, the deleting unit 503 is configured to obtain 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 association 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 the 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 a deletion control in the deletion prompt box; and adding a preset check 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 a functional module. The term "module" herein may be implemented in software and/or hardware, and is not particularly 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 an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group of processors) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality.
The present application further 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 file deletion method as described in the first aspect above or any one of the possible implementations of the first aspect.
The present application further provides a computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, causes the processor to execute the file deletion method according to the first aspect or any one of the possible implementation manners of the first aspect.
The present application further provides a chip, where the chip includes a processor and a data interface, and the processor reads an instruction stored in a memory through the data interface, and executes the file deletion method according to any one of the first aspect or possible implementation manners of the first aspect.
Optionally, the chip may further include a memory, where instructions are stored in the memory, and the processor is configured to execute the instructions stored in the memory, and when the instructions are executed, the processor is configured to execute the file deletion method according to the first aspect or any one of possible implementation manners of the first aspect.
The memory may be a read-only memory (ROM), other types of static memory devices that can store static information and instructions, a Random Access Memory (RAM), or other types of dynamic memory devices that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM), or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage or other magnetic storage devices, or any other medium 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 the embodiment of the present application, "and/or" describes an association relationship of associated objects, which means that three relationships may exist, for example, a and/or B, and may mean that a exists alone, a and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" and similar expressions refer to any combination of these items, including any combination of singular 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 multiple.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of electronic hardware and computer software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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 is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, any function, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions 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 (13)

1. A file deletion method is characterized by comprising the following steps:
receiving a first operation;
in response to the first operation, packaging 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;
determining to delete prompt box parameters based on a preset monitoring callback function;
determining the album filtering type according to the deletion prompt box parameter;
setting and displaying a deletion prompt box according to the data to be deleted and the album filtering type, wherein the 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.
2. The file deletion method of claim 1, wherein the step of determining an album filter type according to the deletion prompt box parameter comprises:
extracting first description information of whether the first video is synchronously stored in the cloud and other equipment from the deletion prompt box parameter;
extracting second description information whether the first video is a recorded multi-data type or not from the deletion prompt box parameter;
and determining the filtering type of the album according to the first description information and the second description information.
3. The file deletion method according to claim 2, wherein the step of determining the album filter type based on the first descriptive information and the second descriptive information comprises:
if the first description information is that the first video is synchronously stored in the cloud and other equipment, the album filtering type comprises that the first video is deleted from the cloud and other equipment at the same time;
and if the second description information indicates that the first video is a recorded multiple data type, the album filtering type comprises deleting the first video and the associated file of the first video at the same time.
4. The file deletion method according to claim 1, wherein the step of setting and displaying a deletion prompt box according to the data to be deleted and the album filter type includes:
setting a prompt title, a subtitle and a popup frame button content of the deletion prompt frame according to the album filtering type;
and refreshing the prompt title of the deletion prompt box according to the data to be deleted, and displaying the deletion prompt box.
5. The file deletion method according to claim 1, further comprising, after the step of setting and displaying a deletion prompt box:
receiving a third operation;
deleting the first video in response to the third operation.
6. The file deletion method 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;
deleting the first video after deleting the associated file of the first video.
7. The file deletion method of claim 6, 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 association 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 the gallery, and modifying the storage path of the associated file into the storage path of the recycle bin.
8. The file deletion method of claim 7, wherein after the step of deleting the file associated with the first video, further comprising:
and recording the original information of the AI photo and the AI video to be deleted.
9. The file deletion method according to any one of claims 5 to 8, wherein the step of deleting the first video comprises:
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 association 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 the gallery, and modifying a storage path of the first video to be a storage path of the recycle bin.
10. The file deletion method according to claim 1, comprising, after the step of setting and displaying a deletion prompt box:
displaying a preset preview frame, and displaying the thumbnail of the associated file in the preview frame.
11. The file deletion method of claim 10, wherein the step of displaying a preset preview box comprises:
displaying a preset preview frame in a correlated manner according to the position of the deletion control in the deletion prompt frame;
and adding a preset check control at a second preset position in the thumbnail of each associated file in the preview frame.
12. 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 file deletion method of any of claims 1-11.
13. A computer-readable storage medium, in which a computer program is stored which, when executed by a processor, causes the processor to perform the file deletion method of any one of claims 1 to 11.
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 true CN115525610A (en) 2022-12-27
CN115525610B 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 (9)

* 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
US20090083824A1 (en) * 2007-09-26 2009-03-26 Mccarthy Mary Favorites mosaic
US20120002951A1 (en) * 2001-12-26 2012-01-05 Reisman Richard R Method and apparatus for progressively deleting media objects from storage
CN106648656A (en) * 2016-12-20 2017-05-10 北京猎豹移动科技有限公司 Message deleting method and device and electronic device
CN106991179A (en) * 2017-04-07 2017-07-28 广东欧珀移动通信有限公司 Data-erasure method, 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
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120002951A1 (en) * 2001-12-26 2012-01-05 Reisman Richard R Method and apparatus for progressively deleting media objects from storage
CN1750632A (en) * 2004-09-14 2006-03-22 Lg电子株式会社 Display device having electronic album function and method for controlling the same
US20090083824A1 (en) * 2007-09-26 2009-03-26 Mccarthy Mary Favorites mosaic
CN106648656A (en) * 2016-12-20 2017-05-10 北京猎豹移动科技有限公司 Message deleting method and device and electronic device
CN106991179A (en) * 2017-04-07 2017-07-28 广东欧珀移动通信有限公司 Data-erasure method, 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
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

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ENAS MOHAMMED HUSSEIN SAEED ET AL.: "Pectoral Muscles Removal in Mammogram Image by Hybrid Bounding Box and Region Growing Algorithm" *
康志辉 等: "电子相册管理系统设计" *
韩帅军: "面向归档存储的重复数据删除优化方法研究" *

Also Published As

Publication number Publication date
CN115525610B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
JP7414842B2 (en) How to add comments and electronic devices
WO2021088881A1 (en) Picture selecting method and electronic device
US20120210201A1 (en) Operation method for memo function and portable terminal supporting the same
CN114827342B (en) Video processing method, electronic device and readable medium
CN113302904A (en) Image classification method and electronic equipment
CN111176766A (en) Communication terminal and component display method
CN115098449B (en) File cleaning method and electronic equipment
CN116095413B (en) Video processing method and electronic equipment
CN115525610B (en) File deletion method, electronic device and computer readable storage medium
CN115033318B (en) Character recognition method for image, electronic device and storage medium
WO2023160208A1 (en) Image deletion operation notification method, device, and storage medium
CN113747098B (en) Photo file generation method with audio identification, photo display method and equipment
CN115061758B (en) Application display method, terminal, electronic device and storage medium
WO2024078120A1 (en) File management method, and device and storage medium
WO2023061298A1 (en) Picture backup system and method, and device
CN116700550A (en) Video processing method, electronic device, and computer-readable storage medium
CN116701704A (en) File processing method, electronic device, and computer-readable storage medium
CN115145457A (en) Method and device for scrolling screen capture
CN114328401A (en) File scanning method and terminal equipment
CN117648040A (en) Method for generating desktop folder and electronic equipment
CN115344176A (en) Display method and electronic equipment
CN117201865A (en) Video editing method, electronic equipment and storage medium
CN116166156A (en) Icon moving method and related device
CN115665355A (en) Video processing method and device, electronic equipment and readable storage medium
CN116414280A (en) Picture display method and electronic equipment

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