CN105306682B - The method and device of network connection switch is automatically closed - Google Patents

The method and device of network connection switch is automatically closed Download PDF

Info

Publication number
CN105306682B
CN105306682B CN201510600391.5A CN201510600391A CN105306682B CN 105306682 B CN105306682 B CN 105306682B CN 201510600391 A CN201510600391 A CN 201510600391A CN 105306682 B CN105306682 B CN 105306682B
Authority
CN
China
Prior art keywords
mobile terminal
network connection
connection switch
state
switch
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.)
Expired - Fee Related
Application number
CN201510600391.5A
Other languages
Chinese (zh)
Other versions
CN105306682A (en
Inventor
李宗源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510600391.5A priority Critical patent/CN105306682B/en
Publication of CN105306682A publication Critical patent/CN105306682A/en
Application granted granted Critical
Publication of CN105306682B publication Critical patent/CN105306682B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The present invention is suitable for the communications field, provides a kind of method and device that network connection switch is automatically closed.The described method includes: whether detection mobile terminal is in and puts out screen state;When mobile terminal is in and puts out screen state, whether the network connection switch for detecting mobile terminal is in the open state;The network connection switch for closing the mobile terminal in the open state is switched in the network connection of mobile terminal.The embodiment of the present invention can be accelerated to close the speed of network connection.

Description

The method and device of network connection switch is automatically closed
Technical field
The embodiment of the present invention belongs to the communications field more particularly to a kind of method and dress that network connection switch is automatically closed It sets.
Background technique
Currently, 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 without using wifi connection (or not using data network connection) or reduction radiation Select the wifi connection switch (or data network connection switch) of turning-off mobile terminal.
In existing network connection switch method for closing, since certain customers often forget to close wifi connection in bright screen It switchs (or data network connection switch), therefore, it is necessary to users to light screen again, and solution lock screen turns off wifi connection switch (or data network connection switch) could disconnect wifi connection (or data network connection), so as to cause wifi connection switch is closed (or data network connection switch) is excessively slow, reduces the good experience of user.
Summary of the invention
The embodiment of the invention provides a kind of method and devices that network connection switch is automatically closed, it is intended to solve existing side Method closes network connection and switched slow problem.
The embodiments of the present invention are implemented as follows, a method of network connection switch is automatically closed, which comprises
Whether detection mobile terminal, which is in, is put out screen state;
When mobile terminal is in and puts out screen state, whether the network connection switch for detecting mobile terminal is in the open state;
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 to provide a kind of device that network connection switch is automatically closed, described device Include:
Screen state detection unit is put out, puts out screen state for detecting mobile terminal and whether being in;
It is connected to the network switch state detection unit, for detecting mobile terminal when mobile terminal is in and puts out screen state Whether network connection switch is in the open state;
Network connection switch closing unit, switchs in the open state for the network connection in mobile terminal, closes The network connection of the mobile terminal switchs.
In embodiments of the present invention, since the network that mobile terminal is automatically closed when mobile terminal is in and puts out screen state connects Switch is connect, therefore, so that user is not necessarily to light the screen of mobile terminal again without the network company in open mobile terminal Network connection switch is closed in border face, to save the time of the network connection switch of turning-off mobile terminal, improves user Good experience.
Detailed description of the invention
Fig. 1 is a kind of flow chart for method that network connection switch is automatically closed that first embodiment of the invention provides;
Fig. 2 is a kind of structure chart for device that network connection switch is automatically closed 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 objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, 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, detect mobile terminal be in put out screen state when, detect the network connection of mobile terminal Whether switch is in the open state, switchs in the open state in the network connection of mobile terminal, closes the mobile terminal Network connection switch.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one:
Fig. 1 shows a kind of process of method that network connection switch is automatically closed of first embodiment of the invention offer Figure, details are as follows:
Step S11, whether detection mobile terminal, which is in, is put out screen state.
Specifically, judged by detecting the brightness value of the backlight of mobile terminal, if the brightness value of backlight reaches To the threshold value for putting out screen, then determine 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, whether the network connection switch for detecting mobile terminal, which is in, is beaten Open state.
Wherein, network connection switch here includes that wifi connection switch and data network connection switch.In the step, inspection Survey mobile terminal network connection switch it is whether in the open state specifically: detect mobile terminal wifi connection switch and/ Or whether data network connection switch is in the open state.
Optionally, described when mobile terminal is in and puts out screen state, whether the network connection switch for detecting mobile terminal is located In opening state, specifically include:
A1, mobile terminal be in put out screen state when, judge mobile terminal be in put out screen state time whether be less than it is pre- If put out screen time threshold.Wherein, the preset screen time threshold that puts out is usually shorter, for example, being set as 2 seconds, 3 seconds etc..
A2, mobile terminal be in put out screen state time be less than it is preset put out screen time threshold when, detect mobile terminal Network connection switch it is whether in the open state.
In above-mentioned A1 and A2, when judge mobile terminal be in put out screen state when, continue judge mobile terminal in putting out screen The time of state whether be less than it is preset put out screen time threshold, if being less than, showing user just terminates using mobile terminal soon, At this point, the network connection of detection mobile terminal switchs and close network connection switch in the open state, can reduce in time It is connected to the network switch bring resource loss due to opening, to save the electricity of mobile terminal, reduces and opens network company Connect switch bring radiation.
Optionally, judge whether user has just terminated may be used also using except mobile terminal except through putting out the length of screen time To be judged by the screen for detecting mobile terminal with the presence or absence of projection, at this point, in the network connection switch of detection mobile terminal Whether it is in the open state before, comprising:
B1, the mobile terminal is judged before putting out screen state, the screen of the mobile terminal is with the presence or absence of projection.Tool Body, the light intensity of mobile terminal is projected by light sensation modular spacing set time (as being spaced 1 millisecond, 10 milliseconds etc.) detection, When the difference of the light intensity of the mobile terminal ambient enviroment for the light intensity and detection for projecting mobile terminal is greater than preset Intensity threshold, Determine that the screen of mobile terminal has projection, and when projecting, the user of mobile terminal is likely to when the screen of mobile terminal exists The mobile terminal is used.Certainly, before this step, need to detect the screen of mobile terminal in real time or within interval time Curtain is with the presence or absence of projection, so as to the letter that after mobile terminal is in and puts out screen state, can will be stored in certain time before putting out screen Breath takes out, then judges mobile terminal before putting out screen state, and the screen of mobile terminal is with the presence or absence of projection.
B2, when there is projection in the screen of the mobile terminal, judge the size of the area of the projection whether default It changes in time, to detect mobile terminal when the size of the area of the projection changes within a preset time Whether network connection switch is in the open state.Since user is often in motion state (such as swing of head etc.), if The projection for being projected as user of mobile terminal, then the size of the area of the projection of the mobile terminal can occur within a preset time Variation.Certainly, since user is when preparing using mobile terminal, excessive swing will not be generated, therefore, only in projection The size of area changes within a preset time, and occur variation be less than preset area threshold when just projection is determined as The projection of user judges whether the user of mobile terminal is used the accuracy rate of the mobile terminal to improve.
Step S13 switchs in the open state in the network connection of mobile terminal, closes the network of the mobile terminal Connection switch.
Wherein, the network connection switch of turning-off mobile terminal refers to the switch closed for connecting network, for example, it is assumed that " 0 " indicates that the network connection switch of mobile terminal is closing, when " 1 " indicates the network connection switch of mobile terminal to open, then The network connection switch for closing the mobile terminal is specially that " 0 " is set to " 1 ".
Optionally, when data network connection switch and wifi connection switch are all in opening state, the closing institute The network connection switch for stating mobile terminal, specifically includes:
C1, the wifi information for obtaining current environment, and judge whether the mobile terminal saves the current environment Wifi information.Wherein, the wifi information of current environment includes: wifi unique identification (such as title), the connection password of current environment Deng.Specifically, when mobile terminal accesses a wifi, the information of the wifi is saved, therefore, when acquisition for mobile terminal is to newly Wifi information (the wifi information of current environment) when, by the new wifi information compared with the wifi information of preservation, if they are the same (wifi unique identification and connection password are all identical) then determines that mobile terminal saves the wifi information of the current environment.
C2, when the mobile terminal saves the wifi information of the current environment, close the data of the mobile terminal Network connection switch.Since mobile terminal has access to the wifi of current environment, the data network of turning-off mobile terminal Connection switch, retains open wifi connection switch, can not only save electricity, reduce radiation, mobile terminal can also be made to continue Keep the state of access network.
C3, when the mobile terminal does not save the wifi information of the current environment, close the mobile terminal Data network connection switchs and closes the wifi connection switch of the mobile terminal.It is not saved in mobile terminal described current When the wifi information of environment, even if therefore the wifi that wifi connection switch opening can not access current environment is simultaneously closed off Wifi connection switch and data network connection switch can be further reduced to be connected due to opening wifi connection switch and data network Connect the spent electricity of switch.
In above-mentioned C1~C3, when wifi connection switch and data network connection switch all in opening state when, by sentencing Disconnected mobile terminal whether can access the wifi of current environment choose whether close wifi connection switch, in a practical situation, Wifi connection switch and data network connection switch can be directly simultaneously closed off, at this point, optionally, switching in data network connection And wifi connection switch all in opening state when, the network connection switch for closing the mobile terminal specifically includes:
D1, the data network connection switch for closing mobile terminal in the open state.And
D2, the wifi connection switch for closing mobile terminal in the open state.
In above-mentioned D1 and D2, when judging that the time that the specified key of mobile terminal is pressed is more than preset compressing time When threshold value, wifi connection switch and data network connection switch are closed, user's multi-pass operation is not necessarily to, improves the good body of user It tests.
Certainly, data network connection switch and any of wifi connection switch in the open state, the pass The network connection switch for closing the mobile terminal, specifically includes:
E1, it is switched in the open state in data network connection, closes data network connection in the open state and open It closes.
E2, wifi connection switch in the open state, close wifi connection switch in the open state.
In above-mentioned E1 and E2, when judge that wifi connection switch is in close state and data network connection switch in beating When open state, then data network connection switch is closed;On the contrary, then closing wifi connection switch.Due to close any one be in beat The wifi connection switch and data network connection of open state switch, so that wifi connection switch and data network connection switch are all located In closed state, therefore, the electricity of mobile terminal can be greatly saved.
Optionally, when closing wifi connection switch in the open state, comprising:
It asks the user whether to close wifi connection switch, alternatively, prompt user is turned off wifi connection switch.
Since existing application is frequently by the automatic downloading resource in backstage, so as to the application that timely updates, and wifi company is closed It connects switch and is likely difficult to resource needed for downloading in time, therefore, before closing wifi connection switch in the open state, inquiry Whether user closes wifi connection switch, alternatively, having prompted user after closing wifi connection switch in the open state Wifi connection switch is closed, family is able to use and knows more information content.Certainly, ask the user whether that closing wifi connection opens It closes, alternatively, needing to light screen when prompt user is turned off wifi connection switch, and is shown accordingly on the screen lighted Information.
In first embodiment of the invention, detect mobile terminal be in put out screen state when, detect the network of mobile terminal Whether connection switch is in the open state, switchs in the open state in the network connection of mobile terminal, closes the movement The network connection of terminal switchs.Network connection since mobile terminal being automatically closed when mobile terminal is in and puts out screen state is opened It closes, therefore, so that user is not necessarily to light the screen of mobile terminal again without network connection circle in open mobile terminal Network connection switch is closed in face, to save the time of the network connection switch of turning-off mobile terminal, improves the good of user Good experience.
It should be understood that in embodiments of the present invention, magnitude of the sequence numbers of the above procedures are not meant to the elder generation of execution sequence Afterwards, the execution sequence of each process should be determined by its function and internal logic, the implementation process structure without coping with the embodiment of the present invention At any restriction.
Embodiment two:
Fig. 2 shows a kind of structures for device that network connection switch is automatically closed that second embodiment of the invention provides Figure, the device that network connection switch is automatically closed can be applied in mobile terminal, the mobile terminal packet described in the disclosure It is (portable more to include mobile phone, smart phone, laptop computer, digital broadcast terminal, PDA (personal digital assistant), PMP Media player), navigation system etc..Except when the embodiment described in the disclosure can answer when being only applied to mobile terminal For fixed terminals such as DTV, desktop computers.For ease of description, it illustrates only related to the embodiment of the present invention Part.
The device that network connection switch is automatically closed includes: to put out screen state detection unit 21, network connection switch state Detection unit 22, network connection switch closing unit 23.Wherein:
Screen state detection unit 21 is put out, puts out screen state for detecting mobile terminal and whether being in.
Specifically, judged by detecting the brightness value of the backlight of mobile terminal, if the brightness value of backlight reaches To the threshold value for putting out screen, then determine 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.
It is connected to the network switch state detection unit 22, for detecting mobile terminal when mobile terminal is in and puts out screen state Network connection switch it is whether in the open state.
Wherein, network connection switch here includes that wifi connection switch and data network connection switch.Detection is mobile eventually Whether the network connection switch at end is in the open state specifically: detects the wifi connection switch and/or data network of mobile terminal Whether network connection switch is in the open state.
Optionally, the network connection switch state detection unit 22 includes:
Screen time judgment module is put out, for judging that mobile terminal is in and putting out screen shape when mobile terminal is in and puts out screen state Whether the time of state, which is less than, preset is put out screen time threshold.Wherein, the preset screen time threshold that puts out is usually shorter, for example, setting It is 2 seconds, 3 seconds etc..
It is connected to the network switch state judgment module, for being less than preset put out in the time for putting out screen state in mobile terminal When shielding time threshold, whether the network connection switch for detecting mobile terminal is in the open state.
It is above-mentioned to put out in screen time judgment module and network connection switch state judgment module, when judging that mobile terminal is in When putting out screen state, continue to judge mobile terminal be in put out screen state time whether be less than it is preset put out screen time threshold, if small In then showing that user just terminates using mobile terminal soon, at this point, the network connection of detection mobile terminal is switched and closed and is in The network connection of opening state switchs, and can reduce in time and be connected to the network switch bring resource loss due to opening, to save The electricity for having saved mobile terminal reduces opening network connection switch bring radiation.
Optionally, judge whether user has just terminated may be used also using except mobile terminal except through putting out the length of screen time To be judged by the screen for detecting mobile terminal with the presence or absence of projection, at this point, the dress that network connection switch is automatically closed It sets and includes:
Project detection unit, for judge the mobile terminal be in put out screen state before, the screen of the mobile terminal With the presence or absence of projection.Specifically, it is projected by light sensation modular spacing set time (as being spaced 1 millisecond, 10 milliseconds etc.) detection The light intensity of mobile terminal, when the difference of the light intensity of the mobile terminal ambient enviroment for the light intensity and detection for projecting mobile terminal is greater than in advance If Intensity threshold when, determine that the screen of mobile terminal has projection, and when the screen of mobile terminal exists and projects, it is mobile eventually The user at end is likely to that the mobile terminal is used.
Projected area judging unit judges the face of the projection when there is projection for the screen in the mobile terminal Whether long-pending size changes within a preset time, to become within a preset time in the size of the area of the projection Whether the network connection switch that mobile terminal is detected when change is in the open state.Due to user often in motion state (such as The swing etc. of head), therefore, if the projection for being projected as user of mobile terminal, the area of the projection of the mobile terminal it is big It is small to change within a preset time.Certainly, since user is when preparing using mobile terminal, excessive pendulum will not be generated Dynamic, the variation for therefore, only changing, and occurring within a preset time in the size of the area of projection is less than preset area Projection is just determined as to the projection of user when threshold value, judges whether the user of mobile terminal is used the movement eventually to improve The accuracy rate at end.
Network connection switch closing unit 23, switchs in the open state for the network connection in mobile terminal, closes Close the network connection switch of the mobile terminal.
Optionally, when data network connection switch and wifi connection switch are all in opening state, the network connects Connecing switch closing unit 23 includes:
Wifi data obtaining module for obtaining the wifi information of current environment, and judges 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 identification of current environment (such as title), connection password.Specifically, when mobile terminal accesses a wifi, the information of the wifi is saved, therefore, When acquisition for mobile terminal is to new wifi information (the wifi information of current environment), by the new wifi information and save Wifi information compares, if they are the same (wifi unique identification and connection password are all identical), then it is described current to determine that mobile terminal saves The wifi information of environment.
First network connection switch closedown module, for saving the wifi information of the current environment in the mobile terminal When, close the data network connection switch of the mobile terminal.Since mobile terminal has access to the wifi of current environment, because This, the data network connection of turning-off mobile terminal switch retains open wifi connection switch, 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 switch closedown module, for not saving the wifi of the current environment in the mobile terminal When information, closes the data network connection switch of the mobile terminal and close the wifi connection switch of the mobile terminal. When mobile terminal does not save the wifi information of the current environment, even if wifi connection switch opening can not access currently The wifi of environment, therefore, simultaneously closing off wifi connection switch and data network connection switch can be further reduced due to opening Electricity spent by wifi connection switch and data network connection switch.
Optionally, wifi connection switch and data network connection switch, the network connection switch are directly being simultaneously closed off Closing unit 23 includes:
Data network connection switchs closedown module, for closing the data network connection of mobile terminal in the open state Switch.And
Wifi connection switch closedown module, for closing the wifi connection switch of mobile terminal in the open state.
In above-mentioned data network connection switch closedown module and wifi connection switch closedown module, due to directly closing data Network connection switch and wifi connection switch, it is therefore not necessary to user's multi-pass operation, to improve the good experience of user.
Optionally, when closing wifi connection switch in the open state, comprising:
It asks the user whether to close wifi connection switch, alternatively, prompt user is turned off wifi connection switch.
Since existing application is frequently by the automatic downloading resource in backstage, so as to the application that timely updates, and wifi company is closed It connects switch and is likely difficult to resource needed for downloading in time, therefore, before closing wifi connection switch in the open state, inquiry Whether user closes wifi connection switch, alternatively, having prompted user after closing wifi connection switch in the open state Wifi connection switch is closed, family is able to use and knows more information content.Certainly, ask the user whether that closing wifi connection opens It closes, alternatively, needing to light screen when prompt user is turned off wifi connection switch, and is shown accordingly on the screen lighted Information.
In second embodiment of the invention, since the network of mobile terminal being automatically closed when mobile terminal is in and puts out screen state Connection switch, therefore, so that user is not necessarily to light the screen of mobile terminal again without the network in open mobile terminal Linkage interface closes network connection switch, to save the time of the network connection switch of turning-off mobile terminal, improves use The good experience at family.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure 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 implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, 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 corresponding processes in the foregoing 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 logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that 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 or disk.
Fig. 3 shows a kind of structural block diagram of mobile terminal, which can be used for implementing mentioning in above-described embodiment The method of the automatic connection network supplied.
As shown in figure 3, mobile terminal 1200 may 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, voicefrequency circuit 160, transmission module 170, includes one or more than one and (only shows one in figure sensor 150 It is a) processor 180 of processing core and the equal components of power supply 190.It will be understood by those skilled in the art that being moved shown in Fig. 3 Dynamic 1200 structure of terminal does not constitute the restriction to mobile terminal 1200, may include components more more or fewer than diagram, or Person combines certain components or different component layouts.Wherein:
RF circuit 110 realizes the mutual conversion of electromagnetic wave and electric signal, thus with logical for receiving and transmitting electromagnetic wave News network or other equipment are communicated.RF circuit 110 may include various existing for executing the circuit elements of these functions Part, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, storage Device etc..RF circuit 110 can carry out communicating or by wireless with various networks such as internet, intranet, wireless network Network is communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN). Various communication standards, agreement and technology, including but not limited to global system for mobile communications can be used in above-mentioned wireless network (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 are for mail, instant messaging and short message Agreement and any other suitable communications protocol, or even may include the agreement that those are not developed currently yet.
Memory 120 can be used for storing software program and module, open as network connection is automatically closed in above-described embodiment Corresponding program instruction/the module of the method, device of pass, the software program that processor 180 is stored in memory 120 by operation And module, the network connection that is automatically closed thereby executing various function application and data processing, i.e. realization mobile terminal are opened The function of pass.Memory 120 may include high speed random access memory, may also include nonvolatile memory, such as one or more Magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, memory 120 can be wrapped further The memory remotely located relative to processor 180 is included, these remote memories can pass through network connection to mobile terminal 1200.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.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 nearby touch operation (such as user using any suitable object or attachment such as finger, stylus 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 touch operation bring signal 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 can receive processor 180 The order sent simultaneously is executed.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.), One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and mobile terminal that are supplied to user 1200 various graphical user interface, these graphical user interface can be by figure, text, icon, video and any combination thereof To constitute.Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) come Configure display panel 141.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 processor 180 to determine the type of touch event, be followed by subsequent processing device 180 according to touching The type for touching event provides corresponding visual output on display panel 141.Although in Fig. 3, touch sensitive surface 131 and display surface Plate 141 is to realize input and input function as two independent components, but in some embodiments it is possible to by touch-sensitive table Face 131 and display panel 141 integrate and realize and output and input 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 a 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 sensor for can also configure as mobile terminal 1200 etc. its His sensor, details are not described herein.
Voicefrequency circuit 160, loudspeaker 161, the audio that microphone 162 can provide between user and mobile terminal 1200 connect Mouthful.Electric signal after the audio data received conversion can be transferred to loudspeaker 161, by loudspeaker 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 by after the processing of audio data output processor 180, through RF circuit 110 to be sent to ratio Such as another terminal, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that Earphone jack, to provide the communication of peripheral hardware earphone Yu mobile terminal 1200.
Mobile terminal 1200 can help user send and receive e-mail, is clear by transmission module 170 (such as Wi-Fi module) Look at webpage and access streaming video etc., it provides wireless broadband internet for user and accesses.Although Fig. 3 shows transmission mould Block 170, but it is understood that, and it is not belonging to must be configured into for mobile terminal 1200, it is can according to need completely not Change in the range of the essence of invention and omits.
Processor 180 is the control centre of mobile terminal 1200, utilizes each of various interfaces and connection whole mobile phone A part by running or execute the software program and/or module that are stored in memory 120, and calls and is stored in storage Data in device 120 execute the various functions and processing data of mobile terminal 1200, 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, thus 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 source, recharging system, electricity The random components such as source fault detection circuit, power adapter 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 further includes having memory and one Perhaps more than one program one of them or more than one program is stored in memory, and be configured to by one or The execution of more than one processor of person states one or more than one program includes the instruction for performing the following operation:
Whether detection mobile terminal, which is in, is put out screen state;
When mobile terminal is in and puts out screen state, whether the network connection switch for detecting mobile terminal is in the open state;
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, it is described mobile terminal be in put out screen state when, detect the network connection of mobile terminal Whether switch is in the open state, specifically includes:
When mobile terminal is in and puts out screen state, it is preset to judge whether mobile terminal is less than in the time for putting out screen state Put out screen time threshold;
Mobile terminal be in put out screen state time be less than it is preset put out screen time threshold when, detect the net of mobile terminal Whether network connection switch is in the open state.
In the third the possible embodiment provided based on the first possible embodiment, moved in detection Before whether the network connection switch of dynamic terminal is in the open state, comprising:
The mobile terminal is judged before putting out screen state, and the screen of the mobile terminal is with the presence or absence of projection;
When the screen of the mobile terminal has projection, judge the size of the area of the projection whether in preset time It inside changes, to detect the network of mobile terminal when the size of the area of the projection changes within a preset time Whether connection switch is in the open state.
The first, second, the third possible embodiment based on and provide the 4th kind of possible implementation In mode, the network connection switch for closing the mobile terminal is specifically included:
The wifi information of current environment is obtained, and judges whether the mobile terminal saves the wifi letter of the current environment Breath;
When the mobile terminal saves the wifi information of the current environment, the data network of the mobile terminal is closed Connection switch;
When the mobile terminal does not save the wifi information of the current environment, the data of the mobile terminal are closed Network connection switch and the wifi connection switch for closing the mobile terminal.
The first, second, the third possible embodiment based on and provide the 5th kind of possible implementation In mode, the network connection switch for closing the mobile terminal is specifically included:
Close the data network connection switch of mobile terminal in the open state;And
Close the wifi connection switch of mobile terminal in the open state.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. a kind of method that network connection switch is automatically closed, which is characterized in that the described method includes:
The screen for detecting mobile terminal whether there is projection, specifically: it is projected to by the detection of light sensation modular spacing set time The light intensity of mobile terminal, when the difference of the light intensity of the mobile terminal ambient enviroment for the light intensity and detection for projecting mobile terminal is greater than in advance If Intensity threshold when, determine mobile terminal screen exist projection;
Whether detection mobile terminal, which is in, is put out screen state, specifically: the brightness value by detecting the backlight of mobile terminal carries out Judgement determines that mobile terminal is in and puts out screen state, otherwise, it is determined that moving if the brightness value of backlight reaches the threshold value for putting out screen Dynamic terminal is in non-and puts out screen state;
When mobile terminal is in and puts out screen state, and when the screen of the mobile terminal exists and projects, the projection is judged Whether the size of area changes within a preset time, when the size of the area of the projection changes within a preset time When, whether the network connection switch for detecting mobile terminal is in the open state;When mobile terminal be in it is non-put out screen state when, do not control System executes any operation;
It is switched in the open state in the network connection for detecting mobile terminal, the network connection for closing the mobile terminal is opened It closes, the network connection switch of the turning-off mobile terminal refers to the switch closed for connecting network.
2. detection moves the method according to claim 1, wherein described when mobile terminal is in and puts out screen state Whether the network connection switch of dynamic terminal is in the open state, comprising:
When mobile terminal is in and puts out screen state, judges that mobile terminal is in and put out whether time of screen state is less than and preset puts out screen Time threshold;
Mobile terminal be in put out screen state time be less than it is preset put out screen time threshold when, detect mobile terminal network connect Whether in the open state connect switch.
3. method according to claim 1 or 2, which is characterized in that the network connection for closing the mobile terminal is opened It closes, comprising:
The wifi information of current environment is obtained, and judges whether the mobile terminal saves the wifi information of the current environment;
When the mobile terminal saves the wifi information of the current environment, the data network connection of the mobile terminal is closed Switch;
When the mobile terminal does not save the wifi information of the current environment, the data network of the mobile terminal is closed Connection switch and the wifi connection switch for closing the mobile terminal.
4. method according to claim 1 or 2, which is characterized in that the network connection for closing the mobile terminal is opened It closes, comprising:
Close the data network connection switch of mobile terminal in the open state;And
Close the wifi connection switch of mobile terminal in the open state.
5. a kind of device that network connection switch is automatically closed, which is characterized in that described device includes:
Detection unit is projected, for judging mobile terminal before putting out screen state, the screen of the mobile terminal whether there is Projection;
Projected area judging unit judges the area of the projection when there is projection for the screen in the mobile terminal Whether size changes within a preset time, so as to when the size of the area of the projection changes within a preset time Whether the network connection switch for detecting mobile terminal is in the open state;When mobile terminal be in it is non-put out screen state when, do not control Execute any operation;
Screen state detection unit is put out, puts out screen state for detecting mobile terminal and whether being in, specifically: by detecting mobile terminal The brightness value of backlight judged, if the brightness value of backlight reaches the threshold value for putting out screen, determine that mobile terminal is in Screen state is put out, otherwise, it is determined that mobile terminal, which is in non-, puts out screen state;
It is connected to the network switch state detection unit, puts out screen state, and the screen of the mobile terminal for being in mobile terminal On the size of area of projection when changing within a preset time, whether the network connection switch for detecting mobile terminal is in Opening state;
Network connection switch closing unit is closed for switching in the open state in the network connection for detecting mobile terminal The network connection switch of the mobile terminal is closed, the network connection switch of the turning-off mobile terminal refers to closing for connecting net The switch of network.
6. device according to claim 5, which is characterized in that the network connection switch state detection unit includes:
Screen time judgment module is put out, for judging that mobile terminal is in and putting out screen state when mobile terminal is in and puts out screen state Whether the time, which is less than, preset is put out screen time threshold;
Be connected to the network switch state judgment module, for mobile terminal be in put out screen state time be less than it is preset put out screen when Between threshold value when, detect mobile terminal network connection switch it is whether in the open state.
7. device according to claim 5 or 6, which is characterized in that the network connection switchs closing unit and includes:
Wifi data obtaining module for obtaining the wifi information of current environment, and judges whether the mobile terminal saves institute State the wifi information of current environment;
First network connection switch closedown module, when for saving the wifi information of the current environment in the mobile terminal, Close the data network connection switch of the mobile terminal;
Second network connection switch closedown module, for not saving the wifi information of the current environment in the mobile terminal When, it closes the data network connection switch of the mobile terminal and closes the wifi connection switch of the mobile terminal.
8. device according to claim 5 or 6, which is characterized in that the network connection switchs closing unit and includes:
Data network connection switchs closedown module, and the data network connection for closing mobile terminal in the open state is opened It closes;And
Wifi connection switch closedown module, for closing the wifi connection switch of mobile terminal in the open state.
CN201510600391.5A 2015-09-18 2015-09-18 The method and device of network connection switch is automatically closed Expired - Fee Related CN105306682B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510600391.5A CN105306682B (en) 2015-09-18 2015-09-18 The method and device of network connection switch is automatically closed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510600391.5A CN105306682B (en) 2015-09-18 2015-09-18 The method and device of network connection switch is automatically closed

