Summary of the invention
The purpose of the embodiment of the present invention is to provide a kind of method for downloading software, is intended to solve software downloading mode operation easier of the prior art large, and because the problem that network connects causes the problem of user's financial burden and network security.
The embodiment of the present invention is achieved in that a kind of method for downloading software, and described method comprises the steps:
Pre-configured download configuration information and editing options, described download configuration information comprises the download time of resource downloading information and the information of mobile terminal-opening;
Receive the Download Info that the user inputs in default editing options, generate resource downloading information;
Judge in described pre-configured download configuration information whether download time arrives;
When download time does not arrive in described pre-configured download configuration information, continue the time of waiting for downloads; When download time arrives in described pre-configured download configuration information, judge that whether mobile terminal is in open state;
During in off-mode, judge the information that whether comprises mobile terminal-opening in pre-configured download configuration information when described mobile terminal;
During the information that comprises mobile terminal-opening in described pre-configured download configuration information, control described mobile terminal-opening;
During the information that do not comprise mobile terminal-opening in described pre-configured download configuration information, control and finish the software resource down operation;
When described mobile terminal during in open state, according to described resource downloading information, by the software resource be complementary with described resource downloading information in the mobile terminal internet retrieval software store connected;
Judgement in described software store whether retrieval to the software resource be complementary with described resource downloading information;
During to the software resource that is complementary with described resource downloading information, download described software when retrieval;
When download is complete, controls and close the network connection.
Another purpose of the embodiment of the present invention is to provide a kind of software download system, and described system comprises:
Pre-configured module, for pre-configured download configuration information and editing options, described download configuration information comprises the download time of resource downloading information and the information of mobile terminal-opening;
The resource downloading information generating module, the Download Info of inputting at default editing options for receiving the user, generate resource downloading information;
Download time judge module, for judging described pre-configured download configuration information download time, whether arrive;
Wait for module, when judge module judges that pre-configured download configuration information download time does not arrive when described download time, continue the time of waiting for downloads;
The open state judge module, for when described download time, judge module judged pre-configured download configuration information download time arrival, judge that whether mobile terminal is in open state;
The boot-strap information judge module, for when described open state judge module judges mobile terminal in off-mode, judge the information that whether comprises mobile terminal-opening in pre-configured download configuration information;
Starting module, when judging the information that pre-configured download configuration information comprises mobile terminal-opening when described boot-strap information judge module, control described mobile terminal-opening; And
The finishing control module, when judging the information that pre-configured download configuration information do not comprise mobile terminal-opening when described boot-strap information judge module, control and finish the software resource down operation;
The retrieval module, for when described open state judge module judges mobile terminal in open state, according to described resource downloading information, by the software resource be complementary with described resource downloading information in the mobile terminal internet retrieval software store connected;
The software resource judge module, for judge described retrieval module described software store whether retrieval to the software resource be complementary with described resource downloading information;
Download module, when judging described retrieval module retrieval to the software resource that is complementary with described resource downloading information when the software resource judge module, download described software; And
The network closing module, for when download is complete, controls and close the network connection.
Another purpose of the embodiment of the present invention is to provide a kind of mobile terminal that comprises software download system.
In embodiments of the present invention, receive the Download Info that the user inputs in default editing options, generate resource downloading information; According to described resource downloading information, by the software resource be complementary with described resource downloading information in the mobile terminal internet retrieval software store connected; Judgement in described software store whether retrieval to the software resource be complementary with described resource downloading information; During to the software resource that is complementary with described resource downloading information, download described software when retrieval; When download is complete, control and close described network connection, it is convenient that the user downloads software operation, solved network and connected the network security problem brought to mobile terminal.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, receive the Download Info that the user inputs in default editing options, generate resource downloading information; According to described resource downloading information, by the software resource be complementary with described resource downloading information in the mobile terminal internet retrieval software store connected; Judgement in described software store whether retrieval to the software resource be complementary with described resource downloading information; During to the software resource that is complementary with described resource downloading information, download described software when retrieval; When download is complete, controls and close described network connection.
Fig. 1 shows the realization flow of the method for downloading software that first embodiment of the invention provides, and its concrete step is as described below:
In step S101, receive the Download Info that the user inputs in default editing options, generate resource downloading information.
In embodiments of the present invention, the software that the user can provide according to the embodiment of the present invention downloads and carries out the download of network software resource, wherein, at first the user need to input Download Info in default editing options, for example " film+foundation great cause " or " game+Super Mario ", then resource downloading information of Automatic generation of information of inputting according to the user, be stored in database, and the interface that the user can provide by the embodiment of the present invention is carried out the resource downloading information editing and (is revised, delete etc.), when the user has inputted many Download Infos, this resource downloading information can be in the mode of list in described interface display.
In step S102, according to described resource downloading information, by the software resource be complementary with described resource downloading information in the mobile terminal internet retrieval software store connected.
In embodiments of the present invention, when network connects, be controlled at the software resource that in software store, retrieval and resource downloading information are complementary, for example the film information relevant to above-mentioned " foundation great cause ".
When network does not connect, following have a detailed embodiment, do not repeat them here.
In step S103, judgement in described software store whether retrieval to the software resource be complementary with described resource downloading information, be to perform step S104, otherwise end.
In step S104, when retrieval, during to the software resource that is complementary with described resource downloading information, download described software.
In embodiments of the present invention, the mode of this download software can have multiple, for example according to retrieval to priority or the safety system or put in order of software resource downloaded, at this not in order to limit the present invention.
In step S105, when download is complete, controls and close described network connection.
In embodiments of the present invention, when software, download when complete, close network and connect, save user's network charges, avoid network to connect the network security problem brought.
As one embodiment of the present of invention, pre-configured download configuration information and editing options, described download configuration information includes but not limited to the download time of resource downloading information and the information of mobile terminal-opening.
As an alternative embodiment of the invention, when described resource downloading packets of information records containing many, according to the priority of download time, downloaded.
Fig. 2 shows the realization flow of the method for downloading software that second embodiment of the invention provides, and its concrete step is as described below:
In step S201, receive the Download Info that the user inputs in default editing options, generate resource downloading information.
In embodiments of the present invention, the software that the user can provide according to the embodiment of the present invention downloads and carries out the download of network software resource, wherein, at first the user need to input Download Info in default editing options, for example " film+foundation great cause " or " game+Super Mario ", then resource downloading information of Automatic generation of information of inputting according to the user, be stored in database, and the interface that the user can provide by the embodiment of the present invention is carried out the resource downloading information editing and (is revised, delete etc.), when the user has inputted many Download Infos, this resource downloading information can be in the mode of list in described interface display.
In step S202, judge in described pre-configured download configuration information whether download time arrives, and is to perform step S203, otherwise continue to wait for.
In step S203, judge that whether mobile terminal is in open state, be to perform step S204, otherwise execution step S206.
In step S204, during in open state, judge whether the mobile terminal internet connects when described mobile terminal, be to perform step S209, otherwise execution step S205.
In step S205, when the mobile terminal internet does not connect, control described mobile terminal and internet are connected.
In step S206, during in off-mode, judge the information that whether comprises mobile terminal-opening in pre-configured download configuration information when described mobile terminal, be to perform step S207, otherwise execution step S208.
In step S207, during the information that comprises mobile terminal-opening in described pre-configured download configuration information, control described mobile terminal-opening, and continue the step of execution step S204.
In step S208, during the information that do not comprise mobile terminal-opening in described pre-configured download configuration information, control and finish the software resource down operation.
In step S209, according to described resource downloading information, by the software resource be complementary with described resource downloading information in the mobile terminal internet retrieval software store connected.
In embodiments of the present invention, when network connects, be controlled at the software resource that in software store, retrieval and resource downloading information are complementary, for example the film information relevant to above-mentioned " foundation great cause ".
When network does not connect, following have a detailed embodiment, do not repeat them here.
In step S210, judgement in described software store whether retrieval to the software resource be complementary with described resource downloading information, be to perform step S211, otherwise end.
In step S211, when retrieval, during to the software resource that is complementary with described resource downloading information, download described software.
In embodiments of the present invention, the mode of this download software can have multiple, for example according to retrieval to priority or the safety system or put in order of software resource downloaded, at this not in order to limit the present invention.
In step S212, when download is complete, controls and close described network connection.
In embodiments of the present invention, when the situation that network interrupts occurring in downloading process, can return to step S202 and continue to carry out above-mentioned flow process, not repeat them here.
Above are only one embodiment of the present of invention, at this not in order to limit the present invention.
Fig. 3 shows the structured flowchart of the software download system that first embodiment of the invention provides, for convenience of explanation, only provided the part relevant to the embodiment of the present invention in figure, wherein, software download system can be built in software unit, hardware cell or the software and hardware combining unit of mobile terminal.
Resource downloading information generating module 11 receives the Download Info that the user inputs in default editing options, generates resource downloading information;Retrieval module 12 is according to described resource downloading information, by the software resource be complementary with described resource downloading information in the mobile terminal internet retrieval software store connected; Softwareresource judge module 13 judge described retrieval module in described software store whether retrieval to the software resource be complementary with described resource downloading information; When the described retrieval module retrieval of softwareresource judge module 13 judgement during to the software resource that is complementary with described resource downloading information, the described software ofdownload module 14 download; When describeddownload module 14 is downloaded software when complete,network closing module 15 is controlled and is closed described network and connect.
In embodiments of the present invention, the pre-configured download configuration information ofpre-configured module 16 and editing options, described download configuration information comprises the download time of resource downloading information and the information of mobile terminal-opening.
Above-described embodiment is only a system embodiment of the present invention, the function of each module in system and realize not repeating them here as described in above-mentioned embodiment of the method wherein, but not in order to limit the present invention.
Fig. 4 shows the structured flowchart of the software download system that second embodiment of the invention provides, for convenience of explanation, only provided the part relevant to the embodiment of the present invention in figure, wherein, software download system can be built in software unit, hardware cell or the software and hardware combining unit of mobile terminal.
Resource downloading information generating module 11 receives the Download Info that the user inputs in default editing options, generates resource downloading information;Retrieval module 12 is according to described resource downloading information, by the software resource be complementary with described resource downloading information in the mobile terminal internet retrieval software store connected; Softwareresource judge module 13 judge described retrieval module in described software store whether retrieval to the software resource be complementary with described resource downloading information; When the described retrieval module retrieval of softwareresource judge module 13 judgement during to the software resource that is complementary with described resource downloading information, the described software ofdownload module 14 download; When describeddownload module 14 is downloaded software when complete,network closing module 15 is controlled and is closed described network and connect.
In embodiments of the present invention, the pre-configured download configuration information ofpre-configured module 16 and editing options, described download configuration information comprises the download time of resource downloading information and the information of mobile terminal-opening.
In embodiments of the present invention, network connection judgment module 17 judges whether the mobile terminal internet connects; When described network connection judgment module 17 judgement mobile terminal internet do not connect, the network connection is set upmodule 18 controls described mobile terminal and internet is connected; When network connection judgment module 17 judgement described mobile terminal internet have connected, describedretrieval module 12 is according to described resource downloading information, by the software resource be complementary with described resource downloading information in the mobile terminal internet retrieval software store connected.
In embodiments of the present invention, openstate judge module 19 judges that whether mobile terminal is in open state; When described openstate judge module 19 judges mobile terminals in off-mode, boot-strapinformation judge module 20 judges the information that whether comprises mobile terminal-opening in pre-configured download configuration information; When described boot-strapinformation judge module 20 judges the information that comprises mobile terminal-opening in pre-configured download configuration information, startingmodule 21 is controlled described mobile terminal-opening; When described boot-strapinformation judge module 20 judges the information that does not comprise mobile terminal-opening in pre-configured download configuration information, 22 of finishing control modules are controlled and are finished the software resource down operations; When described openstate judge module 19 judges mobile terminals in open state, described network connection judgment module 17 judges whether the mobile terminal internet connects.
In embodiments of the present invention, judge module 23 judges in described pre-configured download configuration information whether download time arrives download time; When download time does not arrive in the pre-configured download configuration information of described download time judge module 23 judgements, wait for thatmodule 24 continues the time of waiting for downloads; When in the pre-configured download configuration information of described download time judge module 23 judgements, download time arrives, described openstate judge module 19 judges that whether mobile terminal is in open state.
Above-described embodiment is only a system embodiment of the present invention, the function of each module in system and realize not repeating them here as described in above-mentioned embodiment of the method wherein, but not in order to limit the present invention.
In embodiments of the present invention, receive the Download Info that the user inputs in default editing options, generate resource downloading information; According to described resource downloading information, by the software resource be complementary with described resource downloading information in the mobile terminal internet retrieval software store connected; Judgement in described software store whether retrieval to the software resource be complementary with described resource downloading information; During to the software resource that is complementary with described resource downloading information, download described software when retrieval; When download is complete, control and close described network connection, it is convenient that the user downloads software operation, solved network and connected the network security problem brought to mobile terminal.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be in being stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.