The content of the invention
The technical problem to be solved in the present invention is, for the drawbacks described above of prior art, there is provided a kind of mobile terminal
Network connection processing method, storage device and mobile terminal, it is intended to solve mobile terminal can not be according to user in the prior art
Actual demand the problem of actively carrying out network connection communication and causing energy charge.
The technical proposal for solving the technical problem of the invention is as follows:
The network connection processing method of mobile terminal, it includes:
When mobile terminal is in default Active Networks connection mode, detect whether networking trigger event be present;
If in the presence of according to the corresponding relation acquisition between default networking trigger event title and the network name for connecting network
The network name corresponding with the title of the networking trigger event and the enabled network;
When being carried out data transmission in detection preset time without networking trigger event using the network, then forbidden energy network.
The network connection processing method of the mobile terminal, wherein, when mobile terminal is in the connection of default Active Networks
During pattern, the connection of forbidden energy all-network.
The network connection processing method of the mobile terminal, wherein, the networking trigger event title is with being connected network
Corresponding relation between network name is:The corresponding one or more networking trigger events of one network name, and any one net
Networking trigger event corresponding to network title does not repeat with the networking trigger event corresponding to other network names.
The network connection processing method of the mobile terminal, wherein, without networking triggering thing in the detection preset time
When part is carried out data transmission using the network, then the forbidden energy network specifically includes:
Pre-establish and the one-to-one registration form of network name;
According to the corresponding relation between the networking trigger event title and the network name for connecting network, the networking that will be detected
The title of trigger event recorded in corresponding registration form;
Do not carry out data transmission with networking trigger event all in the registration form corresponding to the network name in preset time
When, the forbidden energy network.
The network connection processing method of the mobile terminal, wherein, the preset time is 5s.
The network connection processing method of the mobile terminal, wherein, without networking triggering thing in the detection preset time
When part is carried out data transmission using the network, then also include after the forbidden energy network:
The title of the networking trigger event in the registration form is deleted.
The network connection processing method of the mobile terminal, wherein, it is described when mobile terminal is in default Active Networks
During connection mode, detect whether also to include before networking trigger event being present:
Pre-set the setting menu for opening and closing Active Networks connection mode.
The network connection processing method of the mobile terminal, wherein, it is described when mobile terminal is in default Active Networks
During connection mode, detect whether also to include before networking trigger event being present:
The period is pre-set, when current time was in the period, automatically turns on the Active Networks connection mode.
A kind of storage device, wherein, the storage device is stored with computer program, and the computer program is able to carry out
To realize the network connection processing method of as above mobile terminal described in any one.
A kind of mobile terminal, it includes:Central processing unit, the storage device being connected with the central processing unit, it is described to deposit
Storage equipment is stored with computer program, and as above any one institute is realized when the computer program is performed by the central processing unit
State the network connection processing method of mobile terminal;
The central processing unit is used to call the computer program in the storage device, to perform shifting described in above-mentioned any one
The network connection processing method of dynamic terminal.
Beneficial effect:In the present invention, when mobile terminal is in default Active Networks connection mode, detect whether exist
Networking trigger event;If in the presence of according to pair between default networking trigger event title and the network name for connecting network
Answer the Relation acquisition network name corresponding with the title of the networking trigger event and enable the network;Detect in preset time
When trigger event of not networking is carried out data transmission using the network, then the forbidden energy network, makes mobile terminal need to use net
Corresponding network, energy monitoring network data, the network corresponding to forbidden energy when reaching preparatory condition, so as to reduce actively are enabled during network
Network is activated spent energy always, increases new function for mobile terminal.
Embodiment
Network connection processing method, storage device and the mobile terminal of mobile terminal provided by the invention, to make the present invention
Object, technical solution and advantage it is clearer, clear and definite, the embodiment that develops simultaneously referring to the drawings to the present invention further specifically
It is bright.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Below in conjunction with the accompanying drawings, by the description to embodiment, the content of the invention is described further.
The invention provides network connection processing method, storage device and the mobile terminal of a kind of mobile terminal,.Such as Fig. 1
Shown, the network connection processing method of the mobile terminal comprises the following steps:
S100, when mobile terminal is in default Active Networks connection mode, detect whether exist networking trigger event.
The network connection processing method of mobile terminal of the present invention can run on any with storage and communication function
Mobile terminal, such as tablet personal computer, mobile phone, electronic reader, remote control, personal computer (Personal Computer,
PC), notebook computer, mobile unit, Web TV, wearable device etc..
After detecting that Active Networks connection mode is opened, the mobile terminal enters Active Networks connection mode, real
When detect in the mobile terminal with the presence or absence of networking trigger event, it is described networking trigger event refer to need to use network to carry out
The application program of data communication, when detecting the presence of networking trigger event, illustrate that user actively opens some and needs network to connect
Connect to carry out the application program of data communication, now just need opening network to connect.
Further, when mobile terminal is in default Active Networks connection mode, the connection of forbidden energy all-network, so
One, when detecting user's actively triggering networking trigger event, network is reconnected, realizes mobile terminal to network using actively
The mode used, opening network connection is actually needed according to user, the network connection of the mobile terminal can only be by with householder
It is dynamic to wake up.
If S200, in the presence of, according to it is default networking trigger event title and connect network network name between pair
Answer the Relation acquisition network name corresponding with the title of the networking trigger event and enable the network.
Pre-set the corresponding relation between networking trigger event title and the network name for connecting network, the connection net
The title for the network that the entitled networking trigger event being triggered of network needs to use;Detected networking trigger event be triggered
When, can be from the default network of the trigger event title with being connected network of networking according to the title of the networking trigger event
The network name corresponding with the title of the networking trigger event is got in corresponding relation between title, so as to enable the net
Network, the networking trigger event is set to carry out data communication by network.
It is described networking trigger event title and connect network network name between corresponding relation be:One network name
Corresponding one or more networking trigger events, and the networking trigger event corresponding to any one network name and other network names
Corresponding networking trigger event is claimed not repeat.
Preferably, the corresponding relation between the networking trigger event title and the network name for connecting network is with list shape
Formula is stored, wherein, network name is a row, the entitled row of networking trigger event, includes networking title per a line, and
All networking trigger event titles corresponding with the network name.Preferred embodiment, the network name include mobile number
According to network, WIFI network, bluetooth, NFC (close range wireless communication), these network names are arranged by row, with mobile data
Networking trigger event title includes chat tool corresponding to network, then chat tool and mobile data network be by rows;With
Networking trigger event title includes video APP and microblogging corresponding to WIFI network, then video APP, microblogging and WIFI network are by row
Arrangement;There may be it is multiple networking trigger events use identical network, can also one networking trigger event be used only uniquely
Corresponding network.In the networking trigger event column, the networking trigger event of all row storages does not repeat, that is, is not present
One networking trigger event carries out data communication using multiple networks simultaneously.
When being carried out data transmission in S300, detection preset time without networking trigger event using the network, then forbidden energy should
Network.
When being carried out data transmission in the detection preset time without networking trigger event using the network, then forbidden energy net
Network specifically includes:
Pre-establish and the one-to-one registration form of network name;
According to the corresponding relation between the networking trigger event title and the network name for connecting network, the networking that will be detected
The title of trigger event recorded in corresponding registration form;
Do not carry out data transmission with networking trigger event all in the registration form corresponding to the network name in preset time
When, the forbidden energy network.
The registration form is used to be recorded under the Active Networks connection mode, and the networking actively triggered by user triggers thing
The title of part, and the network name of connection needed for the registration form and the networking trigger event is corresponding, i.e. each network name
Title is all corresponding with a registration form.When having detected networking trigger event, according to the networking trigger event title with being connected
Corresponding relation between the network name of network, network name corresponding with the networking trigger event is found, opens corresponding net
Network, at the same by the title of the networking trigger event recorded with the registration form corresponding to the network name.Access the registration
Table, which networking trigger event can be learnt currently has be triggered and use the network corresponding with the registration form to carry out data
Communication.
Continue preset time all without network data transmission after being networked by the networking trigger event of user's actively triggering,
Illustrate that user has been separated by the preset time and the networking trigger event is not used, can now be made with the forbidden energy network with reducing
The energy charge of mobile terminal during with network, but because user may trigger a networking trigger event incessantly, i.e.,
It might have multiple networking trigger events and using same network connection, therefore, in preset time be not detected by networking triggering
When event carries out data transmission, detect and whether only recorded in the registration form corresponding to network corresponding with the networking trigger event
There is the title of the networking trigger event, without the title of other networking trigger events, if other networking trigger events are not present
Title, illustrate that only the networking trigger event is using the network, then can direct forbidden energy network;If other networkings be present
The title of trigger event, illustrate the network while also used by other networking trigger events, even if then in preset time not
Detect that networking trigger event carries out data transmission, can not the forbidden energy network.Registration form corresponding to the network name
In all networking trigger event the network be not used in the preset time carry out data transmission communicating, then forbidden energy net
Network.
Preferably, the preset time is 5s.
Further, a priority ordering table is pre-set, the priority ordering table is used for the title for storing all-network,
And all-network title is arranged according to priority, before the coming most of highest priority, priority it is minimum comes it is last;
If desired simultaneously forbidden energy multiple networks when, then the priority ordering table is first searched, according to corresponding network in the priority ordering table
The each network of forbidden energy successively that puts in order of title, the more preceding more first forbidden energy of network of arrangement.Preferably, the priority of each network
Arrangement is arranged according to the user counted in advance using the number of networking trigger event, as user uses chat tool number ratio
Number using video APP is frequent, then the title of network corresponding with chat tool be arranged in the priority ordering table with
After the title of network corresponding to video APP, when needing forbidden energy network corresponding with chat tool and corresponding with video APP
During network, first forbidden energy network corresponding with video APP, rear forbidden energy network corresponding with chat tool.
Do not carried out with networking trigger event all in the registration form corresponding to the network name in the preset time
During data transfer, also include after the forbidden energy network:
The title of the networking trigger event in the registration form is deleted.
Due to being recorded in built in the registration form under the Active Networks connection mode, by the connection of user's active triggering
Net trigger event, therefore, carry out data transmission when being not detected by networking trigger event in preset time, and in the registration form only
When record has the title of the networking trigger event, after not only wanting the forbidden energy network, it is also necessary to by the title of the networking trigger event
Deleted from corresponding registration form.
It is described when mobile terminal is in default Active Networks connection mode, detect whether exist networking trigger event it
It is preceding also to include:
Pre-set the setting menu for opening and closing Active Networks connection mode.
As user, selection starts Active Networks connection mode in the setting menu, then the Active Networks connection mode
Open, and close all-network connection.
It is described when mobile terminal is in default Active Networks connection mode, detect whether exist networking trigger event it
It is preceding also to include:
The period is pre-set, when current time was in the period, automatically turns on the Active Networks connection mode.
Pre-set a period, preferred embodiment, the period be 7 points of morning at 5 points in afternoon, then work as detection
To current time be in 7 points of morning at 5 points in afternoon between when, automatically turn on the Active Networks connection mode, close all nets
Whether actively network connects, and detect user's triggering networking trigger event.When detecting networking trigger event, then step S200 is performed
And its subsequent step.
The present invention also provides a kind of mobile terminal, as shown in Fig. 2 it includes:Central processing unit 10 and the central processing
Storage device 20, communication interface (Communications Interface) 30 and the communication bus 40 that device 10 connects, wherein, institute
State central processing unit 10, the storage device 20, the communication interface 30 and mutual lead to is completed by the communication bus 40
Letter;The information transfer that the communication interface 30 is used between the communication equipment of the mobile terminal;The storage device 20 stores
There is computer program, realized when the computer program is performed by the central processing unit 10 mobile whole described in as above any one
The network connection processing method at end;
The central processing unit 10 is used to call the computer program in the storage device 20, to perform above-mentioned any one institute
State the network connection processing method of mobile terminal.
In summary, a kind of network connection processing method of mobile terminal provided by the invention, storage device and movement are whole
End, when mobile terminal is in default Active Networks connection mode, detect whether networking trigger event be present;If in the presence of,
Obtained according to the corresponding relation between default networking trigger event title and the network name for connecting network and touched with the networking
The corresponding network name of title of hair event and the enabled network;Detect to use without networking trigger event in preset time and be somebody's turn to do
When network carries out data transmission, then the forbidden energy network, makes mobile terminal actively enable corresponding network when needing to use network,
Can monitoring network data, the network corresponding to forbidden energy when reaching preparatory condition, so as to reduce network be activated always it is spent
Energy, increase new function for mobile terminal.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect scope.