Publications (2)

Publication Number Publication Date
CN105306682A CN105306682A (en) 2016-02-03
CN105306682B true CN105306682B (en) 2019-01-11

Family

ID=55203413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510600391.5A Expired - Fee Related CN105306682B (en) 2015-09-18 2015-09-18 The method and device of network connection switch is automatically closed

Country Status (1)

Country Link
CN (1) CN105306682B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105517089A (en) * 2016-02-26 2016-04-20 宁波萨瑞通讯有限公司 Method capable of automatically connecting to network and mobile terminal
CN105791586A (en) * 2016-04-25 2016-07-20 努比亚技术有限公司 WIFI automatic closing method and device and mobile terminal
CN106060909B (en) * 2016-05-26 2019-07-16 珠海市魅族科技有限公司 A kind of method for connecting network and mobile terminal
CN106125884B (en) * 2016-06-16 2019-05-17 维沃移动通信有限公司 A kind of processing method and mobile terminal of the background task of mobile terminal
CN106302984A (en) * 2016-07-28 2017-01-04 努比亚技术有限公司 A kind of method and device controlling data cube computation
CN106060913A (en) * 2016-07-29 2016-10-26 宇龙计算机通信科技(深圳)有限公司 Wake-on-LAN method and device
CN106255146B (en) * 2016-08-16 2018-01-19 广东欧珀移动通信有限公司 A kind of electricity-saving control method of terminal, device and terminal
CN106527932A (en) * 2016-10-25 2017-03-22 惠州Tcl移动通信有限公司 Switching method and system of WiFi (Wireless Fidelity) mode
CN107087299B (en) * 2017-04-05 2019-12-03 中国联合网络通信集团有限公司 Wireless Networking control method and device
CN107094322B (en) * 2017-04-28 2020-07-21 维沃移动通信有限公司 Wireless local area network connection method and mobile terminal
WO2019071524A1 (en) * 2017-10-12 2019-04-18 深圳传音通讯有限公司 Intelligent terminal-based wireless network control method and wireless network control device
WO2019071523A1 (en) * 2017-10-12 2019-04-18 深圳传音通讯有限公司 Wireless network control method and wireless network control apparatus based on intelligent terminal
CN109379498B (en) * 2018-11-13 2020-12-22 Oppo广东移动通信有限公司 Electromagnetic interference control method and related device
CN110493892B (en) * 2019-08-12 2021-07-16 RealMe重庆移动通信有限公司 Network connection method and device, storage medium and communication terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236403A (en) * 2010-04-23 2011-11-09 三竹资讯股份有限公司 Automatic online and offline device and method for financial tape reading software of mobile device
CN103167185A (en) * 2011-12-09 2013-06-19 网秦无限(北京)科技有限公司 Battery energy conservation method and battery energy conservation system
CN103313427A (en) * 2013-05-08 2013-09-18 广东欧珀移动通信有限公司 Method and device for starting data network of mobile terminal and mobile terminal
CN103442148A (en) * 2013-09-11 2013-12-11 广州市久邦数码科技有限公司 Intelligent power-saving system and intelligent power-saving method for mobile terminals
CN104394582A (en) * 2014-11-24 2015-03-04 上海盈方微电子有限公司 WiFi sleeping method for Android device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236403A (en) * 2010-04-23 2011-11-09 三竹资讯股份有限公司 Automatic online and offline device and method for financial tape reading software of mobile device
CN103167185A (en) * 2011-12-09 2013-06-19 网秦无限(北京)科技有限公司 Battery energy conservation method and battery energy conservation system
CN103313427A (en) * 2013-05-08 2013-09-18 广东欧珀移动通信有限公司 Method and device for starting data network of mobile terminal and mobile terminal
CN103442148A (en) * 2013-09-11 2013-12-11 广州市久邦数码科技有限公司 Intelligent power-saving system and intelligent power-saving method for mobile terminals
CN104394582A (en) * 2014-11-24 2015-03-04 上海盈方微电子有限公司 WiFi sleeping method for Android device

