【The content of the invention】
In view of this, the embodiments of the invention provide the method and device that a kind of program updates, improve to a certain extentApplication program service efficiency.
On the one hand, the embodiments of the invention provide a kind of method that program updates, methods described includes:
Receive user and start the request for specifying application;
In response to the request, start the specified application;
Version detection is carried out in the running of the specified application;
Download and update on backstage when detecting the presence of new version;
After the specified application terminates operation, it is updated.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the startup refers toFixed application includes:
Read local profile;
Check whether local profile indicates there is redaction;
When it is determined that the local profile indicates to there is currently redaction, redaction is revised as in original startup pathStart path;
Path is started according to the redaction and starts the application.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, it is described describedProgress version detection in the running of application is specified to include:
The documentary evidence of local version is uploaded onto the server, the documentary evidence carries the local of the specified applicationVersion information;
The version indication information that the reception server is issued.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, it is described describedProgress version detection in the running of application is specified to include:
Documentary evidence, which is sent, to server obtains request;
The documentary evidence that the reception server is issued;
The version information that the documentary evidence that server is issued is carried is carried out with the version information that local documentary evidence is carriedCompare.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, are specified describedUsing terminate operation after, be updated including:
Obtain difference bag;
It is combined according to the difference bag and the local file of the specified application, generates new edition file.
On the other hand, the embodiments of the invention provide the device that a kind of program updates, described device includes:
Receiving unit, starts the request of specified application for receiving user;
Start unit, in response to the request, starting the specified application;
Detection unit, for carrying out version detection in the running of the specified application;
Download unit, updates for being downloaded when detecting the presence of new version on backstage;
Updating block, for after the specified application terminates operation, being updated.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the startup listMember includes:
Read module, for reading local profile;
Module is checked, for checking whether local profile indicates there is redaction;
Modified module, for when it is determined that the local profile indicates to there is currently redaction, by original startup roadIt is revised as redaction and starts path in footpath;
Starting module, the application is started for starting path according to the redaction.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the detection listMember includes:
Uploading module, for the documentary evidence of local version to be uploaded onto the server, the documentary evidence carries describedSpecify the local version information of application;
First receiving module, the version indication information issued for the reception server.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the detection listMember includes:
Sending module, request is obtained for sending documentary evidence to server;
Second receiving module, the documentary evidence issued for the reception server;
Comparing module, what the version information that the documentary evidence for server to be issued is carried was carried with local documentary evidenceVersion information is compared.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the renewal listMember includes:
Acquisition module, for obtaining difference bag;
Composite module, for being combined according to the difference bag and the local file of the specified application, generates new editionThis document.
The method and device that program provided in an embodiment of the present invention updates, by carrying out backstage more in application runningNewly, and in user terminate just to be updated when the application is used so that user is during the use of application and does not needWait program updates.Complete just be continuing with until updating application upgrade and updating compared to needing to wait with user in the prior artFor, method provided in an embodiment of the present invention does not need user to wait, and will not bother the normal of user and use, so thatApplication program service efficiency is improved to a certain extent.
【Embodiment】
In order to be better understood from technical scheme, the embodiment of the present invention is retouched in detail below in conjunction with the accompanying drawingsState.
It will be appreciated that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.BaseEmbodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all itsIts embodiment, belongs to the scope of protection of the invention.
The term used in embodiments of the present invention is the purpose only merely for description specific embodiment, and is not intended to be limitingThe present invention." one kind ", " described " and "the" of singulative used in the embodiment of the present invention and appended claimsIt is also intended to including most forms, unless context clearly shows that other implications.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, representThere may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while there is A and B, individualism B these threeSituation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
The embodiments of the invention provide a kind of program update method, its main process as shown in figure 1, including:
101st, receive user and start the request for specifying application.
Any one application for specifying application to run on mobile terminal operating system.
102nd, in response to the request, the specified application is started.
103rd, version detection is carried out in the running of the specified application.
The process of version detection is to specifying apply the version that is run in system and application developer to issue newestWhether version is identical.
104th, when detecting the presence of new version, download and update on backstage.
When not detecting redaction, it is possible to without updating.
105th, after the specified application terminates operation, it is updated.
The method that program provided in an embodiment of the present invention updates, by carrying out background update in application running, andTerminate just to be updated when the application is used in user so that user is during the use of application and withouts waiting for journeySequence updates.Complete just be continuing with using next up to updating application upgrade renewal compared to needing to wait with user in the prior artSay, method provided in an embodiment of the present invention does not need user to wait, the normal of user will not be bothered and used, so that in certain journeyApplication program service efficiency is improved on degree.
With reference to foregoing schemes, the embodiment of the present invention specifies the realization of application to provide tool also directed to abovementioned steps 102, startupThe method flow of body, as shown in Fig. 2 including:
1021st, local profile is read.
Local profile is to be under the jurisdiction of foregoing specified application, and this document can be carried specifies the version of application to believe with thisBreath.
1022nd, check whether local profile indicates there is redaction.
1023rd, when it is determined that the local profile indicates to there is currently redaction, original startup path is revised asRedaction starts path.
Due in flow provided in an embodiment of the present invention, application program is needed in user using can just be completed after terminating moreNewly, it is necessary to be changed path is started to redaction, so that user uses new edition therefore when application program is activated againThis information.
1024th, path is started according to the redaction and starts the application.
With reference to foregoing schemes, the embodiment of the present invention is also directed to abovementioned steps 103, in the running of the specified applicationThe realization for carrying out version detection provides following two feasible implementation methods.
First method as shown in figure 3, including:
A1031, the documentary evidence of local version uploaded onto the server.
Wherein, it was demonstrated that file is to manifist files, for recording base of the application program on Android systemThis information, can carry the local version information of the specified application.
The version indication information that A1032, the reception server are issued.
Version indication information herein can be newest version number, or version number's comparison result or toolThe renewal bag of body.
Second method as shown in figure 4, including:
B1031, to server send documentary evidence obtain ask.
The documentary evidence that B1032, the reception server are issued.
The version information that B1033, the documentary evidence for issuing server are carried is believed with the version that local documentary evidence is carriedBreath is compared.
With reference to foregoing schemes, the embodiment of the present invention also directed to abovementioned steps 105, after the specified application terminates operation,The realization being updated provides below scheme, as shown in figure 5, including:
1051st, difference bag is obtained.
1052nd, it is combined according to the difference bag and the local file of the specified application, generates new edition file.
Based on preceding method flow, the embodiment of the present invention additionally provides the device that a kind of program updates, and it is constituted such as Fig. 6 institutesShow, described device includes:
Receiving unit 21, starts the request of specified application for receiving user.
Start unit 22, in response to the request, starting the specified application.
Detection unit 23, for carrying out version detection in the running of the specified application.
Download unit 24, updates for being downloaded when detecting the presence of new version on backstage.
Updating block 25, for after the specified application terminates operation, being updated.
Optionally, as shown in fig. 7, the start unit 22 includes:
Read module 221, for reading local profile.
Module 222 is checked, for checking whether local profile indicates there is redaction.
Modified module 223, for when it is determined that the local profile indicates to there is currently redaction, starting originalIt is revised as redaction and starts path in path.
Starting module 224, the application is started for starting path according to the redaction.
Optionally, as shown in figure 8, the detection unit 23 includes:
Uploading module 231, for the documentary evidence of local version to be uploaded onto the server, the documentary evidence is carriedState the local version information for specifying application.
First receiving module 232, the version indication information issued for the reception server.
Optionally, as shown in figure 9, the detection unit 23 includes:
Sending module 233, request is obtained for sending documentary evidence to server.
Second receiving module 234, the documentary evidence issued for the reception server.
Comparing module 235, the version information that the documentary evidence for server to be issued is carried is taken with local documentary evidenceThe version information of band is compared.
Optionally, as shown in Figure 10, the updating block 25 includes:
Acquisition module 251, for obtaining difference bag.
Composite module 252, for being combined according to the difference bag and the local file of the specified application, generation is newVersion file.
The device that program provided in an embodiment of the present invention updates, by carrying out background update in application running, andTerminate just to be updated when the application is used in user so that user is during the use of application and withouts waiting for journeySequence updates.Complete just be continuing with using next up to updating application upgrade renewal compared to needing to wait with user in the prior artSay, method provided in an embodiment of the present invention does not need user to wait, the normal of user will not be bothered and used, so that in certain journeyApplication program service efficiency is improved on degree.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be withRealize by another way.For example, device embodiment described above is only schematical, for example, the unitDivide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example, multiple units or groupPart can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shownOr the coupling each other discussed or direct-coupling or communication connection can be by some interfaces, device or unit it is indirectCoupling is communicated to connect, and can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unitThe part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multipleOn NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can alsoThat unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated listMember can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and depositIn storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are to cause a computerDevice (can be personal computer, server, or network equipment etc.) or processor (Processor) perform the present invention eachThe part steps of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is variousCan be with the medium of store program codes.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present inventionGod is with principle, and any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.