WO2018053916A1 - Application download method, device and terminal, and computer storage medium - Google Patents

Application download method, device and terminal, and computer storage medium Download PDF

Info

Publication number
WO2018053916A1
WO2018053916A1 PCT/CN2016/105494 CN2016105494W WO2018053916A1 WO 2018053916 A1 WO2018053916 A1 WO 2018053916A1 CN 2016105494 W CN2016105494 W CN 2016105494W WO 2018053916 A1 WO2018053916 A1 WO 2018053916A1
Authority
WO
WIPO (PCT)
Prior art keywords
specified application
application
memory
terminal
specified
Prior art date
Application number
PCT/CN2016/105494
Other languages
French (fr)
Chinese (zh)
Inventor
朱加太
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018053916A1 publication Critical patent/WO2018053916A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Definitions

  • the present invention relates to the field of communications, and in particular to an application downloading method, apparatus, terminal, and computer storage medium.
  • scenario one the user needs to install one.
  • Application of 0.6G ROM Scenario 2: The user should install an application that occupies 0.4G ROM, and the application will generate buffer and data of about 0.2G ROM with the use;
  • Scene 3 The application runs up with RAM 0.3G.
  • the user's intuitive experience is that the application cannot be installed; or the mobile phone reminds the memory that it is insufficient for a period of time, and because the application cache does not have enough space, the application reloads the resource every time the application loads, causing the application to load slowly; or when the application is turned on The phone is abnormally stuck, and the user does not know the specific reason, which greatly reduces the user experience.
  • Embodiments of the present invention provide an application downloading method, device, terminal, and computer storage Media to at least solve the problem of low user experience when downloading applications in related technologies.
  • a method for downloading an application including: acquiring information indicating whether a specified application can be normally installed; predicting whether a specified application can be installed normally according to the information; and predicting a result as a specified application Download the specified application if it can be installed normally.
  • the information includes: the current remaining memory of the terminal, the memory of the installation package of the specified application, the memory required to install the specified application, and the memory occupied by the specified application after the specified application is installed.
  • the specified application can be normally installed, including one of the following: allowing the specified application to be installed, and the specified application to be installed after the installation is successful.
  • predicting whether the specified application can be normally installed according to the information includes: determining whether the current remaining memory of the terminal is greater than the storage capacity of the installation package of the specified application. The sum of the memory required to install the specified application. If the judgment result is yes, the result of the pre-judgment is to allow the specified application to be installed; if the judgment result is no, the result of the pre-judgment is that the specified application cannot be allowed to be installed.
  • the method further includes: before receiving the specified application, receiving the installation package for indicating that the specified application is not deleted after the specified application is installed.
  • the first indication information is: predicting whether the specified application can be installed normally according to the information, further comprising: determining whether the current remaining memory of the terminal is greater than the memory occupied by the installation package of the specified application, the memory required to install the specified application, and the memory occupied by the specified application after the specified application is installed.
  • the pre-judgment result further includes: the specified application is installed normally after the installation is successful; if the judgment result is no, the pre-judgment result further includes: the specified application has a stuck phenomenon after the normal operation .
  • the method further includes: receiving the indication for receiving After the application is installed, the second indication information of the installation package of the specified application is deleted; whether the specified application can be installed normally according to the information includes: determining whether the sum of the current remaining memory of the terminal and the installed package of the specified application is greater than the installation specified application.
  • the required memory is the sum of the memory occupied by the specified application after the specified application is installed.
  • the result of the pre-judgment includes: the normal operation after the specified application is successfully installed; if the judgment result is no, the pre-preview The result of the judgment also includes: the occurrence of a stuck phenomenon after the specified application is in normal operation.
  • the method further includes: acquiring a cache generated by the commonly used application in the installed application of the terminal, and the data generated in the predetermined time period.
  • the commonly used application is an application in which the frequency of use in the terminal is greater than the first predetermined threshold; and the cache and data generated by the commonly used application in the application installed by the terminal in a predetermined period of time are pre-determined.
  • the method further includes: when the pre-judgment result is that the specified application can be normally installed, issuing a third prompt for prompting that the specified application can be installed normally.
  • Information in the case that the predicted result is that the specified application cannot be installed normally, the fourth prompt information for prompting the specified application installation to be abnormal is issued.
  • the method further includes: acquiring a random access memory (RAM) required by the specified application runtime and a RAM occupied by the current terminal background application; and performing random access memory (RAM) and the required application runtime If the sum of the RAM of the terminal background application is greater than the RAM configured by the terminal, the fifth prompt information for prompting the specified application to affect the background application is issued.
  • RAM random access memory
  • an application downloading apparatus including: The acquiring module is configured to obtain information for indicating whether the specified application can be installed normally; the first pre-judging module is configured to pre-determine whether the specified application can be installed normally according to the information acquired by the first obtaining module; The specified application is installed in a case where the predicted result of the first pre-judging module is that the specified application can be installed normally.
  • the information includes: the current remaining memory of the terminal, the memory of the installation package of the specified application, the memory required to install the specified application, and the memory occupied by the specified application after the specified application is installed.
  • the case that the specified application can be normally installed includes one of the following: allowing the specified application to be installed, and the specified application to be installed after the installation is successful.
  • the first pre-judging module is further configured to: if the specified application can be normally installed, including allowing the specified application to be installed, determining whether the current remaining memory of the terminal is greater than the installation package occupying memory of the specified application and installing the specified application. The sum of the required memory; wherein, in the case where the judgment result is YES, the result of the pre-judgment is that the specified application is allowed to be installed; if the judgment result is NO, the result of the pre-judgment is that the specified application cannot be allowed to be installed.
  • the device further includes: a first receiving module, configured to: after the specified application is installed normally, including the normal operation after the specified application is successfully installed, before receiving the specified application, receiving, after receiving the specified application, receiving The first indication information of the installation package of the specified application is deleted.
  • the first pre-judging module is further configured to determine whether the current remaining memory of the terminal is greater than the memory occupied by the installation package of the specified application, the memory required to install the specified application, and the specified application after installation.
  • the pre-judgment result further includes: the specified application is installed normally after the installation is successful; if the judgment result is no, the pre-judgment result further includes: the specified application is in normal operation There is a stutter phenomenon afterwards.
  • the device further includes: a second receiving module, configured to: when the specified application is installed normally, and the specified application is installed after the installation is successful, if the pre-judgment result is to allow the specified application to be installed, the receiving Deleting the specified app after instructing the specified app to install The second indication information of the installation package; the first pre-judging module is further configured to determine whether the current memory of the terminal and the memory of the installation package of the specified application are greater than the memory required for installing the specified application, and the specified application is installed after the specified application is installed.
  • the pre-judgment result further includes: the specified application is installed normally after the installation is successful; if the judgment result is no, the pre-judgment result further includes: after the specified application is in normal operation There is a stutter phenomenon.
  • the device further includes: a second acquiring module, configured to acquire a commonly used application in the installed application of the terminal for a predetermined period of time before downloading the specified application, if the predicted result is that the specified application can be normally installed.
  • the cache generated by the data and the memory occupied by the data; wherein, the commonly used application is an application whose frequency is greater than the first predetermined threshold in the terminal; the second pre-judging module is configured to pre-determine the remaining memory of the terminal after the specified application is installed normally and the terminal is installed.
  • the cache generated during the predetermined time period and the difference between the memory occupied by the data are greater than a second predetermined threshold;
  • the first prompting module is configured to issue a prompt for the presence of the terminal if the predicted result is yes.
  • the first prompt information is sufficient for the common application to use; the second prompting module is configured to issue a second prompt information for prompting the terminal that there is not enough memory for the common application to use when the predicted result is negative.
  • the device further includes: a third prompting module, configured to issue a third prompt information for prompting that the specified application can be installed normally if the predicted result is that the specified application can be normally installed; the fourth prompting module And configured to issue a fourth prompt message for prompting that the specified application installation is not normal if the predicted result is that the specified application cannot be installed normally.
  • a third prompting module configured to issue a third prompt information for prompting that the specified application can be installed normally if the predicted result is that the specified application can be normally installed
  • the fourth prompting module And configured to issue a fourth prompt message for prompting that the specified application installation is not normal if the predicted result is that the specified application cannot be installed normally.
  • the device further includes: a third obtaining module configured to acquire a random memory RAM required by the specified application runtime and a RAM occupied by the current terminal background application; and a fifth prompting module configured to be required when the specified application is running When the sum of the RAM of the random access memory and the current terminal background application is greater than the RAM of the terminal configuration, the fifth prompt information for prompting the specified application to affect the background application is issued.
  • a third obtaining module configured to acquire a random memory RAM required by the specified application runtime and a RAM occupied by the current terminal background application
  • a fifth prompting module configured to be required when the specified application is running When the sum of the RAM of the random access memory and the current terminal background application is greater than the RAM of the terminal configuration, the fifth prompt information for prompting the specified application to affect the background application is issued.
  • a terminal including the above apparatus.
  • a computer storage medium stores computer executable instructions for executing a download method of the application according to the embodiment of the present invention.
  • the pre-judgment is performed before downloading the specified application, and the specified application is downloaded only when the pre-judgment result is that the specified application can be installed normally, which can greatly improve the user experience and can solve the related technology download. The problem of low user experience during application.
  • FIG. 1 is a block diagram showing the hardware structure of a mobile terminal of an application downloading method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a download method of an application according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart 1 of a method for installing a memory-based application installation guide according to a preferred embodiment of the present invention
  • FIG. 4 is a second flowchart of a method for installing a memory-based application installation guide according to a preferred embodiment of the present invention
  • FIG. 5 is a flowchart 3 of a method for installing a memory-based application installation guide according to a preferred embodiment of the present invention
  • FIG. 6 is a structural block diagram of a download apparatus of an application according to an embodiment of the present invention.
  • FIG. 1 is a hardware structural block diagram of a mobile terminal of an application downloading method according to an embodiment of the present invention.
  • the mobile terminal 10 may include at least one (only one shown) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), A memory 104 for storing data, and a transmission device 106 for communication functions.
  • the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device.
  • the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
  • the memory 104 can be configured as a software program and a module for storing application software, such as program instructions/modules corresponding to the download method of the application in the embodiment of the present invention, and the processor 102 executes by executing a software program and a module stored in the memory 104.
  • application software such as program instructions/modules corresponding to the download method of the application in the embodiment of the present invention
  • the processor 102 executes by executing a software program and a module stored in the memory 104.
  • Various functional applications and data processing, that is, the above methods are implemented.
  • Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 104 may further include memory remotely located relative to processor 102, which may be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 106 is configured to receive or transmit data via a network.
  • the above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 10.
  • the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • FIG. 2 is a flowchart of a downloading method of an application according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
  • Step S202 Acquire information indicating whether the specified application can be normally installed.
  • Step S204 predicting, according to the information, whether the specified application can be installed normally
  • Step S206 Download the specified application if the predicted result is that the specified application can be installed normally.
  • the instruction information for indicating that the specified application cannot be installed normally is issued.
  • the foregoing information includes: the current remaining memory of the terminal, the memory occupied by the installation package of the specified application, the memory required to install the specified application, and the memory occupied by the specified application after the specified application is installed.
  • the foregoing step S104 may be performed as: determining whether the current remaining memory of the terminal is greater than the installation package occupied memory and the installation specification of the specified application. The sum of the required memory of the application; wherein, in the case that the judgment result is yes, the result of the pre-judgment is that the specified application is allowed to be installed; if the judgment result is no, the result of the pre-judgment is that the specified application cannot be allowed to be installed.
  • the method may further include: receiving the indication that the specified application is not deleted after the installation is performed.
  • the first indication information of the installation package of the application may further include: determining whether the current remaining memory of the terminal is greater than the memory occupied by the installation package of the specified application, installing the memory required by the specified application, and using the memory occupied by the specified application after the specified application is installed.
  • the pre-judgment result further includes: the specified application is installed normally after the installation is successful; if the judgment result is no, the pre-judgment result further includes: the specified application has a stuck phenomenon after the normal operation.
  • the method may further include: receiving the specified application after the specified application is deleted.
  • the second indication information of the installation package; the step S204 may further include: determining whether the sum of the current remaining memory of the terminal and the installed package of the specified application is greater than the required memory for installing the specified application and using the specified application after the specified application is installed. The sum of the memory; if the judgment result is yes, the pre-judgment result also includes: the specified application is installed normally after the installation is successful; if the judgment result is no, the pre-judgment result further includes: the specified application has a stuck after the normal operation phenomenon.
  • the method may be performed before the step S206. Including: obtaining the commonly used applications in the terminal installed The cache generated by the predetermined time period and the memory occupied by the data; wherein, the commonly used application is an application whose frequency is greater than the first predetermined threshold in the terminal; and the remaining memory of the terminal after the specified application is installed and the installed application of the terminal are pre-determined Whether the cache generated by the common application during the predetermined time period and the difference between the memory occupied by the data is greater than a second predetermined threshold; if the predicted result is YES, the first prompt for prompting the terminal to have sufficient memory for use by the common application is issued. Information; in the case of a pre-judgment result, a second prompt message is issued for prompting the terminal that there is not enough memory for the common application to use.
  • the pre-judgment result may be presented to the user by using the prompt information, and the prompting manner may be a voice broadcast or a short message prompting manner, but is not limited thereto.
  • the method may further include: in the case that the predicted result is that the specified application can be normally installed, issuing a third prompt information for prompting that the specified application can be installed normally; In the case that the result of the prediction is that the specified application cannot be installed normally, the fourth prompt information for prompting that the specified application installation will be abnormal is issued.
  • the memory may refer to a read only memory ROM, but is not limited thereto.
  • the method may further include: acquiring a random memory RAM required by the specified application runtime and a RAM occupied by the current terminal background application; and the sum of the RAM required by the random memory RAM and the current terminal background application when the specified application is running is greater than the terminal configuration.
  • a fifth prompt message is issued for prompting that the specified application affects the background application.
  • the random memory RAM required by the specified application runtime and the RAM occupied by the current terminal background application are acquired; the sum of the RAM required by the specified memory and the current terminal background application is not greater than the RAM of the terminal configuration when the specified application is running.
  • the sixth prompt message for promptly installing the specified application is not greater than the RAM of the terminal configuration when the specified application is running.
  • execution body of the above steps may be a terminal, but is not limited thereto.
  • the embodiment of the present invention mainly provides a memory-based application installation guide for effective installation of an application, which is limited in memory and has a large variety of memory applications, resulting in insufficient memory and use of the card when the user installs the application. Used with. Before the user downloads the application, obtain the current remaining memory (ROM) of the terminal (such as a mobile phone), the size of the installation package (ROM) (corresponding to the memory occupied by the installation package of the specified application in the above embodiment), and the memory required for the application installation ( ROM) (installing the memory required for the specified application) and the memory (ROM) occupied by the cache after the application is used (specify the memory occupied by the specified application after the application is installed).
  • ROM current remaining memory
  • the user After judging the relationship between the four memory, the user is reminded whether the application is It can be installed, whether it can run normally after installation, whether there will be a stuck after running for a period of time, giving the user a guide to install the application and improve the user experience.
  • the current remaining memory (ROM) of the mobile phone Before the user downloads the application, obtain the current remaining memory (ROM) of the mobile phone, the size of the installation package (ROM), the memory required for the application installation (ROM), and the memory (ROM) occupied by the application after the application is cached and occupied by the application market. Calculate whether the current remaining memory (ROM) of the mobile phone is greater than the sum of the memory (ROM) of the installation package and the memory (ROM) required for the application installation. If it is larger, the prompt is used to install the application, thereby preventing the user from downloading the application but having insufficient memory.
  • Installation troubles if the user does not agree to install the application to delete the installation package, if the current memory (ROM) of the mobile phone is larger than the installation package, the memory required for the application installation (ROM) and the cache and data occupied memory (ROM) generated after use The sum reminds the user that you have sufficient memory to install and use the application. Otherwise, the user is reminded that the memory is not sufficient. After installing the application, there is a risk of jamming or cleaning the memory to uninstall the application. If the user agrees to install the application, the installation package can be deleted. If the current memory remaining (ROM) of the mobile phone and the memory occupied by the installation package (ROM) are greater than the memory and ROM required for the application installation, and the cache and number generated after use. Take up memory (ROM) sum, then alert the user that you have enough memory to install and use the application, or to alert the user memory is not very adequate, install the application There is a risk of tampering or cleaning up the memory offload application.
  • ROM cache and data
  • the user Before the user downloads the application, obtain the RAM required for the application to run, and the current mobile phone resident background application occupies the RAM. If the sum of the two is greater than the mobile phone RAM configuration, the user is reminded to use the need to close the resident background application. .
  • FIG. 3 is a schematic flowchart 1 of a method for installing a memory-based application installation guide according to a preferred embodiment of the present invention. As shown in FIG. 3, the method includes:
  • Step S301 The mobile phone switches to the application store, and prepares to select an application download
  • Step S302 Clicking on the application to prepare for downloading
  • Step S303 determining whether the remaining ROM of the mobile phone is greater than the sum of the installation package and the application occupied memory (ROM);
  • Step S304 If the remaining ROM of the mobile phone is smaller than the sum of the installation package and the application occupied memory (ROM), the user is prompted to have insufficient memory, and the process ends;
  • Step S305 determining whether the user agrees to delete the installation package after installing the application
  • Step S306 If the user agrees, continue to determine whether the sum of the remaining ROM and the installed package memory (ROM) is greater than the sum of the cache and the data occupied memory (ROM) generated after the application and the application are used;
  • Step S307 If it is greater, the user is reminded that the memory is sufficient, the application can be installed and used smoothly, and the process ends.
  • Step S308 If it is less than, the user is reminded that the application can be installed, but the remaining memory is insufficient, which may affect the application, and the process ends;
  • Step S309 If the user does not agree, continue to determine whether the remaining ROM is larger than the installation package, The sum of the cache and data occupied memory (ROM) generated after using and using the application;
  • Step S310 If it is greater than, the user is reminded that the memory is sufficient, the application can be installed and used smoothly, and the process ends.
  • Step S311 If it is less than, the user is reminded that the application can be installed, but the remaining memory is insufficient, which may affect the application, and the process ends.
  • the data generated by the current mobile phone application in a short period of time and the memory occupied by the cache are additionally considered, and it is affected whether the installation of the new application will occupy the remaining memory and affect the use of the normal software.
  • FIG. 4 is a second flowchart of a method for installing a memory-based application installation guide according to a preferred embodiment of the present invention.
  • the method for preventing a user from installing an application from running out of memory and using a jam is as follows:
  • step S401 the process starts.
  • step S402 the application is clicked to download.
  • Step S403 obtaining a list of commonly used software of the current mobile phone.
  • Step S404 estimating data, cache memory usage (ROM) generated by the common software in a short period of time.
  • step S405 it is judged whether installing the new application will occupy the remaining memory (ROM), which affects the use of normal software.
  • Step S406 if yes, the user is reminded that the use of normal software is affected.
  • Step S407 if no, the user is reminded to install the application with confidence.
  • the RAM occupied by the current mobile station resident background application is additionally considered, and it is judged whether the use of the resident background software is affected by determining whether the running new application will occupy the RAM required by the resident background application.
  • FIG. 5 is a third flowchart of a method for installing a memory-based application installation guide according to a preferred embodiment of the present invention, which avoids the problem that a user installation application encounters insufficient memory and uses a jam.
  • the body flow is as follows:
  • step S501 the process starts.
  • step S502 the application is clicked to download.
  • Step S503 Acquire a RAM occupied by the current mobile station resident background application.
  • Step S504 acquiring the current total RAM of the mobile phone
  • Step S505 determining whether the sum of the memory occupied by the application runtime and the RAM occupied by the resident background application is greater than the total RAM.
  • Step S506 if yes, the user is reminded that the use of normal software is affected.
  • Step S507 if no, the user is reminded to install the application with confidence.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • an application downloading device is also provided, which is used to implement the foregoing embodiments and implementation manners, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 6 is a structural block diagram of a downloading apparatus of an application according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes:
  • the first obtaining module 62 is configured to acquire information used to indicate whether the specified application can be normally installed;
  • the first pre-judging module 64 is connected to the first obtaining module 62, and configured to pre-determine whether the specified application can be installed normally according to the information acquired by the first obtaining module 62;
  • the downloading module 66 is connected to the first pre-judging module 64, and is configured to install the specified application if the pre-judgment result of the first pre-judging module 64 is that the specified application can be installed normally.
  • the first pre-judging module 64 predicts whether the specified application is being installed normally according to the information acquired by the first obtaining module 62 for indicating whether the specified application can be normally installed, and the result of the pre-judgment is
  • the downloading module 66 downloads the specified application, and the device makes a pre-judgment before downloading the specified application, and downloads the specified application after the pre-judgment result is that the specified application can be normally installed.
  • the foregoing information includes: the current remaining memory of the terminal, the memory occupied by the installation package of the specified application, the memory required to install the specified application, and the memory occupied by the specified application after the specified application is installed.
  • the above specified application can be normally installed, including one of the following: allowing the specified application to be installed, and the specified application to be installed after the installation is successful.
  • the first pre-judging module 64 may be further configured to determine whether the current remaining memory of the terminal is greater than the installation of the specified application if the specified application can be installed normally, including allowing the specified application to be installed. The sum of the memory occupied by the package and the memory required to install the specified application; wherein, in the case that the judgment result is yes, the result of the pre-judgment is to allow the specified application to be installed; if the judgment result is no, the result of the prediction is that the specified application cannot be allowed to be installed. .
  • the device may further include: a first receiving module, configured to be connected to the downloading module 66, configured to be in a normal operation after the specified application is installed and further includes the specified application being successfully installed, Received to indicate the specified application before downloading the specified application
  • the first indication information of the installation package of the specified application is not deleted after the installation; the first pre-judgment module 64 is further configured to determine whether the current remaining memory of the terminal is greater than the memory occupied by the installation package of the specified application, and the memory and designation required to install the specified application.
  • the pre-judgment result further includes: the specified application is installed after the installation is successful; if the judgment result is no, the prediction result is still Including: The specified application has a stuck phenomenon after it runs normally.
  • the device may further include: a second receiving module, configured to be connected to the downloading module 66, configured to be in a normal operation after the specified application is installed and further includes the specified application being successfully installed, Before downloading the specified application, receiving second indication information for instructing the specified application to delete the installation package of the specified application; the first pre-judging module 64 is further configured to determine that the current remaining memory of the terminal and the installation package of the specified application occupy the memory The sum is greater than the sum of the memory required to install the specified application and the memory occupied by the specified application after the specified application is installed; wherein, if the judgment result is yes, the pre-judgment result further includes: the specified application is installed after the installation is successful; In the case that the judgment result is negative, the pre-judgment result further includes: the occurrence of a stuck phenomenon after the specified application is in normal operation.
  • a second receiving module configured to be connected to the downloading module 66, configured to be in a normal operation after the specified application is installed and further includes the specified application being successfully installed, Before downloading the specified application,
  • the device may further include: a second acquisition module, connected to the download module 66, configured to be pre- The result is that, when the specified application can be installed normally, before the download of the specified application, the cache generated by the commonly used application in the installed application of the terminal and the memory occupied by the data are acquired; wherein the commonly used application is the frequency used in the terminal.
  • the second pre-judging module is connected to the second acquiring module, configured to pre-determine the remaining memory of the terminal after the specified application is installed normally, and the commonly used application in the installed application of the terminal is within a predetermined time period
  • the generated cache and the difference between the memory occupied by the data are greater than a second predetermined threshold
  • the first prompting module is connected to the second pre-judging module, and configured to issue a configuration to prompt the terminal if the pre-judgment result is yes
  • the second mention The module is connected to the second pre-judging module, and configured to issue a second prompt message for prompting the terminal that there is not enough memory for the common application to use if the pre-judgment result is no.
  • the pre-judgment result may be presented to the user by using the prompt information, and the prompting manner may be a voice broadcast or a short message prompting manner, but is not limited thereto.
  • the apparatus may further include: a third prompting module, connected to the downloading module 66, configured to prompt to specify the application if the predicted result is that the specified application can be normally installed.
  • the third prompt information may be installed.
  • the fourth prompt module is connected to the download module 66, and configured to prompt the specified application installation to be abnormal if the predicted result is that the specified application cannot be installed normally. The fourth prompt information.
  • the memory may refer to a read only memory ROM, but is not limited thereto.
  • the device can also The third obtaining module is connected to the downloading module 66, configured to acquire the random memory RAM required by the specified application runtime and the RAM occupied by the current terminal background application, and the fifth prompting module is connected to the third acquiring module.
  • the fifth prompt information for prompting the specified application to affect the background application is sent in a case where the sum of the random memory RAM required by the specified application and the RAM of the current terminal background application is greater than the RAM of the terminal configuration.
  • the foregoing apparatus may further include: a sixth prompting module, configured to be connected to the third acquiring module, configured to issue a sixth prompt information configured to promptly install the specified application when the content is smaller than.
  • the device may be located in the terminal, but is not limited thereto.
  • the embodiment of the invention further provides a terminal, including the downloading device of the above application.
  • each of the foregoing modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor. Or; each of the above modules is located in a different processor in any combination.
  • Embodiments of the present invention also provide a storage medium.
  • the above storage medium may be set to store program code for executing the steps of the method in Embodiment 1.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), and a mobile hard disk.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the processor executes the steps of the method in Embodiment 1 according to the stored program code in the storage medium.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated in one processing order.
  • each unit may be separately used as a unit, or two or more units may be integrated into one unit; the integrated unit may be implemented in the form of hardware or a hardware plus software functional unit. Formal realization.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing storage device includes the following steps: the foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk.
  • optical disk A medium that can store program code.
  • the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a RAM, a magnetic disk, or an optical disk.
  • the technical solution of the embodiment of the present invention pre-determines whether the specified application is being installed normally according to the obtained information for indicating whether the specified application can be normally installed before downloading the specified application, and the result of the pre-judgment is that the specified application can be normally installed. In case of downloading the specified application, so that It is necessary to pre-judicate before downloading the specified application.
  • the pre-judgment result is that the specified application can be installed normally, the specified application can be downloaded, which can greatly improve the user experience and can solve the low user experience when downloading the application in the related art. problem.

Abstract

Disclosed in an embodiment of the invention are an application download method, device and terminal, and a computer storage medium. The download method comprises: acquiring information indicating whether a specified application can be installed normally; determining, according to the information, whether the specified application can be installed normally; and if a determination result indicates that the specified application can be installed normally, downloading the specified application.

Description

应用的下载方法、装置、终端及计算机存储介质Application downloading method, device, terminal and computer storage medium 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种应用的下载方法、装置、终端及计算机存储介质。The present invention relates to the field of communications, and in particular to an application downloading method, apparatus, terminal, and computer storage medium.
背景技术Background technique
目前人们越来越离不开手机,电话、短信、微信、微博、QQ、支付宝钱包购票、地图、团购等等应用方便了无数人的生活。在应用市场上下载应用前提前告知用户是否还有足够内存下载、安装,手机运行该应用状态如何,给用户一个直观的指导,可以省却下载失败,安装内存不足,使用卡顿不流畅等一系列烦恼。At present, people are increasingly inseparable from mobile phones, telephone, SMS, WeChat, Weibo, QQ, Alipay wallet ticket purchase, maps, group purchases, etc., which facilitates the lives of countless people. Before downloading the application in the application market, inform the user in advance whether there is enough memory to download and install, how to run the application status of the mobile phone, give the user an intuitive guide, and save the download failure, insufficient installation memory, use the card is not smooth, etc. upset.
以下面场景为例进行说明,现有一个2G RAM+8G ROM内存的手机,现剩余ROM为0.5G,由于微信、QQ等一些常驻后台应用RAM剩余0.2G,场景一:用户要安装一个占用0.6G ROM的应用;场景二:用户要安装一个占用0.4G ROM的应用,而该应用随着使用会产生0.2G ROM左右的缓存及数据;场景三:应用运行时占用RAM 0.3G。这时用户直观体验是应用安装不了;或者用了一段时间手机提醒内存不足,并且由于该应用缓存没有足够的空间导致应用每次加载都要重新加载资源导致应用加载变慢;或者应用开启时整个手机都异常卡顿,而用户并不知道具体的原因,这样极大地降低了用户的体验度。Take the following scenario as an example. The existing mobile phone with 2G RAM+8G ROM memory has a remaining ROM of 0.5G. Due to the remaining 0.2G of some resident background applications such as WeChat and QQ, scenario one: the user needs to install one. Application of 0.6G ROM; Scenario 2: The user should install an application that occupies 0.4G ROM, and the application will generate buffer and data of about 0.2G ROM with the use; Scene 3: The application runs up with RAM 0.3G. At this time, the user's intuitive experience is that the application cannot be installed; or the mobile phone reminds the memory that it is insufficient for a period of time, and because the application cache does not have enough space, the application reloads the resource every time the application loads, causing the application to load slowly; or when the application is turned on The phone is abnormally stuck, and the user does not know the specific reason, which greatly reduces the user experience.
针对相关技术中的上述技术问题,目前尚未提出有效的解决方案。In view of the above technical problems in the related art, an effective solution has not yet been proposed.
发明内容Summary of the invention
本发明实施例提供了一种应用的下载方法、装置、终端及计算机存储 介质,以至少解决相关技术中下载应用时用户体验度低的问题。Embodiments of the present invention provide an application downloading method, device, terminal, and computer storage Media to at least solve the problem of low user experience when downloading applications in related technologies.
根据本发明的一个实施例,提供了一种应用的下载方法,包括:获取用于指示是否能够正常安装指定应用的信息;根据信息预判指定应用是否能够正常安装;在预判结果为指定应用能够正常安装的情况下,下载指定应用。According to an embodiment of the present invention, a method for downloading an application is provided, including: acquiring information indicating whether a specified application can be normally installed; predicting whether a specified application can be installed normally according to the information; and predicting a result as a specified application Download the specified application if it can be installed normally.
作为一种实施方式,信息包括:终端当前剩余内存、指定应用的安装包占用内存、安装指定应用所需内存以及指定应用安装后运行指定应用所占内存。As an implementation manner, the information includes: the current remaining memory of the terminal, the memory of the installation package of the specified application, the memory required to install the specified application, and the memory occupied by the specified application after the specified application is installed.
作为一种实施方式,指定应用能够正常安装的情况包括以下之一:允许指定应用安装、指定应用安装成功后正常运行。As an implementation manner, the specified application can be normally installed, including one of the following: allowing the specified application to be installed, and the specified application to be installed after the installation is successful.
作为一种实施方式,在指定应用能够正常安装的情况包括允许指定应用安装的情况下,根据信息预判指定应用是否能够正常安装包括:判断终端当前剩余内存是否大于指定应用的安装包占用内存与安装指定应用所需内存之和,在判断结果为是的情况下,预判结果为允许指定应用安装;判断结果为否的情况下,预判结果为不能允许指定应用安装。As an implementation manner, in a case where the specified application can be normally installed, including allowing the specified application to be installed, predicting whether the specified application can be normally installed according to the information includes: determining whether the current remaining memory of the terminal is greater than the storage capacity of the installation package of the specified application. The sum of the memory required to install the specified application. If the judgment result is yes, the result of the pre-judgment is to allow the specified application to be installed; if the judgment result is no, the result of the pre-judgment is that the specified application cannot be allowed to be installed.
作为一种实施方式,在指定应用安装正常还包括指定应用安装成功后正常运行的情况下,在下载指定应用之前,方法还包括:接收用于指示指定应用安装后不删除指定应用的安装包的第一指示信息;根据信息预判指定应用是否能够正常安装还包括:判断终端当前剩余内存是否大于指定应用的安装包占用内存、安装指定应用所需内存与指定应用安装后使用指定应用所占内存之和;在判断结果为是的情况下,预判结果还包括:指定应用安装成功后正常运行;在判断结果为否的情况下,预判结果还包括:指定应用正常运行后存在卡顿现象。As an implementation manner, before the specified application installation is normal and the specified application is successfully installed, the method further includes: before receiving the specified application, receiving the installation package for indicating that the specified application is not deleted after the specified application is installed. The first indication information is: predicting whether the specified application can be installed normally according to the information, further comprising: determining whether the current remaining memory of the terminal is greater than the memory occupied by the installation package of the specified application, the memory required to install the specified application, and the memory occupied by the specified application after the specified application is installed. In the case of the judgment result being YES, the pre-judgment result further includes: the specified application is installed normally after the installation is successful; if the judgment result is no, the pre-judgment result further includes: the specified application has a stuck phenomenon after the normal operation .
作为一种实施方式,在指定应用安装正常还包括指定应用安装成功后正常运行的情况下,在下载指定应用之前,方法还包括:接收用于指示指 定应用安装后删除指定应用的安装包的第二指示信息;根据信息预判指定应用是否能够正常安装还包括:判断终端当前剩余内存与指定应用的安装包占用内存之和,是否大于安装指定应用所需内存与指定应用安装后使用指定应用所占内存之和;在判断结果为是的情况下,预判结果还包括:指定应用安装成功后正常运行;在判断结果为否的情况下,预判结果还包括:指定应用正常运行后存在卡顿现象。As an implementation manner, in a case that the specified application installation is normal, and the specified application is successfully installed after the installation is successful, before the downloading the specified application, the method further includes: receiving the indication for receiving After the application is installed, the second indication information of the installation package of the specified application is deleted; whether the specified application can be installed normally according to the information includes: determining whether the sum of the current remaining memory of the terminal and the installed package of the specified application is greater than the installation specified application. The required memory is the sum of the memory occupied by the specified application after the specified application is installed. If the judgment result is yes, the result of the pre-judgment includes: the normal operation after the specified application is successfully installed; if the judgment result is no, the pre-preview The result of the judgment also includes: the occurrence of a stuck phenomenon after the specified application is in normal operation.
作为一种实施方式,在预判结果为指定应用能够正常安装的情况下,在下载指定应用之前,方法还包括:获取终端已安装的应用中常用应用在预定时间段内产生的缓存以及数据所占内存;其中,常用应用为终端中使用频率大于第一预定阈值的应用;预判指定应用安装正常后的终端剩余内存与终端已安装的应用中常用应用在预定时间段内产生的缓存以及数据所占内存之差是否大于第二预定阈值;在预判结果为是的情况下,发出用于提示终端存在足够内存供常用应用使用的第一提示信息;在预判结果为否的情况下,发出用于提示终端没有足够内存供常用应用使用的第二提示信息。As an implementation manner, before the pre-judgment result is that the specified application can be normally installed, before downloading the specified application, the method further includes: acquiring a cache generated by the commonly used application in the installed application of the terminal, and the data generated in the predetermined time period. In the memory, the commonly used application is an application in which the frequency of use in the terminal is greater than the first predetermined threshold; and the cache and data generated by the commonly used application in the application installed by the terminal in a predetermined period of time are pre-determined. Whether the difference of the occupied memory is greater than a second predetermined threshold; if the pre-judgment result is yes, issuing a first prompt information for prompting the terminal to have sufficient memory for use by the common application; if the pre-judgment result is no, A second prompt message is sent to prompt the terminal that there is not enough memory for the common application to use.
作为一种实施方式,在根据信息预判指定应用是否能够正常安装之后,方法还包括:在预判结果为指定应用能够正常安装的情况下,发出用于提示指定应用可以安装正常的第三提示信息;在预判结果为指定应用不能够正常安装的情况下,发出用于提示指定应用安装将不正常的第四提示信息。As an implementation manner, after pre-determining whether the specified application can be normally installed according to the information, the method further includes: when the pre-judgment result is that the specified application can be normally installed, issuing a third prompt for prompting that the specified application can be installed normally. Information; in the case that the predicted result is that the specified application cannot be installed normally, the fourth prompt information for prompting the specified application installation to be abnormal is issued.
作为一种实施方式,在下载指定应用之后,方法还包括:获取指定应用运行时所需随机存储器(RAM)和当前终端后台应用所占RAM;在指定应用运行时所需随机存储器(RAM)和当前终端后台应用所占RAM之和大于终端配置的RAM的情况下,发出用于提示指定应用会影响后台应用的第五提示信息。As an implementation manner, after downloading the specified application, the method further includes: acquiring a random access memory (RAM) required by the specified application runtime and a RAM occupied by the current terminal background application; and performing random access memory (RAM) and the required application runtime If the sum of the RAM of the terminal background application is greater than the RAM configured by the terminal, the fifth prompt information for prompting the specified application to affect the background application is issued.
根据本发明的一个实施例,提供了一种应用的下载装置,包括:第一 获取模块,配置为获取用于指示是否能够正常安装指定应用的信息;第一预判模块,配置为根据所述第一获取模块获取的信息预判指定应用是否能够正常安装;安装模块,配置为在所述第一预判模块的预判结果为指定应用能够正常安装的情况下,安装指定应用。According to an embodiment of the present invention, an application downloading apparatus is provided, including: The acquiring module is configured to obtain information for indicating whether the specified application can be installed normally; the first pre-judging module is configured to pre-determine whether the specified application can be installed normally according to the information acquired by the first obtaining module; The specified application is installed in a case where the predicted result of the first pre-judging module is that the specified application can be installed normally.
作为一种实施方式,所述信息包括:终端当前剩余内存、指定应用的安装包占用内存、安装指定应用所需内存以及指定应用安装后运行指定应用所占内存。As an implementation manner, the information includes: the current remaining memory of the terminal, the memory of the installation package of the specified application, the memory required to install the specified application, and the memory occupied by the specified application after the specified application is installed.
作为一种实施方式,所述指定应用能够正常安装的情况包括以下之一:允许指定应用安装、指定应用安装成功后正常运行。As an implementation manner, the case that the specified application can be normally installed includes one of the following: allowing the specified application to be installed, and the specified application to be installed after the installation is successful.
作为一种实施方式,第一预判模块,还配置为在指定应用能够正常安装的情况包括允许指定应用安装的情况下,判断终端当前剩余内存是否大于指定应用的安装包占用内存与安装指定应用所需内存之和;其中,在判断结果为是的情况下,预判结果为允许指定应用安装;判断结果为否的情况下,预判结果为不能允许指定应用安装。As an implementation manner, the first pre-judging module is further configured to: if the specified application can be normally installed, including allowing the specified application to be installed, determining whether the current remaining memory of the terminal is greater than the installation package occupying memory of the specified application and installing the specified application. The sum of the required memory; wherein, in the case where the judgment result is YES, the result of the pre-judgment is that the specified application is allowed to be installed; if the judgment result is NO, the result of the pre-judgment is that the specified application cannot be allowed to be installed.
作为一种实施方式,装置还包括:第一接收模块,配置为在指定应用安装正常还包括指定应用安装成功后正常运行的情况下,在下载指定应用之前,接收用于指示指定应用安装后不删除指定应用的安装包的第一指示信息;第一预判模块,还配置为判断终端当前剩余内存是否大于指定应用的安装包占用内存、安装指定应用所需内存与指定应用安装后使用指定应用所占内存之和;其中,在判断结果为是的情况下,预判结果还包括:指定应用安装成功后正常运行;在判断结果为否的情况下,预判结果还包括:指定应用正常运行后存在卡顿现象。As an embodiment, the device further includes: a first receiving module, configured to: after the specified application is installed normally, including the normal operation after the specified application is successfully installed, before receiving the specified application, receiving, after receiving the specified application, receiving The first indication information of the installation package of the specified application is deleted. The first pre-judging module is further configured to determine whether the current remaining memory of the terminal is greater than the memory occupied by the installation package of the specified application, the memory required to install the specified application, and the specified application after installation. The sum of the occupied memory; wherein, in the case that the judgment result is yes, the pre-judgment result further includes: the specified application is installed normally after the installation is successful; if the judgment result is no, the pre-judgment result further includes: the specified application is in normal operation There is a stutter phenomenon afterwards.
作为一种实施方式,装置还包括:第二接收模块,配置为在指定应用安装正常还包括指定应用安装成功后正常运行的情况下,在预判结果为允许指定应用安装的情况下,接收用于指示指定应用安装后删除指定应用的 安装包的第二指示信息;第一预判模块,还配置为判断终端当前剩余内存与指定应用的安装包占用内存之和,是否大于安装指定应用所需内存与指定应用安装后使用指定应用所占内存之和;其中,在判断结果为是的情况下,预判结果还包括:指定应用安装成功后正常运行;在判断结果为否的情况下,预判结果还包括:指定应用正常运行后存在卡顿现象。In an embodiment, the device further includes: a second receiving module, configured to: when the specified application is installed normally, and the specified application is installed after the installation is successful, if the pre-judgment result is to allow the specified application to be installed, the receiving Deleting the specified app after instructing the specified app to install The second indication information of the installation package; the first pre-judging module is further configured to determine whether the current memory of the terminal and the memory of the installation package of the specified application are greater than the memory required for installing the specified application, and the specified application is installed after the specified application is installed. The sum of the memory; wherein, in the case that the judgment result is yes, the pre-judgment result further includes: the specified application is installed normally after the installation is successful; if the judgment result is no, the pre-judgment result further includes: after the specified application is in normal operation There is a stutter phenomenon.
作为一种实施方式,装置还包括:第二获取模块,配置为在预判结果为指定应用能够正常安装的情况下,在下载指定应用之前,获取终端已安装的应用中常用应用在预定时间段内产生的缓存以及数据所占内存;其中,常用应用为终端中使用频率大于第一预定阈值的应用;第二预判模块,配置为预判指定应用安装正常后的终端剩余内存与终端已安装的应用中常用应用在预定时间段内产生的缓存以及数据所占内存之差是否大于第二预定阈值;第一提示模块,配置为在预判结果为是的情况下,发出用于提示终端存在足够内存供常用应用使用的第一提示信息;第二提示模块,配置为在预判结果为否的情况下,发出用于提示终端没有足够内存供常用应用使用的第二提示信息。As an embodiment, the device further includes: a second acquiring module, configured to acquire a commonly used application in the installed application of the terminal for a predetermined period of time before downloading the specified application, if the predicted result is that the specified application can be normally installed. The cache generated by the data and the memory occupied by the data; wherein, the commonly used application is an application whose frequency is greater than the first predetermined threshold in the terminal; the second pre-judging module is configured to pre-determine the remaining memory of the terminal after the specified application is installed normally and the terminal is installed. In the application, the cache generated during the predetermined time period and the difference between the memory occupied by the data are greater than a second predetermined threshold; the first prompting module is configured to issue a prompt for the presence of the terminal if the predicted result is yes. The first prompt information is sufficient for the common application to use; the second prompting module is configured to issue a second prompt information for prompting the terminal that there is not enough memory for the common application to use when the predicted result is negative.
作为一种实施方式,装置还包括:第三提示模块,配置为在预判结果为指定应用能够正常安装的情况下,发出用于提示指定应用可以安装正常的第三提示信息;第四提示模块,配置为在预判结果为指定应用不能够正常安装的情况下,发出用于提示指定应用安装将不正常的第四提示信息。As an embodiment, the device further includes: a third prompting module, configured to issue a third prompt information for prompting that the specified application can be installed normally if the predicted result is that the specified application can be normally installed; the fourth prompting module And configured to issue a fourth prompt message for prompting that the specified application installation is not normal if the predicted result is that the specified application cannot be installed normally.
作为一种实施方式,装置还包括:第三获取模块,配置为获取指定应用运行时所需随机存储器RAM和当前终端后台应用所占RAM;第五提示模块,配置为在指定应用运行时所需随机存储器RAM和当前终端后台应用所占RAM之和大于终端配置的RAM的情况下,发出用于提示指定应用会影响后台应用的第五提示信息。As an embodiment, the device further includes: a third obtaining module configured to acquire a random memory RAM required by the specified application runtime and a RAM occupied by the current terminal background application; and a fifth prompting module configured to be required when the specified application is running When the sum of the RAM of the random access memory and the current terminal background application is greater than the RAM of the terminal configuration, the fifth prompt information for prompting the specified application to affect the background application is issued.
根据本发明的一个实施例,提供了一种终端,包括上述装置。 According to an embodiment of the present invention, a terminal is provided, including the above apparatus.
根据本发明的又一个实施例,还提供了一种计算机存储介质。所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述的应用的下载方法。According to yet another embodiment of the present invention, a computer storage medium is also provided. The computer storage medium stores computer executable instructions for executing a download method of the application according to the embodiment of the present invention.
通过本发明实施例,在下载指定应用之前,通过根据获取的用于指示是否能够正常安装指定应用的信息来预判该指定应用是否正能够正常安装,在预判结果为指定应用能够正常安装的情况下,下载指定应用,使得在下载指定应用前先进行预判,在预判结果为指定应用能够正常安装的情况下才下载指定应用,能够极大地改善用户的体验,能够解决相关技术中下载应用时用户体验度低的问题。According to the embodiment of the present invention, before downloading the specified application, according to the obtained information for indicating whether the specified application can be normally installed, it is predicted whether the specified application is being installed normally, and the result of the prediction is that the specified application can be normally installed. In the case of downloading the specified application, the pre-judgment is performed before downloading the specified application, and the specified application is downloaded only when the pre-judgment result is that the specified application can be installed normally, which can greatly improve the user experience and can solve the related technology download. The problem of low user experience during application.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是本发明实施例的一种应用的下载方法的移动终端的硬件结构框图;1 is a block diagram showing the hardware structure of a mobile terminal of an application downloading method according to an embodiment of the present invention;
图2是根据本发明实施例的应用的下载方法的流程图;2 is a flowchart of a download method of an application according to an embodiment of the present invention;
图3是根据本发明优选实施例提供的一种基于内存的应用安装指南的方法的流程示意图一;3 is a schematic flowchart 1 of a method for installing a memory-based application installation guide according to a preferred embodiment of the present invention;
图4是根据本发明优选实施例提供的一种基于内存的应用安装指南的方法的流程图二;4 is a second flowchart of a method for installing a memory-based application installation guide according to a preferred embodiment of the present invention;
图5是根据本发明优选实施例提供的一种基于内存的应用安装指南的方法的流程图三;5 is a flowchart 3 of a method for installing a memory-based application installation guide according to a preferred embodiment of the present invention;
图6是根据本发明实施例的应用的下载装置的结构框图。 FIG. 6 is a structural block diagram of a download apparatus of an application according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
实施例1Example 1
本申请实施例1所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的一种应用的下载方法的移动终端的硬件结构框图。如图1所示,移动终端10可以包括至少一个(图中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输装置106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiment provided by Embodiment 1 of the present application can be executed in a mobile terminal, a computer terminal or the like. Taking a mobile terminal as an example, FIG. 1 is a hardware structural block diagram of a mobile terminal of an application downloading method according to an embodiment of the present invention. As shown in FIG. 1, the mobile terminal 10 may include at least one (only one shown) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), A memory 104 for storing data, and a transmission device 106 for communication functions. It will be understood by those skilled in the art that the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device. For example, the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
存储器104可配置为存储应用软件的软件程序以及模块,如本发明实施例中的应用的下载方法对应的程序指令/模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。 The memory 104 can be configured as a software program and a module for storing application software, such as program instructions/modules corresponding to the download method of the application in the embodiment of the present invention, and the processor 102 executes by executing a software program and a module stored in the memory 104. Various functional applications and data processing, that is, the above methods are implemented. Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 104 may further include memory remotely located relative to processor 102, which may be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106配置为经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。Transmission device 106 is configured to receive or transmit data via a network. The above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
在本实施例中提供了一种运行于上述移动终端的应用的下载方法,图2是根据本发明实施例的应用的下载方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a downloading method of an application running on the mobile terminal is provided. FIG. 2 is a flowchart of a downloading method of an application according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
步骤S202,获取用于指示是否能够正常安装指定应用的信息。Step S202: Acquire information indicating whether the specified application can be normally installed.
步骤S204,根据所述信息预判所述指定应用是否能够正常安装;Step S204, predicting, according to the information, whether the specified application can be installed normally;
步骤S206,在预判结果为所述指定应用能够正常安装的情况下,下载所述指定应用。Step S206: Download the specified application if the predicted result is that the specified application can be installed normally.
通过上述步骤,在下载指定应用之前,通过根据获取的用于指示是否能够正常安装指定应用的信息来预判该指定应用是否正能够正常安装,在预判结果为指定应用能够正常安装的情况下,下载指定应用,使得在下载指定应用前先进行预判,在预判结果为指定应用能够正常安装的情况下才下载指定应用,能够极大地改善用户的体验,能够解决相关技术中下载应用时用户体验度低的问题。Through the above steps, before downloading the specified application, it is predicted whether the specified application is being installed normally according to the obtained information for indicating whether the specified application can be normally installed, in the case that the predicted result is that the specified application can be normally installed. Downloading the specified application, so that the pre-judgment is performed before downloading the specified application, and the specified application is downloaded only when the pre-judgment result is that the specified application can be installed normally, which can greatly improve the user experience and can solve the related technology when downloading the application. The problem of low user experience.
需要说明的是,在上述预判结果为指定应用不能够正常安装的情况下,发出用于所述指示指定应用不能够正常安装的指示信息。It should be noted that, in a case where the result of the foregoing prediction is that the designated application cannot be installed normally, the instruction information for indicating that the specified application cannot be installed normally is issued.
需要说明的是,上述信息包括:终端当前剩余内存、指定应用的安装包占用内存、安装指定应用所需内存以及指定应用安装后运行指定应用所占内存。It should be noted that the foregoing information includes: the current remaining memory of the terminal, the memory occupied by the installation package of the specified application, the memory required to install the specified application, and the memory occupied by the specified application after the specified application is installed.
需要说明的是,上述指定应用能够正常安装的情况包括以下之一:允 许指定应用安装、指定应用安装成功后正常运行。It should be noted that the above specified application can be installed normally, including one of the following: It is specified that the application is installed and the specified application is installed successfully.
在本发明的一个实施例中,在指定应用能够正常安装的情况包括允许指定应用安装的情况下,上述步骤S104可以表现为:判断终端当前剩余内存是否大于指定应用的安装包占用内存与安装指定应用所需内存之和;其中,在判断结果为是的情况下,预判结果为允许指定应用安装;判断结果为否的情况下,预判结果为不能允许指定应用安装。In an embodiment of the present invention, in a case where the specified application can be normally installed, including the case where the specified application is allowed to be installed, the foregoing step S104 may be performed as: determining whether the current remaining memory of the terminal is greater than the installation package occupied memory and the installation specification of the specified application. The sum of the required memory of the application; wherein, in the case that the judgment result is yes, the result of the pre-judgment is that the specified application is allowed to be installed; if the judgment result is no, the result of the pre-judgment is that the specified application cannot be allowed to be installed.
在本发明的一个实施例中,在指定应用安装正常还包括指定应用安装成功后正常运行的情况下,在上述步骤206之前,上述方法还可以包括:接收用于指示指定应用安装后不删除指定应用的安装包的第一指示信息;上述步骤S204还可以包括:判断终端当前剩余内存是否大于指定应用的安装包占用内存、安装指定应用所需内存与指定应用安装后使用指定应用所占内存之和;在判断结果为是的情况下,预判结果还包括:指定应用安装成功后正常运行;在判断结果为否的情况下,预判结果还包括:指定应用正常运行后存在卡顿现象。In an embodiment of the present invention, in the case that the specified application installation is normal, and the specified application is installed and the device is successfully installed, the method may further include: receiving the indication that the specified application is not deleted after the installation is performed. The first indication information of the installation package of the application; the step S204 may further include: determining whether the current remaining memory of the terminal is greater than the memory occupied by the installation package of the specified application, installing the memory required by the specified application, and using the memory occupied by the specified application after the specified application is installed. And in the case that the judgment result is yes, the pre-judgment result further includes: the specified application is installed normally after the installation is successful; if the judgment result is no, the pre-judgment result further includes: the specified application has a stuck phenomenon after the normal operation.
在本发明的一个实施例中,在指定应用安装正常还包括指定应用安装成功后正常运行的情况下,在上述步骤S206之前,上述方法还可以包括:接收用于指示指定应用安装后删除指定应用的安装包的第二指示信息;上述步骤S204还可以包括:判断终端当前剩余内存与指定应用的安装包占用内存之和,是否大于安装指定应用所需内存与指定应用安装后使用指定应用所占内存之和;在判断结果为是的情况下,预判结果还包括:指定应用安装成功后正常运行;在判断结果为否的情况下,预判结果还包括:指定应用正常运行后存在卡顿现象。In an embodiment of the present invention, in the case that the specified application is installed normally, and the specified application is installed and the device is successfully installed, before the step S206, the method may further include: receiving the specified application after the specified application is deleted. The second indication information of the installation package; the step S204 may further include: determining whether the sum of the current remaining memory of the terminal and the installed package of the specified application is greater than the required memory for installing the specified application and using the specified application after the specified application is installed. The sum of the memory; if the judgment result is yes, the pre-judgment result also includes: the specified application is installed normally after the installation is successful; if the judgment result is no, the pre-judgment result further includes: the specified application has a stuck after the normal operation phenomenon.
考虑安装新的应用后是否会影响终端常用应用的使用,因而,在本发明的一个实施例中,在预判结果为指定应用能够正常安装的情况下,在上述步骤S206之前,上述方法还可以包括:获取终端已安装的应用中常用应 用在预定时间段内产生的缓存以及数据所占内存;其中,常用应用为终端中使用频率大于第一预定阈值的应用;预判指定应用安装正常后的终端剩余内存与终端已安装的应用中常用应用在预定时间段内产生的缓存以及数据所占内存之差是否大于第二预定阈值;在预判结果为是的情况下,发出用于提示终端存在足够内存供常用应用使用的第一提示信息;在预判结果为否的情况下,发出用于提示终端没有足够内存供常用应用使用的第二提示信息。Considering whether the application of the terminal can affect the use of the commonly used application of the terminal. Therefore, in an embodiment of the present invention, in a case where the result of the prediction is that the specified application can be normally installed, the method may be performed before the step S206. Including: obtaining the commonly used applications in the terminal installed The cache generated by the predetermined time period and the memory occupied by the data; wherein, the commonly used application is an application whose frequency is greater than the first predetermined threshold in the terminal; and the remaining memory of the terminal after the specified application is installed and the installed application of the terminal are pre-determined Whether the cache generated by the common application during the predetermined time period and the difference between the memory occupied by the data is greater than a second predetermined threshold; if the predicted result is YES, the first prompt for prompting the terminal to have sufficient memory for use by the common application is issued. Information; in the case of a pre-judgment result, a second prompt message is issued for prompting the terminal that there is not enough memory for the common application to use.
在本发明的一个实施例中,对于预判结果都可以通过提示信息提示给用户,提示方式可以是语音播报,也可以是短信息提示的方式,但并不限于此。在本发明的一个实施例中,在上述步骤S204之后,上述方法还可以包括:在预判结果为指定应用能够正常安装的情况下,发出用于提示指定应用可以安装正常的第三提示信息;在预判结果为指定应用不能够正常安装的情况下,发出用于提示指定应用安装将不正常的第四提示信息。In an embodiment of the present invention, the pre-judgment result may be presented to the user by using the prompt information, and the prompting manner may be a voice broadcast or a short message prompting manner, but is not limited thereto. In an embodiment of the present invention, after the step S204, the method may further include: in the case that the predicted result is that the specified application can be normally installed, issuing a third prompt information for prompting that the specified application can be installed normally; In the case that the result of the prediction is that the specified application cannot be installed normally, the fourth prompt information for prompting that the specified application installation will be abnormal is issued.
需要说明的是,内存可以是指只读存储器ROM,但并不限于此。It should be noted that the memory may refer to a read only memory ROM, but is not limited thereto.
考虑新的应用被安装后是否会占用常驻后台应用所需RAM,来确定新的应用被安装后是否影响常驻后台软件的使用,因而在本发明的一个实施例中,在上述步骤S206之后,上述方法还可以包括:获取指定应用运行时所需随机存储器RAM和当前终端后台应用所占RAM;在指定应用运行时所需随机存储器RAM和当前终端后台应用所占RAM之和大于终端配置的RAM的情况下,发出用于提示指定应用会影响后台应用的第五提示信息。Considering whether the new application is installed to occupy the RAM required by the resident background application to determine whether the new application is installed to affect the use of the resident background software. Therefore, in an embodiment of the present invention, after the step S206 The method may further include: acquiring a random memory RAM required by the specified application runtime and a RAM occupied by the current terminal background application; and the sum of the RAM required by the random memory RAM and the current terminal background application when the specified application is running is greater than the terminal configuration. In the case of RAM, a fifth prompt message is issued for prompting that the specified application affects the background application.
需要说明的是,获取指定应用运行时所需随机存储器RAM和当前终端后台应用所占RAM;在指定应用运行时所需随机存储器RAM和当前终端后台应用所占RAM之和不大于终端配置的RAM的情况下,发出用于提示放心安装指定应用的第六提示信息。It should be noted that the random memory RAM required by the specified application runtime and the RAM occupied by the current terminal background application are acquired; the sum of the RAM required by the specified memory and the current terminal background application is not greater than the RAM of the terminal configuration when the specified application is running. In the case of the sixth prompt message for promptly installing the specified application.
需要说明的是,上述步骤的执行主体可以是终端,但并不限于此。 It should be noted that the execution body of the above steps may be a terminal, but is not limited thereto.
为了更好地理解本发明,以下结合优选的实施例对本发明做进一步解释。For a better understanding of the invention, the invention is further explained in conjunction with the preferred embodiments.
本发明实施例主要针对内存有限而要安装的应用种类繁多内存占用不一而导致用户安装应用时内存不足、使用卡顿的问题,提出了一种基于内存的应用安装指南,实现应用的有效安装与使用。当用户进行应用下载应用前,获取终端(如手机)当前剩余内存(ROM)、安装包大小(ROM)(相当于上述实施例中的指定应用的安装包占用内存)、应用安装所需内存(ROM)(安装指定应用所需内存)以及应用使用后缓存及数据占用的内存(ROM)(指定应用安装后运行指定应用所占内存),经过判断这四者内存的关系,提醒用户该应用是否可以安装,安装以后是否可以正常运行,运行一段时间以后是否会有卡顿,给用户一个安装应用的指导,改善用户体验。The embodiment of the present invention mainly provides a memory-based application installation guide for effective installation of an application, which is limited in memory and has a large variety of memory applications, resulting in insufficient memory and use of the card when the user installs the application. Used with. Before the user downloads the application, obtain the current remaining memory (ROM) of the terminal (such as a mobile phone), the size of the installation package (ROM) (corresponding to the memory occupied by the installation package of the specified application in the above embodiment), and the memory required for the application installation ( ROM) (installing the memory required for the specified application) and the memory (ROM) occupied by the cache after the application is used (specify the memory occupied by the specified application after the application is installed). After judging the relationship between the four memory, the user is reminded whether the application is It can be installed, whether it can run normally after installation, whether there will be a stuck after running for a period of time, giving the user a guide to install the application and improve the user experience.
当用户进行下载应用前,获取手机当前剩余内存(ROM)、安装包大小(ROM)、应用安装所需内存(ROM)以及从应用市场获取的应用安装后缓存及数据占用的内存(ROM),计算手机当前剩余内存(ROM)是否大于安装包占用内存(ROM)与应用安装所需内存(ROM)之和,若大于则提示用于可安装该应用,避免了用户下载了该应用却内存不够安装的困扰;若用户不同意安装完应用可删除安装包,则若手机当前剩余内存(ROM)大于安装包、应用安装所需内存(ROM)与使用之后产生的缓存和数据占用内存(ROM)之和,则提醒用户您有充足的内存安装及使用该应用,否则提醒用户内存不是很充足,安装该应用后有卡顿或者清理内存卸载应用的风险;若用户同意安装完应用可删除安装包,则若手机当前剩余内存(ROM)与安装包占用内存(ROM)之和大于应用安装所需内存(ROM)与使用之后产生的缓存和数据占用内存(ROM)之和,则提醒用户您有充足的内存安装及使用该应用,否则提醒用户内存不是很充足,安装该应用 后有卡顿或者清理内存卸载应用的风险。Before the user downloads the application, obtain the current remaining memory (ROM) of the mobile phone, the size of the installation package (ROM), the memory required for the application installation (ROM), and the memory (ROM) occupied by the application after the application is cached and occupied by the application market. Calculate whether the current remaining memory (ROM) of the mobile phone is greater than the sum of the memory (ROM) of the installation package and the memory (ROM) required for the application installation. If it is larger, the prompt is used to install the application, thereby preventing the user from downloading the application but having insufficient memory. Installation troubles; if the user does not agree to install the application to delete the installation package, if the current memory (ROM) of the mobile phone is larger than the installation package, the memory required for the application installation (ROM) and the cache and data occupied memory (ROM) generated after use The sum reminds the user that you have sufficient memory to install and use the application. Otherwise, the user is reminded that the memory is not sufficient. After installing the application, there is a risk of jamming or cleaning the memory to uninstall the application. If the user agrees to install the application, the installation package can be deleted. If the current memory remaining (ROM) of the mobile phone and the memory occupied by the installation package (ROM) are greater than the memory and ROM required for the application installation, and the cache and number generated after use. Take up memory (ROM) sum, then alert the user that you have enough memory to install and use the application, or to alert the user memory is not very adequate, install the application There is a risk of tampering or cleaning up the memory offload application.
当用户进行下载应用前,获取当前用户常用软件,预估常用软件在不长的一段时间内会产生的缓存及数据(ROM),在考虑要安装的应用的同时,考虑是否有足够内存(ROM)供常用软件使用,若没有足够内存,则提醒用户安装该应用后您的ROM将非常紧张,有可能影响其他软件的流畅使用。Before the user downloads the application, obtain the current user's common software, and estimate the cache and data (ROM) generated by the common software in a short period of time. Consider whether there is enough memory (ROM) while considering the application to be installed. ) For use by commonly used software, if there is not enough memory, the user will be reminded that the ROM will be very tight after installing the application, which may affect the smooth use of other software.
当用户进行下载应用前,获取该应用运行时所需RAM,以及当前手机常驻后台应用占用RAM,若这两者之和大于手机RAM配置,则提醒用户使用时有关闭常驻后台应用的需要。Before the user downloads the application, obtain the RAM required for the application to run, and the current mobile phone resident background application occupies the RAM. If the sum of the two is greater than the mobile phone RAM configuration, the user is reminded to use the need to close the resident background application. .
图3是根据本发明优选实施例提供的一种基于内存的应用安装指南的方法的流程示意图一,如图3所示,该方法包括:3 is a schematic flowchart 1 of a method for installing a memory-based application installation guide according to a preferred embodiment of the present invention. As shown in FIG. 3, the method includes:
步骤S301:手机切换到应用商店,准备选择应用下载;Step S301: The mobile phone switches to the application store, and prepares to select an application download;
步骤S302:点击应用准备进行下载;Step S302: Clicking on the application to prepare for downloading;
步骤S303:判断手机剩余ROM是否大于安装包及应用占用内存(ROM)之和;Step S303: determining whether the remaining ROM of the mobile phone is greater than the sum of the installation package and the application occupied memory (ROM);
步骤S304:若手机剩余ROM小于安装包及应用占用内存(ROM)之和,则提示用户内存不足,流程结束;Step S304: If the remaining ROM of the mobile phone is smaller than the sum of the installation package and the application occupied memory (ROM), the user is prompted to have insufficient memory, and the process ends;
步骤S305:判断用户是否同意安装完应用后删除安装包;Step S305: determining whether the user agrees to delete the installation package after installing the application;
步骤S306:若用户同意,继续判断剩余ROM和安装包占用内存(ROM)之和是否大于应用及使用应用后产生的缓存、数据占用内存(ROM)之和;Step S306: If the user agrees, continue to determine whether the sum of the remaining ROM and the installed package memory (ROM) is greater than the sum of the cache and the data occupied memory (ROM) generated after the application and the application are used;
步骤S307:若大于,则提醒用户内存充足,可以安装并流畅地使用应用,流程结束。Step S307: If it is greater, the user is reminded that the memory is sufficient, the application can be installed and used smoothly, and the process ends.
步骤S308:若小于,则提醒用户可以安装应用,但剩余内存不足,可能影响应用使用,流程结束;Step S308: If it is less than, the user is reminded that the application can be installed, but the remaining memory is insufficient, which may affect the application, and the process ends;
步骤S309:若用户不同意,继续判断剩余ROM是否大于安装包、应 用及使用应用后产生的缓存、数据占用内存(ROM)之和;Step S309: If the user does not agree, continue to determine whether the remaining ROM is larger than the installation package, The sum of the cache and data occupied memory (ROM) generated after using and using the application;
步骤S310:若大于,则提醒用户内存充足,可以安装并流畅地使用应用,流程结束。Step S310: If it is greater than, the user is reminded that the memory is sufficient, the application can be installed and used smoothly, and the process ends.
步骤S311:若小于,则提醒用户可以安装应用,但剩余内存不足,可能影响应用使用,流程结束。Step S311: If it is less than, the user is reminded that the application can be installed, but the remaining memory is insufficient, which may affect the application, and the process ends.
本实施例另外考虑了当前手机常用应用在以后不长的一段时间内产生的数据、缓存所占用的内存,通过判断安装新应用是否会占用余下的不多的内存,影响正常软件的使用。In this embodiment, the data generated by the current mobile phone application in a short period of time and the memory occupied by the cache are additionally considered, and it is affected whether the installation of the new application will occupy the remaining memory and affect the use of the normal software.
图4是根据本发明优选实施例提供的一种基于内存的应用安装指南的方法的流程图二,避免用户安装应用遇到内存不足、使用卡顿的问题,具体流程如下:FIG. 4 is a second flowchart of a method for installing a memory-based application installation guide according to a preferred embodiment of the present invention. The method for preventing a user from installing an application from running out of memory and using a jam is as follows:
步骤S401,流程开始。In step S401, the process starts.
步骤S402,点击应用准备下载。In step S402, the application is clicked to download.
步骤S403,获取当前手机常用软件列表。Step S403, obtaining a list of commonly used software of the current mobile phone.
步骤S404,估算常用软件在以后不长的一段时间内会产生的数据、缓存内存占用(ROM)。Step S404, estimating data, cache memory usage (ROM) generated by the common software in a short period of time.
步骤S405,判断安装新应用是否会占用余下的不多的内存(ROM),影响正常软件的使用。In step S405, it is judged whether installing the new application will occupy the remaining memory (ROM), which affects the use of normal software.
步骤S406,若是,则提醒用户会影响正常软件的使用。Step S406, if yes, the user is reminded that the use of normal software is affected.
步骤S407,若否,则提醒用户放心地安装使用应用。Step S407, if no, the user is reminded to install the application with confidence.
本实施例另外考虑了当前手机常驻后台应用占用的RAM,通过判断运行新应用是否会占用常驻后台应用所需RAM,来判断是否影响常驻后台软件的使用。In this embodiment, the RAM occupied by the current mobile station resident background application is additionally considered, and it is judged whether the use of the resident background software is affected by determining whether the running new application will occupy the RAM required by the resident background application.
图5是根据本发明优选实施例提供的一种基于内存的应用安装指南的方法的流程图三,避免用户安装应用遇到内存不足、使用卡顿的问题,具 体流程如下:FIG. 5 is a third flowchart of a method for installing a memory-based application installation guide according to a preferred embodiment of the present invention, which avoids the problem that a user installation application encounters insufficient memory and uses a jam. The body flow is as follows:
步骤S501,流程开始。In step S501, the process starts.
步骤S502,点击应用准备下载。In step S502, the application is clicked to download.
步骤S503,获取当前手机常驻后台应用占用RAM。Step S503: Acquire a RAM occupied by the current mobile station resident background application.
步骤S504,获取当前手机总RAMStep S504, acquiring the current total RAM of the mobile phone
步骤S505,判断该应用运行时占用内存与常驻后台应用占用RAM之和是否大于总RAM。Step S505, determining whether the sum of the memory occupied by the application runtime and the RAM occupied by the resident background application is greater than the total RAM.
步骤S506,若是,则提醒用户会影响正常软件的使用。Step S506, if yes, the user is reminded that the use of normal software is affected.
步骤S507,若否,则提醒用户放心地安装使用应用。Step S507, if no, the user is reminded to install the application with confidence.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
实施例2Example 2
在本实施例中还提供了一种应用的下载装置,该装置用于实现上述实施例及实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, an application downloading device is also provided, which is used to implement the foregoing embodiments and implementation manners, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图6是根据本发明实施例的应用的下载装置的结构框图,如图6所示,该装置包括: FIG. 6 is a structural block diagram of a downloading apparatus of an application according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes:
第一获取模块62,配置为获取用于指示是否能够正常安装指定应用的信息;The first obtaining module 62 is configured to acquire information used to indicate whether the specified application can be normally installed;
第一预判模块64,与所述第一获取模块62连接,配置为根据所述第一获取模块62获取的信息预判指定应用是否能够正常安装;The first pre-judging module 64 is connected to the first obtaining module 62, and configured to pre-determine whether the specified application can be installed normally according to the information acquired by the first obtaining module 62;
下载模块66,与所述第一预判模块64连接,配置为在所述第一预判模块64的预判结果为指定应用能够正常安装的情况下,安装指定应用。The downloading module 66 is connected to the first pre-judging module 64, and is configured to install the specified application if the pre-judgment result of the first pre-judging module 64 is that the specified application can be installed normally.
通过上述装置,所述第一预判模块64根据所述第一获取模块62获取的用于指示是否能够正常安装指定应用的信息来预判该指定应用是否正能够正常安装,在预判结果为指定应用能够正常安装的情况下,所述下载模块66下载指定应用,该装置使得在下载指定应用前先进行预判,在预判结果为指定应用能够正常安装的情况下才下载指定应用,能够极大地改善用户的体验,能够解决相关技术中下载应用时用户体验度低的问题。Through the foregoing device, the first pre-judging module 64 predicts whether the specified application is being installed normally according to the information acquired by the first obtaining module 62 for indicating whether the specified application can be normally installed, and the result of the pre-judgment is When the specified application can be installed normally, the downloading module 66 downloads the specified application, and the device makes a pre-judgment before downloading the specified application, and downloads the specified application after the pre-judgment result is that the specified application can be normally installed. Greatly improve the user experience, and solve the problem of low user experience when downloading applications in related technologies.
需要说明的是,上述信息包括:终端当前剩余内存、指定应用的安装包占用内存、安装指定应用所需内存以及指定应用安装后运行指定应用所占内存。It should be noted that the foregoing information includes: the current remaining memory of the terminal, the memory occupied by the installation package of the specified application, the memory required to install the specified application, and the memory occupied by the specified application after the specified application is installed.
需要说明的是,上述指定应用能够正常安装的情况包括以下之一:允许指定应用安装、指定应用安装成功后正常运行。It should be noted that the above specified application can be normally installed, including one of the following: allowing the specified application to be installed, and the specified application to be installed after the installation is successful.
在本发明的一个实施例中,所述第一预判模块64,还可以配置为在指定应用能够正常安装的情况包括允许指定应用安装的情况下,判断终端当前剩余内存是否大于指定应用的安装包占用内存与安装指定应用所需内存之和;其中,在判断结果为是的情况下,预判结果为允许指定应用安装;判断结果为否的情况下,预判结果为不能允许指定应用安装。In an embodiment of the present invention, the first pre-judging module 64 may be further configured to determine whether the current remaining memory of the terminal is greater than the installation of the specified application if the specified application can be installed normally, including allowing the specified application to be installed. The sum of the memory occupied by the package and the memory required to install the specified application; wherein, in the case that the judgment result is yes, the result of the pre-judgment is to allow the specified application to be installed; if the judgment result is no, the result of the prediction is that the specified application cannot be allowed to be installed. .
在本发明的一个实施例中,所述装置还可以包括:第一接收模块,与所述下载模块66连接,配置为在指定应用安装正常还包括指定应用安装成功后正常运行的情况下,在下载指定应用之前,接收用于指示指定应用安 装后不删除指定应用的安装包的第一指示信息;所述第一预判模块64,还用于判断终端当前剩余内存是否大于指定应用的安装包占用内存、安装指定应用所需内存与指定应用安装后使用指定应用所占内存之和;其中,在判断结果为是的情况下,预判结果还包括:指定应用安装成功后正常运行;在判断结果为否的情况下,预判结果还包括:指定应用正常运行后存在卡顿现象。In an embodiment of the present invention, the device may further include: a first receiving module, configured to be connected to the downloading module 66, configured to be in a normal operation after the specified application is installed and further includes the specified application being successfully installed, Received to indicate the specified application before downloading the specified application The first indication information of the installation package of the specified application is not deleted after the installation; the first pre-judgment module 64 is further configured to determine whether the current remaining memory of the terminal is greater than the memory occupied by the installation package of the specified application, and the memory and designation required to install the specified application. After the application is installed, the sum of the memory occupied by the specified application is used; wherein, in the case that the judgment result is yes, the pre-judgment result further includes: the specified application is installed after the installation is successful; if the judgment result is no, the prediction result is still Including: The specified application has a stuck phenomenon after it runs normally.
在本发明的一个实施例中,所述装置还可以包括:第二接收模块,与所述下载模块66连接,配置为在指定应用安装正常还包括指定应用安装成功后正常运行的情况下,在下载指定应用之前,接收用于指示指定应用安装后删除指定应用的安装包的第二指示信息;所述第一预判模块64,还配置为判断终端当前剩余内存与指定应用的安装包占用内存之和,是否大于安装指定应用所需内存与指定应用安装后使用指定应用所占内存之和;其中,在判断结果为是的情况下,预判结果还包括:指定应用安装成功后正常运行;在判断结果为否的情况下,预判结果还包括:指定应用正常运行后存在卡顿现象。In an embodiment of the present invention, the device may further include: a second receiving module, configured to be connected to the downloading module 66, configured to be in a normal operation after the specified application is installed and further includes the specified application being successfully installed, Before downloading the specified application, receiving second indication information for instructing the specified application to delete the installation package of the specified application; the first pre-judging module 64 is further configured to determine that the current remaining memory of the terminal and the installation package of the specified application occupy the memory The sum is greater than the sum of the memory required to install the specified application and the memory occupied by the specified application after the specified application is installed; wherein, if the judgment result is yes, the pre-judgment result further includes: the specified application is installed after the installation is successful; In the case that the judgment result is negative, the pre-judgment result further includes: the occurrence of a stuck phenomenon after the specified application is in normal operation.
考虑安装新的应用后是否会影响终端常用应用的使用,因而,在本发明的一个实施例中,所述装置还可以包括:第二获取模块,与所述下载模块66连接,配置为在预判结果为指定应用能够正常安装的情况下,在下载指定应用之前,获取终端已安装的应用中常用应用在预定时间段内产生的缓存以及数据所占内存;其中,常用应用为终端中使用频率大于第一预定阈值的应用;第二预判模块,与所述第二获取模块连接,配置为预判指定应用安装正常后的终端剩余内存与终端已安装的应用中常用应用在预定时间段内产生的缓存以及数据所占内存之差是否大于第二预定阈值;第一提示模块,与所述第二预判模块连接,配置为在预判结果为是的情况下,发出配置为提示终端存在足够内存供常用应用使用的第一提示信息;第二提 示模块,与所述第二预判模块连接,配置为在预判结果为否的情况下,发出用于提示终端没有足够内存供常用应用使用的第二提示信息。It is considered that the installation of the new application may affect the use of the terminal common application. Therefore, in an embodiment of the present invention, the device may further include: a second acquisition module, connected to the download module 66, configured to be pre- The result is that, when the specified application can be installed normally, before the download of the specified application, the cache generated by the commonly used application in the installed application of the terminal and the memory occupied by the data are acquired; wherein the commonly used application is the frequency used in the terminal. An application that is greater than the first predetermined threshold; the second pre-judging module is connected to the second acquiring module, configured to pre-determine the remaining memory of the terminal after the specified application is installed normally, and the commonly used application in the installed application of the terminal is within a predetermined time period The generated cache and the difference between the memory occupied by the data are greater than a second predetermined threshold; the first prompting module is connected to the second pre-judging module, and configured to issue a configuration to prompt the terminal if the pre-judgment result is yes The first prompt information for enough memory for common applications; the second mention The module is connected to the second pre-judging module, and configured to issue a second prompt message for prompting the terminal that there is not enough memory for the common application to use if the pre-judgment result is no.
在本发明的一个实施例中,对于预判结果都可以通过提示信息提示给用户,提示方式可以是语音播报,也可以是短信息提示的方式,但并不限于此。在本发明的一个实施例中,上述装置还可以包括:第三提示模块,与所述下载模块66连接,配置为在预判结果为指定应用能够正常安装的情况下,发出用于提示指定应用可以安装正常的第三提示信息;第四提示模块,与所述下载模块66连接,配置为在预判结果为指定应用不能够正常安装的情况下,发出用于提示指定应用安装将不正常的第四提示信息。In an embodiment of the present invention, the pre-judgment result may be presented to the user by using the prompt information, and the prompting manner may be a voice broadcast or a short message prompting manner, but is not limited thereto. In an embodiment of the present invention, the apparatus may further include: a third prompting module, connected to the downloading module 66, configured to prompt to specify the application if the predicted result is that the specified application can be normally installed. The third prompt information may be installed. The fourth prompt module is connected to the download module 66, and configured to prompt the specified application installation to be abnormal if the predicted result is that the specified application cannot be installed normally. The fourth prompt information.
需要说明的是,内存可以是指只读存储器ROM,但并不限于此。It should be noted that the memory may refer to a read only memory ROM, but is not limited thereto.
考虑新的应用被安装后是否会占用常驻后台应用所需RAM,来确定新的应用被安装后是否影响常驻后台软件的使用,因而在本发明的一个实施例中,所述装置还可以包括:第三获取模块,与所述下载模块66连接,配置为获取指定应用运行时所需随机存储器RAM和当前终端后台应用所占RAM;第五提示模块,与所述第三获取模块连接,配置为在指定应用运行时所需随机存储器RAM和当前终端后台应用所占RAM之和大于终端配置的RAM的情况下,发出用于提示指定应用会影响后台应用的第五提示信息。Considering whether the new application is installed to occupy the RAM required by the resident background application to determine whether the new application is installed to affect the use of the resident background software, and thus in one embodiment of the present invention, the device can also The third obtaining module is connected to the downloading module 66, configured to acquire the random memory RAM required by the specified application runtime and the RAM occupied by the current terminal background application, and the fifth prompting module is connected to the third acquiring module. The fifth prompt information for prompting the specified application to affect the background application is sent in a case where the sum of the random memory RAM required by the specified application and the RAM of the current terminal background application is greater than the RAM of the terminal configuration.
需要说明的是,上述装置还可以包括:第六提示模块,与上述第三获取模块连接,配置为在小于的情况下,发出配置为提示放心安装指定应用的第六提示信息。It should be noted that the foregoing apparatus may further include: a sixth prompting module, configured to be connected to the third acquiring module, configured to issue a sixth prompt information configured to promptly install the specified application when the content is smaller than.
需要说明的是,所述装置可以位于终端中,但并不限于此。It should be noted that the device may be located in the terminal, but is not limited thereto.
本发明实施例还提供了一种终端,包括上述的应用的下载装置。The embodiment of the invention further provides a terminal, including the downloading device of the above application.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器 中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the foregoing modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor. Or; each of the above modules is located in a different processor in any combination.
实施例3Example 3
本发明的实施例还提供了一种存储介质。作为一种实施方式,在本实施例中,上述存储介质可以被设置为存储用于执行实施例1中的方法的步骤的程序代码。Embodiments of the present invention also provide a storage medium. As an embodiment, in the present embodiment, the above storage medium may be set to store program code for executing the steps of the method in Embodiment 1.
作为一种实施方式,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。As an embodiment, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), and a mobile hard disk. A variety of media that can store program code, such as a disk or a disc.
作为一种实施方式,在本实施例中,处理器根据存储介质中已存储的程序代码执行实施例1中的方法的步骤。As an embodiment, in the embodiment, the processor executes the steps of the method in Embodiment 1 according to the stored program code in the storage medium.
作为一种实施方式,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。As an embodiment, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单 元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated in one processing order. In the meta element, each unit may be separately used as a unit, or two or more units may be integrated into one unit; the integrated unit may be implemented in the form of hardware or a hardware plus software functional unit. Formal realization.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing storage device includes the following steps: the foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. A medium that can store program code.
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a RAM, a magnetic disk, or an optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.
工业实用性Industrial applicability
本发明实施例的技术方案在下载指定应用之前,通过根据获取的用于指示是否能够正常安装指定应用的信息来预判该指定应用是否正能够正常安装,在预判结果为指定应用能够正常安装的情况下,下载指定应用,使 得在下载指定应用前先进行预判,在预判结果为指定应用能够正常安装的情况下才下载指定应用,能够极大地改善用户的体验,能够解决相关技术中下载应用时用户体验度低的问题。 The technical solution of the embodiment of the present invention pre-determines whether the specified application is being installed normally according to the obtained information for indicating whether the specified application can be normally installed before downloading the specified application, and the result of the pre-judgment is that the specified application can be normally installed. In case of downloading the specified application, so that It is necessary to pre-judicate before downloading the specified application. When the pre-judgment result is that the specified application can be installed normally, the specified application can be downloaded, which can greatly improve the user experience and can solve the low user experience when downloading the application in the related art. problem.

Claims (20)

  1. 一种应用的下载方法,包括:An application download method, including:
    获取用于指示是否能够正常安装指定应用的信息;Obtain information indicating whether the specified application can be installed normally;
    根据所述信息预判所述指定应用是否能够正常安装;Determining, according to the information, whether the specified application can be installed normally;
    在预判结果为所述指定应用能够正常安装的情况下,下载所述指定应用。The specified application is downloaded in a case where the result of the prediction is that the specified application can be normally installed.
  2. 根据权利要求1所述的方法,其中,所述信息包括:The method of claim 1 wherein said information comprises:
    终端当前剩余内存、所述指定应用的安装包占用内存、安装所述指定应用所需内存以及所述指定应用安装后运行所述指定应用所占内存。The current remaining memory of the terminal, the installation package of the specified application occupies memory, the memory required to install the specified application, and the memory occupied by the specified application after the specified application is installed.
  3. 根据权利要求2所述的方法,其中,所述指定应用能够正常安装的情况包括以下之一:The method of claim 2, wherein the case where the specified application can be normally installed comprises one of the following:
    允许所述指定应用安装、所述指定应用安装成功后正常运行。The specified application is allowed to be installed, and the specified application is successfully installed after the installation is successful.
  4. 根据权利要求3所述的方法,其中,在所述指定应用能够正常安装的情况包括允许所述指定应用安装的情况下,根据所述信息预判所述指定应用是否能够正常安装包括:The method according to claim 3, wherein, in a case where the specified application can be normally installed, including allowing the specified application to be installed, predicting whether the specified application can be normally installed according to the information includes:
    判断所述终端当前剩余内存是否大于所述指定应用的安装包占用内存与所述安装所述指定应用所需内存之和,在判断结果为是的情况下,预判结果为允许所述指定应用安装;判断结果为否的情况下,预判结果为不能允许所述指定应用安装。Determining whether the current remaining memory of the terminal is greater than a sum of memory occupied by the installation package of the specified application and the memory required to install the specified application. If the determination result is yes, the result of the prediction is that the specified application is allowed. If the result of the determination is negative, the result of the pre-judgment is that the specified application cannot be allowed to be installed.
  5. 根据权利要求4所述的方法,其中,在所述指定应用安装正常还包括所述指定应用安装成功后正常运行的情况下,在下载所述指定应用之前,所述方法还包括:接收用于指示所述指定应用安装后不删除所述指定应用的安装包的第一指示信息;The method according to claim 4, wherein, in the case that the specified application installation is normal and the normal operation is performed after the specified application is successfully installed, before the downloading the specified application, the method further comprises: receiving Instructing the specified application to not delete the first indication information of the installation package of the specified application after installation;
    根据所述信息预判所述指定应用是否能够正常安装还包括:判断所述终端当前剩余内存是否大于所述指定应用的安装包占用内存、所述安装所 述指定应用所需内存与所述指定应用安装后使用所述指定应用所占内存之和;在判断结果为是的情况下,所述预判结果还包括:所述指定应用安装成功后正常运行;在判断结果为否的情况下,所述预判结果还包括:所述指定应用正常运行后存在卡顿现象。Determining whether the specified application can be installed normally according to the information further includes: determining whether the current remaining memory of the terminal is greater than an installed package occupying memory of the specified application, the installation office Determining the memory required by the specified application and the sum of the memory occupied by the specified application after the specified application is installed; if the determination result is yes, the pre-judgment result further includes: the specified application is successfully installed after the installation is successful. If the determination result is no, the pre-judgment result further includes: a stuck phenomenon occurs after the specified application is in normal operation.
  6. 根据权利要求4所述的方法,其中,在所述指定应用安装正常还包括所述指定应用安装成功后正常运行的情况下,在下载所述指定应用之前,所述方法还包括:接收用于指示所述指定应用安装后删除所述指定应用的安装包的第二指示信息;The method according to claim 4, wherein, in the case that the specified application installation is normal and the normal operation is performed after the specified application is successfully installed, before the downloading the specified application, the method further comprises: receiving Instructing the specified application to delete the second indication information of the installation package of the specified application after installation;
    根据所述信息预判所述指定应用是否能够正常安装还包括:判断所述终端当前剩余内存与所述指定应用的安装包占用内存之和,是否大于所述安装所述指定应用所需内存与所述指定应用安装后使用所述指定应用所占内存之和;在判断结果为是的情况下,所述预判结果还包括:所述指定应用安装成功后正常运行;在判断结果为否的情况下,所述预判结果还包括:所述指定应用正常运行后存在卡顿现象。Determining whether the specified application can be installed normally according to the information further includes: determining whether a sum of a current memory of the terminal and an installed package of the specified application is greater than a memory required to install the specified application After the specified application is installed, the sum of the memory occupied by the specified application is used; if the determination result is yes, the pre-judgment result further includes: the specified application is successfully installed after the installation is successful; and the determination result is no. In the case, the pre-judgment result further includes: a stuck phenomenon occurs after the specified application is in normal operation.
  7. 根据权利要求1所述的方法,其中,在预判结果为所述指定应用能够正常安装的情况下,在下载所述指定应用之前,所述方法还包括:The method according to claim 1, wherein, before the result of the pre-judgment is that the specified application can be normally installed, before the downloading the specified application, the method further comprises:
    获取终端已安装的应用中常用应用在预定时间段内产生的缓存以及数据所占内存;其中,所述常用应用为所述终端中使用频率大于第一预定阈值的应用;Obtaining a cache generated by a common application in a terminal that is installed in the terminal, and a memory occupied by the data in a predetermined period of time; wherein the common application is an application in the terminal that uses a frequency greater than a first predetermined threshold;
    预判所述指定应用安装正常后的所述终端剩余内存与所述终端已安装的应用中常用应用在预定时间段内产生的缓存以及数据所占内存之差是否大于第二预定阈值;Predicting whether the difference between the remaining memory of the terminal after the specified application is installed and the memory generated by the commonly used application in the installed application of the terminal within a predetermined time period and the memory occupied by the data is greater than a second predetermined threshold;
    在预判结果为是的情况下,发出用于提示所述终端存在足够内存供常用应用使用的第一提示信息;In the case that the result of the pre-judgment is YES, the first prompt information for prompting the terminal to have sufficient memory for use by the common application is issued;
    在预判结果为否的情况下,发出用于提示所述终端没有足够内存供常 用应用使用的第二提示信息。In case the pre-judgment result is no, it is issued to prompt the terminal that there is not enough memory for the normal Use the second prompt information used by the application.
  8. 根据权利要求1至7中任一项所述的方法,其中,在根据所述信息预判所述指定应用是否能够正常安装之后,所述方法还包括:The method according to any one of claims 1 to 7, wherein, after predicting whether the specified application can be normally installed according to the information, the method further comprises:
    在预判结果为所述指定应用能够正常安装的情况下,发出用于提示所述指定应用可以安装正常的第三提示信息;And in a case that the result of the pre-judgment is that the specified application can be normally installed, issue third prompt information for prompting that the specified application can be installed normally;
    在预判结果为所述指定应用不能够正常安装的情况下,发出用于提示所述指定应用安装将不正常的第四提示信息。If the result of the pre-judgment is that the specified application cannot be installed normally, the fourth prompt information for prompting that the specified application installation is not normal is issued.
  9. 根据权利要求1至7中任一项所述的方法,其中,在下载所述指定应用之后,所述方法还包括:The method according to any one of claims 1 to 7, wherein after downloading the specified application, the method further comprises:
    获取所述指定应用运行时所需随机存储器RAM和当前终端后台应用所占RAM;Obtaining a random memory RAM required by the specified application runtime and a RAM occupied by a current terminal background application;
    在所述指定应用运行时所需随机存储器RAM和所述当前所述终端后台应用所占RAM之和大于所述终端配置的RAM的情况下,发出用于提示指定应用会影响所述后台应用的第五提示信息。And in a case that the sum of the random memory RAM required by the specified application and the current RAM of the terminal background application is greater than the RAM configured by the terminal, issuing a prompt for prompting the specified application to affect the background application. The fifth prompt information.
  10. 一种应用的下载装置,包括:An application downloading device, comprising:
    第一获取模块,配置为获取用于指示是否能够正常安装指定应用的信息;a first acquiring module, configured to obtain information used to indicate whether the specified application can be normally installed;
    第一预判模块,配置为根据所述第一获取模块获取的信息预判所述指定应用是否能够正常安装;The first pre-judging module is configured to pre-determine whether the specified application can be installed normally according to the information acquired by the first obtaining module;
    下载模块,配置为在所述第一预判模块的预判结果为所述指定应用能够正常安装的情况下,下载所述指定应用。And a downloading module configured to download the specified application if the predicted result of the first predictive module is that the specified application can be installed normally.
  11. 根据权利要求10所述的装置,其中,所述信息包括:The apparatus of claim 10 wherein said information comprises:
    终端当前剩余内存、所述指定应用的安装包占用内存、安装所述指定应用所需内存以及所述指定应用安装后运行所述指定应用所占内存。The current remaining memory of the terminal, the installation package of the specified application occupies memory, the memory required to install the specified application, and the memory occupied by the specified application after the specified application is installed.
  12. 根据权利要求11所述的装置,其中,所述指定应用能够正常安装 的情况包括以下之一:The apparatus of claim 11 wherein said designated application is capable of normal installation The situation includes one of the following:
    允许所述指定应用安装、所述指定应用安装成功后正常运行。The specified application is allowed to be installed, and the specified application is successfully installed after the installation is successful.
  13. 根据权利要求12所述的装置,其中,所述第一预判模块,还配置为在所述指定应用能够正常安装的情况包括允许所述指定应用安装的情况下,判断所述终端当前剩余内存是否大于所述指定应用的安装包占用内存与所述安装所述指定应用所需内存之和;其中,在判断结果为是的情况下,预判结果为允许所述指定应用安装;判断结果为否的情况下,预判结果为不能允许所述指定应用安装。The apparatus according to claim 12, wherein the first pre-judging module is further configured to determine that the terminal currently has remaining memory if the specified application can be normally installed, including allowing the specified application to be installed. Whether it is greater than the sum of the memory occupied by the installation package of the specified application and the memory required to install the specified application; wherein, in the case that the determination result is yes, the result of the prediction is that the specified application is allowed to be installed; Otherwise, the result of the pre-judgment is that the specified application cannot be allowed to be installed.
  14. 根据权利要求13所述的装置,其中,所述装置还包括:第一接收模块,配置为在所述指定应用安装正常还包括所述指定应用安装成功后正常运行的情况下,在下载所述指定应用之前,接收用于指示所述指定应用安装后不删除所述指定应用的安装包的第一指示信息;The device according to claim 13, wherein the device further comprises: a first receiving module configured to download the information if the specified application installation is normal and the normal application is successfully installed after the specified application is successfully installed Before specifying the application, receiving first indication information indicating that the installation package of the specified application is not deleted after the specified application is installed;
    所述第一预判模块,还配置为判断所述终端当前剩余内存是否大于所述指定应用的安装包占用内存、所述安装所述指定应用所需内存与所述指定应用安装后使用所述指定应用所占内存之和;其中,在判断结果为是的情况下,所述预判结果还包括:所述指定应用安装成功后正常运行;在判断结果为否的情况下,所述预判结果还包括:所述指定应用正常运行后存在卡顿现象。The first pre-judging module is further configured to determine whether the current remaining memory of the terminal is greater than an installed package occupied memory of the specified application, the required memory for installing the specified application, and the use of the specified application after installation. Specifying the sum of the memory occupied by the application; wherein, in the case that the determination result is yes, the pre-judgment result further includes: the specified application is successfully installed after the installation is successful; and if the determination result is no, the pre-judgment The result further includes: a stuck phenomenon occurs after the specified application is in normal operation.
  15. 根据权利要求13所述的装置,其中,所述装置还包括:第二接收模块,配置为在所述指定应用安装正常还包括所述指定应用安装成功后正常运行的情况下,在预判结果为允许所述指定应用安装的情况下,接收用于指示所述指定应用安装后删除所述指定应用的安装包的第二指示信息;The device according to claim 13, wherein the device further comprises: a second receiving module configured to prejudge the result if the specified application installation is normal and the normal application is successfully installed after the specified application is successfully installed In order to allow the specified application to be installed, receiving second indication information for instructing the specified application to delete the installation package of the specified application after installation;
    所述第一预判模块,还配置为判断所述终端当前剩余内存与所述指定应用的安装包占用内存之和,是否大于所述安装所述指定应用所需内存与所述指定应用安装后使用所述指定应用所占内存之和;其中,在判断结果 为是的情况下,所述预判结果还包括:所述指定应用安装成功后正常运行;在判断结果为否的情况下,所述预判结果还包括:所述指定应用正常运行后存在卡顿现象。The first pre-judging module is further configured to determine whether a sum of the current remaining memory of the terminal and the installed package occupied memory of the specified application is greater than the required memory for installing the specified application and the specified application after installation Using the sum of the memory occupied by the specified application; wherein, in the judgment result In the case of YES, the pre-judgment result further includes: after the specified application is successfully installed, the normal operation is performed; if the determination result is negative, the pre-judgment result further includes: the card exists after the specified application is in normal operation The phenomenon.
  16. 根据权利要求10所述的装置,其中,所述装置还包括:The device of claim 10, wherein the device further comprises:
    第二获取模块,配置为在预判结果为所述指定应用能够正常安装的情况下,在下载所述指定应用之前,获取终端已安装的应用中常用应用在预定时间段内产生的缓存以及数据所占内存;其中,所述常用应用为所述终端中使用频率大于第一预定阈值的应用;a second obtaining module, configured to acquire a cache and data generated by a commonly used application in the installed application of the terminal within a predetermined time period before downloading the specified application, in a case that the predicted result is that the specified application can be normally installed. The memory is occupied; wherein the common application is an application in which the frequency of use in the terminal is greater than a first predetermined threshold;
    第二预判模块,配置为预判所述指定应用安装正常后的所述终端剩余内存与所述终端已安装的应用中常用应用在预定时间段内产生的缓存以及数据所占内存之差是否大于第二预定阈值;The second pre-judging module is configured to pre-determine whether the remaining memory of the terminal after the specified application is installed and the cache generated by the commonly used application in the installed application of the terminal and the memory occupied by the data are Greater than a second predetermined threshold;
    第一提示模块,配置为在预判结果为是的情况下,发出用于提示所述终端存在足够内存供常用应用使用的第一提示信息;The first prompting module is configured to, when the pre-judgment result is yes, issue first prompt information for prompting the terminal to have sufficient memory for use by the common application;
    第二提示模块,配置为在预判结果为否的情况下,发出用于提示所述终端没有足够内存供常用应用使用的第二提示信息。The second prompting module is configured to, when the pre-judgment result is no, issue second prompt information for prompting that the terminal does not have enough memory for the common application to use.
  17. 根据权利要求10至16中任一项所述的装置,其中,所述装置还包括:The device according to any one of claims 10 to 16, wherein the device further comprises:
    第三提示模块,配置为在预判结果为所述指定应用能够正常安装的情况下,发出配置为提示所述指定应用可以安装正常的第三提示信息;The third prompting module is configured to: when the pre-judgment result is that the specified application can be normally installed, issue a third prompt information configured to prompt the specified application to be installed normally;
    第四提示模块,配置为在预判结果为所述指定应用不能够正常安装的情况下,发出配置为提示所述指定应用安装将不正常的第四提示信息。The fourth prompting module is configured to issue a fourth prompt information configured to prompt the specified application installation to be abnormal if the predicted result is that the specified application cannot be installed normally.
  18. 根据权利要求10至16中任一项所述的装置,其中,所述装置还包括:The device according to any one of claims 10 to 16, wherein the device further comprises:
    第三获取模块,配置为获取所述指定应用运行时所需随机存储器RAM和当前终端后台应用所占RAM; a third obtaining module, configured to acquire a random memory RAM required by the specified application runtime and a RAM occupied by a current terminal background application;
    第五提示模块,配置为在所述指定应用运行时所需随机存储器RAM和所述当前所述终端后台应用所占RAM之和大于所述终端配置的RAM的情况下,发出用于提示所述指定应用会影响所述后台应用的第五提示信息。a fifth prompting module configured to: when the sum of the random memory RAM required by the specified application and the current RAM of the terminal background application is greater than the RAM configured by the terminal, issue The specified application will affect the fifth prompt information of the background application.
  19. 一种终端,所述终端包括权利要求10至18中任一项所述的装置。A terminal comprising the apparatus of any one of claims 10 to 18.
  20. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至9任一项所述的应用的下载方法。 A computer storage medium having stored therein computer executable instructions for performing a download method of an application according to any one of claims 1 to 9.
PCT/CN2016/105494 2016-09-23 2016-11-11 Application download method, device and terminal, and computer storage medium WO2018053916A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610848801.2 2016-09-23
CN201610848801.2A CN107870786A (en) 2016-09-23 2016-09-23 The method for down loading and device of application, terminal

Publications (1)

Publication Number Publication Date
WO2018053916A1 true WO2018053916A1 (en) 2018-03-29

Family

ID=61690098

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/105494 WO2018053916A1 (en) 2016-09-23 2016-11-11 Application download method, device and terminal, and computer storage medium

Country Status (2)

Country Link
CN (1) CN107870786A (en)
WO (1) WO2018053916A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010029607A1 (en) * 1999-04-06 2001-10-11 Microsoft Corporation System and method for application installation management
CN101321353A (en) * 2008-07-14 2008-12-10 中兴通讯股份有限公司 Method for supporting Java application download spacing detection
CN104571930A (en) * 2013-10-10 2015-04-29 中国移动通信集团公司 Management method and management system of security domain storage spaces as well as multi-application open platform device
CN105573770A (en) * 2014-10-14 2016-05-11 腾讯科技(深圳)有限公司 Application program downloading and installing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010029607A1 (en) * 1999-04-06 2001-10-11 Microsoft Corporation System and method for application installation management
CN101321353A (en) * 2008-07-14 2008-12-10 中兴通讯股份有限公司 Method for supporting Java application download spacing detection
CN104571930A (en) * 2013-10-10 2015-04-29 中国移动通信集团公司 Management method and management system of security domain storage spaces as well as multi-application open platform device
CN105573770A (en) * 2014-10-14 2016-05-11 腾讯科技(深圳)有限公司 Application program downloading and installing method and device

Also Published As

Publication number Publication date
CN107870786A (en) 2018-04-03

Similar Documents

Publication Publication Date Title
EP3062567B1 (en) Electronic device and method for managing power in electronic device
US9965188B2 (en) Memory cleaning method and apparatus, and terminal device
US9164748B2 (en) Information backup method and apparatus
EP2977854B1 (en) Method, apparatus, and user terminal for removing malicious power consuming application
EP3391634B1 (en) Electronic device and method for controlling application and component
CN105988805B (en) Application program management method and mobile terminal
CN108108290B (en) Apparatus and method for detecting offloading of audience measurement processing on a mobile device
CN104994080B (en) Information processing method and system and electronic equipment
EP2660761A1 (en) Timestamp management method for data synchronization and terminal therefor
WO2017020781A1 (en) Power saving processing method, device, mobile terminal and cloud server
CN106354601A (en) Storage space management method and device for data partition
CN109117153B (en) Application processing method, device, terminal and storage medium
CN105224421A (en) Data backup method and device and electronic equipment
CN112099757A (en) Application keep-alive method and device
CN111132132A (en) Traffic management method and device and terminal equipment
CN104360880A (en) Application installing method and electronic equipment
CN108762983B (en) Multimedia data recovery method and device
CN110555009B (en) Processing method and device for Network File System (NFS) service
CN109901849B (en) Application program installation method and device, electronic equipment and storage medium
CN104951325B (en) A kind of information display method and electronic equipment
WO2018053916A1 (en) Application download method, device and terminal, and computer storage medium
CN111142900A (en) Program updating method and device and terminal equipment
US11275424B2 (en) Method for operating a device having a switchable power saving mode for reducing its power consumption
CN112989323B (en) Process detection method, device, terminal and storage medium
CN106376096B (en) Wireless network connection method and equipment thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16916655

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16916655

Country of ref document: EP

Kind code of ref document: A1