CN103905470B - A kind of resource downloading method, device and mobile terminal - Google Patents
A kind of resource downloading method, device and mobile terminal Download PDFInfo
- Publication number
- CN103905470B CN103905470B CN201210567708.6A CN201210567708A CN103905470B CN 103905470 B CN103905470 B CN 103905470B CN 201210567708 A CN201210567708 A CN 201210567708A CN 103905470 B CN103905470 B CN 103905470B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- network switching
- resource
- download
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the present invention, which provides a kind of resource downloading method, device and mobile terminal, method therein, may include:If the resource downloading process in mobile terminal is interrupted, judge whether the mobile terminal occurs network switching;If network switching occurs for the mobile terminal, set and download delay time;After detecting that the network switching is stablized, and when reaching the download delay time, continue the resource downloading process in the mobile terminal.The present invention can determine whether the network switching process of mobile terminal, and can continue the resource downloading process interrupted due to network switching after network switching stabilization, ensure the continuation and stability of the resource downloading process in mobile terminal, promote the use viscosity of user.
Description
Technical field
The present invention relates to a kind of a kind of Internet technical field more particularly to resource downloading method, device and mobile terminals.
Background technology
When network switching occurs for mobile terminal, such as:Mobile terminal is from wifi(Wireless Fidelity, it is wireless to protect
Very)Connection switches to mobile network's connection or switches to wifi connections etc., the original in mobile terminal from mobile network's connection
There is network connection to be disconnected, the resource downloading process in mobile terminal can be interrupted due to network switching.It is existing common
Means are:After the legacy network connection of mobile terminal disconnects, carry out the connection that retries several times, it is all retry connection failure after
Confirm the network connection failure of the mobile terminal, export prompt message in the terminal.Since the network of mobile terminal is cut
Change be a time-continuing process, it is necessary to which the regular hour can just settle out, mobile terminal can undergo multiple network in this period
The fluctuation being connected and disconnected from retries connection means using existing, may will be moved due to repeatedly retrying the failure of connection
The proper network switching of terminal is mistaken for network connection failure, so as to influence the continuation of the resource downloading process in mobile terminal
And stability, the usage experience of user is influenced, reduces the use viscosity of user.
The content of the invention
The embodiment of the present invention provides a kind of resource downloading method, device and mobile terminal, can determine whether the network of mobile terminal
Handoff procedure, and can continue the resource downloading process interrupted due to network switching after network switching stabilization, ensure movement
The continuation and stability of resource downloading process in terminal promote the use viscosity of user.
First aspect present invention provides a kind of resource downloading method, it may include:
If the resource downloading process in mobile terminal is interrupted, judge whether the mobile terminal occurs network switching;
If network switching occurs for the mobile terminal, set and download delay time;
After detecting that the network switching is stablized, and when reaching the download delay time, continue the mobile terminal
In resource downloading process.
Second aspect of the present invention provides a kind of resource downloading device, it may include:
Switching judging module if the resource downloading process in mobile terminal is interrupted, judges the mobile terminal
Whether network switching is occurred;
Be delayed setup module, for if it is determined that network switching occurs for the mobile terminal, delay time to be downloaded in setting;
Detection module, for detecting whether the network switching of the mobile terminal is stablized;
Download module for after detecting that the network switching is stablized, and when reaching the download delay time, continues
Resource downloading process in the mobile terminal.
Third aspect present invention provides a kind of mobile terminal, it may include the resource downloading device of above-mentioned second aspect.
Implement the embodiment of the present invention, have the advantages that:
The embodiment of the present invention can determine whether the network switching process of mobile terminal, when confirming the resource downloading mistake in mobile terminal
Journey because network switching interrupt when, set download delay time, after network switching stabilization after and reach download delay time when,
Continue the resource downloading process interrupted due to network switching, so as to ensure continuing for the resource downloading process in mobile terminal
Property and stability, improve the usage experience of user, while improve the use viscosity of user.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow chart of resource downloading method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another resource downloading method provided in an embodiment of the present invention;
Fig. 3 is a kind of structure diagram of resource downloading device provided in an embodiment of the present invention;
Fig. 4 is the structure diagram of another resource downloading device provided in an embodiment of the present invention;
Fig. 5 is the structure diagram of switching judging module provided in an embodiment of the present invention;
Fig. 6 is the structure diagram of detection module provided in an embodiment of the present invention;
Fig. 7 is the structure diagram of download module provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment belongs to the scope of protection of the invention.
In the embodiment of the present invention, mobile terminal includes but not limited to:Tablet computer, mobile phone, smart mobile phone, electronic reading
Any one of terminal devices such as device, laptop.
Below in conjunction with attached drawing 1- attached drawings 2, describe in detail to resource downloading method provided in an embodiment of the present invention.
Fig. 1 is referred to, is a kind of flow chart of resource downloading method provided in an embodiment of the present invention;This method may include with
Lower step S101- steps S103.
S101 if the resource downloading process in mobile terminal is interrupted, judges whether the mobile terminal occurs network
Switching;
Wherein, resource may include:Picture resource file, textual resources file, audio and video resources file, software resource file
Etc..The interruption source of resource downloading process in mobile terminal can include but is not limited to any one of following reason or more
Kind:
1)The resource downloading process of user's manual interruption mobile terminal, such as:User suspends the money in mobile terminal manually
Source downloading process, alternatively, user stops the resource downloading process in mobile terminal manually;Interrupt caused by such reason need by
User continues to move to the resource downloading process in terminal manually.
2)Network connection failure in mobile terminal, such as:Original network connection disconnects in mobile terminal, can not connect again
Any network is connected to, then causes the resource downloading process interrupt in mobile terminal;Being interrupted caused by such reason needs movement eventually
After end again connects to network, the resource downloading process of terminal can be just continued to move to.
3)Network switching occurs for mobile terminal, such as:Mobile terminal from original mobile network switch to Wifi networks or
Person, the original Wifi network switchings of mobile terminal to mobile network.In network switching process, original mobile network disconnects, and makes
Obtain the resource downloading process interrupt in mobile terminal.Since network switching needs the regular hour that could stablize, in order to ensure to move
The continuity of resource downloading process in dynamic terminal, the embodiment of the present invention focus on processing and are moved for caused by such reason
The disruption of resource downloading process in terminal, ensure network switching stablize after in mobile terminal resource lasting download.
In the case that the resource downloading process of this step in the terminal is interrupted, judge the interruption whether due to moving
Dynamic terminal occurs caused by network switching;If it is determined that network switching does not occur for mobile terminal, show the money in mobile terminal
The interruption of source downloading process is not caused by network switching, and the present embodiment does not make any processing then;If it is determined that mobile terminal is sent out
Raw network switching, then show that the interruption of the resource downloading process in mobile terminal is caused by network switching, then perform subsequent place
Manage flow.
S102 if network switching occurs for the mobile terminal, sets and downloads delay time;
Wherein, downloading delay time can be set according to actual needs, and the setting needs of the download delay time are examined
Consider the time needed for network switching, it is preferable that the value for downloading delay time should be more than the time needed for network switching, to protect
For card when download delay time arrival continues to execute the resource downloading process in mobile terminal, mobile terminal has completed network switching
Process, network switching are in stable state.
S103 after detecting that the network switching is stablized, and when reaching the download delay time, continues the movement
Resource downloading process in terminal.
Wherein, detect that the network switching is stablized, then show that the mobile terminal has completed network switching process, it is mobile
The current network of terminal can provide relatively stable download connection.In this step, after detecting that the network switching is stablized, and reach
During the download delay time, continue the resource downloading process in the mobile terminal, to ensure the resource in mobile terminal
It is lasting to download.
It should be noted that above-mentioned processing procedure can be in the running background of mobile terminal so that the user of mobile terminal without
From the interruption of caused by the network switching resource downloading process of perception, also have no way of perceiving the resource after network switching stabilization and hold
It is continuous to download, so as to promote the usage experience of user.
The embodiment of the present invention can determine whether the network switching process of mobile terminal, when confirming the resource downloading mistake in mobile terminal
Journey because network switching interrupt when, set download delay time, after network switching stabilization after and reach download delay time when,
Continue the resource downloading process interrupted due to network switching, so as to ensure continuing for the resource downloading process in mobile terminal
Property and stability, improve the usage experience of user, while improve the use viscosity of user.
Fig. 2 is referred to, for the flow chart of another resource downloading method provided in an embodiment of the present invention;This method may include
Following steps S201- steps S209.
S201 if the resource downloading process in mobile terminal is interrupted, monitors the systematic difference of the mobile terminal
Program Interfaces api interface;
Wherein, the system of mobile terminal refers to the operating system of mobile terminal, includes but not limited to:Android(Android)System
System, Symbian(Saipan)System, IOS(A kind of operating system of mobile terminal)System, etc..With the movement of android system
Exemplified by terminal, when mobile terminal carries out network switching, the system of mobile terminal can send network switching broadcast message, the network
Switching broadcast message includes but not limited to any one of following message:It connects the broadcast message of mobile network, disconnect mobile network
The broadcast message of network, the broadcast message for connecting Wifi and the broadcast message for disconnecting Wifi.It should be noted that when mobile terminal is sent out
During raw network switching, there may be difference, the systems of same type for the network switching broadcast message that different types of system is sent
But the network switching that different firmware versions are sent, which broadcasts the message, is also likely to be present difference, but it is determined that, when network switching is steady
After fixed, the system of mobile terminal will not send network switching broadcast message again.It, can be by monitoring mobile terminal in this step
API(Application Programming Interface, application programming interface)Interface is sent with monitoring system
Network switching broadcasts the message.
S202 judges whether to receive network switching broadcast message from the api interface;
In this step, oracle listener can be used and judge whether to receive network switching from the api interface of the mobile terminal
Broadcast message, specifically, oracle listener is registered in the system of the mobile terminal, and prison is stated in oracle listener
Listen the network switching broadcast message that the system of the mobile terminal is sent.When network switching occurs for mobile terminal, system is meeting
Network switching is returned to by api interface to oracle listener to broadcast the message.Wherein, oracle listener can represent as follows:
By above-mentioned oracle listener, if receiving network switching broadcast message, that is, show that net has occurred in mobile terminal
Network switches;If not receiving network switching broadcast message, that is, show that network switching does not occur for mobile terminal.
S203 if receiving the network switching broadcast message, confirms that network switching occurs for the mobile terminal;
S204, to occurring to download the resource interrupted setting breakpoint mark in the mobile terminal.
Wherein, resource is identified equipped with breakpoint, shows that the resource is interrupted because the network switching of mobile terminal occurs to download.Breakpoint
It identifies to distinguish because network switching occurs to download the resource of interruption and because other reasons occur to download the resource interrupted.It is specific real
In existing, breakpoint mark can be timestamp label.
S205 sets and downloads delay time;
Wherein, downloading delay time can be set according to actual needs, and the setting needs of the download delay time are examined
Consider the time needed for network switching, it is preferable that the value for downloading delay time should be more than the time needed for network switching, to protect
For card when download delay time arrival continues to execute the resource downloading process in mobile terminal, mobile terminal has completed network switching
Process, network switching are in stable state.In this step, downloading the setting of delay time can be by call mobile terminal
Function of uniting is realized, by taking the mobile terminal of android system as an example, is received network switching broadcast message every time, then can be called and be
The Handler functions of system issue a download delayed tasks to the system of mobile terminal, indicate to download in the download delayed tasks
Delay time, and the download delayed tasks being also not carried out are removed simultaneously, it is mobile whole to ensure after network switching is stablized
End is only performed once download delayed tasks, and mobile terminal is avoided to repeat same task.It is mobile whole after network switching is stablized
The system at end then can according to perform the download delayed tasks, indicated in downloading delayed tasks download delay time arrival when,
Continue to move to the resource downloading process in terminal.
Whether S206 detecting from receive the network switching broadcast message at the time of, receives again in preset time
It broadcasts the message to the network switching;
Wherein, preset time can be set according to actual needs, and the setting of the preset time needs to consider that network is cut
Change the required time, it is preferable that the value of preset time should be more than the time needed for network switching, such as:Network switching institute
The time needed is usually 2-3s, then can set preset time as 4s, if receiving the network switching broadcast message from last time
At the time of from, do not received again in 4s network switching broadcast message, that is, show that network switching has been stablized.
S207 if not receiving the network switching broadcast message in the preset time again, confirms the network
Switching is stablized;
S208, the network switching stabilization after, and reach it is described download delay time when, read in the mobile terminal
Resource equipped with breakpoint mark;
S209 continues to download the resource equipped with breakpoint mark in the mobile terminal.
In step S208-S209, the resource that breakpoint mark is equipped in mobile terminal is read, that is, is read in mobile terminal because of net
Network switches and generates the resource downloaded and interrupted, and continues to download the resource for being equipped with breakpoint mark of the reading, so that the money interrupted
Source carries out breakpoint download, ensures the continuation of the resource downloading.
The embodiment of the present invention can determine whether the network switching process of mobile terminal, when confirming the resource downloading mistake in mobile terminal
Journey because network switching interrupt when, set download delay time, after network switching stabilization after and reach download delay time when,
Continue the resource downloading process interrupted due to network switching, so as to ensure continuing for the resource downloading process in mobile terminal
Property and stability, improve the usage experience of user, while improve the use viscosity of user.
Below in conjunction with attached drawing 3- attached drawings 7, describe in detail to resource downloading device provided in an embodiment of the present invention.It needs
It is noted that following resource downloading devices can be the application program being installed in mobile terminal, and following devices can
Applied in the above method.
Fig. 3 is referred to, is a kind of structure diagram of resource downloading device provided in an embodiment of the present invention;The device can wrap
It includes:Switching judging module 101, delay setup module 102, detection module 103 and download module 104.
Switching judging module 101 if the resource downloading process in mobile terminal is interrupted, judges described mobile whole
Whether end occurs network switching;
Wherein, resource may include:Picture resource file, textual resources file, audio and video resources file, software resource file
Etc..The interruption source of resource downloading process in mobile terminal can include but is not limited to any one of following reason or more
Kind:
1)The resource downloading process of user's manual interruption mobile terminal, such as:User suspends the money in mobile terminal manually
Source downloading process, alternatively, user stops the resource downloading process in mobile terminal manually;Interrupt caused by such reason need by
User continues to move to the resource downloading process in terminal manually.
2)Network connection failure in mobile terminal, such as:Original network connection disconnects in mobile terminal, can not connect again
Any network is connected to, then causes the resource downloading process interrupt in mobile terminal;Being interrupted caused by such reason needs movement eventually
After end again connects to network, the resource downloading process of terminal can be just continued to move to.
3)Network switching occurs for mobile terminal, such as:Mobile terminal from original mobile network switch to Wifi networks or
Person, the original Wifi network switchings of mobile terminal to mobile network.In network switching process, original mobile network disconnects, and makes
Obtain the resource downloading process interrupt in mobile terminal.Since network switching needs the regular hour that could stablize, in order to ensure to move
The continuity of resource downloading process in dynamic terminal, the embodiment of the present invention focus on processing and are moved for caused by such reason
The disruption of resource downloading process in terminal, ensure network switching stablize after in mobile terminal resource lasting download.
In the case that the resource downloading process of the switching judging module 101 in the terminal is interrupted, judging should
It interrupts whether caused by network switching occurs for mobile terminal;If it is determined that network switching does not occur for mobile terminal, show
The interruption of resource downloading process in mobile terminal is not caused by network switching, and resource downloading device does not make any processing then;
If it is determined that network switching occurs for mobile terminal, then show that the interruption of the resource downloading process in mobile terminal is drawn by network switching
It rises, resource downloading device then performs subsequent processing procedure.
Be delayed setup module 102, for if it is determined that network switching occurs for the mobile terminal, when setting download delay
Between;
Wherein, downloading delay time can be set according to actual needs, and the setting needs of the download delay time are examined
Consider the time needed for network switching, it is preferable that the value for downloading delay time should be more than the time needed for network switching, to protect
For card when download delay time arrival continues to execute the resource downloading process in mobile terminal, mobile terminal has completed network switching
Process, network switching are in stable state.
Detection module 103, for detecting whether the network switching of the mobile terminal is stablized;Wherein, the detection module
103 detect that the network switching is stablized, then show that the mobile terminal has completed network switching process, mobile terminal it is current
Network can provide relatively stable download connection.
Download module 104, for after detecting that the network switching is stablized, and when reaching the download delay time,
Continue the resource downloading process in the mobile terminal.
It should be noted that the processing procedure of each module can be after mobile terminal in the resource downloading device of the present embodiment
Platform run so that the user of mobile terminal have no way of perceive the resource downloading process caused by network switching interruption, also have no way of
The lasting download of the resource after network switching stabilization is perceived, so as to promote the usage experience of user.
The embodiment of the present invention can determine whether the network switching process of mobile terminal, when confirming the resource downloading mistake in mobile terminal
Journey because network switching interrupt when, set download delay time, after network switching stabilization after and reach download delay time when,
Continue the resource downloading process interrupted due to network switching, so as to ensure continuing for the resource downloading process in mobile terminal
Property and stability, improve the usage experience of user, while improve the use viscosity of user.
Fig. 4 is referred to, for the structure diagram of another resource downloading device provided in an embodiment of the present invention;The device can
Including:Switching judging module 101, delay setup module 102, detection module 103, download module 104 and identify and arrange module
105.Wherein, the structure of switching judging module 101, delay setup module 102, detection module 103 and download module 104 can be found in
The associated description of embodiment illustrated in fig. 3, this will not be repeated here.
Identify and arrange module 105, for occurring to download the resource interrupted setting breakpoint mark in the mobile terminal.
Wherein, resource is identified equipped with breakpoint, shows that the resource is interrupted because the network switching of mobile terminal occurs to download.Breakpoint
It identifies to distinguish because network switching occurs to download the resource of interruption and because other reasons occur to download the resource interrupted.It is specific real
In existing, breakpoint mark can be timestamp label.
The embodiment of the present invention can determine whether the network switching process of mobile terminal, when confirming the resource downloading mistake in mobile terminal
Journey because network switching interrupt when, set download delay time, after network switching stabilization after and reach download delay time when,
Continue the resource downloading process interrupted due to network switching, so as to ensure continuing for the resource downloading process in mobile terminal
Property and stability, improve the usage experience of user, while improve the use viscosity of user.
It will describe in detail below to each module of the resource downloading device of the embodiment of the present invention.
Fig. 5 is referred to, is the structure diagram of switching judging module provided in an embodiment of the present invention;The switching judging module
101 may include:Monitoring unit 1101, judging unit 1102 and judging result confirmation unit 1103.
Monitoring unit 1101, for the api interface of the system of the mobile terminal;
Wherein, the system of mobile terminal refers to the operating system of mobile terminal, includes but not limited to:Android system,
Symbian system, IOS systems, etc..By taking the mobile terminal of android system as an example, when mobile terminal carries out network switching
When, the system of mobile terminal can send network switching broadcast message, and network switching broadcast message includes but not limited to following disappear
Any one of breath:The broadcast message for connecting mobile network, the broadcast message, the broadcast message of connection Wifi that disconnect mobile network
With the broadcast message for disconnecting Wifi.It should be noted that when network switching occurs for mobile terminal, different types of system is sent
Network switching broadcast message there may be difference, network switching broadcast that the system of same type but different firmware versions are sent
Message is also likely to be present difference, but it is determined that, after network switching is stablized, the system of mobile terminal will not send net again
Network switching broadcast message.The monitoring unit 1101 is by monitoring the api interface of mobile terminal, the network sent with monitoring system
Switching broadcast message.
Judging unit 1102, for judging whether to receive network switching broadcast message from the api interface;
The judging unit 1102 can be used oracle listener and judge whether to receive net from the api interface of the mobile terminal
Network switching broadcast message, specifically, oracle listener is registered in the system of the mobile terminal, and in oracle listener
The network switching broadcast message that the system that the mobile terminal is monitored in statement is sent.When network switching occurs for mobile terminal, it is
System can return to network switching to oracle listener by api interface and broadcast the message.
Judging result confirmation unit 1103, for if it is determined that the network switching broadcast message is received, described in confirmation
Network switching occurs for mobile terminal.
If receiving network switching broadcast message, the judging result confirmation unit 1103 confirms that mobile terminal has occurred
Network switching;If it is understood that not receiving network switching broadcast message, the judging result confirmation unit 1103 is true
Recognize mobile terminal and network switching does not occur.
Fig. 6 is referred to, is the structure diagram of detection module provided in an embodiment of the present invention;The detection module 103 can wrap
It includes:Detection unit 1301 and testing result confirmation unit 1302.
Detection unit 1301, for detecting from receive the network switching broadcast message at the time of, in preset time
Whether the network switching broadcast message is received again;
Wherein, preset time can be set according to actual needs, and the setting of the preset time needs to consider that network is cut
Change the required time, it is preferable that the value of preset time should be more than the time needed for network switching, such as:Network switching institute
The time needed is usually 2-3s, then preset time can be set to be received for 4s if the detection unit 1301 is detected from last time
It does not receive network switching broadcast message from the time of broadcast message to the network switching, in 4s again, that is, shows network switching
Stablize.
Testing result confirmation unit 1302, if for detecting that not receiving the network in the preset time again cuts
Broadcast message is changed, then confirms that the network switching is stablized.If it is connect again in the preset time it is understood that detecting
The network switching broadcast message is received, the testing result confirmation unit 1302 then confirms that the network switching is also not up to steady
It is fixed.
Fig. 7 is referred to, is the structure diagram of download module provided in an embodiment of the present invention;The download module 104 can wrap
It includes:Reading unit 1401 and download unit 1402.
Reading unit 1401, for after detecting that the network switching is stablized, and when reaching the download delay time,
Read the resource that breakpoint mark is equipped in the mobile terminal;
Download unit 1402, for continuing to download the resource equipped with breakpoint mark in the mobile terminal.
In the present embodiment, the reading unit 1401 reads the resource that breakpoint mark is equipped in mobile terminal, that is, reads and move
Generate the resource downloaded and interrupted in dynamic terminal due to network switching, the download unit 1402 continues to download being equipped with for the reading disconnected
The resource of point identification so that the resource interrupted carries out breakpoint download, ensures the continuation of the resource downloading.
It should be noted that the 26S Proteasome Structure and Function of the resource downloading device of the embodiment of the present invention can be implemented according to the above method
Method specific implementation in example, the specific implementation process can be found in the associated description in above method embodiment, and this will not be repeated here.
The embodiment of the present invention can determine whether the network switching process of mobile terminal, when confirming the resource downloading mistake in mobile terminal
Journey because network switching interrupt when, set download delay time, after network switching stabilization after and reach download delay time when,
Continue the resource downloading process interrupted due to network switching, so as to ensure continuing for the resource downloading process in mobile terminal
Property and stability, improve the usage experience of user, while improve the use viscosity of user.
The embodiment of the invention also discloses a kind of mobile terminal, which may include resource downloading device, the resource
The structure of download apparatus can be found in the associated description of above-mentioned Fig. 3-embodiment illustrated in fig. 7, and this will not be repeated here.It should be noted that
The mobile terminal of the present embodiment can be applied in above-mentioned method.
The embodiment of the present invention can determine whether the network switching process of mobile terminal, when confirming the resource downloading mistake in mobile terminal
Journey because network switching interrupt when, set download delay time, after network switching stabilization after and reach download delay time when,
Continue the resource downloading process interrupted due to network switching, so as to ensure continuing for the resource downloading process in mobile terminal
Property and stability, improve the usage experience of user, while improve the use viscosity of user.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access
Memory, RAM)Deng.
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent variations made according to the claims of the present invention, it is still within the scope of the present invention.
Claims (10)
1. a kind of resource downloading method, which is characterized in that including:
If the resource downloading process in mobile terminal is interrupted, judge whether the mobile terminal occurs network switching;
If network switching occurs for the mobile terminal, to occurring to download the resource interrupted setting breakpoint mark in the mobile terminal
Know, the breakpoint mark shows that the resource is interrupted because the network switching of the mobile terminal occurs to download, the breakpoint mark
To distinguish because network switching occurs to download the resource of interruption and because other reasons occur to download the resource interrupted;
It sets and downloads delay time, the value for downloading delay time is more than the time needed for network switching, to ensure instantly
Mobile terminal has completed network switching process when carrying delay time arrival and network switching is in stable state;
After detecting that the network switching is stablized, and when reaching the download delay time, continue in the mobile terminal
Resource downloading process.
2. the method as described in claim 1, which is characterized in that it is described to judge whether the mobile terminal occurs network switching,
Including:
The systematic difference Program Interfaces api interface of the mobile terminal is monitored, judges whether to receive from the api interface
It broadcasts the message to network switching;
If receiving the network switching broadcast message, confirm that network switching occurs for the mobile terminal.
3. method as claimed in claim 2, which is characterized in that detect whether the network switching is stablized, including:
Whether detection is from receive the network switching broadcast message at the time of, the network is received again in preset time
Switching broadcast message;
If not receiving the network switching broadcast message in the preset time again, confirm that the network switching is stablized.
4. the method as described in claim 1, which is characterized in that it is described after detecting that the network switching is stablized, and reach
During the download delay time, continue the resource downloading process in the mobile terminal, including:
After detecting that the network switching is stablized, and when reaching the download delay time, read in the mobile terminal and set
There is the resource that breakpoint identifies;
Continue to download the resource equipped with breakpoint mark in the mobile terminal.
5. such as claim 2-4 any one of them methods, which is characterized in that the network switching broadcast message includes following wide
Broadcast any one of message:The broadcast message for connecting mobile network, the broadcast message, the connection Wireless Fidelity that disconnect mobile network
The broadcast message of Wifi and the broadcast message for disconnecting Wifi.
6. a kind of resource downloading device, which is characterized in that including:
Whether switching judging module if the resource downloading process in mobile terminal is interrupted, judges the mobile terminal
Generation network switching;
Identify and arrange module, for if it is determined that network switching occurs for the mobile terminal, under occurring in the mobile terminal
Carrying the resource interrupted sets breakpoint to identify, and the breakpoint mark shows that the resource occurs because of the network switching of the mobile terminal
Download and interrupt, breakpoint mark to distinguish because network switching occur to download the resource interrupted with because other reasons are downloaded
The resource of interruption;
Be delayed setup module, if network switching occurs for the mobile terminal, sets and downloads delay time, the download is prolonged
When the time value be more than network switching needed for time, with ensure when download delay time reach when mobile terminal completed net
Network handoff procedure and network switching is in stable state;
Detection module, for detecting whether the network switching of the mobile terminal is stablized;
Download module, for after detecting that the network switching is stablized, and when reaching the download delay time, described in continuation
Resource downloading process in mobile terminal.
7. device as claimed in claim 6, which is characterized in that the switching judging module includes:
Monitoring unit, for the api interface of the system of the mobile terminal;
Judging unit, for judging whether to receive network switching broadcast message from the api interface;
Judging result confirmation unit for broadcasting the message if it is determined that receiving the network switching, confirms the mobile terminal
Generation network switching.
8. device as claimed in claim 7, which is characterized in that the detection module includes:
Detection unit, for detecting from receive the network switching broadcast message at the time of, in preset time whether again
Receive the network switching broadcast message;
Testing result confirmation unit, if for detecting that not receiving the network switching broadcast in the preset time again disappears
Breath then confirms that the network switching is stablized.
9. device as claimed in claim 6, which is characterized in that the download module includes:
Reading unit, for after detecting that the network switching is stablized, and when reaching the download delay time, described in reading
The resource of breakpoint mark is equipped in mobile terminal;
Download unit, for continuing to download the resource equipped with breakpoint mark in the mobile terminal.
10. a kind of mobile terminal, which is characterized in that including:Such as claim 6-9 any one of them resource downloading devices.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210567708.6A CN103905470B (en) | 2012-12-24 | 2012-12-24 | A kind of resource downloading method, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210567708.6A CN103905470B (en) | 2012-12-24 | 2012-12-24 | A kind of resource downloading method, device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103905470A CN103905470A (en) | 2014-07-02 |
CN103905470B true CN103905470B (en) | 2018-05-25 |
Family
ID=50996624
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210567708.6A Active CN103905470B (en) | 2012-12-24 | 2012-12-24 | A kind of resource downloading method, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103905470B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105813143B (en) * | 2014-12-29 | 2019-11-29 | 北京新媒传信科技有限公司 | A kind of method and apparatus for supporting application program network switching |
CN106302711A (en) * | 2016-08-12 | 2017-01-04 | 乐视控股(北京)有限公司 | A kind of data download processing method and device |
CN109379769A (en) * | 2018-03-23 | 2019-02-22 | 上海连尚网络科技有限公司 | A kind of data transmission method, equipment and computer readable storage medium |
CN115707357A (en) * | 2021-06-10 | 2023-02-17 | 北京小米移动软件有限公司 | Model data management method, model data management device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101401391A (en) * | 2006-03-09 | 2009-04-01 | 索尼爱立信移动通讯有限公司 | Auto continuation/discontinuation of data download and upload when entering/leaving a network |
CN101998570A (en) * | 2010-11-15 | 2011-03-30 | 中兴通讯股份有限公司 | Network switching method and system |
CN102035858A (en) * | 2009-09-27 | 2011-04-27 | 华为技术有限公司 | Method and device for controlling file breakpoint continuous transmission |
CN102711093A (en) * | 2012-04-18 | 2012-10-03 | 奇智软件(北京)有限公司 | Method and device for downloading mobile terminal data |
-
2012
- 2012-12-24 CN CN201210567708.6A patent/CN103905470B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101401391A (en) * | 2006-03-09 | 2009-04-01 | 索尼爱立信移动通讯有限公司 | Auto continuation/discontinuation of data download and upload when entering/leaving a network |
CN102035858A (en) * | 2009-09-27 | 2011-04-27 | 华为技术有限公司 | Method and device for controlling file breakpoint continuous transmission |
CN101998570A (en) * | 2010-11-15 | 2011-03-30 | 中兴通讯股份有限公司 | Network switching method and system |
CN102711093A (en) * | 2012-04-18 | 2012-10-03 | 奇智软件(北京)有限公司 | Method and device for downloading mobile terminal data |
Also Published As
Publication number | Publication date |
---|---|
CN103905470A (en) | 2014-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110659046B (en) | Firmware upgrading method, terminal, charging box, earphone and storage medium | |
CN103905470B (en) | A kind of resource downloading method, device and mobile terminal | |
CN105487966B (en) | Program testing method, device and system | |
KR101885317B1 (en) | A mobile terminal for maintaining a virtual SIM card, a maintenance server, and a method and apparatus | |
CN105260273B (en) | A kind of test method and device of intelligent electronic device | |
CN108184247B (en) | Communication method, communication device, communication equipment and readable storage medium | |
CN105491635A (en) | Wireless device matching method, device and system | |
CN110830823B (en) | Play progress correction method and device, electronic equipment and readable storage medium | |
JP7010521B2 (en) | Cell selection methods and terminals, as well as programs and computer-readable storage media | |
CN103838648A (en) | Terminal and data backup method | |
CN106997302A (en) | Firmware upgrade method, device and audio-frequence player device | |
CN109376062B (en) | Network state prompting method and related device | |
CN104168385A (en) | Double card switchover method and device | |
CN104750237A (en) | Multi-screen interactive connection method and device as well as electronic equipment | |
WO2014153912A1 (en) | Method and device for displaying and processing application name of multimode card of mobile terminal | |
CN112817883A (en) | Method, device and system for adapting interface platform and computer readable storage medium | |
CN103618829A (en) | System and method for timing starting of FM radio on basis of mobile phone alarm | |
CN113613239B (en) | Network mode switching method, network mode switching device, medium, and electronic device | |
CN105573946A (en) | Universal serial bus interface sharing method and device | |
CN109426240B (en) | Test method and device | |
CN113573345B (en) | Fault signal processing method and device | |
CN113013992B (en) | Method and device for monitoring functions of information-protecting master station | |
CN105163335B (en) | A kind of network access management method, server, mobile terminal and system | |
CN113079500B (en) | Terminal activation method and device, storage medium and electronic equipment | |
CN102572099B (en) | Status query time interval determination method, device and system for mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |