CN108509214A - Update method, device, storage medium and the mobile terminal of application program - Google Patents

Update method, device, storage medium and the mobile terminal of application program Download PDF

Info

Publication number
CN108509214A
CN108509214A CN201810291513.0A CN201810291513A CN108509214A CN 108509214 A CN108509214 A CN 108509214A CN 201810291513 A CN201810291513 A CN 201810291513A CN 108509214 A CN108509214 A CN 108509214A
Authority
CN
China
Prior art keywords
mobile terminal
communications network
value
mobile communications
updated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810291513.0A
Other languages
Chinese (zh)
Inventor
曾鸿坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810291513.0A priority Critical patent/CN108509214A/en
Publication of CN108509214A publication Critical patent/CN108509214A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present application discloses update method, device, storage medium and the mobile terminal of application program.This method includes:When detecting in mobile terminal, there are when destination application to be updated, obtain the available first movement communication network traffic value of the mobile terminal;Obtain the second mobile communications network flow value required when being updated to the destination application;When the second mobile communications network flow value and the ratio of the first movement communication network traffic value are less than the first predetermined threshold value, the destination application is updated by mobile communications network.The embodiment of the present application can make full use of sufficient mobile communications network to be updated upgrading to application program to be updated in mobile terminal automatically, effectively avoid the waste of mobile communications network flow, meet user demand by using above-mentioned technical proposal.

Description

Update method, device, storage medium and the mobile terminal of application program
Technical field
The invention relates to the update method of field of computer technology more particularly to application program, device, storages to be situated between Matter and mobile terminal.
Background technology
With the fast development of electronic technology and the increasingly raising of people's living standard, smart mobile phone, tablet computer etc. are eventually End has become an essential part in people's life.
Various application programs (Application Software, APP) are provided in terminal, in order to preferably full The update upgrading of the demand of sufficient user, application program becomes more and more frequently.
It, can be in software store when the application program in intelligent terminal has more new version or can update upgrading In corresponding application program image cursor position show " update " or " upgrading " printed words.In order to use newly-increased function or enjoy better User experience, whether user needs to update in software store timing concern application program, and needs to enter software store, To can newer application program singly carry out manually update upgrading.As it can be seen that the mistake of use above program update upgrading Journey, it is cumbersome, time-consuming, it can not meet the needs of users well.
Invention content
The embodiment of the present application provides update method, device, storage medium and the mobile terminal of application program, can be automatic right Application program update upgrades, and meets user demand.
In a first aspect, the embodiment of the present application provides a kind of update method of application program, including:
When detecting in mobile terminal there are when destination application to be updated, the mobile terminal available first is obtained Mobile communications network flow value;
Obtain the second mobile communications network flow value required when being updated to the destination application;
When the ratio of the second mobile communications network flow value and the first movement communication network traffic value is less than the When one predetermined threshold value, the destination application is updated by mobile communications network.
Second aspect, the embodiment of the present application provide a kind of updating device of application program, including:
First network flow acquisition module, for when detecting in mobile terminal there are when destination application to be updated, Obtain the available first movement communication network traffic value of the mobile terminal;
Second network flow acquisition module, the second movement for obtaining required when being updated to the destination application are logical Communication network flow value;
Application program update module, for when the second mobile communications network flow value and the first movement communication network When the ratio of network flow value is less than the first predetermined threshold value, the destination application is updated by mobile communications network.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes the update method of the application program as described in the embodiment of the present application when the program is executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of mobile terminal, including memory, processor and are stored in storage It can realize on device and when the computer program of processor operation, the processor execute the computer program as the application is real Apply the update method of the application program described in example.
The update scheme of the application program provided in the embodiment of the present application, there are to be updated in detecting mobile terminal When destination application, the available first movement communication network traffic value of mobile terminal is obtained, and obtain to destination application The second required mobile communications network flow value when update, when the second mobile communications network flow value and first movement communication network When the ratio of flow value is less than the first predetermined threshold value, destination application is updated by mobile communications network.By adopting With above-mentioned technical proposal, not only it is possible to prevente effectively from user to can newer application program singly updated manually Upgrading, but also sufficient mobile communications network can be made full use of to be carried out automatically to application program to be updated in mobile terminal Update upgrading, effectively avoids the waste of mobile communications network flow, meets user demand.
Description of the drawings
Fig. 1 is a kind of flow diagram of the update method of application program provided by the embodiments of the present application;
Fig. 2 is the flow diagram of the update method of another application program provided by the embodiments of the present application;
Fig. 3 is the flow diagram of the update method of another application program provided by the embodiments of the present application;
Fig. 4 is a kind of structure diagram of the updating device of application program provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of mobile terminal provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of another mobile terminal provided by the embodiments of the present application.
Specific implementation mode
Further illustrate the technical solution of the application below with reference to the accompanying drawings and specific embodiments.It is appreciated that It is that specific embodiment described herein is used only for explaining the application, rather than the restriction to the application.It further needs exist for illustrating , illustrate only for ease of description, in attached drawing and the relevant part of the application rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.Although each step is described as the processing of sequence, many of which by flow chart Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated when completion, it is also possible to the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
Fig. 1 is a kind of flow diagram of the update method of application program provided by the embodiments of the present application, and this method can be with It is executed by the updating device of application program, wherein the device can generally be integrated in mobile terminal by software and or hardware realization In.As shown in Figure 1, this method includes:
Step 101, when detecting there are when destination application to be updated in mobile terminal, obtaining the mobile terminal can First movement communication network traffic value.
Illustratively, the mobile terminal in the embodiment of the present application may include the mobile devices such as mobile phone and tablet computer.Target Application program can be mounted in mobile terminal and can upgrade newer at least one application program.
In the embodiment of the present application, it is detected every preset time or in real time in mobile terminal with the presence or absence of target to be updated Application program.It, can in the corresponding installation file of each application program it is understood that application program is modular application To include several stand-alone assemblies, these independent components can be by the application programming interface that respectively provides (Application Programming Interface, API) carries out data interaction with other assemblies.And each component corresponds to One subroutine pack, each subroutine pack has unique component Name and version number, if fruit wherein some subroutine pack There is new version to issue, then the subroutine pack can there are one the new version numbers bigger than original version number on the server, such as 1.34.1,1.35.1 or 2.0.Illustratively, it detects and whether there is destination application to be updated in mobile terminal, including: The list for obtaining the application program installed in mobile terminal, determines the current version of each application program in the terminal in list This number, and the latest edition number of corresponding application program is obtained, judged in mobile terminal according to current version number and latest edition number With the presence or absence of destination application to be updated.For example, when if current version number is different with latest edition number, it is determined that mobile whole There are destination applications to be updated in end, and the application program that current version number is different with latest edition number is as waiting for more New destination application.When detecting in mobile terminal there are when destination application to be updated, obtain in mobile terminal Available first movement communication network traffic value.Wherein, first movement communication network traffic value is it is to be understood that current mobile whole Hold this month rest network flow number.
Illustratively, the available first movement communication network traffic value of mobile terminal is obtained, including:Obtain user setting In this month available total mobile communications network flow value, user is monitored in real time in the case where mobile terminal is in mobile communications network, institute The mobile communications network flow value that consumes when loading data, according to this month available total mobile communications network flow value with by the end of Total mobile communications network flow value of current time consumption, determines the currently available first movement communication network stream of mobile terminal Magnitude.For example, by this month available total mobile communications network flow value and total mobile communication by the end of current time consumption The difference of network flow magnitude, the first movement communication network traffic value currently available as mobile terminal.It is again illustrative, it obtains The available first movement communication network traffic value of mobile terminal, including:To the corresponding network operation of SIM card built in mobile terminal Quotient sends network values and obtains request;The feedback information for obtaining request based on network values according to network operator, obtains mobile terminal Available first movement communication network traffic value.For example, SIM card built in mobile terminal is mobile card, then mobile terminal is to shifting Dynamic operator sends network values and obtains request, such as directly can dial " 1008611 " by dial, be inquired by free telephone expenses The voice broadcast of hot line identifies the available first movement communication network traffic value of mobile terminal, alternatively, anti-in mobile operator It is logical using the numerical value of " residual flow " in the short breath information of identification as the available first movement of mobile terminal in the short breath information of feedback Communication network flow value.Furthermore it is also possible to which it is available to obtain current mobile terminal by the traffic statistic function that mobile terminal carries First movement communication network traffic value.It should be noted that the embodiment of the present application is to obtaining first movement communication network traffic value Mode be not specifically limited.
Step 102, acquisition the second mobile communications network flow value required when being updated to the destination application.
In the embodiment of the present application, when acquisition updates destination application, several subprograms for updating upgrading Size, the mobile communications network flow value of statistics required consumption when being loaded to the subprogram of the size, and being made The second required mobile communications network flow value when to be updated to destination application.
Step 103, when the ratio of the second mobile communications network flow value and the first movement communication network traffic value When value is less than the first predetermined threshold value, the destination application is updated by mobile communications network.
In the embodiment of the present application, the second mobile communications network flow value and first movement communication network traffic value are calculated Ratio size.Wherein, the ratio of the second mobile communications network flow value and first movement communication network traffic value, reflects and passes through When mobile communications network is updated upgrading to destination application, the network flow magnitude of required consumption occupies family mobile terminal How much is the ratio of currently available network flow magnitude.Wherein, the ratio is bigger, indicates through mobile communications network to intended application When program is updated upgrading, the network flow magnitude of required consumption occupies the currently available network flow magnitude of family mobile terminal Ratio is bigger.When the ratio being calculated is less than the first predetermined threshold value, control mobile terminal is by mobile communications network to mesh Mark application program is updated.It is understood that when the ratio being calculated is less than the first predetermined threshold value, if mobile terminal In mobile communications network connection status, then directly destination application is updated by mobile communications network, if mobile Terminal is in mobile communications network off-state, then mobile terminal control mobile communications network is opened, and so that mobile terminal is in and moves Dynamic communication network connection status, and destination application is updated by mobile communications network.
Illustratively, the first predetermined threshold value is 20%, and the first shifting currently available in mobile terminal is obtained by step 101 Dynamic communication network traffic value, i.e. mobile terminal current residual mobile communications network flow value are 532 Mbytes (MB), pass through step 102 second mobile communications network flow values required when obtaining updating destination application are 90MB, i.e., to intended application journey Sequence needs to consume 90MB mobile communications network flows when updating.At this point, the second mobile communications network flow value is logical with first movement The ratio of communication network flow value is 17%, is less than the first predetermined threshold value 20%, shows that mobile terminal has sufficient mobile communication Network flow is updated for destination application to be upgraded, and therefore, can be controlled mobile terminal and be answered target by mobile communications network It is updated with program.
The update method of the application program provided in the embodiment of the present application, there are to be updated in detecting mobile terminal When destination application, the available first movement communication network traffic value of mobile terminal is obtained, and obtain to destination application The second required mobile communications network flow value when update, when the second mobile communications network flow value and first movement communication network When the ratio of flow value is less than the first predetermined threshold value, destination application is updated by mobile communications network.By adopting With above-mentioned technical proposal, not only it is possible to prevente effectively from user to can newer application program singly updated manually Upgrading, but also sufficient mobile communications network can be made full use of to be carried out automatically to application program to be updated in mobile terminal Update upgrading, effectively avoids the waste of mobile communications network flow, meets user demand.
In some embodiments, when detecting in mobile terminal there are when destination application to be updated, the shifting is obtained The available first movement communication network traffic value of dynamic terminal, including:When detecting in mobile terminal, there are intended applications to be updated When program, judge whether the mobile terminal is in WiFi network connection status;If institute's mobile terminal is not in WiFi network company When connecing state, then the available first movement communication network traffic value of the mobile terminal is obtained.It is understood that when detecting In mobile terminal there are when destination application to be updated, judge mobile terminal whether be in WiFi network connection status, if Mobile terminal is in WiFi network connection status, then can directly WiFi network destination application is updated;If conversely, Mobile terminal is not in WiFi network connection status, then obtains the available first movement communication network traffic of the mobile terminal Value, in order to further determine whether that treating newer application program by mobile communications network is updated.It is arranged in this way It is advantageous in that, when mobile terminal is not in WiFi network connection status, considers whether through mobile communications network to be updated Application program be updated upgrading, and if mobile terminal is in WiFi network connection status, can be quickly through wireless network Network treats newer application program and is updated upgrading, avoids the waste to mobile communications network flow.
In some embodiments, further include:When the second mobile communications network flow value is communicated with the first movement When the ratio of network flow magnitude is greater than or equal to first predetermined threshold value, remind user that the mobile terminal is accessed WiFi nets Network, and when detecting that the mobile terminal accesses WiFi network, update the destination application.The benefit being arranged in this way exists In it is possible to prevente effectively from when treating newer application program and being updated, consuming the feelings of a large amount of mobile communications network flows of user Condition occurs.
Illustratively, first movement communication network traffic value currently available in mobile terminal is 532MB, and is answered target The second required mobile communications network flow value is 220MB, the second mobile communications network flow value and first when being updated with program The ratio of mobile communications network flow value is 41%, is much larger than the first predetermined threshold value 20%.If at this point, passing through mobile communications network Destination application is updated, the available mobile communications network flow of the nearly half of mobile terminal can be consumed, user can be influenced In use of the subsequent emergency to mobile communications network.For example, user is outgoing, need to inquire from place by navigation software Place but is not loaded with down the navigation types software such as Baidu map or Amap to the travel route of destination in mobile terminal, Simultaneously also without available WiFi network for users to use, at this time, it may be necessary to by mobile communications network download a navigation type software, And in mobile terminal for users to use without sufficient mobile communications network flow, extra-pay is easy tod produce, can be seriously affected The usage experience of user.Therefore, when the second mobile communications network flow value and the ratio of first movement communication network traffic value are big It when the first predetermined threshold value, reminds user that mobile terminal is accessed WiFi network, and works as and detect that mobile terminal accesses When WiFi network, more new target application.For example, the content of prompting user can be:" system detectio has renewable to you Application program, if being updated to this by mobile communications network, the network flow generated is in your available residual flow Proportion is more than 20%, and system has stopped automatically updating upgrading for you, please connect WiFi network ", and remind that user's is interior Appearance can be shown in the prompting frame of pop-up with obvious font.Optionally, if at this point, be not present available WiFi network, The more new task downloaded and updated the data corresponding with the destination application to be updated, and the more new task by described in can then be established Storage.When subsequently there is available WiFi network, and when detecting that mobile terminal accesses WiFi network, more based on storage New task is updated destination application.
In some embodiments, when the ratio of the second mobile communications network flow value and first movement communication network traffic value When more than or equal to the first predetermined threshold value, remind user that mobile terminal is accessed WiFi network, and work as and detect that mobile terminal connects When entering WiFi network, more new target application, including:When the second mobile communications network flow value and first movement communication network When the ratio of flow value is greater than or equal to the first predetermined threshold value, judge whether ratio is less than the second predetermined threshold value, wherein first is pre- If threshold value is less than the second predetermined threshold value;When ratio is greater than or equal to the second predetermined threshold value, user is reminded to access mobile terminal WiFi network, and when detecting that mobile terminal accesses WiFi network, more new target application.
Further, further include:When the ratio of the second mobile communications network flow value and first movement communication network traffic value Value prompts user input selection instruction more than or equal to the first predetermined threshold value and when being less than the second predetermined threshold value;According to user's Selection instruction determines whether through mobile communications network more new target application.
Illustratively, when the ratio of the second mobile communications network flow value and first movement communication network traffic value is more than or When equal to the first predetermined threshold value, further judge whether the ratio is less than the second predetermined threshold value, wherein the first predetermined threshold value is less than Second predetermined threshold value.When the ratio is greater than or equal to the second predetermined threshold value, remind user that mobile terminal is accessed WiFi network, And when detecting that mobile terminal accesses WiFi network, update the destination application.It can effectively avoid in this way and pass through movement When communication network more new target application, the generation for the case where will produce added flow expense.And when the ratio is less than second When predetermined threshold value, the i.e. ratio are greater than or equal to the first predetermined threshold value and are less than the second predetermined threshold value, user input selection is prompted Instruction, according to the user's choice instruction determine whether through mobile communications network more new target application.Wherein, selection instruction It can be understood as whether user selects the operation content being updated to destination application by mobile communications network.For example, When the second mobile communications network flow value and the ratio of first movement communication network traffic value are greater than or equal to the first predetermined threshold value And when less than the second predetermined threshold value, prompted in the form of voice or pop-up window interface:If " by mobile communications network to target Application program is updated, and needs consumption 80% that can use mobile communications network flow value, please determine whether to continue through mobile logical Communication network more new target application ".If user selects "Yes", by mobile communications network more new target application, instead It, then mobile communications network more new target application that no thoroughfare.It can ensure do not generating added flow expense in this way Meanwhile it choosing whether to be updated destination application by mobile communications network according to the actual conditions of user.
For example, the first predetermined threshold value is 20%, the second predetermined threshold value is 70%, the first currently available shifting in mobile terminal Dynamic communication network traffic value is 532MB.If the second required mobile communications network flow value is when being updated to destination application The ratio of 220MB, the second mobile communications network flow value and first movement communication network traffic value is 41%, and it is default to be more than first Threshold value 20%, but be less than the second predetermined threshold value 70%, then prompt user input selection to instruct, instruction according to the user's choice determines Whether mobile communications network more new target application is passed through.If the second required mobile communication when being updated to destination application Network flow magnitude is 400MB, and the ratio of the second mobile communications network flow value and first movement communication network traffic value is 75%, More than the second predetermined threshold value 70%, then no thoroughfare, and mobile communications network updates destination application, reminds user will at this time Mobile terminal accesses WiFi network, and when detecting that mobile terminal accesses WiFi network, is answered by WiFi network more fresh target Use program.
In some embodiments, when the ratio of the second mobile communications network flow value and first movement communication network traffic value When less than the first predetermined threshold value, destination application is updated by mobile communications network, including:When the second mobile communication When network flow magnitude and the ratio of first movement communication network traffic value are less than the first predetermined threshold value, the current of mobile terminal is obtained Time;When current time is in preset time period, destination application is updated by mobile communications network;Or, working as When second mobile communications network flow value and the ratio of first movement communication network traffic value are less than the first predetermined threshold value, obtain and move The current electric quantity of dynamic terminal;When current electric quantity is more than default charge value, by mobile communications network to destination application into Row update;Or, being preset when the ratio of the second mobile communications network flow value and first movement communication network traffic value is less than first When threshold value, judge whether mobile terminal is in standby;When mobile terminal is in standby, pass through mobile communications network Destination application is updated.
Illustratively, when the ratio of the second mobile communications network flow value and first movement communication network traffic value is less than the When one predetermined threshold value, the current time of mobile terminal is obtained, and judges current time whether in preset time period.For example, Preset time period may include 0:00-6:00,9:00-12:00 and 14:-17:00, if current time is 3:00, i.e. current time In preset time period, then destination application is updated by mobile communications network.It is understood that when default Between section be that period of mobile terminal is not frequently used in user, at this point, when the second mobile communications network flow value is logical with first movement When the ratio of communication network flow value is less than the first predetermined threshold value, destination application can be carried out more by mobile communications network Newly, in order to avoid influencing the normal use of user.
Illustratively, when the ratio of the second mobile communications network flow value and first movement communication network traffic value is less than the When one predetermined threshold value, the current electric quantity of mobile terminal is obtained, and judges whether current electric quantity is more than default charge value.For example, moving The current electric quantity of dynamic terminal is 60%, and it is 30% to preset charge value, and the current electric quantity of mobile terminal is more than default charge value, this When, destination application is updated by mobile communications network.For another example, the current electric quantity of mobile terminal is 20%, is preset Charge value is 30%, it is clear that the current electric quantity of mobile terminal is less than default charge value, at this point, can forbid to destination application It is updated.It can ensure, in electricity abundance, to be updated destination application, effectively avoid in not enough power supply in this way The case where more new application causes mobile terminal to shut down, the normal use for influencing user occurs.
Illustratively, when the ratio of the second mobile communications network flow value and first movement communication network traffic value is less than the When one predetermined threshold value, judge whether mobile terminal is in standby, if so, by mobile communications network to intended application journey Sequence is updated, conversely, can forbid being updated destination application.It can avoid using the mistake of mobile terminal in this way in user The normal use of user is effectively ensured in the case where being updated to destination application in journey.
Fig. 2 is the flow diagram of the update method of another application program provided by the embodiments of the present application, this method packet Include following steps:
Step 201 detects that there are destination applications to be updated in mobile terminal.
Step 202 judges whether mobile terminal is in WiFi network connection status, if so, step 211 is executed, if it is not, then Execute step 203.
Step 203 sends network values acquisition request to the corresponding network operator of SIM card built in mobile terminal.
Step 204, the feedback information for obtaining request based on network values according to network operator, it is available to obtain mobile terminal First movement communication network traffic value.
Step 205, acquisition the second mobile communications network flow value required when being updated to destination application.
Step 206, the ratio X for calculating the second mobile communications network flow value and first movement communication network traffic value.
Step 207, the magnitude relationship for judging X and the first predetermined threshold value T1 and the second predetermined threshold value T2 when X < T1, execute Step 208, when T1≤X < T2, step 209 is executed, when X >=T2, executes step 210.
Step 208 is updated destination application by mobile communications network.
Step 209, prompt user input selection instruction, instruction according to the user's choice determines whether logical by the movement Communication network updates the destination application.
Step 210 reminds user that mobile terminal is accessed WiFi network, and works as and detect that mobile terminal accesses WiFi network When, more new target application.
Step 211 is updated destination application by WiFi network.
The update method of the application program provided in the embodiment of the present application, there are to be updated in detecting mobile terminal When destination application, according to the ratio and first of the second mobile communications network flow value and first movement communication network traffic value The magnitude relationship of predetermined threshold value and the second predetermined threshold value determines the update mode to destination application, it is ensured that do not producing While raw added flow expense, chosen whether through mobile communications network to destination application according to the actual conditions of user It is updated, meets user demand.
Fig. 3 is the flow diagram of the update method of another application program provided by the embodiments of the present application, this method packet Include following steps:
Step 301 detects that there are destination applications to be updated in mobile terminal.
Step 302 judges whether mobile terminal is in WiFi network connection status, if so, step 312 is executed, if it is not, then Execute step 303.
Step 303 sends network values acquisition request to the corresponding network operator of SIM card built in mobile terminal.
Step 304, the feedback information for obtaining request based on network values according to network operator, it is available to obtain mobile terminal First movement communication network traffic value.
Step 305, acquisition the second mobile communications network flow value required when being updated to destination application.
Step 306, judge the second mobile communications network flow value and first movement communication network traffic value ratio whether Less than the first predetermined threshold value, if so, thening follow the steps 307, otherwise, step 311 is executed.
Step 307, the current time for obtaining the mobile terminal.
Step 308 judges current time whether in preset time period, if so, thening follow the steps 309, otherwise, executes Step 310.
Step 309 is updated destination application by mobile communications network.
Step 310 forbids being updated destination application.
Step 311 reminds user that mobile terminal is accessed WiFi network, and works as and detect that mobile terminal accesses WiFi network When, more new target application.
Step 312 is updated destination application by WiFi network.
The update method of the application program provided in the embodiment of the present application, there are to be updated in detecting mobile terminal When destination application, when the second mobile communications network flow value and the ratio of first movement communication network traffic value are less than first Predetermined threshold value, and the current time of mobile terminal when being in preset time period by mobile communications network to intended application journey Sequence is updated, and can not only make full use of sufficient mobile communications network automatically to application program to be updated in mobile terminal It is updated upgrading, avoids the waste of mobile communications network flow, but also the normal use of user can be effectively ensured.
Fig. 4 is a kind of structure diagram of the updating device of application program provided by the embodiments of the present application, which can be by soft Part and/or hardware realization, are typically integrated in mobile terminal, can be by the update method of executing application come to application program It is updated.As shown in figure 4, the device includes:
First network flow acquisition module 401, for when there are destination applications to be updated in detection mobile terminal When, obtain the available first movement communication network traffic value of the mobile terminal;
Second network flow acquisition module 402, for obtaining the second shifting required when being updated to the destination application Dynamic communication network traffic value;
Application program update module 403, for leading to when the second mobile communications network flow value and the first movement When the ratio of communication network flow value is less than the first predetermined threshold value, the destination application is carried out more by mobile communications network Newly.
The updating device of the application program provided in the embodiment of the present application, there are to be updated in detecting mobile terminal When destination application, the available first movement communication network traffic value of mobile terminal is obtained, and obtain to destination application The second required mobile communications network flow value when update, when the second mobile communications network flow value and first movement communication network When the ratio of flow value is less than the first predetermined threshold value, destination application is updated by mobile communications network.By adopting With above-mentioned technical proposal, not only it is possible to prevente effectively from user to can newer application program singly updated manually Upgrading, but also sufficient mobile communications network can be made full use of to be carried out automatically to application program to be updated in mobile terminal Update upgrading, effectively avoids the waste of mobile communications network flow, meets user demand.
Optionally, first network flow acquisition module, is used for:
Network values, which are sent, to the corresponding network operator of SIM card built in the mobile terminal obtains request;
The feedback information of request is obtained based on the network values according to the network operator, obtaining the mobile terminal can First movement communication network traffic value.
Optionally, first network flow acquisition module, is used for:
When detecting in mobile terminal there are when destination application to be updated, judge whether the mobile terminal is in WiFi network connection status;
If institute's mobile terminal is not in WiFi network connection status, the available first movement of the mobile terminal is obtained Communication network traffic value.
Optionally, which further includes:
User reminding module, for when the second mobile communications network flow value and the first movement communication network stream When the ratio of magnitude is greater than or equal to first predetermined threshold value, remind user that the mobile terminal is accessed WiFi network, and When detecting that the mobile terminal accesses WiFi network, the destination application is updated.
Optionally, user reminding module is used for:
Be more than when the ratio of the second mobile communications network flow value and the first movement communication network traffic value or When equal to first predetermined threshold value, judge whether the ratio is less than the second predetermined threshold value, wherein first predetermined threshold value Less than second predetermined threshold value;
When the ratio is greater than or equal to second predetermined threshold value, remind user that the mobile terminal is accessed WiFi Network, and when detecting that the mobile terminal accesses WiFi network, update the destination application.
Optionally, which further includes:
Reminding module is selected, for when the second mobile communications network flow value and the first movement communication network stream When the ratio of magnitude is greater than or equal to first predetermined threshold value and is less than second predetermined threshold value, user input selection is prompted Instruction;
Determining module is updated, determines whether to update institute by the mobile communications network for instructing according to the user's choice State destination application.
Optionally, application program update module is used for:
When the ratio of the second mobile communications network flow value and the first movement communication network traffic value is less than the When one predetermined threshold value, the current time of the mobile terminal is obtained;
When the current time is in preset time period, the destination application is carried out by mobile communications network Update;Or
When the ratio of the second mobile communications network flow value and the first movement communication network traffic value is less than the When one predetermined threshold value, the current electric quantity of the mobile terminal is obtained;
When the current electric quantity is more than default charge value, the destination application is carried out by mobile communications network Update;Or
When the ratio of the second mobile communications network flow value and the first movement communication network traffic value is less than the When one predetermined threshold value, judge whether the mobile terminal is in standby;
When the mobile terminal is in standby, the destination application is carried out more by mobile communications network Newly.
The embodiment of the present application also provides a kind of storage medium including computer executable instructions, and the computer is executable It instructs and includes for the update method of executing application, this method when being executed by computer processor:
When detecting in mobile terminal there are when destination application to be updated, the mobile terminal available first is obtained Mobile communications network flow value;
Obtain the second mobile communications network flow value required when being updated to the destination application;
When the ratio of the second mobile communications network flow value and the first movement communication network traffic value is less than the When one predetermined threshold value, the destination application is updated by mobile communications network.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (example Such as hard disk or optical storage);The memory component etc. of register or other similar types.Storage medium can further include other types Memory or combinations thereof.In addition, storage medium can be located at program in the first computer system being wherein performed, or It can be located in different second computer systems, second computer system is connected to the first meter by network (such as internet) Calculation machine system.Second computer system can provide program instruction to the first computer for executing.Term " storage medium " can To include two or more that may reside in different location (such as in different computer systems by network connection) Storage medium.Storage medium can store the program instruction that can be executed by one or more processors and (such as be implemented as counting Calculation machine program).
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present application is provided, computer The update for the application program that executable instruction is not limited to the described above operates, and the application any embodiment can also be performed and provided Application program update method in relevant operation.
The embodiment of the present application provides a kind of mobile terminal, and provided by the embodiments of the present application answer can be integrated in the mobile terminal With the updating device of program.Fig. 5 is a kind of structural schematic diagram of mobile terminal provided by the embodiments of the present application.Mobile terminal 500 May include:Memory 501, locating module 502, processor 503 and storage on a memory and can processor operation meter Calculation machine program, the processor 503 realizes the application program as described in the embodiment of the present application when executing the computer program Update method.
Mobile terminal provided by the embodiments of the present application, not only it is possible to prevente effectively from user is to being capable of newer application program one A ground carries out update upgrading manually, but also sufficient mobile communications network can be made full use of automatically in mobile terminal Application program to be updated is updated upgrading, effectively avoids the waste of mobile communications network flow, meets user demand.
Fig. 6 is the structural schematic diagram of another mobile terminal provided by the embodiments of the present application, which may include: Shell (not shown), memory 601, central processing unit (central processing unit, CPU) 602 (are also known as located Manage device, hereinafter referred to as CPU), circuit board (not shown) and power circuit (not shown).The circuit board is placed in institute State the space interior that shell surrounds;The CPU602 and the memory 601 are arranged on the circuit board;The power supply electricity Road, for being each circuit or the device power supply of the mobile terminal;The memory 601, for storing executable program generation Code;The CPU602 is run and the executable journey by reading the executable program code stored in the memory 601 The corresponding computer program of sequence code, to realize following steps:
When detecting in mobile terminal there are when destination application to be updated, the mobile terminal available first is obtained Mobile communications network flow value;
Obtain the second mobile communications network flow value required when being updated to the destination application;
When the ratio of the second mobile communications network flow value and the first movement communication network traffic value is less than the When one predetermined threshold value, the destination application is updated by mobile communications network.
The mobile terminal further includes:Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, audio-frequency electric Road 606, loud speaker 611, power management chip 608, input/output (I/O) subsystem 609, other input/control devicess 610, Touch screen 612, other input/control devicess 610 and outside port 604, these components pass through one or more communication bus Or signal wire 607 communicates.
It should be understood that diagram mobile terminal 600 is only an example of mobile terminal, and mobile terminal 600 Can have than shown in the drawings more or less component, can combine two or more components, or can be with It is configured with different components.Various parts shown in the drawings can be including one or more signal processings and/or special It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Just the mobile terminal provided in this embodiment for application program update is described in detail below, and the movement is whole End is by taking mobile phone as an example.
Memory 601, the memory 601 can be by access such as CPU602, Peripheral Interfaces 603, and the memory 601 can Can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU602 and deposited by Peripheral Interface 603, the Peripheral Interface 603 Reservoir 601.
I/O subsystems 609, the I/O subsystems 609 can be by the input/output peripherals in equipment, such as touch screen 612 With other input/control devicess 610, it is connected to Peripheral Interface 603.I/O subsystems 609 may include 6091 He of display controller One or more input controllers 6092 for controlling other input/control devicess 610.Wherein, one or more input controls Device 6092 processed receives electric signal from other input/control devicess 610 or sends electric signal to other input/control devicess 610, Other input/control devicess 610 may include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 6092 can with it is following any one connect:Keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 612, the touch screen 612 are the input interface and output interface between customer mobile terminal and user, Visual output is shown to user, visual output may include figure, text, icon, video etc..
Display controller 6091 in I/O subsystems 609 receives electric signal from touch screen 612 or is sent out to touch screen 612 Electric signals.Touch screen 612 detects the contact on touch screen, and the contact detected is converted to and is shown by display controller 6091 The interaction of user interface object on touch screen 612, that is, realize human-computer interaction, the user interface being shown on touch screen 612 Object can be the icon of running game, be networked to the icon etc. of corresponding network.It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuits 605 are mainly used for establishing the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 605 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 605 convert electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated with mobile communications network and other equipment by the electromagnetic signal.RF circuits 605 may include being used for Execute the known circuit of these functions comprising but it is not limited to antenna system, RF transceivers, one or more amplifiers, tuning Device, one or more oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, Yong Hubiao Know module (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 606 is mainly used for receiving audio data from Peripheral Interface 603, which is converted to telecommunications Number, and the electric signal is sent to loud speaker 611.
Loud speaker 611, the voice signal for receiving mobile phone from wireless network by RF circuits 605, is reduced to sound And play the sound to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface are powered And power management.
Updating device, storage medium and the mobile terminal of the application program provided in above-described embodiment can perform the application and appoint The update method for the application program that meaning embodiment is provided has and executes the corresponding function module of this method and advantageous effect.Not The technical detail of detailed description in the above-described embodiments, reference can be made to the update for the application program that the application any embodiment is provided Method.
Note that above are only preferred embodiment and the institute's application technology principle of the application.It will be appreciated by those skilled in the art that The application is not limited to specific embodiment described here, can carry out for a person skilled in the art it is various it is apparent variation, The protection domain readjusted and substituted without departing from the application.Therefore, although being carried out to the application by above example It is described in further detail, but the application is not limited only to above example, in the case where not departing from the application design, also May include other more equivalent embodiments, and scope of the present application is determined by scope of the appended claims.

Claims (10)

1. a kind of update method of application program, which is characterized in that including:
When detecting in mobile terminal there are when destination application to be updated, the available first movement of the mobile terminal is obtained Communication network traffic value;
Obtain the second mobile communications network flow value required when being updated to the destination application;
When the second mobile communications network flow value and the ratio of the first movement communication network traffic value are less than first in advance If when threshold value, being updated to the destination application by mobile communications network.
2. according to the method described in claim 1, it is characterized in that, obtaining the available first movement communication network of the mobile terminal Network flow value, including:
Network values, which are sent, to the corresponding network operator of SIM card built in the mobile terminal obtains request;
The feedback information for obtaining request based on the network values according to the network operator, it is available to obtain the mobile terminal First movement communication network traffic value.
3. according to the method described in claim 1, it is characterized in that, when there are intended applications to be updated in detection mobile terminal When program, the available first movement communication network traffic value of the mobile terminal is obtained, including:
When detecting in mobile terminal, there are when destination application to be updated, judge whether the mobile terminal is in WiFi nets Network connection status;
If institute's mobile terminal is not in WiFi network connection status, the available first movement communication of the mobile terminal is obtained Network flow magnitude.
4. according to the method described in claim 1, it is characterized in that, further including:
When the second mobile communications network flow value and the ratio of the first movement communication network traffic value are greater than or equal to When first predetermined threshold value, remind user that the mobile terminal is accessed WiFi network, and work as and detect the mobile terminal When accessing WiFi network, the destination application is updated.
5. according to the method described in claim 4, it is characterized in that, when the second mobile communications network flow value and described the When the ratio of one mobile communications network flow value is greater than or equal to first predetermined threshold value, remind user by the mobile terminal WiFi network is accessed, and when detecting that the mobile terminal accesses WiFi network, updates the destination application, including:
When the second mobile communications network flow value and the ratio of the first movement communication network traffic value are greater than or equal to When first predetermined threshold value, judge whether the ratio is less than the second predetermined threshold value, wherein first predetermined threshold value is less than Second predetermined threshold value;
When the ratio is greater than or equal to second predetermined threshold value, remind user that the mobile terminal is accessed WiFi nets Network, and when detecting that the mobile terminal accesses WiFi network, update the destination application.
6. according to the method described in claim 5, it is characterized in that, further including:
When the second mobile communications network flow value and the ratio of the first movement communication network traffic value are greater than or equal to First predetermined threshold value and less than second predetermined threshold value when, prompt user input selection instruction;
Instruction determines whether to update the destination application by the mobile communications network according to the user's choice.
7. according to the method described in claim 1, it is characterized in that, when the second mobile communications network flow value and described the When the ratio of one mobile communications network flow value is less than the first predetermined threshold value, by mobile communications network to the intended application journey Sequence is updated, including:
When the second mobile communications network flow value and the ratio of the first movement communication network traffic value are less than first in advance If when threshold value, obtaining the current time of the mobile terminal;
When the current time is in preset time period, the destination application is carried out more by mobile communications network Newly;Or
When the second mobile communications network flow value and the ratio of the first movement communication network traffic value are less than first in advance If when threshold value, obtaining the current electric quantity of the mobile terminal;
When the current electric quantity is more than default charge value, the destination application is carried out more by mobile communications network Newly;Or
When the second mobile communications network flow value and the ratio of the first movement communication network traffic value are less than first in advance If when threshold value, judging whether the mobile terminal is in standby;
When the mobile terminal is in standby, the destination application is updated by mobile communications network.
8. a kind of updating device of application program, which is characterized in that including:
First network flow acquisition module, for when detecting in mobile terminal there are when destination application to be updated, obtaining The available first movement communication network traffic value of mobile terminal;
Second network flow acquisition module, for obtaining the second mobile radio communication required when being updated to the destination application Network flow value;
Application program update module, for when the second mobile communications network flow value and the first movement communication network stream When the ratio of magnitude is less than the first predetermined threshold value, the destination application is updated by mobile communications network.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The update method of the application program as described in any in claim 1-7 is realized when row.
10. a kind of mobile terminal, which is characterized in that including memory, processor and storage are on a memory and can be in processor The computer program of operation realizes answering as described in claim 1-7 is any when the processor executes the computer program With the update method of program.
CN201810291513.0A 2018-04-03 2018-04-03 Update method, device, storage medium and the mobile terminal of application program Pending CN108509214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810291513.0A CN108509214A (en) 2018-04-03 2018-04-03 Update method, device, storage medium and the mobile terminal of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810291513.0A CN108509214A (en) 2018-04-03 2018-04-03 Update method, device, storage medium and the mobile terminal of application program

Publications (1)

Publication Number Publication Date
CN108509214A true CN108509214A (en) 2018-09-07

Family

ID=63380188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810291513.0A Pending CN108509214A (en) 2018-04-03 2018-04-03 Update method, device, storage medium and the mobile terminal of application program

Country Status (1)

Country Link
CN (1) CN108509214A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109873874A (en) * 2019-03-18 2019-06-11 北京智明星通科技股份有限公司 The requesting method and equipment of game APP data
CN114338533A (en) * 2021-12-30 2022-04-12 广东明创软件科技有限公司 Adjusting method, electronic equipment and computer storage medium
CN114338533B (en) * 2021-12-30 2024-05-28 广东明创软件科技有限公司 Adjustment method, electronic equipment and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013174322A1 (en) * 2012-09-05 2013-11-28 中兴通讯股份有限公司 Software upgrading method and terminal
CN105049366A (en) * 2015-08-24 2015-11-11 北京网田科技发展有限公司 Method and system for controlling traffic of automobile promotion application
US20150373561A1 (en) * 2014-06-18 2015-12-24 Google Inc. Automatically updating an access point
CN106533763A (en) * 2016-11-17 2017-03-22 广州优视网络科技有限公司 Method and device for downloading application update package and user terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013174322A1 (en) * 2012-09-05 2013-11-28 中兴通讯股份有限公司 Software upgrading method and terminal
US20150373561A1 (en) * 2014-06-18 2015-12-24 Google Inc. Automatically updating an access point
CN105049366A (en) * 2015-08-24 2015-11-11 北京网田科技发展有限公司 Method and system for controlling traffic of automobile promotion application
CN106533763A (en) * 2016-11-17 2017-03-22 广州优视网络科技有限公司 Method and device for downloading application update package and user terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴龙照: "《大千世界入掌来》", 31 August 2015, 广东科技出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109873874A (en) * 2019-03-18 2019-06-11 北京智明星通科技股份有限公司 The requesting method and equipment of game APP data
CN114338533A (en) * 2021-12-30 2022-04-12 广东明创软件科技有限公司 Adjusting method, electronic equipment and computer storage medium
CN114338533B (en) * 2021-12-30 2024-05-28 广东明创软件科技有限公司 Adjustment method, electronic equipment and computer storage medium

Similar Documents

Publication Publication Date Title
US11429880B2 (en) Methods and systems for preloading applications and generating prediction models
CN107943650B (en) Application program control method and device, storage medium and terminal
CN108595228B (en) Application program prediction model establishing method and device, storage medium and mobile terminal
CN109960507B (en) Compiling optimization method and device, storage medium, intelligent terminal and server
CN109947496B (en) Application program preloading method and device, storage medium and mobile terminal
CN107944259A (en) Using the management-control method of startup, device and storage medium and mobile terminal
CN109947497B (en) Application program preloading method and device, storage medium and mobile terminal
CN109960539A (en) Application program preloads method, apparatus, storage medium and mobile terminal
CN105676993A (en) Method and device for saving electric quantity and electronic equipment
CN109508198A (en) Application program installation method, device, storage medium and terminal
CN109947495A (en) Application program preloads method, apparatus, storage medium and mobile terminal
CN105677386A (en) Application program management method and device and electronic equipment
CN107967358A (en) Recommendation method, apparatus, storage medium and the mobile terminal of objective
CN107748685A (en) Application program launching control method, device, terminal device and storage medium
CN108076507A (en) Positioning method control method, device, storage medium and mobile terminal
CN108712717B (en) Control method and device based on application store, storage medium and mobile terminal
CN107943269A (en) Schedule job control method, device, terminal device and storage medium
CN107862203A (en) Control method, device, storage medium and the terminal of application program
CN107908953A (en) Notifications service control method, device, terminal device and storage medium
CN107766546A (en) Using recommendation method, apparatus, storage medium and terminal device
CN108921530B (en) Information judgment method and device, storage medium and terminal
CN107291213B (en) Mode selection method, device, terminal and computer readable storage medium
CN107832131B (en) Application program closing method and device, storage medium and electronic equipment
CN107566465A (en) A kind of method, apparatus, storage medium and the mobile terminal of information push
CN108509214A (en) Update method, device, storage medium and the mobile terminal of application program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180907

RJ01 Rejection of invention patent application after publication