CN110287146B - Method, device and computer storage medium for downloading application - Google Patents

Method, device and computer storage medium for downloading application Download PDF

Info

Publication number
CN110287146B
CN110287146B CN201910532215.0A CN201910532215A CN110287146B CN 110287146 B CN110287146 B CN 110287146B CN 201910532215 A CN201910532215 A CN 201910532215A CN 110287146 B CN110287146 B CN 110287146B
Authority
CN
China
Prior art keywords
application
storage space
downloaded
downloading
terminal equipment
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
CN201910532215.0A
Other languages
Chinese (zh)
Other versions
CN110287146A (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.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network Technology 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 Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201910532215.0A priority Critical patent/CN110287146B/en
Publication of CN110287146A publication Critical patent/CN110287146A/en
Application granted granted Critical
Publication of CN110287146B publication Critical patent/CN110287146B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/122File system administration, e.g. details of archiving or snapshots using management policies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method, equipment and a computer storage medium for downloading an application applied to a client, wherein the method comprises the following steps: the client sends a promotion resource acquisition request to the server; receiving and displaying application downloading analogizing wide resources returned by the server side; after obtaining the application downloading analogy wide resource clicked by the user, determining whether the second remaining storage space of the terminal equipment is larger than or equal to the storage space required by the application to be downloaded, and if so, creating a standby storage file locally on the terminal equipment; and after the standby storage file is created, determining whether the third remaining storage space of the terminal equipment is larger than or equal to the storage space required by the application to be downloaded, if so, downloading the application to be downloaded, and otherwise, deleting the standby storage file and then downloading the application to be downloaded. The invention can improve the resource utilization rate of the terminal equipment, thereby enhancing the flexibility of application downloading and improving the success rate of application downloading.

Description

Method, device and computer storage medium for downloading application
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of internet technologies, and in particular, to a method, an apparatus, and a computer storage medium for downloading an application.
[ background of the invention ]
In the prior art, when a user clicks a popularization resource in a terminal device to download an application, a problem of application download failure caused by insufficient remaining storage space of the terminal device usually occurs. Therefore, it is desirable to provide a method for improving the success rate of downloading applications.
[ summary of the invention ]
In view of this, the present invention provides a method, a device and a computer storage medium for downloading an application, which can improve the resource utilization rate of a terminal device, thereby enhancing the flexibility of downloading the application and increasing the success rate of downloading the application.
The technical scheme adopted by the invention for solving the technical problem is to provide an application downloading method which is applied to a client side and comprises the following steps: the client sends a promotion resource acquisition request to the server; receiving and displaying application downloading analogizing wide resources returned by the server side; after obtaining the application downloading analogy wide resource clicked by a user, determining whether a second residual storage space of the terminal equipment is larger than or equal to a storage space required by the application to be downloaded, and if so, establishing a standby storage file for the application to be downloaded locally on the terminal equipment; and after the standby storage file is created, determining whether a third remaining storage space of the terminal equipment is larger than or equal to a storage space required by the application to be downloaded, if so, downloading the application to be downloaded, and otherwise, deleting the standby storage file and then downloading the application to be downloaded.
The technical scheme adopted by the invention for solving the technical problem is to provide an application downloading method which is applied to a server side and comprises the following steps: receiving a promotion resource acquisition request sent by a client; and acquiring the application download analogy wide resource according to the popularization resource acquisition request, and returning the determined application download analogy wide resource to the client.
According to the technical scheme, the relation between the second residual storage space of the terminal equipment and the storage space required by the application to be downloaded is compared, the standby storage file is firstly established for the application to be downloaded locally on the terminal equipment, then the relation between the third residual storage space of the terminal equipment and the storage space required by the application to be downloaded is compared, whether the downloading is directly carried out or the downloading is carried out after the standby storage file is deleted is determined, the problem that the downloading of the application to be downloaded fails due to the fact that the storage space of the terminal equipment is insufficient or the storage space is occupied by other downloading tasks in the downloading process is solved, the storage resources of the terminal equipment are effectively utilized, the flexibility of the application downloading is enhanced, and the success rate of the application downloading is improved.
[ description of the drawings ]
Fig. 1 is a flowchart of a method for downloading an application at a client according to an embodiment of the present invention;
fig. 2 is a flowchart of an application downloading method applied to a server according to an embodiment of the present invention;
fig. 3 is a block diagram of a computer system/server according to an embodiment of the invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Fig. 1 is a flowchart of a method for downloading an application according to an embodiment of the present invention, as shown in fig. 1, the method is applied to a client, and includes:
in 101, a client sends a promotional resource acquisition request to a server.
In this step, the client sends a promotional resource acquisition request to the server to receive the corresponding promotional resource from the server.
Specifically, before the client sends the request for obtaining the promoted resource to the server, the following contents may be further included in this step: acquiring a first residual storage space of terminal equipment where a client is located; and adding the acquired first residual storage space into the promotion resource acquisition request and sending the promotion resource acquisition request to the server side, so that the server side acquires the application download analogy wide resource meeting the preset condition according to the first residual space. The first remaining storage space is the current remaining storage space of the terminal device when the client sends the promotion resource acquisition request to the server.
That is to say, in this step, the promotion resources meeting the certain size condition can be obtained from the server side by obtaining the remaining storage space of the terminal device, so as to avoid the problem of application download failure caused by the excessively large storage space required by the application to be downloaded corresponding to the obtained promotion resources, thereby further improving the success rate of application download.
In the invention, the promotion resource can be at least one of characters, pictures, sound, videos and the like, and is used for realizing the purpose of transmitting specific information to the user.
It is to be understood that the terminal device in the present invention may be various electronic apparatuses capable of accessing the server side through the network, and may be implemented as a hardware device or software. When the terminal device includes hardware, it may include, but is not limited to, a smart phone, a tablet computer, an e-book reader, a smart wearable device, a laptop portable computer, a desktop computer, and the like. When the terminal device includes software, it may be installed in various hardware described above, and may be implemented as a single or a plurality of software modules.
The server side in the present invention may include hardware devices or software that support network connectivity to provide various network services. When the server includes hardware, it may be implemented as a distributed device group composed of a plurality of network devices, or may be implemented as a single network device, such as a distributed server or a single server. When the server includes software, the software can be installed in the network devices listed above. At this time, as software, it may be implemented as a plurality of software or software modules for providing a distributed service, for example, or as a single software or software module. And is not particularly limited herein.
At 102, receiving and displaying the application download analogy wide resource returned by the server side.
In this step, after the client sends the popularization resource acquisition request to the server in step 101, the application download analogy wide resource returned by the server is received and displayed. The Application downloading analogy wide resource is a popularization resource for downloading an Application (APP), and a user can download a corresponding Application from an Application store after clicking the Application downloading popularization resource.
It can be understood that, in this step, when displaying the application download promotion resource, the promotion resource can be displayed at the client by using the forms of banner promotion resource, information flow promotion resource, screen opening promotion resource, screen insertion promotion resource, and the like.
In 103, after obtaining that the user clicks the application download analogy wide resource, determining whether a second remaining storage space of the terminal device is greater than or equal to a storage space required by the application to be downloaded, and if so, creating a standby storage file for the application to be downloaded locally on the terminal device.
In this step, after the application download promotion resource is displayed by the client in step 102, if the operation that the user clicks the application download analogy wide resource is obtained, the storage space required by the application to be downloaded corresponding to the application download analogy wide resource clicked by the user is obtained, and then whether the second remaining storage space of the terminal device is greater than or equal to the storage space required by the application to be downloaded is determined, if yes, a standby storage file is created for the application to be downloaded locally on the terminal device. The second remaining storage space in this step is the current remaining storage space of the terminal device when the user clicks the application download analogizing wide resource.
In the step, when the storage space required by the application to be downloaded corresponding to the application download analogy broad Resource clicked by the user is obtained, the storage space can be directly obtained according to a Uniform Resource Locator (URL) of the clicked application download analogy broad Resource, wherein the URL may include the storage space required by the application to be downloaded in advance; and accessing a corresponding server according to the URL of the application downloading popularization resource, and acquiring the storage space required by the application to be downloaded from the accessed server.
It can be understood that, if it is determined in this step that the second remaining storage space of the terminal device is smaller than the storage space required by the application to be downloaded, the following contents may be included: cleaning a storage space of the terminal equipment; determining whether the residual storage space of the cleaned terminal equipment is larger than or equal to the storage space required by the application to be downloaded, if so, continuing to execute the step of creating a standby storage file locally according to the storage space required by the application to be downloaded; otherwise, the downloading task is suspended, and whether the residual storage space of the terminal equipment is larger than or equal to the storage space required by the application to be downloaded is determined again at a preset time interval, and the process is carried out in a circulating mode until the residual storage space of the terminal equipment is determined to be larger than or equal to the storage space required by the application to be downloaded.
In addition, if it is determined in this step that the second remaining storage space of the terminal device is smaller than the storage space required by the application to be downloaded, a prompt message may be sent to the user to notify the user that the application cannot be downloaded due to the shortage of the storage space of the terminal device, and the user may be prompted to provide a sufficient storage space for the current application to be downloaded in a manner of manually deleting the file or the application in the terminal device.
Specifically, in this step, when the terminal device creates a standby storage file for the application to be downloaded locally, a file occupying a storage space of a preset size may be created as the standby storage space. For example, this step may create a file occupying 100M of storage space locally as the spare storage space, or create a file occupying the same size as the storage space required by the application to be downloaded as the spare storage space.
In addition, in order to avoid the problem of download failure of the application to be downloaded caused by directly deleting the whole standby storage file and preempting the storage space by other download tasks after only one standby storage file is created, the following method can be adopted in the step to create the standby storage file for the application to be downloaded locally on the terminal device: acquiring a storage space required by an application to be downloaded; the method comprises the steps of locally creating N placeholder files occupying the same storage space in a terminal device, wherein the storage space occupied by the N placeholder files is the same as the storage space required by an application to be downloaded, and N is a positive integer larger than or equal to 2.
For example, if the storage space required by the application to be downloaded is a M, if 10 placeholder files are created in this step, the storage space occupied by each placeholder file is (a/10) M.
In the step, the storage resources in the terminal equipment can be more effectively utilized by establishing the standby storage file for the application to be downloaded locally in the terminal equipment, so that the resource utilization rate of the terminal equipment is improved, and the application to be downloaded is downloaded based on the established standby storage file, so that the success rate of application downloading is further improved.
In 104, after the backup storage space is created, it is determined whether a third remaining storage space of the terminal device is greater than or equal to a storage space required by the application to be downloaded, if so, the application to be downloaded is downloaded, otherwise, the application to be downloaded is downloaded after the backup storage file is deleted.
In this step, it is first determined whether the third remaining storage space of the terminal device is greater than or equal to the storage space required by the application to be downloaded after the backup storage file is created in step 103, if so, the application to be downloaded is continuously downloaded to complete the download task, otherwise, the application to be downloaded is continuously downloaded to complete the download task after the created backup storage file is deleted. The downloading of the application to be downloaded in this step is the installation file corresponding to the downloaded application to be downloaded.
And if the downloading of the application to be downloaded is completed under the condition that the third remaining storage space of the terminal equipment is greater than or equal to the storage space required by the application to be downloaded, deleting the standby storage file created locally in the terminal equipment.
Specifically, if the standby storage file created in step 103 is N placeholder files, the following method may be adopted when the application to be downloaded is downloaded after the standby storage file is deleted in this step: and deleting each placeholder file in sequence until the current residual storage space of the terminal equipment is more than or equal to the storage space required by the application to be downloaded, and downloading the application to be downloaded to finish the downloading task.
In addition, when the application to be downloaded is downloaded by deleting the placeholder file in this step, the following contents may be included: detecting whether the residual storage space of the terminal equipment is larger than or equal to the storage space required by the un-downloaded part of the application to be downloaded in real time in the downloading process, and if so, continuing to download the application to be downloaded; and if not, deleting the placeholder files in sequence, and continuing to download the application to be downloaded after the residual storage space of the terminal equipment is more than or equal to the storage space required by the un-downloaded part of the application to be downloaded.
That is to say, this step can also ensure that in the downloading process of the application to be downloaded, the problem that the current application to be downloaded fails to be downloaded due to the insufficient storage space caused by the fact that other downloading tasks occupy the remaining storage space of the terminal device is avoided, so that the success rate of the application downloading is further improved.
In addition, the method can improve the flexibility of application downloading by deleting the created standby storage file in the application downloading process, and ensures that the terminal equipment has enough storage space to complete the downloading task in the application downloading process.
After the downloading of the application to be downloaded is completed in the step, a prompt message that the downloading of the application to be downloaded is successful can be sent to the user to remind the user that the application to be downloaded is successfully downloaded.
It can be understood that, if the standby storage file created in step 103 is N placeholder files, this step further includes, after completing downloading the application to be downloaded: and deleting the occupied files left locally on the terminal equipment.
This is because, in this step, when downloading the application to be downloaded, the downloading of the application to be downloaded may be completed after only part of the placeholder file is deleted, which may cause a problem that the placeholder file that is not deleted may remain locally in the terminal device. Therefore, in this step, after the downloading of the application to be downloaded is completed, the occupied files locally remaining in the terminal device need to be deleted, so that the waste of the storage space in the terminal device is avoided.
Fig. 2 is a flowchart of a method for downloading an application according to an embodiment of the present invention, as shown in fig. 2, the method is executed at a server side, and includes:
in 201, a promotional resource acquisition request sent by a client is received.
In this step, the server receives the promotion resource acquisition request sent by the client, and then acquires the corresponding promotion resource according to the received acquisition request and returns the promotion resource to the client.
If the client adds the first remaining storage space of the terminal device where the client is located in the promotion resource acquisition request, the server also acquires the first remaining storage space of the terminal device where the client sending the request is located.
In 202, the application download analogy broad resource is obtained according to the promotion resource obtaining request, and the determined application download analogy broad resource is returned to the client.
In this step, the acquisition of the application download analogy broad resource is performed according to the popularization resource acquisition request acquired in step 201, and the acquired application download analogy broad resource is returned to the client.
Specifically, if the popularization resource acquisition request further includes the first remaining storage space, the following method may be adopted when obtaining the application download analogy wide resource according to the popularization resource acquisition request in this step: acquiring a first residual storage space in the promotion resource acquisition request; and acquiring the application download analogizing wide resource meeting the preset condition according to the acquired first residual storage space.
The preset condition may be that a difference between a storage space required by the application to be downloaded corresponding to the application download analogy wide resource and the first remaining storage space is less than or equal to a preset threshold, or that a storage space required by the application to be downloaded corresponding to the application download analogy wide resource is less than or equal to the remaining storage space.
It can be understood that, when the server side returns the application download promotion resource to the client side in this step, the URL corresponding to the promotion resource is also returned to the client side together.
In addition, the server side can return other types of popularization resources to the client side in the step.
The interactive process of application downloading performed by the client and the server is illustrated as follows:
firstly, a client acquires a first residual storage space (if 300M) of a terminal device, and then sends a promotion resource acquisition request containing the first residual storage space to a server; the server side acquires the application download analogy wide resource which meets the preset condition according to the first residual storage space in the promotion resource acquisition request, and returns the acquired application download analogy wide resource to the client side; the client receives and displays the application download analogy wide resources returned from the server; if the user clicks the popularization resource of the application A (if the storage space required by downloading the application A is 200M), if the second remaining storage space of the terminal device (if the storage space required by downloading the application A is 300M), the second remaining storage space is larger than the storage space required by the application A, and 10 placeholder files occupying 20M storage space are respectively created locally; then determining that the third remaining storage space (100M) of the terminal equipment after the creation of the placeholder file is smaller than the storage space (200M) required by the application A, sequentially deleting the created placeholder file until the current remaining storage space (200M) of the terminal equipment is equal to the storage space (200M) required by the application A after the deletion of 5 placeholder files, and continuing downloading to complete a downloading task; since only 5 of the 10 placeholder files are deleted, the locally remaining 5 placeholder files of the terminal device are deleted after the application A is downloaded.
Fig. 3 illustrates a block diagram of an exemplary computer system/server 012 suitable for use to implement some embodiments of the invention. The computer system/server 012 shown in fig. 3 is only an example, and should not bring any limitations to the function and the scope of use of the embodiments of the present invention.
As shown in fig. 3, the computer system/server 012 is embodied as a general purpose computing device. The components of computer system/server 012 may include, but are not limited to: one or more processors or processing units 016, a system memory 028, and a bus 018 that couples various system components including the system memory 028 and the processing unit 016.
Bus 018 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer system/server 012 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 012 and includes both volatile and nonvolatile media, removable and non-removable media.
System memory 028 can include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)030 and/or cache memory 032. The computer system/server 012 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 034 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be connected to bus 018 via one or more data media interfaces. Memory 028 can include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the present invention.
Program/utility 040 having a set (at least one) of program modules 042 can be stored, for example, in memory 028, such program modules 042 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof might include an implementation of a network environment. Program modules 042 generally perform the functions and/or methodologies of embodiments of the present invention as described herein.
The computer system/server 012 may also communicate with one or more external devices 014 (e.g., keyboard, pointing device, display 024, etc.), and in some embodiments of the invention, the computer system/server 012 communicates with an external radar device, and may also communicate with one or more devices that enable a user to interact with the computer system/server 012, and/or with any devices (e.g., network card, modem, etc.) that enable the computer system/server 012 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 022. Also, the computer system/server 012 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 020. As shown, the network adapter 020 communicates with the other modules of the computer system/server 012 via bus 018. It should be appreciated that, although not shown, other hardware and/or software modules may be used in conjunction with the computer system/server 012, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 016 executes programs stored in the system memory 028, thereby executing various functional applications and data processing, such as implementing the method flow provided by the embodiment of the present invention.
The computer program described above may be provided in a computer storage medium encoded with a computer program that, when executed by one or more computers, causes the one or more computers to perform the method flows and/or apparatus operations shown in the above-described embodiments of the invention. For example, the method flows provided by the embodiments of the invention are executed by one or more processors described above.
With the development of time and technology, the meaning of media is more and more extensive, and the propagation path of computer programs is not limited to tangible media any more, and can also be downloaded from a network directly and the like. Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
According to the technical scheme, the relation between the second residual storage space of the terminal equipment and the storage space required by the application to be downloaded is compared, the standby storage file is firstly established for the application to be downloaded locally on the terminal equipment, then the relation between the third residual storage space of the terminal equipment and the storage space required by the application to be downloaded is compared, whether the downloading is directly carried out or the downloading is carried out after the standby storage file is deleted is determined, the problem that the downloading of the application to be downloaded fails due to the fact that the storage space of the terminal equipment is insufficient or the storage space is occupied by other downloading tasks in the downloading process is solved, and therefore the storage resources of the terminal equipment are effectively utilized, the flexibility of the application downloading is enhanced, and the success rate of the application downloading is improved.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice.
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, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (11)

1. A method for downloading an application, applied to a client, is characterized in that the method comprises:
the client sends a promotion resource acquisition request to the server;
receiving and displaying application downloading analogizing wide resources returned by the server side;
after obtaining the application downloading analogy wide resource clicked by a user, determining whether a second residual storage space of the terminal equipment is larger than or equal to a storage space required by the application to be downloaded, and if so, establishing a standby storage file for the application to be downloaded locally on the terminal equipment;
after the standby storage file is created, determining whether a third remaining storage space of the terminal equipment is larger than or equal to a storage space required by the application to be downloaded, if so, downloading the application to be downloaded, and otherwise, deleting the standby storage file and then downloading the application to be downloaded;
wherein the creating of the standby storage file for the application to be downloaded locally at the terminal device includes:
acquiring a storage space required by the application to be downloaded;
and respectively creating N placeholder files occupying the same storage space locally on the terminal equipment, wherein the storage space occupied by the N placeholder files is the same as the storage space required by the application to be downloaded, and N is a positive integer larger than or equal to 2.
2. The method of claim 1, before the client sends the request for obtaining the promoted resource to the server, further comprising:
acquiring a first residual storage space of terminal equipment where a client is located;
and adding the first residual storage space into the promotion resource acquisition request and sending the promotion resource acquisition request to the server so that the server acquires the application download analogy wide resource meeting the preset condition according to the first residual storage space.
3. The method according to claim 2, wherein the preset condition is:
the difference value between the storage space required by the application to be downloaded corresponding to the application downloading analogy wide resource and the first residual storage space is less than or equal to a preset threshold value; or
And the storage space required by the application to be downloaded corresponding to the application downloading analogy wide resource is less than or equal to the first residual storage space.
4. The method according to claim 1, wherein when determining that the second remaining storage space of the terminal device is smaller than the storage space required by the application to be downloaded, the method comprises:
cleaning a storage space of the terminal equipment;
determining whether the residual storage space of the terminal equipment after cleaning is larger than or equal to the storage space required by the application to be downloaded, if so, continuing to execute the step of creating a standby storage file locally according to the storage space required by the application to be downloaded;
otherwise, the downloading task is suspended, whether the residual storage space of the terminal equipment is larger than or equal to the storage space required by the application to be downloaded is determined at preset time intervals, and the process is carried out in a circulating mode until the residual storage space of the terminal equipment is determined to be larger than or equal to the storage space required by the application to be downloaded.
5. The method according to claim 1, wherein the creating, locally at the terminal device, a backup storage file for the application to be downloaded comprises: and creating a file occupying a storage space with a preset size locally on the terminal equipment as a standby storage file.
6. The method according to claim 1, wherein after the downloading of the application to be downloaded is completed when the third remaining storage space of the terminal device is greater than or equal to the storage space required by the application to be downloaded, the method further comprises: and deleting the local standby storage file of the terminal equipment.
7. The method of claim 1, wherein the deleting the backup storage file and then downloading the application to be downloaded comprises:
and deleting each placeholder file in sequence until the current residual storage space of the terminal equipment is more than or equal to the storage space required by the application to be downloaded, and downloading the application to be downloaded.
8. The method of claim 7, wherein when downloading the application to be downloaded, the method further comprises:
detecting whether the residual storage space of the terminal equipment is larger than or equal to the storage space required by the un-downloaded part of the application to be downloaded in real time in the downloading process, and if so, continuing to download the application to be downloaded;
and if not, deleting the placeholder files in sequence, and continuing to download the application to be downloaded after the residual storage space of the terminal equipment is more than or equal to the storage space required by the un-downloaded part of the application to be downloaded.
9. The method according to claim 7 or 8, characterized in that the method further comprises:
and after the downloading of the application to be downloaded is completed, deleting the occupied files which are left locally on the terminal equipment.
10. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-9.
11. A storage medium containing computer-executable instructions for performing the method of any one of claims 1-9 when executed by a computer processor.
CN201910532215.0A 2019-06-19 2019-06-19 Method, device and computer storage medium for downloading application Active CN110287146B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910532215.0A CN110287146B (en) 2019-06-19 2019-06-19 Method, device and computer storage medium for downloading application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910532215.0A CN110287146B (en) 2019-06-19 2019-06-19 Method, device and computer storage medium for downloading application

Publications (2)

Publication Number Publication Date
CN110287146A CN110287146A (en) 2019-09-27
CN110287146B true CN110287146B (en) 2021-07-20

Family

ID=68004145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910532215.0A Active CN110287146B (en) 2019-06-19 2019-06-19 Method, device and computer storage medium for downloading application

Country Status (1)

Country Link
CN (1) CN110287146B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641376B (en) * 2020-05-11 2024-06-04 深圳Tcl新技术有限公司 Intelligent terminal upgrading optimization method and intelligent terminal
CN113110851A (en) * 2021-06-15 2021-07-13 北京易真学思教育科技有限公司 Resource loading method and device, electronic equipment and medium
CN113691823A (en) * 2021-08-19 2021-11-23 北京百度网讯科技有限公司 Resource file processing method, device, equipment, storage medium and program product
CN114697314A (en) * 2022-03-25 2022-07-01 宁波全网云医疗科技股份有限公司 Medical image downloading system and method
CN116684407B (en) * 2023-08-01 2023-10-27 腾讯科技(深圳)有限公司 Resource downloading method, device, equipment and readable storage medium

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257509A (en) * 2008-03-25 2008-09-03 深圳市戴文科技有限公司 Method, apparatus as well as mobile terminal equipment of wireless downloading
CN102215479A (en) * 2011-06-22 2011-10-12 中兴通讯股份有限公司 Method, server and system for downloading and installing upgrade package
CN102231163A (en) * 2011-06-30 2011-11-02 珠海金山办公软件有限公司 System and method for synchronously and preferentially updating specified file
CN102413155A (en) * 2010-09-21 2012-04-11 腾讯科技(深圳)有限公司 Data transmission method and system
CN102685164A (en) * 2011-03-16 2012-09-19 中国电信股份有限公司 Method and system for downloading and updating files under condition of limited storage space of terminal
CN103491171A (en) * 2013-09-24 2014-01-01 成都金山数字娱乐科技有限公司 Network resource asynchronous loading method and device
CN105491145A (en) * 2015-12-21 2016-04-13 清华大学 Agglomeration system of multi-manufacturer cloud storage service, and method
CN105635213A (en) * 2014-10-31 2016-06-01 广州市动景计算机科技有限公司 Network connection downloading method and device
CN106250462A (en) * 2016-07-28 2016-12-21 北京金山安全软件有限公司 Method and device for cleaning junk files and mobile device
CN106254561A (en) * 2016-10-12 2016-12-21 上海安馨信息科技有限公司 The real-time offline download method of a kind of Internet resources file and system
CN107590283A (en) * 2017-09-29 2018-01-16 浙江大华技术股份有限公司 A kind of file recovery method, device, server and computer-readable recording medium
CN107678978A (en) * 2017-10-12 2018-02-09 深圳辉烨通讯技术有限公司 A kind of memory space processing method and processing device of intelligent terminal
CN107734023A (en) * 2017-09-30 2018-02-23 努比亚技术有限公司 Static resource document down loading method, mobile terminal and computer-readable recording medium
CN107784104A (en) * 2017-10-26 2018-03-09 中山市君扬电子科技有限公司 A kind of data-pushing update method of children education software
CN108282690A (en) * 2018-01-26 2018-07-13 广东欧珀移动通信有限公司 A kind of Internet video method for down loading, device and computer readable storage medium
US10275396B1 (en) * 2014-09-23 2019-04-30 Symantec Corporation Techniques for data classification based on sensitive data
CN110661829A (en) * 2018-06-28 2020-01-07 杭州海康威视系统技术有限公司 File downloading method and device, client and computer readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6856994B2 (en) * 2002-05-30 2005-02-15 Hewlett-Packard Development Company, L.P. System and method for condensing application software
US8918439B2 (en) * 2010-06-17 2014-12-23 International Business Machines Corporation Data lifecycle management within a cloud computing environment
US10324893B1 (en) * 2011-12-15 2019-06-18 Veritas Technologies Llc Backup application catalog analyzer
CN104866510B (en) * 2014-02-26 2019-02-19 北京金山安全软件有限公司 Method and device for removing residual file and method and device for establishing feature library of residual file
CN104182532B (en) * 2014-08-28 2018-10-16 北京金山安全软件有限公司 Terminal file cleaning method and device and terminal
CN105045802B (en) * 2015-05-22 2019-05-07 杭州亿方云网络科技有限公司 A kind of polymorphic type previewing file system of message-driven
US11126740B2 (en) * 2016-11-04 2021-09-21 Microsoft Technology Licensing, Llc Storage isolation for containers

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257509A (en) * 2008-03-25 2008-09-03 深圳市戴文科技有限公司 Method, apparatus as well as mobile terminal equipment of wireless downloading
CN102413155A (en) * 2010-09-21 2012-04-11 腾讯科技(深圳)有限公司 Data transmission method and system
CN102685164A (en) * 2011-03-16 2012-09-19 中国电信股份有限公司 Method and system for downloading and updating files under condition of limited storage space of terminal
CN102215479A (en) * 2011-06-22 2011-10-12 中兴通讯股份有限公司 Method, server and system for downloading and installing upgrade package
CN102231163A (en) * 2011-06-30 2011-11-02 珠海金山办公软件有限公司 System and method for synchronously and preferentially updating specified file
CN103491171A (en) * 2013-09-24 2014-01-01 成都金山数字娱乐科技有限公司 Network resource asynchronous loading method and device
US10275396B1 (en) * 2014-09-23 2019-04-30 Symantec Corporation Techniques for data classification based on sensitive data
CN105635213A (en) * 2014-10-31 2016-06-01 广州市动景计算机科技有限公司 Network connection downloading method and device
CN105491145A (en) * 2015-12-21 2016-04-13 清华大学 Agglomeration system of multi-manufacturer cloud storage service, and method
CN106250462A (en) * 2016-07-28 2016-12-21 北京金山安全软件有限公司 Method and device for cleaning junk files and mobile device
CN106254561A (en) * 2016-10-12 2016-12-21 上海安馨信息科技有限公司 The real-time offline download method of a kind of Internet resources file and system
CN107590283A (en) * 2017-09-29 2018-01-16 浙江大华技术股份有限公司 A kind of file recovery method, device, server and computer-readable recording medium
CN107734023A (en) * 2017-09-30 2018-02-23 努比亚技术有限公司 Static resource document down loading method, mobile terminal and computer-readable recording medium
CN107678978A (en) * 2017-10-12 2018-02-09 深圳辉烨通讯技术有限公司 A kind of memory space processing method and processing device of intelligent terminal
CN107784104A (en) * 2017-10-26 2018-03-09 中山市君扬电子科技有限公司 A kind of data-pushing update method of children education software
CN108282690A (en) * 2018-01-26 2018-07-13 广东欧珀移动通信有限公司 A kind of Internet video method for down loading, device and computer readable storage medium
CN110661829A (en) * 2018-06-28 2020-01-07 杭州海康威视系统技术有限公司 File downloading method and device, client and computer readable storage medium

