CN108063818B - Data downloading method, device, terminal and computer readable storage medium - Google Patents

Data downloading method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN108063818B
CN108063818B CN201711369784.5A CN201711369784A CN108063818B CN 108063818 B CN108063818 B CN 108063818B CN 201711369784 A CN201711369784 A CN 201711369784A CN 108063818 B CN108063818 B CN 108063818B
Authority
CN
China
Prior art keywords
data
terminal
target deletion
marking
downloading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711369784.5A
Other languages
Chinese (zh)
Other versions
CN108063818A (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.)
Shenzhen Zhongke Mingwang Communication Software Co ltd
Original Assignee
Shenzhen Zhongke Mingwang Communication Software 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 Shenzhen Zhongke Mingwang Communication Software Co ltd filed Critical Shenzhen Zhongke Mingwang Communication Software Co ltd
Priority to CN201711369784.5A priority Critical patent/CN108063818B/en
Publication of CN108063818A publication Critical patent/CN108063818A/en
Application granted granted Critical
Publication of CN108063818B publication Critical patent/CN108063818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention belongs to the technical field of communication, and particularly relates to a data downloading method, a data downloading device, a data downloading terminal and a computer readable storage medium, wherein the method comprises the following steps: starting a data downloading task according to a received data downloading instruction, and monitoring the residual downloading data volume of the data downloading task and the available storage data volume of a terminal in real time; if the available storage data volume is smaller than the residual download data volume, target deletion data stored in the terminal is detected; deleting the target deletion data; the storage space meeting the storage requirement is provided for the data downloading, the data downloading failure caused by insufficient storage space can be effectively avoided when the data downloading is carried out, and the success rate of the data downloading is improved.

Description

Data downloading method, device, terminal and computer readable storage medium
Technical Field
The present invention belongs to the field of communication technologies, and in particular, to a data downloading method, apparatus, terminal, and computer-readable storage medium.
Background
With the wide popularization of mobile intelligent terminals such as smart phones and tablet computers, users often download network resources to local mobile intelligent terminals in the process of using the mobile intelligent terminals. However, in the prior art, the storage space of the local mobile intelligent terminal is usually limited, and when a user downloads data to the local mobile intelligent terminal, data downloading may fail due to insufficient storage space, thereby reducing the success rate of data downloading.
Disclosure of Invention
The embodiment of the invention provides a data downloading method, a data downloading device, a terminal and a computer readable storage medium, which can improve the success rate of data downloading.
A first aspect of an embodiment of the present invention provides a data downloading method, which is applied to a terminal, and includes:
starting a data downloading task according to a received data downloading instruction, and monitoring the residual downloading data volume of the data downloading task and the available storage data volume of a terminal in real time;
if the available storage data volume is smaller than the residual download data volume, target deletion data stored in the terminal is detected;
and deleting the target deletion data.
A second aspect of the embodiments of the present invention provides a data downloading apparatus, which is applied to a terminal, and includes:
the monitoring module is used for starting a data downloading task according to a received data downloading instruction, and monitoring the residual downloading data volume of the data downloading task and the available storage data volume of the terminal in real time;
the detection module is used for detecting target deletion data stored in the terminal if the available storage data amount is smaller than the residual download data amount;
and the deleting module is used for deleting the target deleting data.
A third aspect of the embodiments of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the above method.
In the embodiment of the invention, when data downloading is started and in the data downloading process, the residual downloading data volume of the data downloading and the available storage data volume of the terminal are monitored in real time, and further, when the available storage data volume is monitored to be smaller than the residual downloading data volume, the target deletion data stored in the terminal is detected and deleted, so that a storage space meeting the storage requirement of the data downloading is provided for the data downloading, the data downloading failure caused by insufficient storage space can be effectively avoided when the data downloading is carried out, and the success rate of the data downloading is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart illustrating an implementation of a data downloading method according to an embodiment of the present invention;
fig. 2 is a flowchart of an implementation of a data downloading method according to a second embodiment of the present invention;
fig. 3 is a flowchart of an implementation of a data downloading method according to a third embodiment of the present invention;
fig. 4 is a flowchart of an implementation of a data downloading method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a data downloading device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 shows a flowchart of an implementation of a data downloading method according to a first embodiment of the present invention, where the method is performed by a terminal, and the terminal includes a Personal Computer (PC), a tablet computer, a smartphone, a Personal Digital Assistant (PDA), a learning machine, a wearable device, and the like. The method may include steps S101 to S103.
In S101, a data download task is started according to the received data download instruction, and the remaining download data amount of the data download task and the available storage data amount of the terminal are monitored in real time.
For example, when a user downloads data such as network videos, pictures, music and the like on the terminal, the terminal receives a data downloading instruction corresponding to the downloaded data such as the network videos, the pictures, the music and the like. At the moment, the terminal starts a data downloading task according to the received data downloading instruction, and monitors the residual downloading data volume of the data downloading task and the available storage data volume of the terminal in real time. In the embodiment of the invention, the monitoring data downloading information comprises the residual downloading data volume of the data downloading and the available storage data volume of the terminal, which are obtained when the data downloading is started and in the data downloading process.
When data downloading is started, the residual downloading data volume of the data downloading and the available storage data volume of the terminal are obtained, whether the available storage data volume of the terminal is smaller than the residual downloading data volume can be judged in the first time, so that a storage space capable of meeting the storage requirement of the terminal is reserved for the data downloading in the first time, the data downloading failure caused by insufficient storage space in the downloading process is avoided, and the success rate of the data downloading is improved. When starting data downloading, the acquired remaining download data amount of the data downloading refers to the total data amount included in the data downloading task.
In addition, since the user may also perform non-downloading tasks during the data downloading process, for example, transferring data from the usb disk to the terminal memory, this will also result in a sudden reduction of the available memory space of the terminal. Therefore, in the data downloading process, the remaining downloading data amount of the data downloading and the available storage data amount of the terminal also need to be acquired, and whether the available storage data amount of the terminal is smaller than the remaining downloading data amount is further judged, so that a storage space capable of meeting the storage requirement of the terminal is reserved for the data downloading in the data downloading process, the data downloading failure caused by insufficient storage space in the downloading process is avoided, and the success rate of the data downloading is further improved.
In S102, if the available stored data amount is smaller than the remaining downloaded data amount, target deletion data stored in the terminal is detected.
After the remaining download data volume of the data download and the available storage data volume of the terminal are obtained, comparing the remaining download data volume with the available storage data volume to judge whether the available storage data volume is smaller than the remaining download data volume, and when the available storage data volume is smaller than the remaining download data volume, indicating that the storage space in the terminal is not enough to store the data in the data download, so that target deletion data stored in the terminal needs to be detected, so that the terminal deletes the target deletion data, and reserves an available storage space meeting the storage requirement for the data download.
Optionally, the detecting target deletion data stored in the terminal includes: if the data stored in the terminal is not empty, acquiring history record information of each piece of data stored in the terminal; the history information includes: a recent access time interval, an average access time interval, a creation time, and a number of accesses; and marking the data corresponding to the history information meeting the preset conditions as target deletion data.
The data stored in the terminal may include data downloaded from the network by the terminal, and may also include data stored in the memory by the user through performing other operations and data downloaded from the network.
In some embodiments of the present invention, the marking, as target deletion data, data corresponding to the history information that meets a preset condition includes: and marking the data with the latest access time interval and/or the average access time interval larger than a first threshold, and/or the creation time larger than a second threshold, and/or the access times smaller than a third threshold as target deletion data.
The latest access time interval refers to a time interval from the last time of accessing the data to the data downloading, and if the latest access time interval is greater than the first threshold, the data is not accessed for a long time; if the average access time interval of the data is greater than the first threshold, it indicates that the access frequency of the data is low, and at this time, the data may be marked as target deletion data, so that the terminal deletes the data. It should be noted that the threshold values of the latest access time interval and the average access time interval may be the same or different.
In the process of detecting the target deletion data stored in the terminal, if the data creation time in the terminal is greater than a second threshold, the data may also be marked as the target deletion data, and the determination condition for marking the data as the target deletion data may further include whether the access frequency of the data is less than a third threshold, and so on.
Optionally, the detecting target deletion data stored in the terminal further includes: if the data stored in the terminal is not empty, acquiring the data type information of each piece of data stored in the terminal; the data type information includes: the source type of the data and the storage format type of the data, wherein the source type of the data comprises: network downloading data and locally generated data, wherein the storage format types of the data comprise: picture data, audio data, video data, document data, compressed packet data; and marking the data stored in the terminal as target deletion data and data to be deleted according to the data type information.
The network download data refers to data downloaded from the internet, for example, picture data downloaded from a browser, video data or audio data downloaded through third-party application software; the locally generated data refers to data generated without downloading via the internet, for example, photo data or video data captured by a camera of a capture terminal.
Further, the marking the data stored in the terminal as target deletion data and data to be deleted according to the data type information includes: performing first priority ordering on the data stored in the terminal according to the source type of the data; performing second priority sorting on the data subjected to the first priority sorting according to the storage format type of the data to obtain the priority sequence of the data stored in the terminal; according to the priority sequence of the data stored in the terminal, sequentially accumulating the sum of the data volumes of the data until the sum of the data volumes is larger than or equal to the data volume difference value, marking the data included in the sum of the data volumes as target deletion data, and marking the rest data as data to be deleted; and the data quantity difference value is the remaining download data quantity minus the available storage data quantity.
For example, the priority of the locally generated data stored in the terminal is set to be higher than the priority of the network download data, and then the locally generated data and the network download data are subjected to second priority ordering according to the storage format type of the data; for another example, the priority of the document data is set to be higher than that of the picture data, the priority of the picture data is higher than that of the audio data, the priority of the audio data is higher than that of the video data, and the priority of the video data is higher than that of the compressed packet data, so that the priority order of the data stored in the terminal is obtained. This is by way of illustration only and is not meant as a limitation on the scope of the invention. In other embodiments of the present invention, or in practical applications, the priorities of the locally generated data and the network downloaded data may also be set in other priority orders, for example, the priority of the compressed packet data is set to be higher than that of the video data. Optionally, if the data stored in the terminal is empty, outputting a prompt message indicating that the downloaded data volume is too large.
If the data stored in the terminal is empty, it indicates that the data downloaded from the network is not stored in the terminal or the data stored in the memory by the user through executing other operations is not stored. If the available storage data volume of the terminal is smaller than the residual download data volume, the data volume of the data download is too large, the terminal cannot support the data download, and at the moment, the terminal can output a prompt message of the too large download data volume to a user, so that the user can conveniently upgrade the storage space of the terminal.
In S103, the target deletion data is deleted.
In step S102, target deletion data stored in the terminal has been marked, so in embodiment S103 of the present invention, a storage space meeting the storage requirement of the data download may be reserved for the data download by deleting the target deletion data.
Optionally, the deleting the target deletion data includes: the terminal automatically deletes the target deletion data and/or the terminal displays a deletion selection control; and then receiving the triggering operation of the user on the deletion selection control, and deleting the target deletion data.
For example, when the data amount of the target deletion data is smaller than a fourth threshold, the terminal automatically deletes the target deletion data, and when the data amount of the target deletion data is larger than the fourth threshold, the user needs to trigger a deletion selection control displayed by the terminal to delete the target deletion data. So as to prevent the terminal from deleting data by mistake and bring unnecessary loss to the user. Wherein, the value range of the fourth threshold value
Fig. 2 shows a flowchart of an implementation of a data downloading method according to a second embodiment of the present invention, where this embodiment further defines the step of marking data corresponding to the history information that meets the preset condition as target deletion data in the first embodiment, and this embodiment may include: step S201 to step S205.
In S201, a data download task is started according to the received data download instruction, and the remaining download data amount of the data download task and the available storage data amount of the terminal are monitored in real time.
Step S201 is the same as step S101, and is not described herein again.
In S202, if the available stored data amount is smaller than the remaining downloaded data amount, target deletion data stored in the terminal is detected; if the data stored in the terminal is not empty, acquiring history record information of each piece of data stored in the terminal;
in S203, if the total data amount of the data corresponding to the history information meeting the preset condition is greater than the data amount difference, marking the data corresponding to the history information meeting the preset condition as data to be deleted; wherein the data amount difference is obtained by subtracting the available storage data amount from the residual download data amount; the history information includes: a recent access time interval, an average access time interval, a creation time, and a number of accesses.
For example, in the case that the sum of the data amount of which the latest access time interval and/or the average access time interval is greater than the first threshold and/or the creation time is greater than the second threshold and/or the number of accesses is less than the third threshold is greater than the remaining download data amount minus the available stored data amount, marking the data to be deleted for the data of which the latest access time interval and/or the average access time interval is greater than the first threshold and/or the creation time is greater than the second threshold and/or the number of accesses is less than the third threshold; the terminal can delete the data according to the data amount corresponding to the data downloading when deleting the data, so that the storage resources in the terminal are utilized to the maximum extent, a large amount of data cannot be deleted due to small primary data storage space, and even unnecessary loss is brought to a user.
In S204, the data to be deleted is sorted.
Optionally, the sorting manner may include sorting the time intervals of the latest access time interval and/or the average access time interval from large to small; or, the sorting mode may be sorted from early to late according to the creation time; or the sorting manner may be sorted according to the number of accesses from most to few, or the sorting manner may be sorted according to the data size of each piece of data, which is merely an example and is not shown to limit the protection scope of the present invention, and other sorting manners may also be included in other embodiments of the present invention.
In S205, the sum of the data amounts of the data to be deleted is sequentially accumulated until the sum of the data amounts is greater than or equal to the data amount difference, and the data to be deleted included in the sum of the data amounts is marked as target deletion data.
In the embodiment of the invention, the data to be deleted, the data volume of which is greater than or equal to the residual download data volume minus the available storage data volume, is marked as target deletion data in sequence, so that the data volume marked as the target deletion data is just equal to the residual download data volume minus the available storage data volume, or is slightly greater than the residual download data volume minus the available storage data volume; therefore, when the terminal deletes the data, the data can be deleted according to the data amount corresponding to the data downloading, and all the data meeting the deletion condition are not required to be deleted, so that the storage resource in the terminal is utilized to the maximum extent, a large amount of data cannot be deleted due to small data storage space at one time, and even unnecessary loss is brought to a user.
Optionally, fig. 3 is a flowchart of an implementation of the data downloading method provided by the third embodiment of the present invention, and further includes S206 to S208.
In S206, the data list marked as the target deletion data and the data list of the data to be deleted are displayed.
In S207, a user' S removal operation on the displayed marked target deletion data and a selection operation on the data to be deleted are obtained;
in S208, the target deletion data corresponding to the removal operation is marked as data to be deleted, and the data to be deleted corresponding to the selected operation is marked as target deletion data.
In practical applications, the data stored in the terminal, in which the latest access time interval and/or the average access time interval is greater than the first threshold and/or the creation time is greater than the second threshold and/or the number of accesses is less than the third threshold, may be data that the user does not want to delete, for example, photo data, and the like, and therefore, after the terminal marks the target deletion data and the data to be deleted, the data is displayed on the terminal, and the user performs a partial or total removal operation on the displayed target deletion data and a partial or total selection operation on the data to be deleted, so as to avoid the terminal from deleting the data by mistake.
Optionally, after S208, comprising: if the data volume marked as the target deletion data is larger than or equal to the data volume of the residual download minus the available storage data volume, displaying a deletion selection control; and receiving the triggering operation of the user on the deletion selection control, and deleting the target deletion data.
That is to say, after the user removes the target deletion data and selects the data to be deleted, when the data amount marked as the target deletion data again is greater than or equal to the data amount obtained by subtracting the available stored data amount from the remaining downloaded data amount, the terminal displays a deletion selection control, so that the user triggers the deletion selection control to delete the target deletion data, and reserves a download space meeting the storage requirement for the data download.
Fig. 4 shows a flowchart of an implementation of a data downloading method provided by the fourth embodiment of the present invention, where the method includes steps S401 to S406.
In S401, a data download task is started according to the received data download instruction, and the remaining download data amount of the data download task and the available storage data amount of the terminal are monitored in real time.
In S402, if the available stored data amount is smaller than the remaining downloaded data amount, target deletion data stored in the terminal is detected; if the data stored in the terminal is not empty, acquiring history record information of each piece of data stored in the terminal; the history information includes: a recent access time interval, an average access time interval, a creation time, and a number of accesses.
In S403, the data corresponding to the history information that meets the preset condition is marked as target deletion data.
Steps S401 to S403 are the same as steps S101 and S201 to S102, and are not repeated herein.
In S404, if the total data amount of the data corresponding to the history information that meets the preset condition is smaller than the data amount difference, then: and marking the data corresponding to the historical record information meeting the preset conditions as target deletion data, and displaying a data list marked as the target deletion data and a data list corresponding to unmarked data stored in the terminal.
In S405, a user' S operation of removing the displayed marked target deletion data and an operation of selecting unmarked data are obtained.
In S406, the target deletion data corresponding to the removal operation is marked as unmarked data, and the unmarked data corresponding to the selected operation is marked as target deletion data.
In the embodiment of the invention, when the data volume marked as the target deletion data is less than the remaining download data volume minus the available storage data volume, the unmarked data in the terminal is displayed, and the user performs the operation of removing the displayed marked target deletion data and the operation of selecting the unmarked data, so that the data volume marked as the target deletion data is greater than or equal to the remaining download data volume minus the available storage data volume, thereby meeting the storage requirement of the current data download. Meanwhile, the user removes the displayed marked target deletion data and selects unmarked data, so that the terminal can be prevented from deleting data by mistake, unnecessary loss to the user is avoided, and the data downloading efficiency of the terminal is improved.
Optionally, after S406, displaying a deletion selection control if the data size of the marked target deletion data is greater than or equal to the remaining downloaded data size minus the available stored data size; and receiving the triggering operation of the user on the deletion selection control, and deleting the target deletion data.
That is to say, after the user performs the operation of removing the target deletion data and the operation of selecting the unmarked data in the terminal, when the data amount re-marked as the target deletion data is greater than or equal to the data amount obtained by subtracting the available stored data amount from the remaining downloaded data amount, the terminal displays a deletion selection control, so that the user triggers the deletion selection control to delete the target deletion data, a download space meeting the storage requirement of the data download is reserved, and the success rate of data download is improved.
Fig. 5 shows a schematic structural diagram of a data downloading device 500 according to an embodiment of the present invention, which includes a monitoring module 501, a detecting module 502, and a deleting module 503.
The monitoring module 501 is configured to start a data downloading task according to a received data downloading instruction, and monitor the remaining downloading data amount of the data downloading task and the available storage data amount of the terminal in real time;
a detecting module 502, configured to detect target deletion data stored in the terminal if the available stored data amount is smaller than the remaining downloaded data amount;
a deleting module 503, configured to delete the target deletion data.
It should be noted that, for convenience and simplicity of description, the specific working process of the data downloading apparatus 500 described above may refer to the corresponding process of the method described in fig. 2 to fig. 4, and redundant description is not repeated here.
As shown in fig. 6, the user terminal may further include: one or more input devices 63 (only one shown in fig. 6) and one or more output devices 64 (only one shown in fig. 6). The processor 61, memory 62, input device 63 and output device 64 are connected by a bus 65.
It should be understood that, in the embodiment of the present invention, the Processor 61 may be a Central Processing Unit (CPU), and the Processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 63 may include a keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 64 may include a display, a speaker, etc.
The memory 62 may include a read-only memory and a random access memory, and provides instructions and data to the processor 61. Some or all of memory 61 may also include non-volatile random access memory. For example, the memory 62 may also store device type information.
The memory 62 stores a computer program that is executable on the processor 61, for example, a data download program. The processor 61 implements the steps in the above-mentioned data downloading method embodiments when executing the computer program, such as steps 101 to 103 shown in fig. 1 and steps 201 to 205 shown in fig. 2. Alternatively, the processor 61, when executing the computer program, implements the functions of each module/unit in the above-mentioned device embodiments, for example, the functions of the modules 501 to 503 shown in fig. 5.
The computer program may be divided into one or more modules/units, which are stored in the memory 62 and executed by the processor 61 to accomplish the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the data downloading user terminal. For example, the computer program may be divided into a monitoring module, a detection module and a deletion module, and each module has the following specific functions: the data downloading device is used for starting a data downloading task according to a received data downloading instruction, and monitoring the residual downloading data volume of the data downloading task and the available storage data volume of the terminal in real time; the detection module is used for detecting target deletion data stored in the terminal if the available storage data amount is smaller than the residual download data amount; and the deleting module is used for deleting the target deleting data.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the 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 invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/user terminal and method may be implemented in other manners. For example, the above-described embodiments of the apparatus/ue are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (15)

1. A data downloading method is applied to a terminal and is characterized by comprising the following steps:
starting a data downloading task according to a received data downloading instruction, and monitoring the residual downloading data volume of the data downloading task and the available storage data volume of a terminal in real time, wherein the data comprises network videos, pictures and/or music;
comparing the residual download data volume of the data download task with the available storage data volume, and if the available storage data volume is smaller than the residual download data volume, detecting target deletion data stored in the terminal;
deleting the target deletion data;
the detecting of the target deletion data stored in the terminal includes:
if the data stored in the terminal is not empty, acquiring the data type information of each piece of data stored in the terminal; the data type information includes: the source type of the data and the storage format type of the data, wherein the source type of the data comprises: network downloading data and locally generating data;
marking the data stored in the terminal as target deletion data and data to be deleted according to the data type information, specifically: according to the priority sequence of the data stored in the terminal, sequentially accumulating the sum of the data volumes of the data until the sum of the data volumes is larger than or equal to the data volume difference value, marking the data included in the sum of the data volumes as target deletion data, and marking the rest data as data to be deleted; and the data quantity difference value is the remaining download data quantity minus the available storage data quantity.
2. The method of claim 1, wherein the detecting target deletion data stored in the terminal further comprises:
if the data stored in the terminal is not empty, acquiring history record information of each piece of data stored in the terminal; the history information includes: a recent access time interval, an average access time interval, a creation time, and a number of accesses;
and marking the data corresponding to the history information meeting the preset conditions as target deletion data.
3. The method of claim 2, wherein marking the data corresponding to the history information meeting the preset condition as target deletion data comprises: and marking the data with the latest access time interval and/or the average access time interval larger than a first threshold, and/or the creation time larger than a second threshold, and/or the access times smaller than a third threshold as target deletion data.
4. The method of claim 2, wherein marking the data corresponding to the history information meeting the preset condition as target deletion data comprises:
if the total data amount of the data corresponding to the historical record information meeting the preset condition is larger than the data amount difference value, marking the data corresponding to the historical record information meeting the preset condition as data to be deleted; wherein the data amount difference is obtained by subtracting the available storage data amount from the residual download data amount;
sorting the data to be deleted;
and sequentially accumulating the sum of the data volumes of the data to be deleted until the sum of the data volumes is greater than or equal to the data volume difference, and marking the data to be deleted included in the sum of the data volumes as target deletion data.
5. The method of any of claims 1 to 4, wherein the storage format type of the data comprises: picture data, audio data, video data, document data, compressed packet data.
6. The method of claim 5, wherein the marking the data stored in the terminal as the target deletion data and the data to be deleted according to the data type information comprises:
performing first priority ordering on the data stored in the terminal according to the source type of the data;
performing second priority sorting on the data subjected to the first priority sorting according to the storage format type of the data to obtain the priority sequence of the data stored in the terminal;
according to the priority sequence of the data stored in the terminal, sequentially accumulating the sum of the data volumes of the data until the sum of the data volumes is greater than or equal to a data volume difference value, wherein the data volume difference value is the difference between the residual download data volume and the available stored data volume;
and marking the data included in the sum of the data volumes as target deletion data, and marking the rest data as data to be deleted.
7. The method of claim 4 or 6, wherein after marking the data to be deleted included in the sum of the data amounts as target deletion data, the method comprises:
displaying the data list marked as target deletion data and the data list of the data to be deleted;
acquiring the removal operation of the user on the displayed marked target deletion data and the selection operation of the data to be deleted;
and marking the target deletion data corresponding to the removing operation as data to be deleted, and marking the data to be deleted corresponding to the selected operation as the target deletion data.
8. The method of claim 7, wherein marking the target deletion data corresponding to the removal operation as the data to be deleted, and marking the data to be deleted corresponding to the selected operation as the target deletion data comprises:
if the data volume marked as the target deletion data is larger than or equal to the data volume of the residual download minus the available storage data volume, displaying a deletion selection control;
and receiving the triggering operation of the user on the deletion selection control, and deleting the target deletion data.
9. The method of claim 4, further comprising:
if the total data amount of the data corresponding to the history information meeting the preset condition is smaller than the data amount difference value, the following steps are performed:
marking data corresponding to the historical record information meeting preset conditions as target deletion data, and displaying a data list marked as the target deletion data and a data list corresponding to unmarked data stored in the terminal;
acquiring the removing operation of the user on the displayed marked target deletion data and the selecting operation on the unmarked data;
and marking the target deletion data corresponding to the removing operation as unmarked data, and marking the unmarked data corresponding to the selected operation as target deletion data.
10. The method of claim 9, wherein marking target deletion data corresponding to the removal operation as unmarked data and marking unmarked data corresponding to the selected operation as target deletion data comprises:
if the data volume marked as the target deletion data is larger than or equal to the data volume of the residual download minus the available storage data volume, displaying a deletion selection control;
and receiving the triggering operation of the user on the deletion selection control, and deleting the target deletion data.
11. The method of any of claims 1-4, 9, wherein the deleting the target deletion data comprises:
automatically deleting the target deletion data, and/or
Displaying a delete selection control;
and receiving the triggering operation of the user on the deletion selection control, and deleting the target deletion data.
12. The method of claim 2, wherein the detecting of the target deletion data stored in the terminal comprises:
and if the data stored in the terminal is empty, outputting a prompt message of overlarge downloaded data volume.
13. A data downloading device applied to a terminal is characterized by comprising:
the monitoring module is used for starting a data downloading task according to a received data downloading instruction, monitoring the residual downloading data volume of the data downloading task and the available storage data volume of a terminal in real time, wherein the data comprises network videos, pictures and/or music;
a detection module, configured to compare a remaining download data amount of the data download task with the available stored data amount, and if the available stored data amount is smaller than the remaining download data amount, detect target deletion data stored in the terminal, where the detecting target deletion data stored in the terminal includes: if the data stored in the terminal is not empty, acquiring the data type information of each piece of data stored in the terminal; the data type information includes: the source type of the data and the storage format type of the data, wherein the source type of the data comprises: network downloading data and local generation data, and marking the data stored in the terminal as target deletion data and data to be deleted according to the data type information, wherein the specific steps are as follows: according to the priority sequence of the data stored in the terminal, sequentially accumulating the sum of the data volumes of the data until the sum of the data volumes is larger than or equal to the data volume difference value, marking the data included in the sum of the data volumes as target deletion data, and marking the rest data as data to be deleted; wherein the data amount difference is obtained by subtracting the available storage data amount from the residual download data amount;
and the deleting module is used for deleting the target deleting data.
14. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1-12 when executing the computer program.
15. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 12.
CN201711369784.5A 2017-12-18 2017-12-18 Data downloading method, device, terminal and computer readable storage medium Active CN108063818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711369784.5A CN108063818B (en) 2017-12-18 2017-12-18 Data downloading method, device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711369784.5A CN108063818B (en) 2017-12-18 2017-12-18 Data downloading method, device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108063818A CN108063818A (en) 2018-05-22
CN108063818B true CN108063818B (en) 2021-05-14

Family

ID=62139014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711369784.5A Active CN108063818B (en) 2017-12-18 2017-12-18 Data downloading method, device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108063818B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108282690A (en) * 2018-01-26 2018-07-13 广东欧珀移动通信有限公司 A kind of Internet video method for down loading, device and computer readable storage medium
CN109624772B (en) * 2018-11-21 2021-11-05 国电科技新能源(深圳)有限公司 Charging pile operation management method and charging pile
CN109857548B (en) * 2019-01-04 2023-08-22 平安科技(深圳)有限公司 Storage space optimization method, storage space optimization device, computer equipment and storage medium
CN109885260B (en) * 2019-02-27 2023-02-24 广州三星通信技术研究有限公司 Method and device for storing data for electronic terminal
CN110971962B (en) * 2019-11-30 2022-03-22 咪咕视讯科技有限公司 Slice caching method and device and storage medium
CN111966642B (en) * 2020-08-28 2022-09-30 维沃移动通信有限公司 Picture management method and device and electronic equipment
CN112379838A (en) * 2020-11-13 2021-02-19 Oppo广东移动通信有限公司 Data downloading method and device, storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1645340A (en) * 2004-01-20 2005-07-27 乐金电子(中国)研究开发中心有限公司 Control method of mobile communication terminal memory

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101527887B (en) * 2008-03-05 2015-05-20 中兴通讯股份有限公司 Processing method in mail receiving process
CN104601683B (en) * 2014-12-31 2018-01-23 广东欧珀移动通信有限公司 A kind of file download management method and mobile terminal and communication system
CN106445414B (en) * 2016-09-20 2019-09-03 广州视源电子科技股份有限公司 Terminal device free memory extended method and system
CN106502588A (en) * 2016-10-19 2017-03-15 广东欧珀移动通信有限公司 A kind of memory space management and storage device
CN106951550B (en) * 2017-03-27 2020-06-05 Oppo广东移动通信有限公司 Data processing method and device and mobile terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1645340A (en) * 2004-01-20 2005-07-27 乐金电子(中国)研究开发中心有限公司 Control method of mobile communication terminal memory

Also Published As

Publication number Publication date
CN108063818A (en) 2018-05-22

Similar Documents

Publication Publication Date Title
CN108063818B (en) Data downloading method, device, terminal and computer readable storage medium
CN107832100B (en) APK plug-in loading method and terminal thereof
CN110012217B (en) Method and device for determining acquisition resolution and electronic equipment
CN109359091B (en) File management method, device, terminal and computer readable storage medium
CN105988805B (en) Application program management method and mobile terminal
CN104461504A (en) Managing method of terminal application program
US11061857B2 (en) Data processing method and device
CN104601683A (en) File download management method, mobile terminal and communication system
CN105955770A (en) Application program uninstalling method and terminal
CN105893471B (en) Data processing method and electronic equipment
CN109117153B (en) Application processing method, device, terminal and storage medium
CN106569917B (en) Data backup method and mobile terminal
CN105512033A (en) Automated testing method and device of mobile terminal and mobile terminal
CN104461505A (en) Terminal
US10938773B2 (en) Method and apparatus for synchronizing contact information and medium
CN110543451A (en) Method and device for efficiently cleaning equipment files
CN109271543B (en) Thumbnail display method and device, terminal and computer-readable storage medium
CN109104481B (en) File integrity detection method, file integrity detection device and terminal equipment
CN110780820A (en) Method and device for determining continuous storage space, electronic equipment and storage medium
CN108536512B (en) Interface switching method and device and terminal equipment
CN106302821B (en) Data request method and equipment thereof
CN108572985B (en) Page display method and device
CN107977418A (en) A kind of screenshot picture management method, screenshot picture managing device and mobile terminal
CN108762985B (en) Data recovery method and related product
CN108874586B (en) Data recovery method and related product

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