Summary of the invention
The object of the embodiment of the present invention is to provide a kind of window update method and device, to save taking of Internet resources.
For achieving the above object, the embodiment of the invention discloses a kind of window update method, be applied to server, described server is connected with terminal equipment in communication, and described method comprises:
According to the program code of window and the display condition of window, generating window configuration file, at least comprises the program code of window and the display condition of window in described windows configuration file;
Set up the corresponding relation of application program in described windows configuration file and described server;
According to the described corresponding relation set up, send to terminal device and upgrade relevant information to application window, at least comprise in described information: windows configuration file, the incidence relation of application program in the windows configuration file and terminal device received is set up to make terminal device, in the process that the application program of terminal device is run, according to this incidence relation, load the windows configuration file be associated with the application program of current operation, in the windows configuration file that the application program meeting current operation is associated when the display condition of window, to the window that the program code of user's impression window is corresponding.
Preferably, the described described corresponding relation according to setting up, sends to terminal device and upgrades relevant information to application window, comprising:
According to the described corresponding relation set up, the mark of described windows configuration file and the application program corresponding with this windows configuration file is sent directly to terminal device, to make terminal device search the application program identical with the mark of the application program that server sends in local device, the incidence relation of the application program that foundation finds and the windows configuration file that server sends.
Preferably, the described described corresponding relation according to setting up, sends to terminal device and upgrades relevant information to application window, comprising:
The application window update instruction that receiving terminal apparatus sends, at least comprises the mark of application program in described application window update instruction;
According to the application window update instruction received, search the application program identification application program identical with the application program identification comprised in described application window update instruction in server this locality;
According to the described corresponding relation finding application program and foundation, search the windows configuration file corresponding with finding application program in server this locality;
Send the windows configuration file found to terminal device, set up the incidence relation of the windows configuration file that the receives application program corresponding with described application window update instruction to make terminal device.
Preferably, described according to the program code of window and the display condition of window, generating window configuration file, comprising:
Visual edit interface is shown to user, according to user editor to the program code of window and the display condition of window in described visual edit interface, generating window configuration file, in described visual edit interface, at least comprise the program code edit segment of window and the display condition edit segment of window.
Preferably, also comprise: window preview part in described visual edit interface, described according to user editor to the program code of window and the display condition of window in described visual edit interface, generating window configuration file, comprising:
When user confirm the display of window preview part in visual edit interface, window that the program code of window is corresponding correct, according to user editor to the program code of window and the display condition of window in described visual edit interface, generating window configuration file.
For achieving the above object, the embodiment of the invention discloses a kind of window update method, be applied to terminal device, described terminal device is connected with server communication, and described method comprises:
What reception server sent upgrades relevant information to application window, at least comprises: windows configuration file in described information;
Set up the incidence relation of application program in the windows configuration file and described terminal device received, and then complete the renewal of application window.
Preferably, what described reception server sent upgrades relevant information to application window, comprising:
The mark of the windows configuration file that direct reception server sends and the application program corresponding with this windows configuration file;
The incidence relation of application program in the windows configuration file that described foundation receives and described terminal device, comprising:
Search the application program identical with the mark of the application program that server sends in terminal device this locality, set up the incidence relation of the application program found and the windows configuration file received.
Preferably, what described reception server sent upgrades relevant information to application window, comprising:
Application window update instruction is sent to server, the mark of application program is at least comprised in described application window update instruction, to make server according to the mark of described application program, the application program identification application program identical with described application program identification is searched in server this locality, and then according to the corresponding relation of the application program set up in the application program found and server and windows configuration file, search the windows configuration file corresponding with application program in server this locality;
The windows configuration file found that reception server sends;
The incidence relation of application program in the windows configuration file that described foundation receives and described terminal device, comprising:
Set up application program corresponding to described application window update instruction and the incidence relation of windows configuration file received.
Preferably, described method also comprises:
According to the incidence relation of the application program of the windows configuration file received and foundation, load the windows configuration file be associated with the application program of current operation;
In the windows configuration file that the application program meeting current operation is associated when the display condition of window, perform the program code of the window in this windows configuration file, the window that the program code to user's impression window is corresponding.
For achieving the above object, the embodiment of the invention discloses a kind of window updating device, be applied to server, described server is connected with terminal equipment in communication, and described device comprises: windows configuration file generation module, corresponding relation building module and information sending module,
Described windows configuration file generation module, for according to the program code of window and the display condition of window, generating window configuration file, at least comprises the program code of window and the display condition of window in described windows configuration file;
Described corresponding relation building module, for setting up the corresponding relation of application program in described windows configuration file and described server;
Described information sending module, for the described corresponding relation according to foundation, send to terminal device and upgrade relevant information to application window, at least comprise in described information: windows configuration file, the incidence relation of application program in the windows configuration file and terminal device received is set up to make terminal device, in the process that the application program of terminal device is run, according to this incidence relation, load the windows configuration file be associated with the application program of current operation, in the windows configuration file that the application program meeting current operation is associated when the display condition of window, to the window that the program code of user's impression window is corresponding.
Preferably, described information sending module, specifically for:
According to the described corresponding relation set up, the mark of described windows configuration file and the application program corresponding with this windows configuration file is sent directly to terminal device, to make terminal device search the application program identical with the mark of the application program that server sends in local device, the incidence relation of the application program that foundation finds and the windows configuration file that server sends.
Preferably, described information sending module, comprising: update instruction reception submodule, first is searched submodule, second and searched submodule and windows configuration file transmission submodule,
Described update instruction receives submodule, for the application window update instruction that receiving terminal apparatus sends, at least comprises the mark of application program in described application window update instruction;
Described first searches submodule, for receiving the application window update instruction that submodule receives according to described update instruction, search the application program identification application program identical with the application program identification comprised in described application window update instruction in server this locality;
Described second searches submodule, for searching according to described first the described corresponding relation that submodule finds application program and the foundation of described corresponding relation building module, searches the windows configuration file corresponding with finding application program in server this locality;
Described windows configuration file sends submodule, searching for sending described second to terminal device the windows configuration file that submodule finds, setting up the incidence relation of the windows configuration file that the receives application program corresponding with described application window update instruction to make terminal device.
Preferably, described windows configuration file generation module, specifically for:
Visual edit interface is shown to user, according to user editor to the program code of window and the display condition of window in described visual edit interface, generating window configuration file, in described visual edit interface, at least comprise the program code edit segment of window and the display condition edit segment of window.
Preferably, also comprise in described visual edit interface: window preview part, described windows configuration file generation module, specifically for:
Visual edit interface is shown to user, when user confirm the display of window preview part in visual edit interface, window that the program code of window is corresponding correct, according to user editor to the program code of window and the display condition of window in described visual edit interface, generating window configuration file.
For achieving the above object, the embodiment of the invention discloses a kind of window updating device, be applied to terminal device, described terminal device is connected with server communication, and described device comprises: information receiving module and incidence relation set up module,
Described information receiving module, what send for reception server upgrades relevant information to application window, at least comprises: windows configuration file in described information;
Described incidence relation sets up module, for setting up the incidence relation of application program in windows configuration file and described terminal device that information receiving module receives, and then completes the renewal of application window.
Preferably, described information receiving module, specifically for:
The mark of the windows configuration file that direct reception server sends and the application program corresponding with this windows configuration file;
Described incidence relation sets up module, specifically for:
Search the application program identical with the mark of the application program that server sends in terminal device this locality, set up the incidence relation of the application program found and the windows configuration file received.
Preferably, described information receiving module, comprising: update instruction sends submodule and windows configuration file receives submodule,
Described update instruction sends submodule, for sending application window update instruction to server, the mark of application program is at least comprised in described application window update instruction, to make server according to the mark of described application program, the application program identification application program identical with described application program identification is searched in server this locality, and then according to the corresponding relation of the application program set up in the application program found and server and windows configuration file, search the windows configuration file corresponding with application program in server this locality;
Described mouth configuration file receives submodule, for the windows configuration file found that reception server sends;
Described incidence relation sets up module, specifically for:
Set up application program corresponding to described application window update instruction and the incidence relation of windows configuration file received.
Preferably, described device also comprises: windows configuration file load-on module and window display module,
Described windows configuration file load-on module, for the incidence relation of the application program according to the windows configuration file received and foundation, loads the windows configuration file be associated with the application program of current operation;
Described window display module, when display condition for window in the windows configuration file that is associated in the application program meeting current operation, perform the program code of the window in this windows configuration file, the window that the program code to user's impression window is corresponding.
As seen from the above technical solutions, the present invention shows that embodiment provides a kind of window update method and device, server only need to terminal device send window configuration file, the incidence relation of application program in windows configuration file and terminal device that what terminal device received set up, namely the renewal of terminal device application window can be realized, application program installation kit is sent to terminal device without the need to server, the byte taken than application program installation kit due to windows configuration file is few, the Internet resources that transmission window configuration file takies than transfer application installation kit are few, therefore taking of Internet resources in window renewal process is saved.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Below by specific embodiment, the present invention is described in detail.
The schematic flow sheet being applied to a kind of window update method of server that Fig. 1 provides for the embodiment of the present invention, can comprise:
S101: according to the program code of window and the display condition of window, generating window configuration file;
The program code of window and the display condition of window is at least comprised in described windows configuration file.
Be described for application program identification xxx, application A and windows configuration file layer.xml below.
Exemplary, suppose that the display condition of window is: terminal device detects that mobile phone is connected with terminal device usage data line, there is Ax.exe in terminal device system process, application A is not set to forbidding, adopts program code to represent that above-mentioned condition is:
Utilize the display condition of above-mentioned window and the program code of window, generating window configuration file layer.xml.
In actual applications, visual edit interface can be shown to user, according to user editor to the program code of window and the display condition of window in described visual edit interface, generating window configuration file, in described visual edit interface, at least comprise the program code edit segment of window and the display condition edit segment of window.
In actual applications, can also comprise in visual edit interface: window preview part, when user confirm the display of window preview part in visual edit interface, window that the program code of window is corresponding correct, according to user editor to the program code of window and the display condition of window in described visual edit interface, generating window configuration file.
Concrete, in visual edit interface, window preview part shows window corresponding to the program code of above-mentioned window, when user confirms that this window shows correct, and generating window configuration file layer.xml.
S102: the corresponding relation setting up application program in described windows configuration file and described server;
Exemplary, set up the corresponding relation of application A in windows configuration file layer.xml and server.
S103: according to the described corresponding relation set up, send to terminal device and upgrade relevant information to application window, the incidence relation of application program in the windows configuration file and terminal device received is set up to make terminal device, in the process that the application program of terminal device is run, according to this incidence relation, load the windows configuration file be associated with the application program of current operation, in the windows configuration file that the application program meeting current operation is associated when the display condition of window, the window that the program code to user's impression window is corresponding.
At least comprise in described information: windows configuration file.
In actual applications, can according to the described corresponding relation set up, the mark of described windows configuration file and the application program corresponding with this windows configuration file is sent directly to terminal device, to make terminal device search the application program identical with the mark of the application program that server sends in local device, the incidence relation of the application program that foundation finds and the windows configuration file that server sends.
Concrete, after server sets up the corresponding relation of application A in windows configuration file layer.xml and server, can directly to the mark of terminal device send window configuration file layer.xml and application A, be assumed to be xxx, terminal device receive that server is sent to mark xxx after, the application program being designated xxx can be searched in local device, the application program found is A, sets up the incidence relation of the windows configuration file layer.xml finding application A and server transmission.
In actual applications, the application window update instruction that all right receiving terminal apparatus sends, at least comprises the mark of application program in described application window update instruction; According to the application window update instruction received, search the application program identification application program identical with the application program identification comprised in described application window update instruction in server this locality; According to the described corresponding relation finding application program and foundation, search the windows configuration file corresponding with finding application program in server this locality; Send the windows configuration file found to terminal device, set up the incidence relation of the windows configuration file that the receives application program corresponding with described application window update instruction to make terminal device.
Concrete, after server sets up the corresponding relation of application A in windows configuration file layer.xml and server, can receiving terminal apparatus send application window update instruction, server is according to the application window update instruction received, extract being designated of application program: xxx, the application program being designated xxx is searched in server this locality, the application program found is A, according to the corresponding relation of the application program and windows configuration file that find application A and foundation, find the windows configuration file layer.xml corresponding with application A, with the incidence relation making terminal device set up application A in windows configuration file layer.xml and terminal device.
In the process that the application program of terminal device is run, suppose to detect that the application program of current operation exists A, then load the windows configuration file layer.xml be associated with application A, when detecting that mobile phone carries out being connected with terminal device usage data line, namely when meeting the display condition of window in the windows configuration file layer.xml that application A is associated, the window that the program code of window is corresponding in user's impression window configuration file layer.xml.
It should be noted that, above-mentionedly for application program identification xxx, application A and windows configuration file layer.xml, window update method to be described, be only an instantiation, and the restriction of the application not in pairs.
The present invention is embodiment illustrated in fig. 1 in application, server only need to terminal device send window configuration file, the incidence relation of application program in windows configuration file and terminal device set up by terminal device, namely the renewal of terminal device application window can be realized, application program installation kit is sent to terminal device without the need to server, the byte taken than application program installation kit due to windows configuration file is few, the Internet resources that translation profile takies than transfer application installation kit are few, therefore save taking of Internet resources in window renewal process.
The first schematic flow sheet being applied to the window update method of terminal device that Fig. 2 provides for the embodiment of the present invention, can comprise:
S201: what reception server sent upgrades relevant information to application window;
At least comprise in described information: windows configuration file;
S202: the incidence relation setting up application program in the windows configuration file and described terminal device received, and then complete the renewal of application window.
In actual applications, can the directly windows configuration file that sends of reception server and the mark of the application program corresponding with this windows configuration file, search the application program identical with the mark of the application program that server sends in terminal device this locality, set up the incidence relation of the application program found and the windows configuration file received.
Be described for application program identification xxx, application A and windows configuration file layer.xml below.
Concrete, suppose that server is at generating window configuration file layer.xml, after setting up the corresponding relation of windows configuration file layer.xml and application A, just can directly to the mark xxx of terminal device send window configuration file layer.xml and application A, the mark xxx of the windows configuration file layer.xml that terminal device reception server sends and application A, this locality is established to search the application program identical with identifying xxx in terminal, finding application program is: A, set up the incidence relation of the application A found and the windows configuration file layer.xml received.
In actual applications, application window update instruction can also be sent to server, the mark of application program is at least comprised in described application window update instruction, to make server according to the mark of described application program, the application program identification application program identical with described application program identification is searched in server this locality, and then according to the corresponding relation of the application program set up in the application program found and server and windows configuration file, search the windows configuration file corresponding with application program in server this locality; The windows configuration file found that reception server sends; Set up application program corresponding to described application window update instruction and the incidence relation of windows configuration file received.
Concrete, terminal device sends the application window update instruction comprising application program identification xxx to server, server searches the application program identical with application program identification xxx in server local device, the application program of searching is: A, according to the corresponding relation of the application program set up in server and windows configuration file, the windows configuration file corresponding with application A is searched in server local device, the windows configuration file found is: layer.xml, to terminal device send window configuration file layer.xml, the windows configuration file layer.xml that terminal device reception server sends, set up the incidence relation of the application A that in terminal device, application program identification xxx is corresponding and the windows configuration file layer.xml received.
It should be noted that, terminal device sends application window update instruction to server, can send in real time, also can send every the time of presetting, also can send after the instruction receiving user's input, the application does not limit this, and any possible implementation can be applied in the application.
It should be noted that, above-mentionedly for application program identification xxx, application A and windows configuration file layer.xml, window update method to be described, be only an instantiation, and the restriction of the application not in pairs.
The present invention is embodiment illustrated in fig. 2 in application, the windows configuration file that terminal device only needs reception server to send, set up the incidence relation of application program in the windows configuration file and terminal device received, namely the renewal of terminal device application window can be realized, application program installation kit is sent to terminal device without the need to server, the byte taken than application program installation kit due to windows configuration file is few, the Internet resources that translation profile takies than transfer application installation kit are few, therefore save taking of Internet resources in window renewal process.
The second schematic flow sheet being applied to the window update method of terminal device that Fig. 3 provides for the embodiment of the present invention, the present invention is embodiment illustrated in fig. 3 on basis embodiment illustrated in fig. 2, increases following two steps,
S203: according to the incidence relation of the application program of the windows configuration file received and foundation, loads the windows configuration file be associated with the application program of current operation;
S204: in the windows configuration file that the application program meeting current operation is associated when the display condition of window, perform the program code of the window in this windows configuration file, the window that the program code to user's impression window is corresponding.
Be described for application A and windows configuration file layer.xml below.
Concrete, in the process that the application program of terminal device is run, suppose to detect that the application program of current operation exists A, then load the windows configuration file layer.xml be associated with application A, when detecting that mobile phone carries out being connected with terminal device usage data line, namely when meeting the display condition of window in the windows configuration file layer.xml that application A is associated, the window that the program code of window is corresponding in user's impression window configuration file layer.xml.
It should be noted that, above-mentionedly for application A and windows configuration file layer.xml, window update method to be described, be only an instantiation, and the restriction of the application not in pairs.
The present invention is embodiment illustrated in fig. 3 in application, and terminal device can show to user the window that the program code of window in the windows configuration file received is corresponding.
Corresponding with said method embodiment, the embodiment of the present invention additionally provides window updating device.
The structural representation being applied to a kind of window updating device of server that Fig. 4 provides for the embodiment of the present invention, can comprise: windows configuration file generation module 301, corresponding relation building module 302 and information sending module 303, wherein, server is connected with terminal equipment in communication
Windows configuration file generation module 301, for according to the program code of window and the display condition of window, generating window configuration file, at least comprises the program code of window and the display condition of window in described windows configuration file;
The windows configuration file generation module 301 of the embodiment of the present invention, specifically may be used for:
Visual edit interface is shown to user, according to user editor to the program code of window and the display condition of window in described visual edit interface, generating window configuration file, in described visual edit interface, at least comprise the program code edit segment of window and the display condition edit segment of window.
Also comprise at visual edit interface: when window preview part, the windows configuration file generation module 301 of the embodiment of the present invention, specifically may be used for:
Visual edit interface is shown to user, when user confirm the display of window preview part in visual edit interface, window that the program code of window is corresponding correct, according to user editor to the program code of window and the display condition of window in described visual edit interface, generating window configuration file.
Corresponding relation building module 302, for setting up the corresponding relation of application program in described windows configuration file and described server;
Information sending module 303, for the described corresponding relation according to foundation, send to terminal device and upgrade relevant information to application window, at least comprise in described information: windows configuration file, the incidence relation of application program in the windows configuration file and terminal device received is set up to make terminal device, in the process that the application program of terminal device is run, according to this incidence relation, load the windows configuration file be associated with the application program of current operation, in the windows configuration file that the application program meeting current operation is associated when the display condition of window, to the window that the program code of user's impression window is corresponding.
The information sending module 303 of the embodiment of the present invention, specifically may be used for:
According to the described corresponding relation set up, the mark of described windows configuration file and the application program corresponding with this windows configuration file is sent directly to terminal device, to make terminal device search the application program identical with the mark of the application program that server sends in local device, the incidence relation of the application program that foundation finds and the windows configuration file that server sends.
The information sending module 303 of the embodiment of the present invention, can comprise: update instruction reception submodule, first is searched submodule, second and searched submodule and windows configuration file transmission submodule (not shown),
Update instruction receives submodule, for the application window update instruction that receiving terminal apparatus sends, at least comprises the mark of application program in described application window update instruction;
First searches submodule, for receiving the application window update instruction that submodule receives according to described update instruction, search the application program identification application program identical with the application program identification comprised in described application window update instruction in server this locality;
Second searches submodule, for searching according to described first the described corresponding relation that submodule finds application program and the foundation of described corresponding relation building module, searches the windows configuration file corresponding with finding application program in server this locality;
Windows configuration file sends submodule, searching for sending described second to terminal device the windows configuration file that submodule finds, setting up the incidence relation of the windows configuration file that the receives application program corresponding with described application window update instruction to make terminal device.
The present invention is embodiment illustrated in fig. 4 in application, server only need to terminal device send window configuration file, the incidence relation of application program in windows configuration file and terminal device set up by terminal device, namely the renewal of terminal device application window can be realized, application program installation kit is sent to terminal device without the need to server, the byte taken than application program installation kit due to windows configuration file is few, the Internet resources that translation profile takies than transfer application installation kit are few, therefore save taking of Internet resources in window renewal process.
The first structural representation being applied to the window updating device of terminal device that Fig. 5 provides for the embodiment of the present invention, can comprise: information receiving module 401 and incidence relation set up module 402, wherein, terminal device is connected with server communication,
Information receiving module 401, what send for reception server upgrades relevant information to application window, wherein, at least comprises: windows configuration file in described information;
Incidence relation sets up module 402, for setting up the incidence relation of application program in windows configuration file and described terminal device that information receiving module receives, and then completes the renewal of application window.
Information receiving module 401 in the embodiment of the present invention, specifically may be used for:
The mark of the windows configuration file that direct reception server sends and the application program corresponding with this windows configuration file;
Incidence relation sets up module 402, specifically may be used for:
Search the application program identical with the mark of the application program that server sends in terminal device this locality, set up the incidence relation of the application program found and the windows configuration file received.
Information receiving module 401 in the embodiment of the present invention, can comprise: update instruction sends submodule and windows configuration file receives submodule (not shown), wherein,
Update instruction sends submodule, for sending application window update instruction to server, the mark of application program is at least comprised in described application window update instruction, to make server according to the mark of described application program, the application program identification application program identical with described application program identification is searched in server this locality, and then according to the corresponding relation of the application program set up in the application program found and server and windows configuration file, search the windows configuration file corresponding with application program in server this locality;
Mouth configuration file receives submodule, for the windows configuration file found that reception server sends;
Incidence relation sets up module 402, specifically may be used for:
Set up application program corresponding to described application window update instruction and the incidence relation of windows configuration file received.
The present invention is embodiment illustrated in fig. 5 in application, the windows configuration file that terminal device only needs reception server to send, set up the incidence relation of application program in the windows configuration file and terminal device received, namely the renewal of terminal device application window can be realized, application program installation kit is sent to terminal device without the need to server, the byte taken than application program installation kit due to windows configuration file is few, the Internet resources that translation profile takies than transfer application installation kit are few, therefore save taking of Internet resources in window renewal process.
The second structural representation being applied to the window updating device of terminal device that Fig. 6 provides for the embodiment of the present invention, the present invention is embodiment illustrated in fig. 6 on basis embodiment illustrated in fig. 5, increase: windows configuration file load-on module 403 and window display module 404, wherein
Windows configuration file load-on module 403, for the incidence relation of the application program according to the configuration file received and foundation, loads the windows configuration file be associated with the application program of current operation;
Window display module 404, when display condition for window in the windows configuration file that is associated in the application program meeting current operation, perform the program code of the window in this windows configuration file, the window that the program code to user's impression window is corresponding.
The present invention is embodiment illustrated in fig. 6 in application, and terminal device can show to user the window that the program code of window in the windows configuration file received is corresponding.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this instructions all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realized in said method embodiment is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.