Also Published As

Publication number Publication date
CN110287146A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
CN110287146B (en) Method, device and computer storage medium for downloading application
CN112055064B (en) Data synchronization method, device, equipment and storage medium
CN113946425A (en) Service processing method and device, electronic equipment and computer readable storage medium
CN109885781B (en) Mixed page unified browsing method, device, equipment and storage medium
CN110955640B (en) Cross-system data file processing method, device, server and storage medium
CN109218393B (en) Push implementation method, device, equipment and computer storage medium
CN109495549B (en) Method, equipment and computer storage medium for application pull alive
CN112003712B (en) Service processing method, electronic device and computer readable storage medium
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
CN113312036B (en) Large screen display method, device and equipment of Web page and storage medium
CN109347899B (en) Method for writing log data in distributed storage system
CN110969479B (en) Method, equipment and computer storage medium for displaying popularization resources
CN110932966A (en) Message processing method and device, computer storage medium and electronic equipment
CN113656041A (en) Data processing method, device, equipment and storage medium
CN111680240B (en) Page display method and device and electronic equipment
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN113781154A (en) Information rollback method, system, electronic equipment and storage medium
CN110888583B (en) Page display method, system and device and electronic equipment
CN114490266A (en) Data acquisition method, device, equipment and storage medium
CN113919310A (en) Short message content determination method and device, electronic equipment and storage medium
CN114490265A (en) Data acquisition method, device, equipment and storage medium
CN112752263A (en) Method, equipment and computer storage medium for connecting hot spots
CN111767486A (en) Method, device, electronic equipment and computer readable medium for displaying page
CN112347382A (en) Product page sharing method and device and electronic equipment
CN111241368A (en) Data processing method, device, medium and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant