Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Fig. 1 is the flow chart of cell phone software method for down loading first embodiment provided by the invention, and as shown in Figure 1, this method comprises:
S101, obtain the software download request that client sends;
S102, send corresponding installation kit to client according to the platform information of client;
S103, send corresponding resource packet to client, comprise picture resource in the resource packet with platform and resolution coupling according to the platform information of client and resolution information.
Wherein, for a certain cell phone software, server is divided according to the client mobile phone platform, and for client provides the corresponding download address, client is selected the corresponding download address according to the cell phone platform that uses.
Among the cell phone software method for down loading embodiment provided by the invention, server separately offers client with the installation kit and the resource packet of software, originally be packaged in the resource packet in the installation kit, from installation kit, separate, make the various mobile phones under the same cell phone platform can a public installation kit.When client is selected download address under a certain platform, after server sent download request, server sent to client according to the cell phone platform information of this client with the installation kit of correspondence.
Client can provide the resource packet of various model correspondences according to the resolution of different mobile phone model correspondences under a certain cell phone platform for the client.Comprise picture resource in this resource packet.A plurality of resource packet under each platform are corresponding with a kind of resolution under this platform respectively.Occur a kind of mobile phone model that has new resolution down as this cell phone platform, still can use original installation kit of this platform correspondence, the keeper can upload onto the server the new resource packet of this new resolution correspondence, for client downloads.
Server can initiatively trigger platform information and the resolution information that obtains client, perhaps client can be carried platform information and resolution information in download request, server can obtain the resolution information of client in several ways, does not enumerate one by one at this.
Server sends corresponding installation kit according to the platform information of client to client, according to the platform information and the resolution information of client, finds the resource packet that is complementary in local stored resource bag, is sent to client.After client receives resource packet, be saved in this locality, can start cell phone software.The order that server sends installation kit and resource packet to client in no particular order can certainly synchronized transmission, and these all do not cause restriction to the present invention.
In addition, when other clients need be downloaded software, except obtaining the installation kit by server, can also connect from client same platform, that preserved installation kit, can adopt modes such as Bluetooth transmission, storage card copy or data wire connection to obtain installation kit from the client of same platform, and then to obtaining resource packet from server end.
The cell phone software method for down loading that the embodiment of the invention provides, resource packet is separated from installation kit, send corresponding installation kit according to the platform information of client to client, send the picture resource that is complementary to client according to the platform information and the resolution information of client.The mobile phone of realizing the various models under the identical platform can public same installation kit, server is a client Resources allocation bag according to cell phone platform and resolution, the software and the mobile phone of client downloads are complementary, prevent the picture distortion, guaranteed the normal operation of cell phone software.
Fig. 2 is the flow chart of cell phone software method for down loading second embodiment provided by the invention, and as shown in Figure 2, this method comprises:
S201, obtain the software download request that client sends;
S202, send corresponding installation kit to client according to the platform information of client;
For a certain cell phone software, server is divided according to the client mobile phone platform, and for client provides the corresponding download address, client is selected the corresponding download address according to the cell phone platform that uses.Server separately offers client with the installation kit and the resource packet of software, originally is packaged in the resource packet in the installation kit, separates from installation kit, makes the various mobile phones under the same cell phone platform can a public installation kit.Select download address under a certain platform when client, after server sent download request, server sent to client with the installation kit of correspondence.
Server can initiatively trigger platform information and the resolution information that obtains client, perhaps client can be carried platform information and resolution information in download request, as a kind of preferred implementation, if server sends installation kit to client earlier, then can also in installation kit, carry the request of obtaining platform information and resolution information, comprise the server address that resource packet is provided in this request, so that user end to server sends platform information and resolution information.Client can be received server by the mobile phone operating system chain of interfaces according to the server address that provides in the installation kit after receiving the installation kit of server transmission, and platform information and resolution information are sent to server.
S203, judge whether to exist the resource packet of picture resource and platform and resolution coupling, be, then carry out S204 earlier, carry out S206 again; Not, then carry out S205 earlier, carry out S206 again;
S204, the resource packet of correspondence is sent to client;
S205, existing picture resource is adjusted, the picture resource that generation and platform and resolution are mated, and the resource packet of correspondence is sent to client.
Among the S203, server receives platform information and the resolution information that client sends, and judges whether this locality stores the resource packet that is complementary with this platform and resolution, if the resource packet that is complementary is arranged, then direct resource packet with correspondence is sent to client; If the mobile phone model of client correspondence is newly-increased model, the resource packet that is not complementary in the server then, server can be selected to adjust with the immediate existing picture resource of resolution ratio of client in local stored resource bag, for example: the resolution of the model that adds your mobile phone correspondence is 240*320, in the picture resource of storing in the server, the immediate picture resource of resolution ratio is 320*480, can get picture resource picture conversion in proportion to this 320*480, generate the picture resource of 240*320.Need to prove, the picture resource of having stored is adjusted that these picture resources should adopt relative position coordinates as far as possible, avoid using absolute coordinate for the ease of server.
After server is preserved the picture resource that generates, the resource packet of correspondence is sent to client.
S206, obtain in the client version information of existing resource packet;
S207, judging whether to exist the renewal version of resource packet, is then carry out S208, otherwise flow process to finish.
S208, the resource packet that will upgrade version are sent to client.
Because the renewal speed of cell phone software is very fast, therefore, server can also carry the version information of resource packet in the resource packet that client sends, and version information is used for the update time of identifying resource bag.When client starts cell phone software at every turn, existing resource packet version information can be sent to server, there is the renewal version in discovering server, then notify client to exist and upgrade version, and the resource packet that will upgrade version is sent to client, makes client start software according to the resource packet of upgrading.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Fig. 3 is the structural representation of server first embodiment provided by the invention, and as shown in Figure 3, this server comprises:acquisition module 11 andsending module 12;
Wherein,acquisition module 11 is used to obtain the software download request that client sends;
Sending module 12 is used for sending corresponding installation kit according to the platform information of client to client; Platform information and resolution information according to client send corresponding resource packet to client, comprise the picture resource with platform and resolution coupling in this resource packet.
The server that the embodiment of the invention provides separates resource packet from installation kit, send corresponding installation kit according to the platform information of client to client, sends the picture resource that is complementary to client according to the platform information and the resolution information of client.The mobile phone of realizing the various models under the identical platform can public same installation kit, server is a client Resources allocation bag according to cell phone platform and resolution, the software and the mobile phone of client downloads are complementary, prevent the picture distortion, guaranteed the normal operation of cell phone software.
On the basis of last embodiment, further:
Sendingmodule 12 also comprises in the installation kit that client sends: obtain the request of platform information and resolution information, comprise server address in this request, so that user end to server sends platform information and resolution information.
Sendingmodule 12 can specifically be used for:
Judge whether to exist the resource packet of picture resource and platform and resolution coupling;
If have the resource packet of picture resource and platform and resolution coupling, then resource packet be sent to client; If there is not the resource packet of picture resource and platform and described resolution coupling, then existing picture resource is adjusted, the picture resource that generation and platform and resolution are mated, and the resource packet of correspondence is sent to client.
Sendingmodule 12 can also specifically be used for: select to adjust with the immediate existing picture resource of resolution ratio of client the picture resource of generation and platform and resolution coupling.
In addition,sending module 12 also comprises in the resource packet that client sends: version information, this version information is used for the update time of identifying resource bag.
Acquisition module 11 can also be used for: the version information that obtains the existing resource packet of client transmission;
Accordingly, sendingmodule 12 also is used for: upgrade version if resource packet exists, the resource packet that then will upgrade version is sent to client.
The server that the embodiment of the invention provides, for realizing the function device of the cell phone software method for down loading that the embodiment of the invention provides, corresponding with cell phone software method for down loading embodiment provided by the invention, therefore, the concrete implementation of the server that the embodiment of the invention provides can not repeat them here referring to method embodiment.
Fig. 4 is the structural representation of cell phone software download system first embodiment provided by the invention, and as shown in Figure 4, this system comprises:client 1 andserver 2;
Client 1 is used for sending the software download request toserver 2;
Server 2 is used for sending corresponding installation kit according to the platform information ofclient 1 toclient 1; Platform information and resolution information according toclient 1 send corresponding resource packet toclient 1, comprise the picture resource with platform and resolution coupling in the resource packet.
The cell phone software download system that the embodiment of the invention provides, corresponding with cell phone software method for down loading embodiment provided by the invention,client 1 in this system andserver 2 mutual detailed processes can repeat no more referring to method embodiment.
The cell phone software download system that the embodiment of the invention provides separates resource packet from installation kit, send the picture resource that is complementary to client according to the platform information of client and resolution information.The mobile phone of realizing the various models under the identical platform can public same installation kit, server is a client Resources allocation bag according to cell phone platform and resolution, the software and the mobile phone of client downloads are complementary, prevent the picture distortion, guaranteed the normal operation of cell phone software.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.