Summary of the invention
Embodiments of the invention provide the method for resource file in a kind of upgrade applications, reduce network transmission resource and expend, improve network transmission efficiency.
Embodiments of the invention also provide the system of resource file in a kind of upgrade applications, reduce network transmission resource and expend, improve network transmission efficiency.
For achieving the above object, the method for resource file in a kind of upgrade applications that the embodiment of the invention provides comprises:
Reception carries the installation file of application information, according to the application information that carries, and the mapping relations table of update contruction file and application program;
From the mapping relations table that upgrades, obtain the installation file of renewal, with the installation file of renewal and the mapping relations of this installation file and application program, be issued to the affiliated terminal of corresponding application program;
The installation file that terminal storage receives and, the mapping relations of this installation file and application program receive the application program download request, the installation file that application program is shone upon is obtained in inquiry, and installs.
Wherein, described installation file comprises: resource file and application function file.
Wherein, described application program is carried out unique identification with application information, and described application information comprises: application program identification information and application program update information.
Wherein, described application program update information comprises: application version information and application program update temporal information.
Wherein, the mapping relations table of described update contruction file and application program comprises:
Whether inquiry stores the mapping relations table corresponding to installation file of reception;
If have, in the corresponding application program identification information and mapping relations table of the installation file that relatively receives, the application information that this installation file is corresponding, if identical, do not deal with, otherwise, set up the installation file of reception and the mapping relations table of application program, the described application program of carrying that comprises in the mapping relations table of deletion storage;
If no, set up the installation file of reception and the mapping relations table of application program.
Wherein, described from the mapping relations table that upgrades, the installation file of obtaining renewal comprises:
The application information of installing in the pre-stored terminal;
From the mapping relations table that upgrades, inquire about and obtain the application program identical with application program identification in the terminal of storing;
Judge whether the application program update information of obtaining is consistent with the application program update information in the terminal of storing, if inconsistent, obtain in the mapping relations table of renewal, this application program of obtaining corresponding resource file and, the mapping relations of application program in this resource file and this terminal.
Wherein, described from the mapping relations table that upgrades, the installation file of obtaining renewal comprises:
Terminal sends the application program update request according to the cycle that sets in advance to the system resource management server, carries the application information of installation;
From the mapping relations table that upgrades, inquire about and obtain the application program identical with application program identification in the application information that receives;
Judge whether the application program update information of obtaining is consistent with the application program update information that receives, if inconsistent, obtain in the mapping relations table of renewal, this application program of obtaining corresponding resource file and, the mapping relations of application program in this resource file and this terminal.
Wherein, after the step of installation file of application program mapping is obtained in described inquiry, before the step of installing, further comprise:
Judge that whether installation file is resource file, if so, carries out described step of installing; If application function file, further judge whether application program corresponding to application function file is moved, if do not move, carry out described step of installing, if operation, monitor the operation of this application program, and after monitoring this application program end operation, carry out described step of installing.
The system of resource file in a kind of upgrade applications, this system comprises: terminal and system resource management server, wherein,
Terminal, be used for storing received installation file and, the mapping relations of this installation file and application program receive the application program download request, the installation file that application program is shone upon is obtained in inquiry, and installs;
The system resource management server is used for receiving the installation file that carries application information, according to the application information that carries, and the mapping relations table of update contruction file and application program;
From the mapping relations table that upgrades, obtain the installation file of renewal, with the installation file of renewal and the mapping relations of this installation file and application program, be issued to the affiliated terminal of corresponding application program.
Described terminal is further used for judging whether installation file is resource file, if so, carries out described step of installing after obtaining the installation file of application program mapping in inquiry; If application function file, further judge whether application program corresponding to application function file is moved, if do not move, carry out described step of installing, if operation, monitor the operation of this application program, and after monitoring this application program end operation, carry out described step of installing.
Described system resource management server comprises: receiver module, update module, mapping relations table memory module, mapping relations table creation module and sending module, wherein,
Receiver module is used for receiving the installation file that carries application information;
Mapping relations table memory module is for the mapping relations table of storage creation;
Update module, be used for mapping relations table corresponding to installation file whether query mappings relation table memory module stores reception, if have, in the application information and mapping relations table that the installation file that receives is corresponding, application information corresponding to this installation file compares, if identical, do not deal with, otherwise, export this installation file that carries application information to mapping relations table creation module;
Mapping relations table creation module is used for setting up the mapping relations table of installation file and application program according to the installation file that carries application information the described application program of carrying that comprises in the mapping relations table of deletion storage;
Sending module is used for obtaining the installation file of renewal from the mapping relations table that upgrades, and with the installation file of renewal and the mapping relations of this installation file and application program, is issued to the affiliated terminal of corresponding application program.
Described system resource management server comprises: receiver module, end application information storage module, update module, mapping relations table memory module, mapping relations table creation module and sending module, wherein,
Receiver module is used for receiving the installation file that carries application information;
The end application information storage module is used for the application information that each terminal of storage is installed;
Mapping relations table creation module is used for setting up the mapping relations table of installation file and application program according to the installation file that carries application information, exports mapping relations table memory module to and stores;
Update module, be used for from the mapping relations table, inquiry is also obtained the application program identical with application program identification in the terminal of storing, judge whether the application program update information of obtaining is consistent with the application program update information in the terminal of storing, if inconsistent, obtain in the mapping relations table, the described application program of obtaining corresponding resource file and, the mapping relations of application program export sending module in this resource file and this terminal;
Sending module, be used for the resource file that will receive and, the mapping relations of application program in this resource file and this terminal are issued to the affiliated terminal of corresponding application program.
Described terminal comprises: terminal resource administration module and application program module, wherein,
The terminal resource administration module, be used for storing received installation file and, the mapping relations of this installation file and application program receive the application program download request of application program module transmission, the installation file of application program mapping is obtained in inquiry, is issued to application program module;
Application program module is used for installing according to the installation file that receives.
Described terminal further comprises:
Monitoring modular is used for judging whether installation file is resource file, and if so, the triggering terminal resource management module issues installation file to application program module after the installation file of application program mapping is obtained in the inquiry of terminal resource administration module; If application function file, further judge whether application program corresponding to application function file is moved, if do not move, the triggering terminal resource management module issues installation file to application program module, if operation, monitor the operation of this application program, and after monitoring this application program end operation, the triggering terminal resource management module issues installation file to application program module.
As seen from the above technical solution, the method and system of resource file in a kind of upgrade applications that the embodiment of the invention provides, reception carries the installation file of application information, according to the application information that carries, and the mapping relations table of update contruction file and application program; From the mapping relations table that upgrades, obtain the installation file of renewal, with the installation file of renewal and the mapping relations of this installation file and application program, be issued to the affiliated terminal of corresponding application program; The installation file that terminal storage receives and, the mapping relations of this installation file and application program receive the application program download request, the installation file that application program is shone upon is obtained in inquiry, and installs.Like this, by setting up the mapping relations table of installation file and application program, so that an installation file can be shone upon a plurality of application programs, thereby, when a plurality of application programs in the terminal are obtained identical installation file, only need to obtain a installation file from the system resource management server, effectively reduce expending of network transmission resource, thereby improved network transmission efficiency.
Embodiment
Below with reference to accompanying drawing the technical scheme of various embodiments of the present invention is carried out clear, complete description, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are resulting all other embodiment under the prerequisite of not making creative work, all belong to the scope that the present invention protects.
The method of existing terminal staging application program, for only needing the often application program of upgrading resource file, because application program and resource file are the tight coupling relations, even each application program has identical resource file, also need to download respectively, so that download the resource file that repeats, expended network transmission resource; Simultaneously, the resource file that transmission repeats is also to transmit the required time longer; Further, also need terminal to carry out the storage of repetition, wasted the storage space of terminal; And, in escalation process, also need to withdraw from application program running state, within the time period of upgrading, application program can't normally be moved, and affects the experience of user to using.
In the embodiment of the invention, consider the resource file promotion and the application function document upgrading of application program, be respectively two separate, unrelated upgrading flow process, thereby, remove the tight coupling relation of application program and resource file and application function file, make it to separate, formation loose coupling relation, the upgrading that is about to application program is decomposed into the upgrading of separate resource file and the upgrading of application function file, application program can be upgraded according to application resource document upgrading bag, also can upgrade according to application program application function document upgrading bag.Thereby, for the application program with same asset file, only need to obtain a resource file from the system resource management server, and this resource file is stored in the shared terminal resource administration module, managed concentratedly by the terminal resource administration module.Like this, the application program with same asset file can be carried out the upgrading of resource file, thereby so that the system resource management server only needs the transmission primaries resource file, effectively reduces expending of network transmission resource.
Further, application program is in escalation process, and whether terminal can by only comprising resource file in the inquiry application AKU, if, can on the basis of not withdrawing from current application program, realize the upgrading of application programs resource file, promote the experience of user to using.
It should be noted that is for the upgrading of application function file in the application program, and is same as the prior art, follow-up repeating no more.
Fig. 2 is the method flow synoptic diagram of resource file in the embodiment of the invention upgrade applications.Referring to Fig. 2, this flow process comprises:
Step 201 receives the installation file that carries application information, according to the application information that carries, and the mapping relations table of update contruction file and application program;
In this step, application program is carried out unique identification with application information, and application information comprises: application program identification information and application program update information, wherein, application program update information can be application version information, also can be the application program update temporal information.
Application developer is at developing application or when carrying out application program updating, remove the tight coupling relation of application program and resource file, make it to separate, form the loose coupling relation, application program is split as a plurality of installation files, for example, as previously mentioned, be split as separate resource file and application function file, wherein, preferably, resource file is one or more, and the application function file is one.
In the embodiment of the invention, installation file comprises: resource file and application function file.
The Application developer is when the resource file that is provided for application program and application function file, the application program that provides respectively it to be suitable for, and the installation file that will carry application information is uploaded to the system resource management server, the system resource management server is according to the resource file and the application function file that receive, set up respectively resource file and application program the mapping relations table and, the mapping relations table of application function file and application program.Wherein, a resource file can shine upon one or more application programs, application program of an application function File Mapping.That is to say that resource file and application program are many-one relationship, and application function file and application program are one-one relationship.
If in application program update, the Application developer only upgrades resource file or application function file, and corresponding application information also needs to upgrade; If resource file and application function file are all upgraded, then only need to upgrade an application information.
In the following describes and since the application function file obtain and prior art to obtain application package identical, follow-up repeating no more.
In the resource file, can carry one or more application informations, for example, if this resource file is developed by a certain Application developer, do not obtain other application program provider license, then when uploading this resource file, carry the application information of this exploitation, wherein, for the application information with the application version identification application, can add up on the basis of former application version number, as the version number of new application program; And for the application information of application program update temporal information identification application, replace the update time of former application program with this application program update time.
If the resource file by a certain Application developer's exploitation obtains other application program provider license, then when uploading this resource file, can carry the application information of this exploitation and other application information of agreeing license.Application function file in the application program generally carries the application information of the unique correspondence of this application function.
Certainly, in the practical application, the developer of other application program is when exploiting natural resources file, also can pass through the browing system resource management server, if after finding to have resource file corresponding to applicable own application program leaved for development, after this resource file provider license, this resource file is uploaded to the system resource management server, carry application information leaved for development.
The mapping relations table of update contruction file and application program comprises:
A11, whether inquiry stores the mapping relations table corresponding to installation file of reception, if having, execution in step A12, otherwise, execution in step A13;
A12, in the corresponding application program identification information and mapping relations table of the installation file that relatively receives, the application information that this installation file is corresponding, if identical, do not deal with, otherwise, set up the installation file of reception and the mapping relations table of application program, the described application program of carrying that comprises in the mapping relations table of deletion storage;
In this step, specifically, take installation file as example as resource file, be the situation of application version information for application information, in application version corresponding to the resource file that relatively receives number and the mapping relations table, application version corresponding to this resource file number, if application version corresponding to the resource file that receives number is higher than the application version stored in the mapping relations table number, set up the resource file of reception and the mapping relations table of application program, the described application program of carrying that comprises in the mapping relations table of deletion storage;
Be the situation of application program update temporal information for application information, in application program update time and mapping relations table that relatively the resource file of reception is corresponding, the application program update time that this resource file is corresponding, if application program update time corresponding to the resource file that receives (for example, 2012.08.06) (for example be later than application program update time of storing in the mapping relations table, 2012.03.06), set up the resource file of reception and the mapping relations table of application program, the described application program of carrying that comprises in the mapping relations table of deletion storage.
In the embodiment of the invention, be the situation of resource file for installation file, the resource file that the system resource management server receives may be newly developed, also may be for upgrading, wherein, the application program identification of carrying is in the mapping relations table of storage, may exist, also may not exist.Thereby, for the application program that exists in the mapping relations table, need to upgrade resource file and the application information of its mapping, and for non-existent application program in the mapping relations table, then need newly to set up the mapping relations table of resource file and application program.
A13 sets up the installation file of reception and the mapping relations table of application program.
In this step, resource file and application program form mapping relations, i.e. resource file mapping application program identification information and application program update information.
In the embodiment of the invention, for instance, if application program identification information corresponding to resource file a that the system resource management server receives is A, B, C, application A, B, it is 1.1 that the application version information that C is corresponding is, in the system resource management server, storing that application version information is is the mapping relations table of 1.0 resource file a, the application program identification information of mapping is A, B, D, then according to above-mentioned flow process, setting up newly that application version information is is the mapping relations table of 1.1 resource file a, and the application program identification information of mapping is A, B, C; And be the mapping relations table of 1.0 resource file a from the application version information of storage, deletion application program identification information is the application program of A, B, be that application version information is that the application program identification information of mapping is D in the former mapping relations table of 1.0 resource file a.
Step 202 from the mapping relations table that upgrades, is obtained the installation file of renewal, with the installation file of renewal and the mapping relations of this installation file and application program, is issued to the affiliated terminal of corresponding application program;
In this step, take installation file as example as resource file, from the mapping relations table that upgrades, the installation file of obtaining renewal comprises:
A21, the application information of installing in the pre-stored terminal;
In this step, the system resource management server can periodically issue request to terminal, and the requesting terminal reports the application information of installation, also can be that the active of terminal periodic is to the application information of system resource management server installation.The system resource management server receives the information of each terminal to report, stores.
A22 from the mapping relations table that upgrades, inquires about and obtains the application program identical with application program identification in the terminal of storing;
In this step, the system resource management server at first needs to obtain in the mapping relations table, the application program of installing in this terminal.
A23, judge whether the application program update information of obtaining is consistent with the application program update information in the terminal of storing, if inconsistent, obtain in the mapping relations table of renewal, this application program of obtaining corresponding resource file and, the mapping relations of application program in this resource file and this terminal.
In this step, if the application program update information of obtaining from the mapping relations table that upgrades with the application program update information inconsistency of corresponding application programs in the terminal, shows that this application program upgrades.
In the embodiment of the invention, to each terminal, carry out above-mentioned steps A22 to A23, like this, if a plurality of programs have identical resource file in the terminal, then only need once to get final product from the download of system resource management server, effectively reduced the data volume of transmission, saved the transfer resource expense, expended thereby reduced network transmission resource, simultaneously also effectively reduce the transmission time, improved network transmission efficiency.
In the practical application, from the mapping relations table that upgrades, the installation file of obtaining renewal can also comprise:
A31, terminal sends the application program update request according to the cycle that sets in advance to the system resource management server, carries the application information of installation;
In this step, terminal can initiatively be initiated application program update.Carry the application information of all application programs.
A32 from the mapping relations table that upgrades, inquires about and obtains the application program identical with application program identification in the application information that receives;
In this step, the system resource management server at first needs to obtain in the mapping relations table, the application program of installing in this terminal.
A33, judge whether the application program update information of obtaining is consistent with the application program update information that receives, if inconsistent, obtains in the mapping relations table of renewal, this application program of obtaining corresponding resource file and, the mapping relations of application program in this resource file and this terminal.
In this step, if the application program update information of obtaining from the mapping relations table that upgrades with the application program update information inconsistency of corresponding application programs in the terminal, shows that this application program upgrades.
The installation file that step 203, terminal storage receive and, the mapping relations of this installation file and application program receive the application program download request, the installation file that application program is shone upon is obtained in inquiry, and installs.
In this step, the resource file that terminal storage receives and, the mapping relations of this resource file and application program are carried out unified management to resource file.
In the embodiment of the invention, terminal is after receiving resource file, according to the mapping relations of resource file and application program, can initiatively send a notification message to respectively using of resource file mapping, after using receiving notice message, if determine to upgrade, send the application program download request.Also can be that each was used according to the time cycle that sets in advance, timed sending application program download request be to obtain the resource file of renewal.
After the step of installation file of application program mapping is obtained in inquiry, before the step of installing, further comprise:
Judge that whether installation file is resource file, if so, carries out described step of installing; If application function file, further judge whether application program corresponding to application function file is moved, if do not move, carry out described step of installing, if operation, monitor the operation of this application program, and after monitoring this application program end operation, carry out described step of installing.
The below lifts several specific embodiments, and the present invention is described in further detail.
Fig. 3 is the method flow synoptic diagram of resource file in the first embodiment of the invention upgrade applications.In the embodiment of the invention, suppose the resource that application A need be upgraded not to be had in the terminal resource storehouse, then carry out down operation, and notification application A carries out resource updates after downloading successfully.Referring to Fig. 3, this flow process comprises:
Step 301, terminal resource management services module and system end resource management server communicate;
In this step, terminal resource management services module and system end resource management server connect.In the practical application, each application program the exploitation complete after, the resource of uploading, namely installation file is carried out unified management by the system end resource management server, and sets up the mapping relations table of installation file and application program.In the resource that monitors application program increase or change are arranged, then notification terminal carries out corresponding increase or change.For example, increased resource f, this application program will be submitted to this resource the system end resource management server, the system end resource management server gets off this change records, when terminal resource management services module and system end resource management server connect, if determine that related application changes, then prompt terminal resource management service module is carried out resource downloading or renewal, the terminal resource management services module download or upgrade finish after, submit a feedback information to, to represent that this application program on this terminal upgraded completely, need not next time to have upgraded again.
The terminal resource management services module is by establishing a communications link with the system end resource management server, the operations such as the download of responsible all installation files of terminal (resource file and application function file), renewal, deletion, ordering, search, and responsible notification application is carried out, and installation file is upgraded or installation.
Step 302, terminal resource management services module determine whether the resource file of application A needs down loading updating, if not, returns execution in step 301, otherwise, execution in step 303;
Step 303, the terminal resource management services module is stored to the terminal resource storehouse from system end resource management server respective resources file;
In this step, the terminal resource storehouse is used for storing shared resource file.
Step 304 judges whether download is successful, and if so, execution in step 305 is returned execution in step 301;
Step 305 sends a notification message to application A;
In this step, the application program of new resources File Mapping is notified in the terminal resource storehouse when the new resources file is arranged.
Step 306, application A is upgraded resource file.
In this step, application A need not to withdraw from current working procedure when upgrading resource file.
In the embodiment of the invention, terminal is after downloading and installing file, and with the installation file of each application program, for example resource file is unified to be positioned in the resources bank of terminal, is managed concentratedly by the terminal resource management services module.
The terminal downloads resource file and upgrade after, the version number of application A is added up, be about to the application version number that the application version downloaded number is replaced storage.
Like this, when terminal is carried out application program update in next time, only need application version number is reported to the system resource management server, the system resource management server is according to this application program identification, the application A that can know this terminal need not to carry out resource updates again, and the application A in other the terminal, if do not carry out more new technological process, its corresponding application version number or original value just need to upgrade the down loading updating resource.
Fig. 4 is the method flow synoptic diagram of resource file in the second embodiment of the invention upgrade applications.In the embodiment of the invention, suppose that application program B need upgrade the resource that the terminal resource storehouse has had, for example, this resource originally belongs to other application program, then directly search in the terminal resource storehouse, and notification application B carries out resource updates.Referring to Fig. 4, this flow process comprises:
Step 401, terminal resource management services module and system end resource management server communicate;
In this step, terminal resource management services module and system end resource management server connect.
Step 402, terminal resource management services module are determined whether the resource file of application program B needs to upgrade and need not and are downloaded, and if not, return execution in step 401, otherwise, execution in step 403;
Step 403, terminal resource management services module are searched for the respective resources file from the terminal resource storehouse;
In this step, store shared resource file in the terminal resource storehouse.
Step 404 judges whether to search for successfully, and if so, execution in step 405 is returned execution in step 401;
In this step, after application program B in finding terminal needs more new resources e, the terminal resource management services module finds resource e in the terminal resource storehouse after, send broadcast to application program B, notification application B, after application program B receives broadcast, according to the positional information of carrying in the broadcast, from the terminal resource storehouse, obtain the resource e of this position storage of appointment.
Step 405, B sends a notification message to application program;
Step 406, application program B upgrades resource file.
In this step, application program B need not to withdraw from current working procedure when upgrading resource file.
Fig. 5 is the method flow synoptic diagram of resource file in the third embodiment of the invention upgrade applications.Referring to Fig. 5, this flow process comprises:
Step 501, terminal resource management services module and system end resource management server communicate;
Step 502, terminal resource management services module report at present all application informations of this terminal;
In this step, for example, the application information of this terminal to report comprises application A and application program B, and the version number information of application A is 1.0, and the version number information of application program B is 1.1.
Step 503, the system end resource management server obtains the resource file that this terminal has according to the application information that receives;
In this step, the system end resource management server can be found the resource file that this terminal has at present according to application information, for example, the application A in this terminal and application program B have resource file a b c d e.
Step 504, the system end resource management server is known the respective resources file that each application program need to be upgraded according to resource file and the installation file of storage and the mapping relations table of application program that each application program of this terminal has;
In this step, the system end resource management server is according to the application change situation, the resource file and the installation file of storage and the mapping relations table of application program that namely have according to this terminal, learn the resource file f mapping application A of storing in the mapping relations table of installation file and application program, but in the resource file that this end application A that inquiry obtains has, do not comprise resource file f, thereby, application A need increase resource file f, and system end resource management server notification terminal is downloaded.
Step 505, the system end resource management server in the resource file that the application A in this terminal of storage is corresponding, adds resource file f after confirming that the resource file download is finished, and upgrades the application information of application A.
By as seen above-mentioned, the method of resource file in the upgrade applications of the embodiment of the invention, by removing the tight coupling relation of application program and installation file, set up the mapping relations table of installation file and application program, so that different application programs can be shared installation file, for carrying out the situation that resource file upgrades from the system resource management server, because resource file is to download warehouse-in by the terminal resource management services module, do not affect the normal course of operation of application program, and application program and resource file are the loose coupling relations, can be after receiving the complete notification message of download, can carry out immediately and dynamically update resource file, just stop application program when the down load application program upgrade bag with respect to having now, minimum on the impact of user's experience, really reached the effect of dynamic-configuration resource.Further, because application program and resource file are the loose coupling relations, resource file is all by the unified management of terminal resource storehouse, therefore realized sharing of resource file, for example, if the required resource file of application program B is that application program C is employed originally, according to the prior art scheme, application program B can't obtain in the local terminal this resource file, but the technological means according to the embodiment of the invention, application program B can directly obtain this shared resource file from the terminal resource storehouse, and normally use, thereby realized the multiplexing of resource file, saved and downloaded the required time cost that expends and Internet Transmission cost, having reduced network transmission resource expends, improve network transmission efficiency, simultaneously also saved the storage space of terminal and system resource management server, thereby solved the drawback of the integral body upgrading mode that existing application adopts for new resources more, optimize program architecture, promoted user's experience.
Fig. 6 is the system architecture synoptic diagram of resource file in the embodiment of the invention upgrade applications.This system comprises: terminal and system resource management server, wherein,
Terminal, be used for storing received installation file and, the mapping relations of this installation file and application program receive the application program download request, the installation file that application program is shone upon is obtained in inquiry, and installs;
In the embodiment of the invention, installation file comprises: resource file and application function file.
The system resource management server is used for receiving the installation file that carries application information, according to the application information that carries, and the mapping relations table of update contruction file and application program;
From the mapping relations table that upgrades, obtain the installation file of renewal, with the installation file of renewal and the mapping relations of this installation file and application program, be issued to the affiliated terminal of corresponding application program.
In the embodiment of the invention, application program is carried out unique identification with application information, application information comprises: application program identification information and application program update information, wherein, application program update information can be application version information, also can be the application program update temporal information.
The Application developer is when the resource file that is provided for application program and application function file, the application program that provides respectively it to be suitable for, and the installation file that will carry application information is uploaded to the system resource management server, the system resource management server is according to the resource file and the application function file that receive, set up respectively resource file and application program the mapping relations table and, the mapping relations table of application function file and application program.Wherein, resource file and application program are many-one relationship, and application function file and application program are one-one relationship.
Preferably, terminal is further used for judging whether installation file is resource file, if so, carries out described step of installing after obtaining the installation file of application program mapping in inquiry; If application function file, further judge whether application program corresponding to application function file is moved, if do not move, carry out described step of installing, if operation, monitor the operation of this application program, and after monitoring this application program end operation, carry out described step of installing.
Wherein, the system resource management server comprises: receiver module, update module, mapping relations table memory module, mapping relations table creation module and sending module (not shown), wherein,
Receiver module is used for receiving the installation file that carries application information;
Mapping relations table memory module is for the mapping relations table of storage creation;
Update module, be used for mapping relations table corresponding to installation file whether query mappings relation table memory module stores reception, if have, in the application information and mapping relations table that the installation file that receives is corresponding, application information corresponding to this installation file compares, if identical, do not deal with, otherwise, export this installation file that carries application information to mapping relations table creation module;
Mapping relations table creation module is used for setting up the mapping relations table of installation file and application program according to the installation file that carries application information the described application program of carrying that comprises in the mapping relations table of deletion storage;
Sending module is used for obtaining the installation file of renewal from the mapping relations table that upgrades, and with the installation file of renewal and the mapping relations of this installation file and application program, is issued to the affiliated terminal of corresponding application program.
In the practical application, the system resource management server also can comprise: receiver module, end application information storage module, update module, mapping relations table memory module, mapping relations table creation module and sending module (not shown), wherein,
Receiver module is used for receiving the installation file that carries application information;
The end application information storage module is used for the application information that each terminal of storage is installed;
Mapping relations table creation module is used for setting up the mapping relations table of installation file and application program according to the installation file that carries application information, exports mapping relations table memory module to and stores;
Update module, be used for from the mapping relations table, inquiry is also obtained the application program identical with application program identification in the terminal of storing, judge whether the application program update information of obtaining is consistent with the application program update information in the terminal of storing, if inconsistent, obtain in the mapping relations table, the described application program of obtaining corresponding resource file and, the mapping relations of application program export sending module in this resource file and this terminal;
Sending module, be used for the resource file that will receive and, the mapping relations of application program in this resource file and this terminal are issued to the affiliated terminal of corresponding application program.
Terminal comprises: terminal resource administration module and application program module (not shown), wherein,
The terminal resource administration module, be used for storing received installation file and, the mapping relations of this installation file and application program receive the application program download request of application program module transmission, the installation file of application program mapping is obtained in inquiry, is issued to application program module;
In the embodiment of the invention, the terminal resource administration module by terminal resource library storage installation file and, the mapping relations of this installation file and application program.
Application program module is used for installing according to the installation file that receives.
In the embodiment of the invention, each application program module in the terminal only need be safeguarded a message receiver, with the updating message of carrying installation file that the receiving terminal resource management module is sent, carries out application program update.
Preferably, terminal further comprises:
Monitoring modular is used for judging whether installation file is resource file, and if so, the triggering terminal resource management module issues installation file to application program module after the installation file of application program mapping is obtained in the inquiry of terminal resource administration module; If application function file, further judge whether application program corresponding to application function file is moved, if do not move, the triggering terminal resource management module issues installation file to application program module, if operation, monitor the operation of this application program, and after monitoring this application program end operation, the triggering terminal resource management module issues installation file to application program module.
Fig. 7 is system's concrete structure synoptic diagram of resource file in the embodiment of the invention upgrade applications.This system is divided into system side and end side, wherein, system side is the system resource management server, end side comprises: terminal resource administration module, terminal resource storehouse and a plurality of application program module, for example, application A module~application program C module, wherein, safeguard a message sender in the terminal resource administration module, store in the terminal resource storehouse in this terminal, the resource (resource file and application function file) that each application program is shared, for example, resource a~resource e etc. safeguard a message receiver in each application program module.
The system resource management server is issued to the terminal resource administration module with resource and the mapping relations table that upgrades, the terminal resource administration module exports the resource that receives and mapping relations table to the terminal resource storehouse and stores, and according to the resource and the mapping relations table that upgrade, obtain the application program that needs renewal, send updating message by message sender to corresponding application program, message receiver in the application program module receives updating message, the respective resources of receiving terminal resources bank output, upgrade, thereby finish the flow process of upgrade applications.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also comprises these changes and modification interior.