Also Published As

Publication number Publication date
CN105306682A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
CN105306682B (en) The method and device of network connection switch is automatically closed
CN104636047B (en) The method, apparatus and touch screen terminal operated to the object in list
CN104571787B (en) A kind of message display method and communication terminal
CN107203147B (en) Internet of Things network control system based on cloud platform and method
CN105892850B (en) Open method, device and the mobile terminal of application program for mobile terminal
CN106327166A (en) Information processing method and mobile terminal
CN105187653B (en) Network connection switchs method for closing and device
CN106383654A (en) Touch screen parameter adjustment method and mobile terminal
CN104899080A (en) Method and apparatus for switching real-time image in instant messaging
CN106453839B (en) The method of adjustment and mobile terminal of antenna
CN106657566B (en) The method of adjustment and mobile terminal of physical button
CN106326073B (en) The method and mobile terminal of information processing
CN108958626A (en) Gesture identification method, device, readable storage medium storing program for executing and mobile terminal
CN106445721B (en) The method and mobile terminal of house dog fault-tolerant processing
CN106326072B (en) The method and mobile terminal of information processing
CN105357657B (en) The construction method and device of Mesh network
CN105808043B (en) A kind of setting method and mobile terminal of terminal applies
CN109542325A (en) Double-sided screen touch control method, double-sided screen terminal, readable storage medium storing program for executing
CN105807908B (en) A kind of method and apparatus of switching working mode
CN106817489B (en) The reminding method and mobile terminal of message
CN106385486B (en) A kind of control method of proximity sensor, device and mobile terminal
CN105100361B (en) The way of recording and device of mobile terminal
CN106484141B (en) The setting method and mobile terminal of threshold value
CN106339862A (en) Information processing method and mobile terminal
CN105282330B (en) The method and device of automatic connection network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523841 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190111

CF01 Termination of patent right due to non-payment of annual fee