CN106534562B - File deletion method and device - Google Patents
File deletion method and device Download PDFInfo
- Publication number
- CN106534562B CN106534562B CN201611074611.6A CN201611074611A CN106534562B CN 106534562 B CN106534562 B CN 106534562B CN 201611074611 A CN201611074611 A CN 201611074611A CN 106534562 B CN106534562 B CN 106534562B
- Authority
- CN
- China
- Prior art keywords
- terminal
- screen capture
- image
- file
- capture image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72439—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72451—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the disclosure discloses a file deleting method and device, and belongs to the technical field of file management. The method comprises the following steps: the method comprises the steps of monitoring a calling behavior of a specified type file in a terminal, deleting the specified type file from the terminal after the execution of an operation corresponding to the calling behavior is finished, so that the terminal can automatically delete the file after the specified type file in the terminal is called, and the storage space occupied by the multimedia file is released, thereby achieving the effects of reducing unnecessary occupation of the storage space of the terminal and improving the efficiency of arranging the storage space by a user.
Description
Technical Field
The present disclosure relates to the field of file management, and in particular, to a method and an apparatus for deleting a file.
Background
With the wide use of mobile terminals in daily life nowadays, the socialization function of the mobile terminals becomes increasingly important, and users usually send some mobile phone screen captured pictures or shot small videos to each other when using the mobile terminals to communicate.
When a user sends a mobile phone screenshot picture or a shot small video to a chat object, the screenshot picture or the small video needs to be acquired first and stored in a mobile terminal, and then the stored screenshot picture or the small video is sent to the chat object.
Disclosure of Invention
The embodiment of the disclosure provides a file deleting method and a device, and the technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, a file deleting method is provided, including:
monitoring a calling behavior of a screen capture image in a terminal, wherein the calling behavior comprises reading the screen capture image;
sending the screen shot image to a friend or a group in a social network through a social network application;
acquiring the retention time of the screen capture image, wherein the retention time is the time length from the moment when the screen capture image is created to the current moment;
and when the retention time of the screen capture image is less than a preset time threshold, deleting the screen capture image from the terminal after the screen capture image is sent.
Optionally, the method further includes:
acquiring the residual storage capacity of the terminal;
and when the residual storage capacity of the terminal is smaller than a preset capacity threshold value and the retention time of the screenshot image is smaller than a preset time threshold value, deleting the screenshot image from the terminal after the screenshot image is sent.
Optionally, the method further includes:
displaying a reminding message, wherein the reminding message is used for reminding whether the screen capture image is determined to be deleted or not;
and if the operation of determining to delete the screen capture image is received, executing the operation of deleting the screen capture image from the terminal.
According to a second aspect of the embodiments of the present disclosure, there is provided a file deleting apparatus including:
the monitoring module is configured to monitor calling behaviors of the screen capture images in the terminal, wherein the calling behaviors comprise reading of the screen capture images;
a deletion module configured to send the screenshot image to a friend or group in a social network when the screenshot image is sent through a social network application; acquiring the retention time of the screen capture image, wherein the retention time is the time length from the moment when the screen capture image is created to the current moment; and when the retention time of the screen capture image is less than a preset time threshold, and after the screen capture image is sent, deleting the screen capture image from the terminal.
Optionally, the apparatus further comprises:
an obtaining module configured to obtain a remaining storage capacity of the terminal;
and the deleting module is configured to delete the screen capture image from the terminal after the transmission of the screen capture image is finished when the residual storage capacity of the terminal is smaller than a preset capacity threshold and the retention time of the screen capture image is smaller than a preset time threshold.
Optionally, the apparatus further comprises:
the display module is configured to display a reminding message, and the reminding message is used for reminding whether the screen capture image is determined to be deleted or not;
the deleting module is configured to execute the operation of deleting the screen capture image from the terminal if the operation of determining to delete the screen capture image is received.
According to a third aspect of the embodiments of the present disclosure, there is provided a file deleting apparatus, including: a processor, a memory for storing executable instructions of the processor, wherein the processor is configured to:
monitoring a calling behavior of the screen capture image in the terminal, wherein the calling behavior comprises reading the screen capture image;
sending the screen shot image to a friend or a group in a social network through a social network application;
acquiring the retention time of the screen capture image, wherein the retention time is the time length from the moment when the screen capture image is created to the current moment;
and when the retention time of the screen capture image is less than a preset time threshold, deleting the screen capture image from the terminal after the screen capture image is sent.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon instructions for execution by a processor to implement the steps of the method according to the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
by monitoring the calling behavior of the appointed type file in the terminal and deleting the appointed type file from the terminal after the operation execution corresponding to the calling behavior is finished, the terminal can automatically delete the file after the appointed type file in the terminal is called so as to release the storage space occupied by the multimedia file, thereby achieving the effects of reducing unnecessary occupation of the storage space of the terminal and improving the efficiency of arranging the storage space by a user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a file deletion method in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating another file deletion method in accordance with an illustrative embodiment;
FIG. 3 is a schematic diagram of a delete decision information setting interface provided based on the embodiment shown in FIG. 2;
FIG. 4 is an interface diagram for deleting a file of a specified type according to the embodiment shown in FIG. 2;
FIG. 5 is a block diagram illustrating a file deletion apparatus in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating another file deletion apparatus in accordance with an illustrative embodiment;
fig. 7 is a block diagram illustrating an apparatus 700 according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of methods and apparatus consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The embodiment of the disclosure can be applied to a terminal capable of acquiring and saving files. The terminal capable of acquiring and saving the file has a built-in storage component or a storage component connected with the outside, for example, the terminal may be a mobile phone, a smart watch, smart glasses, MP3/MP4 or a tablet computer, the built-in storage component may be a memory chip in the above device, and the externally connected storage component may be an externally plugged flash memory card, a usb disk or other storage components. For convenience of description, the main body of execution of each step is explained as a terminal.
FIG. 1 is a flow diagram illustrating a file deletion method according to an exemplary embodiment, which may include the following steps:
in step 101, the call behavior to a file of a specified type in the terminal is monitored.
In step 102, after the operation corresponding to the call behavior is completed, the file of the specified type is deleted from the terminal.
In summary, according to the file deleting method provided by the embodiment of the present disclosure, by monitoring the call behavior of the specified type file in the terminal, after the operation corresponding to the call behavior is executed, the specified type file is deleted from the terminal, so that the terminal can automatically delete the specified type file after the specified type file is called, thereby releasing the storage space occupied by the multimedia file, reducing unnecessary occupation of the storage space of the terminal, and improving the efficiency of the user in sorting the storage space.
FIG. 2 is a flow diagram illustrating a file deletion method according to an exemplary embodiment, which may include the following steps:
in step 201, the call behavior to a file of a specified type in the terminal is monitored.
The terminal monitors the calling action of the file of the designated type in the terminal, the file of the designated type can be a file of a type designated by a user or a software designer, the file of the same designated type has the same or similar attributes, for example, the file of the designated type can be at least one of a screen capture image, an image shot by the terminal, a recorded audio or a recorded video. The calling behavior can be divided into: the method includes the steps that a calling behavior of an operating system in the terminal to a file of the specified type and a calling behavior of a third-party application (software) installed in the terminal to the file of the specified type are carried out, for example, the calling behavior can be the display of a photo or the playing of a video serving as the file of the specified type by the operating system in the terminal, or the calling behavior can also be the sharing action of the file of the specified type serving as the third-party application in the terminal, and the actions include an action of extracting the file of the specified type and an action of sending the file of the specified type to a server.
For example, taking the specific type file as a screenshot image and the call behavior as an example of reading the screenshot image, a call behavior of monitoring the specific type file in the terminal is described, and when a third-party application (e.g., an instant chat tool) installed in the terminal reads the picture, the terminal monitors the reading action of the specific type file to know that the call behavior is executed.
In step 202, when the calling behavior of the file of the specified type in the terminal is monitored, the deletion decision information is obtained.
When the terminal monitors that a call behavior for a specified type file in the terminal occurs, the terminal can continue to monitor the execution condition of an operation corresponding to the call behavior. And when the operation execution corresponding to the calling behavior is finished, the terminal acquires the deletion decision information.
Optionally, when the terminal monitors the call behavior, the terminal continues to monitor an operation corresponding to the call behavior, and when the operation corresponding to the call behavior is to externally issue the specified type of file, acquires the deletion decision information.
Optionally, the operation corresponding to the call behavior may also be an operation of reading, writing, or modifying the file of the specified type.
The operation of issuing to the outside may be that the terminal sends data to the outside through the antenna. For example, the operation of the terminal publishing the file may be to publish the file to a friend in the social network through a social network application, for example, to send an instant messaging message containing the file to a social group or the friend, or to publish a dynamic message containing the file to the social network, or the operation of the terminal publishing the file may also be to send the file to the outside through a mail, a short message, a multimedia message, or the like.
The deletion decision information is used for providing reference for the terminal, so that the terminal can decide whether to delete the file of the specified type according to the decision deletion information.
The deletion decision information may be information related to the storage capability of the terminal, such as a current remaining storage capacity value in the terminal, or information related to the specified type of file, such as a size of the specified type of file or a retention duration of the specified type of file, where the retention duration is a time length from a time when the specified type of file is created to a current time.
The step 202 may be replaced by the step 202a or the step 202b to implement the operation of obtaining deletion decision information.
After completing step 201, the terminal may sequentially perform step 202a, step 203, step 205, and step 206, or may sequentially perform step 202b, step 204, and step 206.
In step 202a, when the call behavior of the specified type file in the terminal is monitored, the retention time of the specified type file is obtained.
When monitoring the calling behavior of the specified type file, the terminal acquires the time when the file is created from the specified type file, then acquires the current time from the system, and obtains the time length from creation to the current of the specified type file by subtracting the two times, wherein the time length is the retention time length of the specified type file.
In step 203, when the retention time of the file of the specified type is smaller than the preset time threshold, it is determined that the deletion decision information meets the preset condition.
The terminal compares the remaining time length of the specified type file with a preset time threshold, where the preset time threshold is a time length with a value set in advance by a designer before the execution of the embodiment of the present disclosure as a constant, and for example, any value of thirty seconds, one minute, or half an hour is a constant time length. And when the retention time of the specified type file is less than a preset time threshold, the terminal determines that the deletion decision information meets a preset condition, and then executes the step of subsequently processing the specified type file.
In practical application, because files temporarily saved by a user exist in the terminal, the files are files which do not need to be saved any more after the user temporarily uses the files. When the user uses the files, the terminal can delete the temporary files to release the occupied storage space. Where these temporary files may be marked by the designer as files of a specified type. For example, a designer marks a screenshot in the terminal as a specified type file, the retention time is thirty seconds, and when the retention time of the screenshot in the terminal is less than a preset time threshold value for thirty seconds, the screenshot is determined to meet a preset condition.
In step 202b, when the calling behavior of the specified type file in the terminal is monitored, the remaining storage capacity of the terminal is obtained.
When monitoring the calling behavior of the file of the designated type, the terminal acquires the residual storage capacity in the terminal, wherein the residual storage capacity can be the residual capacity of the storage capacity built in the terminal or the residual value of the total capacity of the sum of the storage capacity built in the terminal and the storage capacity connected externally. For example, a terminal with a built-in storage capacity of 8GB, currently remaining 1GB, and an externally connected storage capacity of 16GB, currently remaining 4GB may be designed to acquire the built-in remaining storage capacity of 1GB or may be designed to acquire the total remaining storage capacity of 5GB in the disclosed embodiment.
In step 204, when the remaining storage capacity of the terminal is smaller than a preset capacity threshold, it is determined that the deletion decision information satisfies a preset condition.
And the terminal compares the residual storage capacity with a preset capacity threshold value, and determines that the deletion decision information meets a preset condition when the residual storage capacity is smaller than the preset capacity threshold value. The size of the storage capacity in the terminal is fixed on the basis of no change in hardware. When the remaining storage capacity of the terminal is less than a threshold, the overall operation performance of the terminal may be degraded. While in a terminal some types of files occupy more storage capacity, e.g. files like pictures, audio or video. Some files of the specified type are usually temporary files, such as screen capture images, images taken by the terminal, audio recorded by the terminal or video recorded by the terminal.
When the residual storage capacity in the terminal is lower than the preset threshold, in order to ensure that the performance of the terminal in operation is not affected by the residual storage capacity, the terminal determines that the specified type file meets the preset condition, and then performs subsequent processing on the specified type file.
Optionally, the terminal may further obtain a percentage of the remaining storage capacity of the terminal, and when the percentage of the remaining storage capacity in the total storage capacity is smaller than a preset capacity percentage, determine that the deletion decision information satisfies the preset condition.
Optionally, when the remaining storage capacity of the terminal is smaller than a preset capacity threshold and the retention time of the specified type file is smaller than a preset time threshold, it is determined that the deletion decision information meets a preset condition.
The deletion decision information of the terminal can simultaneously comprise the retention time of the specified type file and the remaining storage capacity of the terminal, the terminal respectively detects the two kinds of information after simultaneously acquiring the two kinds of information, and when the remaining storage capacity of the terminal is smaller than a preset capacity threshold and the retention time of the specified type file is smaller than a preset time threshold, the deletion decision information is determined to meet a preset condition. In the design, when the remaining storage capacity of the terminal is higher than a preset threshold, the terminal does not start an automatic sorting (deleting) process flow for the specified type file, when the remaining storage capacity of the terminal is smaller than the preset threshold, the terminal detects whether the retention time of the specified type file is shorter than the preset time, and when the specified type file is shorter than the preset threshold, the terminal determines that the deletion decision information of the specified type file meets the preset condition.
In step 205, a reminder message is displayed.
In the embodiment of the present disclosure, the reminding message is used to remind whether to determine to delete the file of the specified type. The terminal can display the reminding message in a screen, and the reminding message can be displayed in forms of suspension reminding characters, animation or voice and the like in actual operation.
In step 206, after the operation corresponding to the call behavior is completed, the file of the specified type is deleted from the terminal.
And after the operation execution corresponding to the calling behavior is finished, the terminal deletes the specified type file from the terminal. In the process that the file of the specified type is used by the terminal, since calling the file is usually a necessary action for starting execution of the corresponding operation, before deleting the file of the specified type, the execution of the operation corresponding to the calling action is waited for to be completed. Taking the specified type file as a mobile phone screenshot picture as an example, when a user uses a client of a social application to send a mobile phone screenshot picture of the user to a friend, a calling action of the specified type file is to read the mobile phone screenshot picture, an operation corresponding to the calling action is to send the mobile phone screenshot picture to a server of the social application, and at the moment, the terminal waits for the social application to send the mobile phone screenshot picture to the server and then deletes the mobile phone screenshot picture from the terminal.
Optionally, in a possible implementation manner of the embodiment of the present disclosure, when the terminal determines that the remaining storage capacity of the terminal is smaller than the preset capacity threshold, the terminal continues to query the size of the specified type file, and if the size of the specified type file exceeds the single file size threshold, the terminal deletes the specified type file from the terminal.
Optionally, before the deletion decision information is obtained, the terminal may further provide an information setting interface, so that a user sets a type of the deletion decision information in the information setting interface, the terminal determines the type of the deletion decision information according to an operation of the user in the information setting interface, and when the deletion decision information is obtained, the terminal obtains the deletion decision information according to the type of the deletion decision information.
In addition, the information setting interface can also comprise a parameter setting item, and a user can set relevant parameters of the deletion decision information through the parameter setting item. For example, when the user sets the deletion decision information to be the remaining time length, the relevant parameter of the deletion decision information is the preset time threshold; when the user sets the deletion decision information as the residual storage capacity, the relevant parameter of the deletion decision information is a preset capacity threshold.
For example, when the retention duration of a specified type of file is selected as deletion decision information by a user, the terminal sets the size of a preset time threshold in the terminal as a selected value; when the residual storage capacity of the terminal is selected as deletion decision information by a user, the terminal sets the size of a preset capacity threshold in the terminal as a selected value; when the retention time of the file of the designated type and the residual storage capacity of the terminal are selected as the deletion decision information by the user, the terminal sets the size of the preset time threshold in the terminal as a selected value, and the terminal sets the size of the preset capacity threshold as the selected value.
Referring to fig. 3, which is a schematic diagram of a deletion decision information setting interface provided based on the embodiment shown in fig. 2, the deletion decision information may include a time threshold 301 and a capacity threshold 302, the two deletion decision information respectively correspond to a checkbox 3011 and a checkbox 3021, and when the checkbox corresponding to the deletion decision information is selected, the terminal enables the corresponding deletion decision information as a preset condition of the specified type of file. When the check box 3011 and the check box 3021 are both selected, and the remaining duration of the terminal is less than the time threshold and the remaining capacity is less than the capacity threshold, the terminal considers that the deletion decision information satisfies the preset condition. The input box 3012 corresponding to the time threshold 301 may be used to set a time threshold, and the input box 3022 corresponding to the capacity threshold 302 may be used to set a capacity threshold. Optionally, the type of the deleted file may also be selected in the interface shown in fig. 3, such as selecting one or more of a screenshot image, a terminal-captured image, a recorded audio, or a recorded video.
In a scenario where the terminal is a mobile phone, the specified type file is a screen capture image, and the calling behavior is that the social application reads the image for example. Referring to fig. 4, which is an interface diagram for deleting files of a specific type provided based on the embodiment shown in fig. 2, when jack uses a social application in a mobile phone and lyda chat, jack intercepts an image 41 of the mobile phone desktop because he wants to show his own mobile phone desktop background to lyda. Referring to the interface 4A, when the jack determines to select the image 41 and clicks "send" in the interface 4A, the mobile phone monitors that the social application reads the image (corresponding to that the operation corresponding to the call action is performed and completed), the time when the image is created is 19:38:26, the retention time of the image is calculated to be 16 seconds by combining the current time 19:38:42 provided by the system, the retention time serving as the deletion decision information meets the preset condition because the retention time is less than 60 seconds of the preset time threshold, the mobile phone turns to the interface 4B, in the interface 4B, after the mobile phone sends the image to the server of the social application, the mobile phone pops up a dialog box 42 to remind the jack whether to delete the screenshot image, and when the jack clicks a determination button 43, the mobile phone deletes the screenshot image 41 from the mobile phone.
In another scenario that can be implemented in the embodiment of the present disclosure, the terminal is a mobile phone, the specified type file is a video, and the call behavior is that the mail application accesses the video. Mary uses a mobile phone to shoot a video of own makeup, she wants to send the video to Annie, a friend through a mail, when she adds the video to an attachment in the mail, the mobile phone monitors that the video is accessed by a mail application, the mobile phone inquires that the remaining storage capacity of the current mobile phone is 274MB which is smaller than the preset storage capacity 300MB, so that the remaining storage capacity serving as the deletion decision information meets the preset condition, and the video is deleted after the mobile phone uploads the video from the storage of the mobile phone to a server providing the mail service.
To sum up, the file deleting method provided in the embodiment of the present disclosure monitors a call behavior of a specific type file in a terminal, obtains a retention time of the specific type file when the call behavior of the specific type file in the terminal is monitored, determines that deletion decision information satisfies a preset condition when the retention time of the specific type file is smaller than a preset time threshold, or obtains a remaining storage capacity of the terminal when the call behavior of the specific type file in the terminal is monitored, determines that deletion decision information satisfies the preset condition when the remaining storage capacity of the terminal is smaller than a preset capacity threshold, displays a prompt message, and deletes the specific type file from the terminal after receiving an instruction to determine to delete the specific type file after the prompt message is displayed and after an operation corresponding to the call behavior is executed is completed, the terminal can automatically delete the file after the file of the designated type is called so as to release the storage space occupied by the multimedia file, thereby achieving the effects of reducing unnecessary occupation of the storage space of the terminal and improving the efficiency of arranging the storage space by a user.
Fig. 5 is a block diagram illustrating a file deleting device according to an exemplary embodiment, which may be implemented by a combination of hardware and software or by a pure hardware circuit to form all or part of the structure of the terminal, so as to implement the steps executed by the terminal in fig. 1 or fig. 2. The device includes: a monitoring module 501 and a deleting module 502.
And the monitoring module 501 is configured to monitor the calling behavior of the file of the specified type in the terminal.
The deleting module 502 is configured to delete the specified type file from the terminal after the operation execution corresponding to the calling behavior monitored by the monitoring module 501 is completed.
To sum up, the file deleting device provided in the embodiment of the present disclosure monitors the call behavior of the specified type file in the terminal, and deletes the specified type file from the terminal after the operation corresponding to the call behavior is completed, so that the terminal can automatically delete the specified type file after the specified type file is called, thereby releasing the storage space occupied by the multimedia file, reducing unnecessary occupation of the storage space of the terminal, and improving the efficiency of the user in sorting the storage space.
Fig. 6 is a block diagram illustrating another file deleting device according to an exemplary embodiment, which may be implemented by a combination of hardware and software or a pure hardware circuit to form all or part of the structure of the terminal, so as to implement the steps executed by the terminal in fig. 1 or fig. 2. The device includes: a monitoring module 601 and a deletion module 602.
The monitoring module 601 is configured to monitor a call behavior to a file of a specified type in the terminal.
The deleting module 602 is configured to delete the specified type file from the terminal after the operation execution corresponding to the calling behavior monitored by the monitoring module 601 is completed. That is, after the confirmation by the first condition determining module 604 or the second condition determining module 605 and the acquiring of the deleting instruction received by the displaying module 606, the deleting module 602 deletes the file of the specified type.
In one implementation, the apparatus further comprises: an acquisition module 603.
The obtaining module 603 is configured to obtain deletion decision information corresponding to the call behavior monitored by the monitoring module 601.
A deleting module 602, configured to delete the specified type file from the terminal after the operation corresponding to the invoking behavior is completed when the deletion decision information satisfies a preset condition.
In another implementation, the obtaining module 603 includes: a duration obtaining sub-module 603 a; the device also includes: a first condition determining module 604.
The duration obtaining sub-module 603a is configured to obtain a remaining duration of the specified type file after the call behavior monitored by the monitoring module 601, where the remaining duration is a time length from the time when the specified type file is created to the current time.
The first condition determining module 604 is configured to determine that the deletion decision information satisfies the preset condition when the duration obtaining submodule 603a determines that the retention duration of the specified type file is smaller than a preset time threshold.
In another implementation, the obtaining module 603 includes: a capacity acquisition submodule 603 b; the device also includes: a second condition determination module 605.
The capacity obtaining sub-module 603b is configured to obtain the remaining storage capacity of the terminal after the call behavior monitored by the monitoring module 601.
A second condition determining module 605 configured to determine that the deletion decision information satisfies the preset condition when the capacity obtaining sub-module 603b determines that the remaining storage capacity of the terminal is less than a preset capacity threshold.
In yet another implementation, the apparatus further includes: a display module 606.
A display module 606 configured to display a reminding message for reminding whether to determine to delete the specified type file when the first condition determination module 604 or the second condition determination module 605 determines that the deletion decision information satisfies the preset condition is received.
The deleting module 602 is configured to, if receiving the operation of deleting the specified type of file determined by the displaying module 606, execute an operation of deleting the specified type of file from the terminal.
In a further implementation, the file of the specified type processed by the apparatus is at least one of a screenshot image, an image taken by the terminal, an audio recorded by the terminal or a video recorded by the terminal.
In another implementation manner, the obtaining module 603 includes: the sub-module 603c is executed.
The execution sub-module 603c is configured to, when the operation corresponding to the call behavior determined by the received duration obtaining sub-module 603a or the capacity obtaining sub-module 603b is to externally issue the specified type file, execute the operation of obtaining the deletion decision information.
In summary, the file deleting device provided in this disclosure monitors a call behavior of a specific type file in a terminal, obtains a retention time of the specific type file when the call behavior of the specific type file in the terminal is monitored, determines that deletion decision information satisfies a preset condition when the retention time of the specific type file is smaller than a preset time threshold, or obtains a remaining storage capacity of the terminal when the call behavior of the specific type file in the terminal is monitored, determines that deletion decision information satisfies the preset condition when the remaining storage capacity of the terminal is smaller than a preset capacity threshold, displays a prompt message, receives an instruction to delete the specific type file after the prompt message is displayed, and deletes the specific type file from the terminal after an execution of an operation corresponding to the call behavior is completed, the terminal can automatically delete the file after the file of the designated type is called so as to release the storage space occupied by the multimedia file, thereby achieving the effects of reducing unnecessary occupation of the storage space of the terminal and improving the efficiency of arranging the storage space by a user.
An exemplary embodiment of the present disclosure further provides a file deleting device, which can implement the file deleting method provided by the present disclosure. The device includes: a processor, and a memory for storing executable instructions for the processor. Wherein the processor is configured to:
monitoring the calling behavior of a specified type file in the terminal;
and deleting the specified type file from the terminal after the operation corresponding to the calling behavior is executed.
Acquiring deletion decision information corresponding to the calling behavior;
after the operation corresponding to the calling behavior is executed, deleting the specified type file from the terminal, including:
and when the deletion decision information meets the preset condition, deleting the specified type file from the terminal after the operation execution corresponding to the calling behavior is finished.
Optionally, obtaining deletion decision information corresponding to the call behavior includes:
acquiring the retention time of the specified type file, wherein the retention time is the time length from the time when the specified type file is created to the current time;
the processor is further configured to:
and when the retention time of the specified type file is less than a preset time threshold, determining that the deletion decision information meets the preset condition.
Optionally, obtaining deletion decision information corresponding to the call behavior includes:
acquiring the residual storage capacity of the terminal;
the processor is further configured to:
and when the residual storage capacity of the terminal is smaller than a preset capacity threshold, determining that the deletion decision information meets the preset condition.
Optionally, the processor is further configured to:
displaying a reminding message, wherein the reminding message is used for reminding whether the specified type file is determined to be deleted or not;
and if the operation of determining to delete the specified type file is received, executing the operation of deleting the specified type file from the terminal.
Optionally, the file of the designated type is at least one of a screenshot image, an image shot by the terminal, an audio recorded by the terminal or a video recorded by the terminal.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the above functional modules is illustrated, and in practical applications, the above functions may be distributed by different functional modules according to actual needs, that is, the content structure of the device is divided into different functional modules, so as to complete all or part of the functions described above.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating an apparatus 700 according to an example embodiment. For example, the apparatus 700 may be an electronic device such as a smartphone, a wearable device, a smart television, and a vehicle terminal.
Referring to fig. 7, apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the apparatus 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 77 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of device 700, the change in position of device 700 or a component of device 700, the presence or absence of user contact with device 700, the orientation or acceleration/deceleration of device 700, and the change in temperature of device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the device 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of the apparatus 700, enable the apparatus 700 to perform the file deletion method described above, which is performed by a terminal.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (8)
1. A method for file deletion, the method comprising:
monitoring a calling behavior of a screen capture image in a terminal, wherein the calling behavior comprises reading the screen capture image;
sending the screen shot image to a friend or a group in a social network through a social network application;
acquiring the retention time of the screen capture image, wherein the retention time is the time length from the moment when the screen capture image is created to the current moment;
and when the retention time of the screenshot image is less than a preset time threshold, deleting the screenshot image from the terminal after the screenshot image is sent.
2. The method of claim 1, further comprising:
acquiring the residual storage capacity of the terminal;
and when the residual storage capacity of the terminal is smaller than a preset capacity threshold value and the retention time of the screenshot image is smaller than a preset time threshold value, deleting the screenshot image from the terminal after the screenshot image is sent.
3. The method of claim 1, further comprising:
displaying a reminding message, wherein the reminding message is used for reminding whether the screen capture image is determined to be deleted or not;
and if the operation of determining to delete the screen capture image is received, executing the operation of deleting the screen capture image from the terminal.
4. A file deletion apparatus, characterized in that the apparatus comprises:
the monitoring module is configured to monitor calling behaviors of the screen capture images in the terminal, wherein the calling behaviors comprise reading of the screen capture images;
a deletion module configured to send the screenshot image to a friend or group in a social network when the screenshot image is sent through a social network application; acquiring the retention time of the screen capture image, wherein the retention time is the time length from the moment when the screen capture image is created to the current moment; and when the retention time of the screen capture image is less than a preset time threshold, and after the screen capture image is sent, deleting the screen capture image from the terminal.
5. The apparatus of claim 4, further comprising:
an obtaining module configured to obtain a remaining storage capacity of the terminal;
and the deleting module is configured to delete the screen capture image from the terminal after the transmission of the screen capture image is finished when the residual storage capacity of the terminal is smaller than a preset capacity threshold and the retention time of the screen capture image is smaller than a preset time threshold.
6. The apparatus of claim 4, further comprising:
a display module configured to display a reminder message for reminding whether to determine to delete the screen capture image;
the deleting module is configured to execute the operation of deleting the screen capture image from the terminal if the operation of determining to delete the screen capture image is received.
7. A file deletion apparatus, characterized in that the apparatus comprises:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
monitoring a calling behavior of a screen capture image in a terminal, wherein the calling behavior comprises reading the screen capture image;
sending the screen shot image to a friend or a group in a social network through a social network application;
acquiring the retention time of the screen capture image, wherein the retention time is the time length from the moment when the screen capture image is created to the current moment;
and when the retention time of the screenshot image is less than a preset time threshold, deleting the screenshot image from the terminal after the screenshot image is sent.
8. A non-transitory computer readable storage medium having instructions stored thereon, wherein the instructions are executed by a processor to implement the steps of the method according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611074611.6A CN106534562B (en) | 2016-11-29 | 2016-11-29 | File deletion method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611074611.6A CN106534562B (en) | 2016-11-29 | 2016-11-29 | File deletion method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106534562A CN106534562A (en) | 2017-03-22 |
CN106534562B true CN106534562B (en) | 2020-02-28 |
Family
ID=58353952
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611074611.6A Active CN106534562B (en) | 2016-11-29 | 2016-11-29 | File deletion method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106534562B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229522A (en) * | 2017-06-05 | 2017-10-03 | 努比亚技术有限公司 | Mobile terminal document processing method, mobile terminal and computer-readable recording medium |
CN107193446B (en) * | 2017-07-10 | 2020-07-10 | 北京小米移动软件有限公司 | Image processing method, device, terminal and storage medium |
CN107396149B (en) * | 2017-08-31 | 2019-12-06 | 北京小米移动软件有限公司 | Method and device for playing advertisement |
CN107580131A (en) * | 2017-09-04 | 2018-01-12 | 维沃移动通信有限公司 | Image processing method and mobile terminal |
CN107678978A (en) * | 2017-10-12 | 2018-02-09 | 深圳辉烨通讯技术有限公司 | A kind of memory space processing method and processing device of intelligent terminal |
CN107977418A (en) * | 2017-11-23 | 2018-05-01 | 广东欧珀移动通信有限公司 | A kind of screenshot picture management method, screenshot picture managing device and mobile terminal |
CN108090173A (en) * | 2017-12-14 | 2018-05-29 | 广东欧珀移动通信有限公司 | Delet method, device, terminal and the storage medium of record screen file |
CN111125153A (en) * | 2019-12-26 | 2020-05-08 | 腾讯科技(深圳)有限公司 | Object management method, device, client and medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008271324A (en) * | 2007-04-23 | 2008-11-06 | Olympus Imaging Corp | Image storing device and photographic device |
CN104378593A (en) * | 2014-11-17 | 2015-02-25 | 苏州立瓷电子技术有限公司 | Monitoring system intelligent control method based on data preprocessing and alternate storage |
CN105069120B (en) * | 2015-08-12 | 2018-10-16 | 北京金山安全软件有限公司 | Picture management method and device and mobile terminal |
-
2016
- 2016-11-29 CN CN201611074611.6A patent/CN106534562B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106534562A (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106534562B (en) | File deletion method and device | |
CN114467297B (en) | Video call display method and related device applied to electronic equipment | |
EP3079082B1 (en) | Method and apparatus for album display | |
EP3188066B1 (en) | A method and an apparatus for managing an application | |
CN107544809B (en) | Method and device for displaying page | |
EP3979100A1 (en) | Image display method and electronic device | |
CN105095873B (en) | Photo be shared method, apparatus | |
CN107608561B (en) | Touch screen control method and device | |
US10292004B2 (en) | Method, device and medium for acquiring location information | |
CN105845124B (en) | Audio processing method and device | |
CN105224349B (en) | Application program deletion prompting method and device | |
EP3128411B1 (en) | Interface display method, terminal, computer program and recording medium | |
KR102376700B1 (en) | Method and Apparatus for Generating a Video Content | |
US20170171321A1 (en) | Methods and devices for managing accounts | |
CN107040591B (en) | Method and device for controlling client | |
CN105912450B (en) | Application state information display method and device | |
CN110061904B (en) | Method, device and system for acquiring social information, electronic equipment and storage medium | |
CN104394481A (en) | Video playing method and device | |
KR102268540B1 (en) | Method for managing data and an electronic device thereof | |
CN104360875B (en) | Privacy mode starts method and apparatus | |
CN107272896B (en) | Method and device for switching between VR mode and non-VR mode | |
CN109634762B (en) | Data recovery method and device, electronic equipment and storage medium | |
CN112632184A (en) | Data processing method and device, electronic equipment and storage medium | |
CN107832377B (en) | Image information display method, device and system, and storage medium | |
CN107169042B (en) | Method and device for sharing pictures and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |