CN105187653B - Network connection switchs method for closing and device - Google Patents
Network connection switchs method for closing and device Download PDFInfo
- Publication number
- CN105187653B CN105187653B CN201510591241.2A CN201510591241A CN105187653B CN 105187653 B CN105187653 B CN 105187653B CN 201510591241 A CN201510591241 A CN 201510591241A CN 105187653 B CN105187653 B CN 105187653B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- network connection
- wifi
- state
- closing
- 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 present invention is suitable for the communications field, provides a kind of network connection switch method for closing and device.The method includes:Whether detection mobile terminal, which is in, is put out screen state;When mobile terminal is in and puts out screen state, detect whether the time that the button that mobile terminal is specified is pressed is more than preset compressing time threshold value;When the time that the button that mobile terminal is specified is pressed being more than preset compressing time threshold value, the network connection switch of mobile terminal is detected;The network connection switch in the open state, closing the mobile terminal is switched in the network connection of mobile terminal.The embodiment of the present invention can improve the speed for closing network connection switch.
Description
Technical field
The embodiment of the present invention belongs to the communications field more particularly to a kind of network connection switch method for closing and device.
Background technology
At present, most mobile terminal all has the function of network connection, and user is the electricity for saving mobile terminal
Or to save data traffic, usually can all be selected when connecting (or being connected without using data network) without using wifi or reducing radiation
Select the wifi connecting valves (or data network connecting valve) of turning-off mobile terminal.
In existing network connection switch method for closing, since certain customers often forget to close wifi connections in bright screen
It switchs (or data network connecting valve), therefore, it is necessary to users to light screen again, and solution lock screen turns off wifi connecting valves
(or data network connecting valve) could disconnect wifi connections (or data network connection), so as to cause wifi connecting valves are closed
(or data network connecting valve) is excessively slow, reduces the good experience of user.
Invention content
An embodiment of the present invention provides a kind of network connection switch method for closing and devices, it is intended to solve existing method closing
The problem of wifi connecting valves (or data network connecting valve) are excessively slow.
The embodiment of the present invention is achieved in that a kind of network connection switch method for closing, the method includes:
Whether detection mobile terminal, which is in, is put out screen state;
When mobile terminal is in and puts out screen state, detect whether the time that the button that mobile terminal is specified is pressed is more than pre-
If compressing time threshold value;
When the time that the button that mobile terminal is specified is pressed being more than preset compressing time threshold value, mobile terminal is detected
Network connection switch;
It is switched in the open state in the network connection of mobile terminal, the network connection for closing the mobile terminal is opened
It closes.
The another object of the embodiment of the present invention is that providing a kind of network connection switchs shutoff device, and described device includes:
Screen state detection unit is put out, puts out screen state for detecting mobile terminal and whether being in;
The time detection unit that button is pressed, for when mobile terminal is in and puts out screen state, detection mobile terminal to refer to
Whether the time that fixed button is pressed is more than preset compressing time threshold value;
Network connection switch detection unit, the time that the button for being specified in mobile terminal is pressed be more than it is preset by
When pressing time threshold, the network connection switch of mobile terminal is detected;
Network connection switchs closing unit, in the open state, being closed in the network connection of mobile terminal switch
The network connection switch of the mobile terminal.
In embodiments of the present invention, since mobile terminal need to only detect that the time that the button specified is pressed is more than default
Compressing time threshold value when be shut off in opening state network connection switch, light screen without user and enter network
Linkage interface closes network connection switch, therefore, saves operating procedure, so as to improve the speed for closing network connection switch
Degree.
Description of the drawings
Fig. 1 is the flow chart of a kind of network connection switch method for closing that first embodiment of the invention provides;
Fig. 2 is the structure chart of a kind of network connection switch shutoff device that second embodiment of the invention provides;
Fig. 3 is a kind of structure chart for mobile terminal that second embodiment of the invention provides.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In the embodiment of the present invention, when mobile terminal is in and puts out screen state, the button that detection mobile terminal is specified is pressed
Time whether be more than preset compressing time threshold value, if more than preset compressing time threshold value, detect the network of mobile terminal
Connecting valve, and switched in the open state in the network connection of mobile terminal, close the network connection of the mobile terminal
Switch.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one:
Fig. 1 shows the flow chart of a kind of network connection switch method for closing that first embodiment of the invention provides, and is described in detail
It is as follows:
Step S11, whether detection mobile terminal, which is in, is put out screen state.
Specifically, judged by the brightness value for the backlight for detecting mobile terminal, if the brightness value of backlight reaches
To the threshold value for putting out screen, then judge that mobile terminal is in and put out screen state, otherwise, it is determined that mobile terminal, which is in non-, puts out screen state.
Step S12, when mobile terminal is in and puts out screen state, the time that the button specified of detection mobile terminal is pressed is
No is more than preset compressing time threshold value.
Optionally, in order not to increase additional cost because additional button is increased, the button that mobile terminal is specified is
The existing button of mobile terminal, for example, " volume+button " or " volume-button " for mobile terminal.In this step, in order to
The original function of button and the increased function of the embodiment of the present invention that mobile terminal is specified are distinguished, when the button that mobile terminal is specified
When being pressed, need to judge whether the time that the button that the mobile terminal is specified is pressed is more than preset compressing time threshold value,
Just it is judged to performing the increased function of the embodiment of the present invention only when more than preset compressing time threshold value, otherwise, it is determined that being
Perform original function.The preset compressing time threshold value is set according to user, for example, being set as 3 seconds, 4 seconds etc..
Step S13, when the time that the button that mobile terminal is specified is pressed being more than preset compressing time threshold value, detection
The network connection switch of mobile terminal.
Wherein, the network connection switch of mobile terminal includes:Wifi connecting valves and data network connection switch.Specifically
Ground, the network connection for detecting mobile terminal switch corresponding value, judge that the network connection of mobile terminal switchs corresponding value mark
Network connection switch is in opening state, is in closed state.
Step S14 switchs in the open state in the network connection of mobile terminal, closes the network of the mobile terminal
Connecting valve.
Specifically, if it is to be in judge that the network connection of mobile terminal switchs corresponding value to identify network connection switch
Opening state, then by network connection switch corresponding value automatically and be revised as identifying network connection switch and be closed
Value.Certainly, when the network connection of mobile terminal switch is closed, then any processing is not made, alternatively, directly lighting screen
Curtain simultaneously enters unlocked state.Since user actively presses the button that mobile terminal specifies, it is therefore shown that the user is desirable for this
Mobile terminal, at this point, lighting screen and the time for opening mobile terminal being saved into unlocked state.
Optionally, when wifi connecting valves and data network connection switch are all in opening state, described in the closing
The network connection switch of mobile terminal, specifically includes:
A1, the wifi information for obtaining current environment, and judge whether the mobile terminal preserves the current environment
Wifi information.Wherein, the wifi information of current environment includes:The wifi unique marks (such as title) of current environment, connection password
Deng.Specifically, when mobile terminal accesses a wifi, the information of the wifi is preserved, therefore, when acquisition for mobile terminal is to newly
Wifi information (the wifi information of current environment) when, by the new wifi information with preserve wifi information compared with, if identical
(wifi unique marks and connection password are all identical), then judge that mobile terminal preserves the wifi information of the current environment.
A2, when the mobile terminal preserves the wifi information of the current environment, close the data in opening state
Network connection switchs.Since mobile terminal has access to the wifi of current environment, the data network of turning-off mobile terminal
Connecting valve, retains open wifi connecting valves, can not only save electricity, reduce radiation, can also continue mobile terminal
Keep the state of access network.
A3, when the mobile terminal does not preserve the wifi information of the current environment, close in opening state
The data network connecting valve of wifi connecting valves and closing in opening state.It is not preserved in mobile terminal described current
During the wifi information of environment, even if wifi connecting valves opening can not access the wifi of current environment, therefore, simultaneously close off
Wifi connecting valves and data network connection switch can be further reduced to be connected due to opening wifi connecting valves and data network
Connect the spent electricity of switch.
In above-mentioned A1~A3, when wifi connecting valves and data network connection switch all in opening state when, by sentencing
Whether disconnected mobile terminal can access the wifi of current environment to choose whether to close wifi connecting valves, in a practical situation,
Wifi connecting valves and data network connection switch can be directly simultaneously closed off, at this point, the net for closing the mobile terminal
Network connecting valve, specifically includes:
B1, the wifi connecting valves in opening state are closed.And
B2, the data network connecting valve in opening state is closed.
In above-mentioned B1 and B2, when judging that time that the button that mobile terminal is specified is pressed is more than preset compressing time
During threshold value, wifi connecting valves and data network connection switch are closed, without user's multi-pass operation, improves the good body of user
It tests.
Optionally, any one in wifi connecting valves and data network connection switch is in the open state, described
The network connection switch of the mobile terminal is closed, is specifically included:
C1, in wifi connecting valves in the open state, close in opening state wifi connecting valves.
C2, in data network connecting valve in the open state, close in opening state data network connection opens
It closes.
In above-mentioned C1 and C2, when judging that wifi connecting valves are closed and data network connecting valve is in and beats
During open state, then data network connecting valve is closed;On the contrary, then close wifi connecting valves.Due to close any one be in beat
The wifi connecting valves of open state and data network connection switch so that wifi connecting valves and data network connection switch are all located
In closed state, therefore, it is possible to greatly save the electricity of mobile terminal.
Optionally, when the closing is in the wifi connecting valves of opening state, including:
It asks the user whether to close wifi connecting valves, alternatively, prompting user is turned off wifi connecting valves.
Since existing application is frequently by the automatic download resource in backstage, so as to the application that timely updates, and wifi companies are closed
It connects switch and is likely difficult to resource needed for download in time, therefore, before the wifi connecting valves in opening state are closed, inquiry
Whether user closes wifi connecting valves, alternatively, after the wifi connecting valves in opening state are closed, has prompted user
Wifi connecting valves are closed, user can be made to know more information content.Certainly, ask the user whether that closing wifi connections opens
It closes, alternatively, when prompting user is turned off wifi connecting valves, needs to light screen, and show accordingly on the screen lighted
Information.
In first embodiment of the invention, when mobile terminal is in and puts out screen state, the button quilt that mobile terminal is specified is detected
Whether the time of pressing is more than preset compressing time threshold value, if more than preset compressing time threshold value, detects mobile terminal
Network connection switchs, and is switched in the open state in the network connection of mobile terminal, closes the network of the mobile terminal
Connecting valve.Network connection switch is closed since user need not light screen and enter network connection interface, it saves
Operating procedure, so as to improve the speed for closing network connection switch.
It should be understood that in embodiments of the present invention, the size of the serial number of above-mentioned each process is not meant to the elder generation of execution sequence
Afterwards, the execution sequence of each process should be determined with its function and internal logic, the implementation process structure without coping with the embodiment of the present invention
Into any restriction.
Embodiment two:
Fig. 2 shows the structure chart of a kind of network connection switch shutoff device that second embodiment of the invention provides, the nets
Network connecting valve shutoff device can be applied in mobile terminal, and the mobile terminal described in the disclosure includes mobile phone, intelligence
Energy phone, digital broadcast terminal, PDA (personal digital assistant), PMP (portable media player), is led at laptop computer
Boat system etc..Except when being only applied to mobile terminal, the embodiment described in the disclosure can be applied to such as number electricity
Depending on fixed terminals such as, desktop computers.For convenience of description, it illustrates only and the relevant part of the embodiment of the present invention.
Network connection switch shutoff device includes:Put out screen state detection unit 21, the time detection list that button is pressed
Member 22, network connection switch detection unit 23, network connection switch closing unit 24.Wherein:
Screen state detection unit 21 is put out, puts out screen state for detecting mobile terminal and whether being in.
Specifically, judged by the brightness value for the backlight for detecting mobile terminal, if the brightness value of backlight reaches
To the threshold value for putting out screen, then judge that mobile terminal is in and put out screen state, otherwise, it is determined that mobile terminal, which is in non-, puts out screen state.
The time detection unit 22 that button is pressed, for when mobile terminal is in and puts out screen state, detecting mobile terminal
Whether the time that the button specified is pressed is more than preset compressing time threshold value.
Optionally, in order not to increase additional cost because additional button is increased, the button that mobile terminal is specified is
The existing button of mobile terminal, for example, " volume+button " or " volume-button " for mobile terminal.Wherein, preset pressing
Time threshold is set according to user, for example, being set as 3 seconds, 4 seconds etc..
Network connection switchs detection unit 23, and the time that the button for being specified in mobile terminal is pressed is more than preset
During compressing time threshold value, the network connection switch of mobile terminal is detected.
Wherein, the network connection switch of mobile terminal includes:Wifi connecting valves and data network connection switch.Specifically
Ground, the network connection for detecting mobile terminal switch corresponding value, judge that the network connection of mobile terminal switchs corresponding value mark
Network connection switch is in opening state, is in closed state.
Network connection switchs closing unit 24, in the open state, being closed in the network connection of mobile terminal switch
Close the network connection switch of the mobile terminal.
Specifically, if it is to be in judge that the network connection of mobile terminal switchs corresponding value to identify network connection switch
Opening state, then by network connection switch corresponding value automatically and be revised as identifying network connection switch and be closed
Value.Certainly, when the network connection of mobile terminal switch is closed, then any processing is not made, alternatively, directly lighting screen
Curtain simultaneously enters unlocked state.Since user actively presses the button that mobile terminal specifies, it is therefore shown that the user is desirable for this
Mobile terminal, at this point, lighting screen and the time for opening mobile terminal being saved into unlocked state.
Optionally, the network connection switch closing unit 24 includes:
Wifi data obtaining modules for obtaining the wifi information of current environment, and judge whether the mobile terminal is protected
Deposit the wifi information of the current environment.Wherein, the wifi information of current environment includes:The wifi unique marks of current environment
(such as title), connection password.Specifically, when mobile terminal accesses a wifi, the information of the wifi is preserved, therefore,
When acquisition for mobile terminal is to new wifi information (the wifi information of current environment), by the new wifi information and preservation
Wifi information compares, if identical (wifi unique marks and connection password are all identical), it is described current to judge that mobile terminal preserves
The wifi information of environment.
First network connecting valve closedown module, for preserving the wifi information of the current environment in the mobile terminal
When, close the data network connecting valve in opening state.Since mobile terminal has access to the wifi of current environment, because
This, the data network connecting valve of turning-off mobile terminal retains open wifi connecting valves, can not only save electricity,
Radiation is reduced, mobile terminal can also be made to continue to keep the state of access network.
Second network connection switchs closedown module, for not preserving the wifi of the current environment in the mobile terminal
During information, close the wifi connecting valves in opening state and close the data network connecting valve in opening state.
When mobile terminal does not preserve the wifi information of the current environment, even if wifi connecting valves opening can not access currently
The wifi of environment, therefore, simultaneously closing off wifi connecting valves and data network connection switch can be further reduced due to opening
Electricity spent by wifi connecting valves and data network connection switch.
Optionally, the network connection switch closing unit 24 includes:
First wifi connecting valve closedown modules, for closing the wifi connecting valves in opening state.And
First data network connecting valve closedown module, for closing the data network connecting valve in opening state.
In above-mentioned first wifi connecting valves closedown module and the first data network connecting valve closedown module, when judging
When the time that the button that mobile terminal is specified is pressed is more than preset compressing time threshold value, wifi connecting valves and data are closed
Network connection switchs, and without user's multi-pass operation, improves the good experience of user.
Optionally, the network connection switch closing unit 24 includes:
2nd wifi connecting valve closedown modules are beaten for, closing to be in the open state in wifi connecting valves
The wifi connecting valves of open state.
Second data network connecting valve closedown module, in the open state, being closed in data network connecting valve
Close the data network connecting valve in opening state.
In above-mentioned 2nd wifi connecting valves closedown module and the second data network connecting valve closedown module, due to closing
Any one is in the wifi connecting valves of opening state and data network connection switch so that wifi connecting valves and data network
Connecting valve is all in closed state, therefore, it is possible to greatly save the electricity of mobile terminal.
Optionally, the network connection switch shutoff device includes:
Information alert unit, for asking the user whether to close wifi connecting valves, alternatively, prompting user is turned off wifi
Connecting valve.
Wherein, it asks the user whether to close wifi connecting valves, alternatively, when prompting user is turned off wifi connecting valves,
It needs to light screen, and show corresponding information on the screen lighted.Due to showing prompt message, know user
More information content.
In second embodiment of the invention, due to detecting that the time that the button specified is pressed is more than preset compressing time
It is shut off the network connection in opening state during threshold value to switch, screen is lighted without user and enters network connection interface pass
Network connection switch is closed, therefore, saves operating procedure, so as to improve the speed for closing network connection switch.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is performed with hardware or software mode, specific application and design constraint depending on technical solution.Professional technician
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of division of logic function can have other dividing mode, such as multiple units or component in actual implementation
It may be combined or can be integrated into another system or some features can be ignored or does not perform.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit
It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That each unit is individually physically present, can also two or more units integrate in a unit.
If the function is realized in the form of SFU software functional unit and is independent product sale or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially in other words
The part contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be
People's computer, server or network equipment etc.) perform all or part of the steps of the method according to each embodiment of the present invention.
And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
Fig. 3 shows a kind of structure diagram of mobile terminal, which can be used for implementing to carry in above-described embodiment
The method of automatic connection network supplied.
As shown in figure 3, mobile terminal 1200 can include RF (Radio Frequency, radio frequency) circuit 110, include
The memory 120 of one or more (one is only shown in figure) computer readable storage mediums, input unit 130, display
Unit 140, sensor 150, voicefrequency circuit 160, transmission module 170, including there are one or more than one (one is only shown in figure
It is a) the 190 grade components of processor 180 and power supply of processing core.It will be understood by those skilled in the art that the shifting shown in Fig. 3
Dynamic 1200 structure of terminal does not form the restriction to mobile terminal 1200, can include than illustrate more or fewer components or
Person combines certain components or different components arrangement.Wherein:
RF circuits 110 realize the mutual conversion of electromagnetic wave and electric signal, so as to leading to for receiving and transmitting electromagnetic wave
News network or other equipment are communicated.RF circuits 110 may include the various existing circuit elements for being used to perform these functions
Part, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, storage
Device etc..RF circuits 110 can be communicated with various networks such as internet, intranet, wireless network or by wireless
Network is communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).
Above-mentioned wireless network can use various communication standards, agreement and technology, including but not limited to global system for mobile communications
(Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data
GSM Environment, EDGE), Wideband CDMA Technology (Wideband Code Division Multiple
Access, WCDMA), Code Division Multiple Access (Code Division Access, CDMA), time division multiple access technology (Time
Division Multiple Access, TDMA), adopting wireless fidelity technology (Wireless Fidelity, Wi-Fi) (such as U.S.'s electricity
Gas and Electronic Engineering Association standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE
802.11n), the networking telephone (Voice over Internet Protocol, VoIP), worldwide interoperability for microwave accesses
(Worldwide Interoperability for Microwave Access, Wi-Max), other for mail, Instant Messenger
The agreement of news and short message and any other suitable communications protocol or even it may include that those are not developed currently yet
Agreement.
Memory 120 can be used for storage software program and module, as network connection switchs closing side in above-described embodiment
Corresponding program instruction/the module of method/device, processor 180 are stored in software program and mould in memory 120 by operation
Block so as to perform various functions application and data processing, that is, realizes the network connection switch closing function of mobile terminal.Storage
Device 120 may include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device,
Flash memory or other non-volatile solid state memories.In some instances, memory 120 can further comprise relative to processing
The remotely located memory of device 180, these remote memories can pass through network connection to mobile terminal 1200.Above-mentioned network
Example includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 130 can be used for receiving the number inputted or character information and generate and user setting and function
Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Specifically, input unit 130 may include touching
Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used
Family on it or neighbouring touch operation (such as user using any suitable object such as finger, stylus or attachment in touch-sensitive table
Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional
, touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and processor 180 can be received
The order sent simultaneously is performed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically,
Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.),
It is one or more in trace ball, mouse, operating lever etc..
Display unit 140 can be used for display by information input by user or be supplied to the information and mobile terminal of user
1200 various graphical user interface, these graphical user interface can be by figure, text, icon, video and its arbitrary combinations
To form.Display unit 140 may include display panel 141, optionally, LCD (Liquid Crystal may be used
Display, liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) come
Display panel 141 is configured.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 is detected at it
On or near touch operation after, send to processor 180 with determine touch event type, be followed by subsequent processing device 180 according to touch
The type for touching event provides corresponding visual output on display panel 141.Although in figure 3, touch sensitive surface 131 and display surface
Plate 141 is the component independent as two to realize input and input function, but in some embodiments it is possible to by touch-sensitive table
Face 131 is integrated with display panel 141 and realizes and outputs and inputs function.
Mobile terminal 1200 may also include at least one sensor 150, for example, optical sensor, motion sensor and other
Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can basis
The light and shade of ambient light adjusts the brightness of display panel 141, proximity sensor can when mobile terminal 1200 is moved in one's ear,
Close display panel 141 and/or backlight.As one kind of motion sensor, gravity accelerometer can detect all directions
The size of upper (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile phone posture when static
Application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (for example pedometer, strikes
Hit) etc.;Gyroscope, barometer, hygrometer, thermometer, infrared ray sensor for can also configure as mobile terminal 1200 etc. its
His sensor, details are not described herein.
Voicefrequency circuit 160, loud speaker 161, the audio that microphone 162 can be provided between user and mobile terminal 1200 connect
Mouthful.The transformed electric signal of the audio data received can be transferred to loud speaker 161, by loud speaker 161 by voicefrequency circuit 160
Be converted to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, by voicefrequency circuit
160 receive after be converted to audio data, then after audio data output processor 180 is handled, through RF circuits 110 to be sent to ratio
Audio data is exported to memory 120 to be further processed by such as another terminal.Voicefrequency circuit 160 is also possible that
Earphone jack, to provide the communication of peripheral hardware earphone and mobile terminal 1200.
Mobile terminal 1200 can help user to send and receive e-mail, is clear by transmission module 170 (such as Wi-Fi module)
It lookes at and webpage and accesses streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 3 shows transmission mould
Block 170, but it is understood that, and must be configured into for mobile terminal 1200 is not belonging to, it completely can be as needed not
Change in the range of the essence of invention and omit.
Processor 180 is the control centre of mobile terminal 1200, utilizes each of various interfaces and connection whole mobile phone
A part is stored in storage by running or performing the software program being stored in memory 120 and/or module and call
Data in device 120 perform the various functions of mobile terminal 1200 and processing data, so as to carry out integral monitoring to mobile phone.It can
Choosing, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modulation
Demodulation processor, wherein, the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing
Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Mobile terminal 1200 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can lead to
Cross power-supply management system and processor 180 be logically contiguous, so as to by power-supply management system realize management charging, electric discharge and
The functions such as power managed.Power supply 190 can also include one or more direct current or AC power, recharging system, electricity
The random components such as source fault detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, mobile terminal 1200 can also include camera, bluetooth module etc., and details are not described herein.Specifically
In the present embodiment, the display unit of mobile terminal is touch-screen display, and mobile terminal has further included memory and one
Either more than one program one of them or more than one program is stored in memory, and be configured to by one or
Person's more than one processor execution states one or more than one program includes the instruction for being operated below:
Whether detection mobile terminal, which is in, is put out screen state;
When mobile terminal is in and puts out screen state, detect whether the time that the button that mobile terminal is specified is pressed is more than pre-
If compressing time threshold value;
When the time that the button that mobile terminal is specified is pressed being more than preset compressing time threshold value, mobile terminal is detected
Network connection switch;
It is switched in the open state in the network connection of mobile terminal, the network connection for closing the mobile terminal is opened
It closes.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment
Second of possible embodiment in, wifi connecting valves and data network connection switch all in opening state when, institute
The network connection switch for closing the mobile terminal is stated, is specifically included:
The wifi information of current environment is obtained, and judges whether the mobile terminal preserves the wifi letters of the current environment
Breath;
When the mobile terminal preserves the wifi information of the current environment, the data network in opening state is closed
Connecting valve;
When the mobile terminal does not preserve the wifi information of the current environment, the wifi in opening state is closed
The data network connecting valve of connecting valve and closing in opening state.
In the third the possible embodiment provided based on the first possible embodiment, connect in wifi
When connecing switch and data network connection switch all in opening state, the network connection switch for closing the mobile terminal,
It specifically includes:
Close the wifi connecting valves in opening state;And
Close the data network connecting valve in opening state.
In the 4th kind of possible embodiment provided based on the first possible embodiment, connect in wifi
Connect in switch and data network connection switch any one in the open state, the network for closing the mobile terminal connects
Switch is connect, is specifically included:
In wifi connecting valves in the open state, the wifi connecting valves in opening state are closed;
In data network connecting valve in the open state, the data network connecting valve in opening state is closed.
The 5th kind of possible reality provided based on second, the third and the 4th kind of possible embodiment
It applies in mode, when the closing is in the wifi connecting valves of opening state, including:
It asks the user whether to close wifi connecting valves, alternatively, prompting user is turned off wifi connecting valves.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention described should be subject to the protection scope in claims.
Claims (10)
1. a kind of network connection switchs method for closing, which is characterized in that the method includes:
Whether detection mobile terminal, which is in, is put out screen state;
When mobile terminal is in and puts out screen state, detect whether the time that the button that mobile terminal is specified is pressed is more than preset
Compressing time threshold value, wherein, the button specified is the existing button of mobile terminal;
When the time that the button that mobile terminal is specified is pressed being more than preset compressing time threshold value, the net of mobile terminal is detected
Network connecting valve;
The network connection switch in the open state, closing the mobile terminal is switched in the network connection of mobile terminal;
When the network connection switch of mobile terminal is closed, the screen for lighting mobile terminal enters unlocked state;
Whether the detection mobile terminal, which is in, is put out screen state, including:
Judged by the brightness value for the backlight for detecting mobile terminal, if the brightness value of backlight reaches the threshold for putting out screen
Value then judges that mobile terminal is in and puts out screen state, otherwise, it is determined that mobile terminal, which is in non-, puts out screen state;
When the time that the button specified in mobile terminal is pressed is more than preset compressing time threshold value, mobile terminal is detected
Network connection switch, including:
The network connection for detecting mobile terminal switchs corresponding value, judges that the network connection of mobile terminal switchs corresponding value mark
Network connection switch is in opening state, is in closed state.
2. according to the method described in claim 1, it is characterized in that, all locate in wifi connecting valves and data network connection switch
When opening state, the network connection switch for closing the mobile terminal specifically includes:
The wifi information of current environment is obtained, and judges whether the mobile terminal preserves the wifi information of the current environment;
When the mobile terminal preserves the wifi information of the current environment, close the data network in opening state and connect
Switch;
When the mobile terminal does not preserve the wifi information of the current environment, the wifi connections in opening state are closed
The data network connecting valve of switch and closing in opening state.
3. according to the method described in claim 1, it is characterized in that, all locate in wifi connecting valves and data network connection switch
When opening state, the network connection switch for closing the mobile terminal specifically includes:
Close the wifi connecting valves in opening state;And
Close the data network connecting valve in opening state.
4. according to the method described in claim 1, it is characterized in that, in wifi connecting valves and data network connection switch
Any one in the open state, the network connection switch for closing the mobile terminal specifically includes:
In wifi connecting valves in the open state, the wifi connecting valves in opening state are closed;
In data network connecting valve in the open state, the data network connecting valve in opening state is closed.
5. according to claim 2 to 4 any one of them method, which is characterized in that closed described in opening state
During wifi connecting valves, including:
It asks the user whether to close wifi connecting valves, alternatively, prompting user is turned off wifi connecting valves.
6. a kind of network connection switchs shutoff device, which is characterized in that described device includes:
Screen state detection unit is put out, puts out screen state for detecting mobile terminal and whether being in;
The time detection unit that button is pressed, for when mobile terminal is in and puts out screen state, detection mobile terminal to be specified
Whether the time that button is pressed is more than preset compressing time threshold value, wherein, the button specified has for mobile terminal
Button;
Network connection switchs detection unit, when the time that the button for being specified in mobile terminal is pressed is more than preset pressing
Between threshold value when, detect mobile terminal network connection switch;
Network connection switchs closing unit, for being switched in the open state, described in closing in the network connection of mobile terminal
The network connection switch of mobile terminal;
It is described to put out screen state detection unit, judged specifically for the brightness value for passing through the backlight for detecting mobile terminal, such as
The brightness value of fruit backlight reaches the threshold value for putting out screen, then judges that mobile terminal is in and put out screen state, otherwise, it is determined that at mobile terminal
Screen state is put out in non-;
The network connection switchs detection unit, switchs corresponding value specifically for the network connection for detecting mobile terminal, judges
It is in opening state that the network connection of mobile terminal, which switchs corresponding value and identifies network connection switch, is in closing shape
State;
Described device is additionally operable to, and when the network connection switch of mobile terminal is closed, lights the screen of mobile terminal
Into unlocked state.
7. device according to claim 6, which is characterized in that the network connection switch closing unit includes:
Wifi data obtaining modules for obtaining the wifi information of current environment, and judge whether the mobile terminal preserves institute
State the wifi information of current environment;
First network connecting valve closedown module, during for preserving the wifi information of the current environment in the mobile terminal,
Close the data network connecting valve in opening state;
Second network connection switchs closedown module, for not preserving the wifi information of the current environment in the mobile terminal
When, it closes the wifi connecting valves in opening state and closes the data network connecting valve in opening state.
8. device according to claim 6, which is characterized in that the network connection switch closing unit includes:
First wifi connecting valve closedown modules, for closing the wifi connecting valves in opening state;And
First data network connecting valve closedown module, for closing the data network connecting valve in opening state.
9. device according to claim 6, which is characterized in that the network connection switch closing unit includes:
2nd wifi connecting valve closedown modules, in the open state, being closed in wifi connecting valves in open shape
The wifi connecting valves of state;
Second data network connecting valve closedown module, in data network connecting valve in the open state, at closing
In the data network connecting valve of opening state.
10. device according to any one of claims 7 to 9, which is characterized in that described device includes:
Information alert unit, for asking the user whether to close wifi connecting valves, alternatively, prompting user is turned off wifi connections
Switch.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510591241.2A CN105187653B (en) | 2015-09-16 | 2015-09-16 | Network connection switchs method for closing and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510591241.2A CN105187653B (en) | 2015-09-16 | 2015-09-16 | Network connection switchs method for closing and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105187653A CN105187653A (en) | 2015-12-23 |
CN105187653B true CN105187653B (en) | 2018-06-19 |
Family
ID=54909490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510591241.2A Active CN105187653B (en) | 2015-09-16 | 2015-09-16 | Network connection switchs method for closing and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105187653B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106060909B (en) * | 2016-05-26 | 2019-07-16 | 珠海市魅族科技有限公司 | A kind of method for connecting network and mobile terminal |
CN106527932A (en) * | 2016-10-25 | 2017-03-22 | 惠州Tcl移动通信有限公司 | Switching method and system of WiFi (Wireless Fidelity) mode |
CN106878562A (en) * | 2017-03-02 | 2017-06-20 | 东软集团股份有限公司 | Control the method and device of wifi functional switches |
CN108093466B (en) * | 2017-12-14 | 2021-12-24 | 维沃移动通信有限公司 | Method for controlling network switch, mobile terminal and server |
CN109195173A (en) * | 2018-08-28 | 2019-01-11 | 努比亚技术有限公司 | A kind of hotspot connection method, terminal and computer readable storage medium |
CN110381489B (en) * | 2019-07-22 | 2021-03-23 | 海信视像科技股份有限公司 | Bluetooth connection method, display terminal and television |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019567A (en) * | 2012-12-17 | 2013-04-03 | 北京百度网讯科技有限公司 | Touch screen mobile terminal and quick illumination-starting method and quick illumination-starting system thereof |
CN104506738A (en) * | 2015-01-08 | 2015-04-08 | 王皓然 | User-defined button applicable to mobile phone |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060064462A1 (en) * | 2004-09-17 | 2006-03-23 | Shoei-Lai Chen | Method and apparatus for fast delivery of mail by message transceiver |
KR20070010226A (en) * | 2005-07-18 | 2007-01-24 | 엘지전자 주식회사 | Multi function hot key establishing apparatus, the method thereof and the mobile communication terminal having said function |
CN101873385A (en) * | 2010-06-04 | 2010-10-27 | 北京播思软件技术有限公司 | Device and method for entering power-saving mode of hand-held terminal rapidly |
CN103237109A (en) * | 2013-04-10 | 2013-08-07 | 广东欧珀移动通信有限公司 | Method and device for turning on flash lamp in standby state based on mobile phone |
-
2015
- 2015-09-16 CN CN201510591241.2A patent/CN105187653B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019567A (en) * | 2012-12-17 | 2013-04-03 | 北京百度网讯科技有限公司 | Touch screen mobile terminal and quick illumination-starting method and quick illumination-starting system thereof |
CN104506738A (en) * | 2015-01-08 | 2015-04-08 | 王皓然 | User-defined button applicable to mobile phone |
Also Published As
Publication number | Publication date |
---|---|
CN105187653A (en) | 2015-12-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105187653B (en) | Network connection switchs method for closing and device | |
CN105306682B (en) | The method and device of network connection switch is automatically closed | |
CN103473494B (en) | A kind of run the method for application, device and terminal unit | |
CN103686963B (en) | Control wireless network method of switching, device, equipment and system | |
CN107203147B (en) | Internet of Things network control system based on cloud platform and method | |
CN106358225B (en) | A kind of processing method of network data, device and mobile terminal | |
CN105892850B (en) | Open method, device and the mobile terminal of application program for mobile terminal | |
CN106778175A (en) | A kind of interface locking means, device and terminal device | |
CN107172671A (en) | A kind of channel switching method, device, storage medium and terminal | |
CN106303004A (en) | The way of recording, device and mobile terminal under screen lock state | |
CN107645609A (en) | A kind of brightness adjusting method and mobile terminal | |
CN106708633B (en) | The method and mobile terminal of increasing terminal WiFi workstation mode closing velocities | |
CN105357657B (en) | The construction method and device of Mesh network | |
CN109544139A (en) | A kind of method of payment, terminal and readable storage medium storing program for executing | |
CN109542232A (en) | Switching method, terminal and the computer readable storage medium of terminal horizontal/vertical screen mode | |
CN109788093A (en) | Mobile terminal and its heat dissipating method, computer readable storage medium | |
CN109768811A (en) | The control method of radiation dispersion, communication terminal and computer readable storage medium between double antenna | |
CN107454270B (en) | mobile terminal screen brightness control method, device and terminal | |
CN104573437A (en) | Information authentication method, device and terminal | |
CN106936516A (en) | Display screen dispaly state control method, storage medium and terminal | |
CN107066374A (en) | A kind of data processing method and mobile terminal | |
CN105282330B (en) | The method and device of automatic connection network | |
CN106535249A (en) | Control method and control device for wireless local area networks, and terminal | |
CN109977040A (en) | File read-write authority control method, device, terminal and storage medium | |
CN109522276A (en) | Application icon management method, terminal and computer readable storage medium |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |