[go: up one dir, main page]

CN105187653B - Network connection switchs method for closing and device - Google Patents

Network connection switchs method for closing and device Download PDF

Info

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
connection switch
mobile terminal
network connection
wifi
state
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
CN201510591241.2A
Other languages
Chinese (zh)
Other versions
CN105187653A (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 CN201510591241.2A priority Critical patent/CN105187653B/en
Publication of CN105187653A publication Critical patent/CN105187653A/en
Application granted granted Critical
Publication of CN105187653B publication Critical patent/CN105187653B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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

网络连接开关关闭方法及装置Method and device for closing network connection switch

技术领域technical field

本发明实施例属于通信领域,尤其涉及一种网络连接开关关闭方法及装置。Embodiments of the present invention belong to the communication field, and in particular relate to a method and device for closing a network connection switch.

背景技术Background technique

目前,大部分的移动终端都具有网络连接的功能,而用户为节省移动终端的电量或为节省数据流量,通常在不使用wifi连接(或不使用数据网络连接)或减少辐射时都会选择关闭移动终端的wifi连接开关(或数据网络连接开关)。At present, most of the mobile terminals have the function of network connection, and in order to save the power of the mobile terminal or to save the data flow, the user usually chooses to turn off the mobile terminal when not using the wifi connection (or not using the data network connection) or reducing radiation. The wifi connection switch (or data network connection switch) of the terminal.

现有的网络连接开关关闭方法中,由于部分用户经常在亮屏时忘记关闭wifi连接开关(或数据网络连接开关),因此,需要用户再次点亮屏幕,解锁屏幕再关闭wifi连接开关(或数据网络连接开关)才能断开wifi连接(或数据网络连接),从而导致关闭wifi连接开关(或数据网络连接开关)过慢,降低了用户的良好体验。In the existing method for closing the network connection switch, because some users often forget to turn off the wifi connection switch (or data network connection switch) when the screen is turned on, the user needs to turn on the screen again, unlock the screen and then turn off the wifi connection switch (or data network connection switch). network connection switch) to disconnect the wifi connection (or data network connection), resulting in too slow turning off the wifi connection switch (or data network connection switch), which reduces the user's good experience.

发明内容Contents of the invention

本发明实施例提供了一种网络连接开关关闭方法及装置,旨在解决现有方法关闭wifi连接开关(或数据网络连接开关)过慢的问题。Embodiments of the present invention provide a method and device for closing a network connection switch, aiming to solve the problem that the existing method is too slow to close the wifi connection switch (or data network connection switch).

本发明实施例是这样实现的,一种网络连接开关关闭方法,所述方法包括:The embodiment of the present invention is achieved in this way, a method for closing a network connection switch, the method comprising:

检测移动终端是否处于熄屏状态;Detect whether the mobile terminal is in the off-screen state;

在移动终端处于熄屏状态时,检测移动终端指定的按键被按压的时间是否超过预设的按压时间阈值;When the mobile terminal is in the screen-off state, detect whether the time for pressing the key specified by the mobile terminal exceeds a preset pressing time threshold;

在移动终端指定的按键被按压的时间超过预设的按压时间阈值时,检测移动终端的网络连接开关;Detecting the network connection switch of the mobile terminal when the pressed time of the key designated by the mobile terminal exceeds the preset pressing time threshold;

在移动终端的网络连接开关处于打开状态时,关闭所述移动终端的网络连接开关。When the network connection switch of the mobile terminal is in the open state, turn off the network connection switch of the mobile terminal.

本发明实施例的另一目的在于提供一种网络连接开关关闭装置,所述装置包括:Another object of the embodiments of the present invention is to provide a device for closing a network connection switch, the device comprising:

熄屏状态检测单元,用于检测移动终端是否处于熄屏状态;A screen-off state detection unit is used to detect whether the mobile terminal is in a screen-off state;

按键被按压的时间检测单元,用于在移动终端处于熄屏状态时,检测移动终端指定的按键被按压的时间是否超过预设的按压时间阈值;The key is pressed time detection unit, which is used to detect whether the pressed time of the key specified by the mobile terminal exceeds the preset pressing time threshold when the mobile terminal is in a screen-off state;

网络连接开关检测单元,用于在移动终端指定的按键被按压的时间超过预设的按压时间阈值时,检测移动终端的网络连接开关;The network connection switch detection unit is used to detect the network connection switch of the mobile terminal when the time the key designated by the mobile terminal is pressed exceeds the preset pressing time threshold;

网络连接开关关闭单元,用于在移动终端的网络连接开关处于打开状态时,关闭所述移动终端的网络连接开关。The network connection switch closing unit is configured to close the network connection switch of the mobile terminal when the network connection switch of the mobile terminal is in the open state.

在本发明实施例中,由于移动终端只需检测到指定的按键被按压的时间超过预设的按压时间阈值时就关闭处于打开状态的网络连接开关,无需用户点亮屏幕并进入到网络连接界面关闭网络连接开关,因此,节省了操作步骤,从而提高了关闭网络连接开关的速度。In the embodiment of the present invention, since the mobile terminal only needs to detect that the designated button is pressed for a time exceeding the preset pressing time threshold, it will close the network connection switch in the open state, and there is no need for the user to light up the screen and enter the network connection interface The network connection switch is turned off, therefore, operation steps are saved, thereby increasing the speed of turning off the network connection switch.

附图说明Description of drawings

图1是本发明第一实施例提供的一种网络连接开关关闭方法的流程图;FIG. 1 is a flowchart of a method for closing a network connection switch provided by the first embodiment of the present invention;

图2是本发明第二实施例提供的一种网络连接开关关闭装置的结构图;Fig. 2 is a structural diagram of a device for closing a network connection switch provided by a second embodiment of the present invention;

图3是本发明第二实施例提供的一种移动终端的结构图。Fig. 3 is a structural diagram of a mobile terminal provided by a second embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例中,在移动终端处于熄屏状态时,检测移动终端指定的按键被按压的时间是否超过预设的按压时间阈值,若超过预设的按压时间阈值,检测移动终端的网络连接开关,并在移动终端的网络连接开关处于打开状态时,关闭所述移动终端的网络连接开关。In the embodiment of the present invention, when the mobile terminal is in the screen-off state, it is detected whether the pressed time of the key specified by the mobile terminal exceeds the preset pressing time threshold, and if it exceeds the preset pressing time threshold, the network connection switch of the mobile terminal is detected , and when the network connection switch of the mobile terminal is on, turn off the network connection switch of the mobile terminal.

为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.

实施例一:Embodiment one:

图1示出了本发明第一实施例提供的一种网络连接开关关闭方法的流程图,详述如下:Figure 1 shows a flow chart of a method for closing a network connection switch provided by the first embodiment of the present invention, which is described in detail as follows:

步骤S11,检测移动终端是否处于熄屏状态。Step S11 , detecting whether the mobile terminal is in a screen-off state.

具体地,通过检测移动终端的背光灯的亮度值进行判断,如果背光灯的亮度值达到熄屏的阈值,则判定移动终端处于熄屏状态,否则,判定移动终端处于非熄屏状态。Specifically, the determination is made by detecting the brightness value of the backlight of the mobile terminal. If the brightness value of the backlight reaches the screen-off threshold, it is determined that the mobile terminal is in the screen-off state; otherwise, it is determined that the mobile terminal is in a non-screen-off state.

步骤S12,在移动终端处于熄屏状态时,检测移动终端指定的按键被按压的时间是否超过预设的按压时间阈值。Step S12 , when the mobile terminal is in a screen-off state, it is detected whether the pressing time of the designated key of the mobile terminal exceeds a preset pressing time threshold.

可选地,为了不因为增加额外的按键而增加额外的成本,移动终端指定的按键为移动终端已有的按键,比如,为移动终端的“音量+按键”或“音量-按键”。在该步骤中,为了区分移动终端指定的按键原有的功能与本发明实施例增加的功能,当移动终端指定的按键被按压时,需要判断该移动终端指定的按键被按压的时间是否超过预设的按压时间阈值,只有当超过预设的按压时间阈值时才判定为执行本发明实施例增加的功能,否则,判定为执行原有的功能。该预设的按压时间阈值根据用户需要进行设定,比如,设定为3秒,4秒等。Optionally, in order not to increase additional costs due to the addition of additional keys, the keys specified by the mobile terminal are existing keys of the mobile terminal, for example, the "volume + key" or "volume - key" of the mobile terminal. In this step, in order to distinguish the original function of the key designated by the mobile terminal from the added function of the embodiment of the present invention, when the key designated by the mobile terminal is pressed, it is necessary to determine whether the time for the key designated by the mobile terminal to be pressed exceeds the preset time. Only when the preset pressing time threshold exceeds the preset pressing time threshold, it is determined that the added function of the embodiment of the present invention is executed; otherwise, it is determined that the original function is executed. The preset pressing time threshold is set according to user needs, for example, set to 3 seconds, 4 seconds and so on.

步骤S13,在移动终端指定的按键被按压的时间超过预设的按压时间阈值时,检测移动终端的网络连接开关。Step S13 , when the pressing time of the key designated by the mobile terminal exceeds the preset pressing time threshold, detect the network connection switch of the mobile terminal.

其中,移动终端的网络连接开关包括:wifi连接开关和数据网络连接开关。具体地,检测移动终端的网络连接开关对应的值,判断移动终端的网络连接开关对应的值标识该网络连接开关是处于打开状态,还是处于关闭状态。Wherein, the network connection switch of the mobile terminal includes: a wifi connection switch and a data network connection switch. Specifically, the value corresponding to the network connection switch of the mobile terminal is detected, and the value corresponding to the network connection switch of the mobile terminal is judged to indicate whether the network connection switch is on or off.

步骤S14,在移动终端的网络连接开关处于打开状态时,关闭所述移动终端的网络连接开关。Step S14, when the network connection switch of the mobile terminal is on, turn off the network connection switch of the mobile terminal.

具体地,若判断出移动终端的网络连接开关对应的值标识该网络连接开关是处于打开状态,则自动将网络连接开关对应的值修改为标识该网络连接开关是处于关闭状态的值。当然,在移动终端的网络连接开关处于关闭状态时,则不作任何处理,或者,直接点亮屏幕并进入解锁状态。由于用户主动按压移动终端指定的按键,因此,表明该用户希望使用该移动终端,此时,点亮屏幕并进入解锁状态能够节省打开移动终端的时间。Specifically, if it is determined that the value corresponding to the network connection switch of the mobile terminal indicates that the network connection switch is on, then automatically modify the value corresponding to the network connection switch to a value indicating that the network connection switch is on. Certainly, when the network connection switch of the mobile terminal is in the off state, no processing is performed, or the screen is directly turned on and enters the unlocked state. Since the user actively presses the designated key of the mobile terminal, it indicates that the user wants to use the mobile terminal. At this time, turning on the screen and entering the unlocked state can save the time of opening the mobile terminal.

可选地,在wifi连接开关和数据网络连接开关都处于打开状态时,所述关闭所述移动终端的网络连接开关,具体包括:Optionally, when both the wifi connection switch and the data network connection switch are on, the turning off the network connection switch of the mobile terminal specifically includes:

A1、获取当前环境的wifi信息,并判断所述移动终端是否保存所述当前环境的wifi信息。其中,当前环境的wifi信息包括:当前环境的wifi唯一标识(如名称)、连接密码等。具体地,当移动终端接入一个wifi时,保存所述wifi的信息,因此,当移动终端获取到新的wifi信息(当前环境的wifi信息)时,将该新的wifi信息与保存的wifi信息比较,若相同(wifi唯一标识和连接密码都相同),则判定移动终端保存所述当前环境的wifi信息。A1. Obtain the wifi information of the current environment, and judge whether the mobile terminal saves the wifi information of the current environment. Wherein, the wifi information of the current environment includes: a unique wifi identifier (such as a name) of the current environment, a connection password, and the like. Specifically, when the mobile terminal accesses a wifi, save the wifi information, therefore, when the mobile terminal acquires new wifi information (wifi information in the current environment), combine the new wifi information with the saved wifi information Comparison, if they are the same (both the unique wifi identifier and the connection password are the same), then it is determined that the mobile terminal saves the wifi information of the current environment.

A2、在所述移动终端保存所述当前环境的wifi信息时,关闭处于打开状态的数据网络连接开关。由于移动终端能够接入当前环境的wifi,因此,只关闭移动终端的数据网络连接开关,保留打开的wifi连接开关,不仅可以节省电量、减少辐射,也可使移动终端继续保持接入网络的状态。A2. When the mobile terminal saves the wifi information of the current environment, turn off the data network connection switch in the open state. Since the mobile terminal can access the wifi in the current environment, only turning off the data network connection switch of the mobile terminal and keeping the open wifi connection switch can not only save power and reduce radiation, but also keep the mobile terminal connected to the network .

A3、在所述移动终端没有保存所述当前环境的wifi信息时,关闭处于打开状态的wifi连接开关以及关闭处于打开状态的数据网络连接开关。在移动终端没有保存所述当前环境的wifi信息时,即使wifi连接开关打开也不能接入当前环境的wifi,因此,同时关闭wifi连接开关和数据网络连接开关能够进一步减少由于打开wifi连接开关和数据网络连接开关所耗费的电量。A3. When the mobile terminal does not save the wifi information of the current environment, turn off the wifi connection switch in the open state and the data network connection switch in the open state. When the mobile terminal does not save the wifi information of the current environment, even if the wifi connection switch is turned on, it cannot access the wifi of the current environment. The amount of power consumed by the network connection switch.

上述A1~A3中,当wifi连接开关和数据网络连接开关都处于打开状态时,通过判断移动终端是否能接入当前环境的wifi来选择是否关闭wifi连接开关,在实际情况中,也可以直接同时关闭wifi连接开关和数据网络连接开关,此时,所述关闭所述移动终端的网络连接开关,具体包括:In the above A1-A3, when both the wifi connection switch and the data network connection switch are turned on, it is determined whether the mobile terminal can access the wifi in the current environment to choose whether to turn off the wifi connection switch. Turn off the wifi connection switch and the data network connection switch. At this time, the network connection switch of the mobile terminal is turned off, specifically including:

B1、关闭处于打开状态的wifi连接开关。以及,B1. Turn off the wifi connection switch that is on. as well as,

B2、关闭处于打开状态的数据网络连接开关。B2. Turn off the data network connection switch that is turned on.

上述B1和B2中,当判断出移动终端指定的按键被按压的时间超过预设的按压时间阈值时,关闭wifi连接开关和数据网络连接开关,无需用户多次操作,提高用户的良好体验。In the above B1 and B2, when it is determined that the key pressed by the mobile terminal exceeds the preset pressing time threshold, the wifi connection switch and the data network connection switch are turned off, which does not require multiple operations by the user and improves the user's good experience.

可选地,在wifi连接开关和数据网络连接开关中的任一个处于打开状态时,所述关闭所述移动终端的网络连接开关,具体包括:Optionally, when any one of the wifi connection switch and the data network connection switch is in an open state, said turning off the network connection switch of the mobile terminal specifically includes:

C1、在wifi连接开关处于打开状态时,关闭处于打开状态的wifi连接开关。C1. When the wifi connection switch is on, turn off the on wifi connection switch.

C2、在数据网络连接开关处于打开状态时,关闭处于打开状态的数据网络连接开关。C2. When the data network connection switch is in the on state, turn off the data network connection switch in the on state.

上述C1和C2中,当判断出wifi连接开关处于关闭状态而数据网络连接开关处于打开状态时,则关闭数据网络连接开关;相反,则关闭wifi连接开关。由于关闭任一个处于打开状态的wifi连接开关和数据网络连接开关,使得wifi连接开关和数据网络连接开关都处于关闭状态,因此,能够极大地节省移动终端的电量。In the above C1 and C2, when it is determined that the wifi connection switch is off and the data network connection switch is on, the data network connection switch is turned off; otherwise, the wifi connection switch is turned off. By turning off any one of the wifi connection switch and the data network connection switch which is in the on state, the wifi connection switch and the data network connection switch are all in the off state, so the power of the mobile terminal can be greatly saved.

可选地,在所述关闭处于打开状态的wifi连接开关时,包括:Optionally, when said turning off the wifi connection switch in the on state, it includes:

询问用户是否关闭wifi连接开关,或者,提示用户已关闭wifi连接开关。Ask the user whether to turn off the wifi connection switch, or prompt the user to turn off the wifi connection switch.

由于现有的应用经常通过后台自动下载资源,以便及时更新应用,而关闭wifi连接开关可能难以及时下载所需资源,因此,在关闭处于打开状态的wifi连接开关之前,询问用户是否关闭wifi连接开关,或者,在关闭处于打开状态的wifi连接开关之后,提示用户已关闭wifi连接开关,能够使用户获知更多的信息量。当然,询问用户是否关闭wifi连接开关,或者,提示用户已关闭wifi连接开关时,需要点亮屏幕,并在点亮的屏幕上显示相应的信息。Since existing applications often automatically download resources through the background in order to update the application in time, it may be difficult to download the required resources in a timely manner when the wifi connection switch is turned off. Therefore, before turning off the wifi connection switch that is turned on, ask the user whether to turn off the wifi connection switch , or, after turning off the wifi connection switch that is turned on, prompting the user that the wifi connection switch has been turned off can enable the user to obtain more information. Certainly, when asking the user whether to turn off the wifi connection switch, or prompting the user that the wifi connection switch has been turned off, the screen needs to be turned on, and corresponding information is displayed on the turned on screen.

本发明第一实施例中,在移动终端处于熄屏状态时,检测移动终端指定的按键被按压的时间是否超过预设的按压时间阈值,若超过预设的按压时间阈值,检测移动终端的网络连接开关,并在移动终端的网络连接开关处于打开状态时,关闭所述移动终端的网络连接开关。由于用户无需点亮屏幕并进入到网络连接界面关闭网络连接开关,因此,节省了操作步骤,从而提高了关闭网络连接开关的速度。In the first embodiment of the present invention, when the mobile terminal is in the screen-off state, it is detected whether the pressed time of the key specified by the mobile terminal exceeds the preset pressing time threshold, and if it exceeds the preset pressing time threshold, the network of the mobile terminal is detected. A connection switch, and when the network connection switch of the mobile terminal is on, turn off the network connection switch of the mobile terminal. Since the user does not need to turn on the screen and enter the network connection interface to turn off the network connection switch, operation steps are saved, thereby increasing the speed of turning off the network connection switch.

应理解,在本发明实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in the embodiment of the present invention, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, rather than the implementation process of the embodiment of the present invention. constitute any limitation.

实施例二:Embodiment two:

图2示出了本发明第二实施例提供的一种网络连接开关关闭装置的结构图,该网络连接开关关闭装置可应用于移动终端中,在本公开中描述的移动终端包括移动电话、智能电话、膝上型计算机、数字广播终端、PDA(个人数字助理)、PMP(便携式多媒体播放器)、导航系统等。除了当仅应用于移动终端时,在本公开中描述的实施例可以应用于诸如数字电视、台式计算机等固定终端。为了便于说明,仅示出了与本发明实施例相关的部分。Fig. 2 shows a structural diagram of a device for closing a network connection switch provided by a second embodiment of the present invention. The device for closing a network connection switch can be applied to a mobile terminal. The mobile terminal described in this disclosure includes a mobile phone, a smart phone Telephones, laptop computers, digital broadcast terminals, PDAs (Personal Digital Assistants), PMPs (Portable Multimedia Players), navigation systems, etc. Embodiments described in this disclosure may be applied to stationary terminals such as digital televisions, desktop computers, etc., except when applied only to mobile terminals. For ease of description, only parts related to the embodiments of the present invention are shown.

该网络连接开关关闭装置包括:熄屏状态检测单元21、按键被按压的时间检测单元22、网络连接开关检测单元23、网络连接开关关闭单元24。其中:The device for closing the network connection switch includes: a screen-off state detection unit 21 , a key press time detection unit 22 , a network connection switch detection unit 23 , and a network connection switch closing unit 24 . in:

熄屏状态检测单元21,用于检测移动终端是否处于熄屏状态。The screen-off state detection unit 21 is configured to detect whether the mobile terminal is in a screen-off state.

具体地,通过检测移动终端的背光灯的亮度值进行判断,如果背光灯的亮度值达到熄屏的阈值,则判定移动终端处于熄屏状态,否则,判定移动终端处于非熄屏状态。Specifically, the determination is made by detecting the brightness value of the backlight of the mobile terminal. If the brightness value of the backlight reaches the screen-off threshold, it is determined that the mobile terminal is in the screen-off state; otherwise, it is determined that the mobile terminal is in a non-screen-off state.

按键被按压的时间检测单元22,用于在移动终端处于熄屏状态时,检测移动终端指定的按键被按压的时间是否超过预设的按压时间阈值。The key pressing time detection unit 22 is configured to detect whether the time for pressing the key specified by the mobile terminal exceeds a preset pressing time threshold when the mobile terminal is in a screen-off state.

可选地,为了不因为增加额外的按键而增加额外的成本,移动终端指定的按键为移动终端已有的按键,比如,为移动终端的“音量+按键”或“音量-按键”。其中,预设的按压时间阈值根据用户需要进行设定,比如,设定为3秒,4秒等。Optionally, in order not to increase additional costs due to the addition of additional keys, the keys specified by the mobile terminal are existing keys of the mobile terminal, for example, the "volume + key" or "volume - key" of the mobile terminal. Wherein, the preset pressing time threshold is set according to the needs of the user, for example, set to 3 seconds, 4 seconds and so on.

网络连接开关检测单元23,用于在移动终端指定的按键被按压的时间超过预设的按压时间阈值时,检测移动终端的网络连接开关。The network connection switch detection unit 23 is configured to detect the network connection switch of the mobile terminal when the time for pressing the key designated by the mobile terminal exceeds a preset pressing time threshold.

其中,移动终端的网络连接开关包括:wifi连接开关和数据网络连接开关。具体地,检测移动终端的网络连接开关对应的值,判断移动终端的网络连接开关对应的值标识该网络连接开关是处于打开状态,还是处于关闭状态。Wherein, the network connection switch of the mobile terminal includes: a wifi connection switch and a data network connection switch. Specifically, the value corresponding to the network connection switch of the mobile terminal is detected, and the value corresponding to the network connection switch of the mobile terminal is judged to indicate whether the network connection switch is on or off.

网络连接开关关闭单元24,用于在移动终端的网络连接开关处于打开状态时,关闭所述移动终端的网络连接开关。The network connection switch closing unit 24 is configured to close the network connection switch of the mobile terminal when the network connection switch of the mobile terminal is in the open state.

具体地,若判断出移动终端的网络连接开关对应的值标识该网络连接开关是处于打开状态,则自动将网络连接开关对应的值修改为标识该网络连接开关是处于关闭状态的值。当然,在移动终端的网络连接开关处于关闭状态时,则不作任何处理,或者,直接点亮屏幕并进入解锁状态。由于用户主动按压移动终端指定的按键,因此,表明该用户希望使用该移动终端,此时,点亮屏幕并进入解锁状态能够节省打开移动终端的时间。Specifically, if it is determined that the value corresponding to the network connection switch of the mobile terminal indicates that the network connection switch is on, then automatically modify the value corresponding to the network connection switch to a value indicating that the network connection switch is on. Certainly, when the network connection switch of the mobile terminal is in the off state, no processing is performed, or the screen is directly turned on and enters the unlocked state. Since the user actively presses the designated key of the mobile terminal, it indicates that the user wants to use the mobile terminal. At this time, turning on the screen and entering the unlocked state can save the time of opening the mobile terminal.

可选地,所述网络连接开关关闭单元24包括:Optionally, the network connection switch closing unit 24 includes:

wifi信息获取模块,用于获取当前环境的wifi信息,并判断所述移动终端是否保存所述当前环境的wifi信息。其中,当前环境的wifi信息包括:当前环境的wifi唯一标识(如名称)、连接密码等。具体地,当移动终端接入一个wifi时,保存所述wifi的信息,因此,当移动终端获取到新的wifi信息(当前环境的wifi信息)时,将该新的wifi信息与保存的wifi信息比较,若相同(wifi唯一标识和连接密码都相同),则判定移动终端保存所述当前环境的wifi信息。The wifi information acquisition module is used to acquire the wifi information of the current environment, and judge whether the mobile terminal saves the wifi information of the current environment. Wherein, the wifi information of the current environment includes: a unique wifi identifier (such as a name) of the current environment, a connection password, and the like. Specifically, when the mobile terminal accesses a wifi, save the wifi information, therefore, when the mobile terminal acquires new wifi information (wifi information in the current environment), combine the new wifi information with the saved wifi information Comparison, if they are the same (both the unique wifi identifier and the connection password are the same), then it is determined that the mobile terminal saves the wifi information of the current environment.

第一网络连接开关关闭模块,用于在所述移动终端保存所述当前环境的wifi信息时,关闭处于打开状态的数据网络连接开关。由于移动终端能够接入当前环境的wifi,因此,只关闭移动终端的数据网络连接开关,保留打开的wifi连接开关,不仅可以节省电量、减少辐射,也可使移动终端继续保持接入网络的状态。The first network connection switch closing module is configured to close the data network connection switch in an open state when the mobile terminal saves the wifi information of the current environment. Since the mobile terminal can access the wifi in the current environment, only turning off the data network connection switch of the mobile terminal and keeping the open wifi connection switch can not only save power and reduce radiation, but also keep the mobile terminal connected to the network .

第二网络连接开关关闭模块,用于在所述移动终端没有保存所述当前环境的wifi信息时,关闭处于打开状态的wifi连接开关以及关闭处于打开状态的数据网络连接开关。在移动终端没有保存所述当前环境的wifi信息时,即使wifi连接开关打开也不能接入当前环境的wifi,因此,同时关闭wifi连接开关和数据网络连接开关能够进一步减少由于打开wifi连接开关和数据网络连接开关所耗费的电量。The second network connection switch closing module is used to close the open wifi connection switch and close the open data network connection switch when the mobile terminal does not save the wifi information of the current environment. When the mobile terminal does not save the wifi information of the current environment, even if the wifi connection switch is turned on, it cannot access the wifi of the current environment. The amount of power consumed by the network connection switch.

可选地,所述网络连接开关关闭单元24包括:Optionally, the network connection switch closing unit 24 includes:

第一wifi连接开关关闭模块,用于关闭处于打开状态的wifi连接开关。以及,The first wifi connection switch closing module is used to close the wifi connection switch in the open state. as well as,

第一数据网络连接开关关闭模块,用于关闭处于打开状态的数据网络连接开关。The first data network connection switch closing module is used to close the data network connection switch in the open state.

上述第一wifi连接开关关闭模块和第一数据网络连接开关关闭模块中,当判断出移动终端指定的按键被按压的时间超过预设的按压时间阈值时,关闭wifi连接开关和数据网络连接开关,无需用户多次操作,提高用户的良好体验。In the above-mentioned first wifi connection switch closing module and the first data network connection switch closing module, when it is judged that the key pressed by the mobile terminal exceeds the preset pressing time threshold, the wifi connection switch and the data network connection switch are closed, There is no need for users to operate multiple times, which improves the user's good experience.

可选地,所述网络连接开关关闭单元24包括:Optionally, the network connection switch closing unit 24 includes:

第二wifi连接开关关闭模块,用于在wifi连接开关处于打开状态时,关闭处于打开状态的wifi连接开关。The second wifi connection switch closing module is used to close the on wifi connection switch when the wifi connection switch is on.

第二数据网络连接开关关闭模块,用于在数据网络连接开关处于打开状态时,关闭处于打开状态的数据网络连接开关。The second data network connection switch closing module is used to close the data network connection switch in the open state when the data network connection switch is in the open state.

上述第二wifi连接开关关闭模块和第二数据网络连接开关关闭模块中,由于关闭任一个处于打开状态的wifi连接开关和数据网络连接开关,使得wifi连接开关和数据网络连接开关都处于关闭状态,因此,能够极大地节省移动终端的电量。In the above-mentioned second wifi connection switch closing module and the second data network connection switch closing module, due to closing any open wifi connection switch and data network connection switch, the wifi connection switch and the data network connection switch are all in the closed state, Therefore, the power of the mobile terminal can be greatly saved.

可选地,所述网络连接开关关闭装置包括:Optionally, the device for closing the network connection switch includes:

信息提示单元,用于询问用户是否关闭wifi连接开关,或者,提示用户已关闭wifi连接开关。The information prompt unit is used to ask the user whether to turn off the wifi connection switch, or to prompt the user to turn off the wifi connection switch.

其中,询问用户是否关闭wifi连接开关,或者,提示用户已关闭wifi连接开关时,需要点亮屏幕,并在点亮的屏幕上显示相应的信息。由于显示了提示信息,因此使用户获知更多的信息量。Wherein, when asking the user whether to turn off the wifi connection switch, or prompting the user that the wifi connection switch has been turned off, the screen needs to be turned on, and corresponding information is displayed on the turned on screen. Since the prompt information is displayed, the user is informed of more information.

本发明第二实施例中,由于检测到指定的按键被按压的时间超过预设的按压时间阈值时就关闭处于打开状态的网络连接开关,无需用户点亮屏幕并进入到网络连接界面关闭网络连接开关,因此,节省了操作步骤,从而提高了关闭网络连接开关的速度。In the second embodiment of the present invention, since it is detected that the specified button is pressed for a time exceeding the preset pressing time threshold, the network connection switch in the open state is closed, and the user does not need to light up the screen and enter the network connection interface to close the network connection Switching, therefore, saves operation steps, thereby increasing the speed of switching off network connections.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

图3示出了一种移动终端的结构框图,该移动终端可以用于实施上述实施例中提供的自动连接网络的方法。Fig. 3 shows a structural block diagram of a mobile terminal, which can be used to implement the method for automatically connecting to a network provided in the above embodiments.

如图3所示,移动终端1200可以包括RF(Radio Frequency,射频)电路110、包括有一个或一个以上(图中仅示出一个)计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、传输模块170、包括有一个或者一个以上(图中仅示出一个)处理核心的处理器180以及电源190等部件。本领域技术人员可以理解,图3中示出的移动终端1200结构并不构成对移动终端1200的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:As shown in FIG. 3, a mobile terminal 1200 may include an RF (Radio Frequency, radio frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, and a display unit. 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, a power supply 190 and other components. Those skilled in the art can understand that the structure of the mobile terminal 1200 shown in FIG. 3 does not constitute a limitation to the mobile terminal 1200, and may include more or less components than those shown in the illustration, or combine certain components, or different components. layout. in:

RF电路110用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路110可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路110可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced DataGSM Environment,EDGE),宽带码分多址技术(Wideband Code Division MultipleAccess,WCDMA),码分多址技术(Code Division Access,CDMA)、时分多址技术(TimeDivision Multiple Access,TDMA),无线保真技术(Wireless Fidelity,Wi-Fi)(如美国电气和电子工程师协会标准IEEE 802.11a,IEEE 802.11b,IEEE802.11g和/或IEEE802.11n)、网络电话(Voice over Internet Protocol,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF circuit 110 is used to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with communication networks or other devices. The RF circuit 110 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, and the like. The RF circuit 110 can communicate with various networks such as the Internet, intranet, wireless network, or communicate with other devices through a wireless network. The wireless network mentioned above may include a cellular telephone network, a wireless local area network or a metropolitan area network. The wireless network mentioned above can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced DataGSM Environment (EDGE), broadband code division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) ( Such as IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE802.11n), VoIP (Voice over Internet Protocol, VoIP), Worldwide Interoperability for Microwave Access, Wi-Max), other protocols for email, instant messaging, and short messaging, and any other suitable communication protocol, even those that have not yet been developed.

存储器120可用于存储软件程序以及模块,如上述实施例中网络连接开关关闭方法/装置对应的程序指令/模块,处理器180通过运行存储在存储器120内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现移动终端的网络连接开关关闭功能。存储器120可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器120可进一步包括相对于处理器180远程设置的存储器,这些远程存储器可以通过网络连接至移动终端1200。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 120 can be used to store software programs and modules, such as the program instructions/modules corresponding to the method/device for closing the network connection switch in the above-mentioned embodiments, and the processor 180 executes various functions by running the software programs and modules stored in the memory 120 Application and data processing, that is, to realize the function of turning off the network connection switch of the mobile terminal. The memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 120 may further include a memory that is remotely located relative to the processor 180, and these remote memories may be connected to the mobile terminal 1200 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 130 can be used to receive input numbers or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132 . The touch-sensitive surface 131, also referred to as a touch screen or a touchpad, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch-sensitive surface 131 or on the operation near the touch-sensitive surface 131), and drive the corresponding connection device according to the preset program. Optionally, the touch-sensitive surface 131 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131 , the input unit 130 may also include other input devices 132 . Specifically, other input devices 132 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元140可用于显示由用户输入的信息或提供给用户的信息以及移动终端1200的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid CrystalDisplay,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图3中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。The display unit 140 can be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 1200, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode), and the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation on or near it, the touch operation is sent to the processor 180 to determine the type of the touch event, and then the processor 180 determines the type of the touch event according to the type of the touch event. The type provides a corresponding visual output on the display panel 141 . Although in FIG. 3 , the touch-sensitive surface 131 and the display panel 141 are used as two independent components to realize input and input functions, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to realize input. and output functions.

移动终端1200还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在移动终端1200移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于移动终端1200还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 when the mobile terminal 1200 moves to the ear. and/or backlighting. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the attitude of mobile phones (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition-related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. that can be configured on the mobile terminal 1200, here No longer.

音频电路160、扬声器161,传声器162可提供用户与移动终端1200之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与移动终端1200的通信。The audio circuit 160 , the speaker 161 and the microphone 162 can provide an audio interface between the user and the mobile terminal 1200 . The audio circuit 160 can transmit the electrical signal converted from the received audio data to the loudspeaker 161, and the loudspeaker 161 converts it into an audio signal output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 180, and then sent to another terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earphone jack to provide communication between an external earphone and the mobile terminal 1200 .

移动终端1200通过传输模块170(例如Wi-Fi模块)可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图3示出了传输模块170,但是可以理解的是,其并不属于移动终端1200的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The mobile terminal 1200 can help users send and receive e-mails, browse web pages, and access streaming media through the transmission module 170 (eg, Wi-Fi module), which provides users with wireless broadband Internet access. Although FIG. 3 shows the transmission module 170, it can be understood that it is not an essential component of the mobile terminal 1200, and can be completely omitted as required without changing the essence of the invention.

处理器180是移动终端1200的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行移动终端1200的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is the control center of the mobile terminal 1200, and uses various interfaces and lines to connect various parts of the entire mobile phone, by running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120 , execute various functions and process data of the mobile terminal 1200, so as to monitor the mobile phone as a whole. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 180 .

移动终端1200还包括给各个部件供电的电源190(比如电池),优选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The mobile terminal 1200 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 180 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system. . The power supply 190 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

尽管未示出,移动终端1200还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,移动终端的显示单元是触摸屏显示器,移动终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行述一个或者一个以上程序包含用于进行以下操作的指令:Although not shown, the mobile terminal 1200 may also include a camera, a Bluetooth module, etc., which will not be repeated here. Specifically in this embodiment, the display unit of the mobile terminal is a touch screen display, and the mobile terminal also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be controlled by one or one The above processor executes the one or more programs including instructions for performing the following operations:

检测移动终端是否处于熄屏状态;Detect whether the mobile terminal is in the off-screen state;

在移动终端处于熄屏状态时,检测移动终端指定的按键被按压的时间是否超过预设的按压时间阈值;When the mobile terminal is in the screen-off state, detect whether the time for pressing the key specified by the mobile terminal exceeds a preset pressing time threshold;

在移动终端指定的按键被按压的时间超过预设的按压时间阈值时,检测移动终端的网络连接开关;Detecting the network connection switch of the mobile terminal when the pressed time of the key designated by the mobile terminal exceeds the preset pressing time threshold;

在移动终端的网络连接开关处于打开状态时,关闭所述移动终端的网络连接开关。When the network connection switch of the mobile terminal is in the open state, turn off the network connection switch of the mobile terminal.

假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,在wifi连接开关和数据网络连接开关都处于打开状态时,所述关闭所述移动终端的网络连接开关,具体包括:Assuming that the above is the first possible implementation manner, then in the second possible implementation manner provided on the basis of the first possible implementation manner, when both the wifi connection switch and the data network connection switch are turned on, the Turn off the network connection switch of the mobile terminal, specifically including:

获取当前环境的wifi信息,并判断所述移动终端是否保存所述当前环境的wifi信息;Obtaining the wifi information of the current environment, and judging whether the mobile terminal saves the wifi information of the current environment;

在所述移动终端保存所述当前环境的wifi信息时,关闭处于打开状态的数据网络连接开关;When the mobile terminal saves the wifi information of the current environment, close the open data network connection switch;

在所述移动终端没有保存所述当前环境的wifi信息时,关闭处于打开状态的wifi连接开关以及关闭处于打开状态的数据网络连接开关。When the mobile terminal does not save the wifi information of the current environment, turn off the wifi connection switch in the open state and close the data network connection switch in the open state.

在第一种可能的实施方式作为基础而提供的第三种可能的实施方式中,在wifi连接开关和数据网络连接开关都处于打开状态时,所述关闭所述移动终端的网络连接开关,具体包括:In the third possible implementation manner provided on the basis of the first possible implementation manner, when the wifi connection switch and the data network connection switch are both on, the turning off the network connection switch of the mobile terminal, specifically include:

关闭处于打开状态的wifi连接开关;以及,Turn off the wifi connection switch that is on; and,

关闭处于打开状态的数据网络连接开关。Turn off the Data network connection switch that is on.

在第一种可能的实施方式作为基础而提供的第四种可能的实施方式中,在wifi连接开关和数据网络连接开关中的任一个处于打开状态时,所述关闭所述移动终端的网络连接开关,具体包括:In the fourth possible implementation manner provided on the basis of the first possible implementation manner, when any one of the wifi connection switch and the data network connection switch is in an open state, the closing of the network connection of the mobile terminal switches, including:

在wifi连接开关处于打开状态时,关闭处于打开状态的wifi连接开关;When the wifi connection switch is on, turn off the on wifi connection switch;

在数据网络连接开关处于打开状态时,关闭处于打开状态的数据网络连接开关。When the data network connection switch is on, turn off the data network connection switch that is on.

在第二种、第三种以及第四种可能的实施方式作为基础而提供的第五种可能的实施方式中,在所述关闭处于打开状态的wifi连接开关时,包括:In the fifth possible implementation manner provided on the basis of the second, third and fourth possible implementation manners, when the wifi connection switch in the open state is turned off, it includes:

询问用户是否关闭wifi连接开关,或者,提示用户已关闭wifi连接开关。Ask the user whether to turn off the wifi connection switch, or prompt the user to turn off the wifi connection switch.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (10)

1.一种网络连接开关关闭方法,其特征在于,所述方法包括:1. A method for closing a network connection switch, characterized in that the method comprises: 检测移动终端是否处于熄屏状态;Detect whether the mobile terminal is in the off-screen state; 在移动终端处于熄屏状态时,检测移动终端指定的按键被按压的时间是否超过预设的按压时间阈值,其中,所述指定的按键为移动终端已有的按键;When the mobile terminal is in the screen-off state, detect whether the time for pressing the designated key of the mobile terminal exceeds a preset pressing time threshold, wherein the designated key is an existing key of the mobile terminal; 在移动终端指定的按键被按压的时间超过预设的按压时间阈值时,检测移动终端的网络连接开关;Detecting the network connection switch of the mobile terminal when the pressed time of the key designated by the mobile terminal exceeds the preset pressing time threshold; 在移动终端的网络连接开关处于打开状态时,关闭所述移动终端的网络连接开关;When the network connection switch of the mobile terminal is in an open state, turn off the network connection switch of the mobile terminal; 在移动终端的网络连接开关处于关闭状态时,点亮移动终端的屏幕进入解锁状态;When the network connection switch of the mobile terminal is off, light up the screen of the mobile terminal to enter the unlocked state; 所述检测移动终端是否处于熄屏状态,包括:The detection of whether the mobile terminal is in a screen-off state includes: 通过检测移动终端的背光灯的亮度值进行判断,如果背光灯的亮度值达到熄屏的阈值,则判定移动终端处于熄屏状态,否则,判定移动终端处于非熄屏状态;Judging by detecting the brightness value of the backlight of the mobile terminal, if the brightness value of the backlight reaches the screen-off threshold, it is determined that the mobile terminal is in a screen-off state, otherwise, it is determined that the mobile terminal is in a non-screen-off state; 所述在移动终端指定的按键被按压的时间超过预设的按压时间阈值时,检测移动终端的网络连接开关,包括:The detection of the network connection switch of the mobile terminal when the time the key specified by the mobile terminal is pressed exceeds the preset pressing time threshold includes: 检测移动终端的网络连接开关对应的值,判断移动终端的网络连接开关对应的值标识该网络连接开关是处于打开状态,还是处于关闭状态。Detecting the value corresponding to the network connection switch of the mobile terminal, and judging whether the value corresponding to the network connection switch of the mobile terminal indicates whether the network connection switch is in an on state or in an off state. 2.根据权利要求1所述的方法,其特征在于,在wifi连接开关和数据网络连接开关都处于打开状态时,所述关闭所述移动终端的网络连接开关,具体包括:2. The method according to claim 1, wherein, when both the wifi connection switch and the data network connection switch are in an open state, said closing the network connection switch of the mobile terminal specifically comprises: 获取当前环境的wifi信息,并判断所述移动终端是否保存所述当前环境的wifi信息;Obtaining the wifi information of the current environment, and judging whether the mobile terminal saves the wifi information of the current environment; 在所述移动终端保存所述当前环境的wifi信息时,关闭处于打开状态的数据网络连接开关;When the mobile terminal saves the wifi information of the current environment, close the open data network connection switch; 在所述移动终端没有保存所述当前环境的wifi信息时,关闭处于打开状态的wifi连接开关以及关闭处于打开状态的数据网络连接开关。When the mobile terminal does not save the wifi information of the current environment, turn off the wifi connection switch in the open state and close the data network connection switch in the open state. 3.根据权利要求1所述的方法,其特征在于,在wifi连接开关和数据网络连接开关都处于打开状态时,所述关闭所述移动终端的网络连接开关,具体包括:3. The method according to claim 1, wherein, when both the wifi connection switch and the data network connection switch are in an open state, said closing the network connection switch of the mobile terminal specifically comprises: 关闭处于打开状态的wifi连接开关;以及,Turn off the wifi connection switch that is on; and, 关闭处于打开状态的数据网络连接开关。Turn off the Data network connection switch that is on. 4.根据权利要求1所述的方法,其特征在于,在wifi连接开关和数据网络连接开关中的任一个处于打开状态时,所述关闭所述移动终端的网络连接开关,具体包括:4. The method according to claim 1, wherein, when any one of the wifi connection switch and the data network connection switch is in an open state, said closing the network connection switch of the mobile terminal specifically includes: 在wifi连接开关处于打开状态时,关闭处于打开状态的wifi连接开关;When the wifi connection switch is on, turn off the on wifi connection switch; 在数据网络连接开关处于打开状态时,关闭处于打开状态的数据网络连接开关。When the data network connection switch is on, turn off the data network connection switch that is on. 5.根据权利要求2至4任一项所述的方法,其特征在于,在所述关闭处于打开状态的wifi连接开关时,包括:5. The method according to any one of claims 2 to 4, characterized in that, when said turning off the wifi connection switch in the open state, comprising: 询问用户是否关闭wifi连接开关,或者,提示用户已关闭wifi连接开关。Ask the user whether to turn off the wifi connection switch, or prompt the user to turn off the wifi connection switch. 6.一种网络连接开关关闭装置,其特征在于,所述装置包括:6. A device for closing a network connection switch, characterized in that the device comprises: 熄屏状态检测单元,用于检测移动终端是否处于熄屏状态;A screen-off state detection unit is used to detect whether the mobile terminal is in a screen-off state; 按键被按压的时间检测单元,用于在移动终端处于熄屏状态时,检测移动终端指定的按键被按压的时间是否超过预设的按压时间阈值,其中,所述指定的按键为移动终端已有的按键;The button is pressed time detection unit, which is used to detect whether the time of pressing the designated button of the mobile terminal exceeds the preset pressing time threshold when the mobile terminal is in the screen-off state, wherein the designated button is an existing button of the mobile terminal. button; 网络连接开关检测单元,用于在移动终端指定的按键被按压的时间超过预设的按压时间阈值时,检测移动终端的网络连接开关;The network connection switch detection unit is used to detect the network connection switch of the mobile terminal when the time the key designated by the mobile terminal is pressed exceeds the preset pressing time threshold; 网络连接开关关闭单元,用于在移动终端的网络连接开关处于打开状态时,关闭所述移动终端的网络连接开关;A network connection switch closing unit, configured to close the network connection switch of the mobile terminal when the network connection switch of the mobile terminal is in an open state; 所述熄屏状态检测单元,具体用于通过检测移动终端的背光灯的亮度值进行判断,如果背光灯的亮度值达到熄屏的阈值,则判定移动终端处于熄屏状态,否则,判定移动终端处于非熄屏状态;The screen-off state detection unit is specifically used to judge by detecting the brightness value of the backlight of the mobile terminal. If the brightness value of the backlight reaches the screen-off threshold, it is determined that the mobile terminal is in the screen-off state; otherwise, it is determined that the mobile terminal is in a screen-off state. In non-off state; 所述网络连接开关检测单元,具体用于检测移动终端的网络连接开关对应的值,判断移动终端的网络连接开关对应的值标识该网络连接开关是处于打开状态,还是处于关闭状态;The network connection switch detection unit is specifically used to detect the value corresponding to the network connection switch of the mobile terminal, and determine whether the network connection switch is in the open state or in the closed state by judging the value corresponding to the network connection switch of the mobile terminal; 所述装置还用于,在移动终端的网络连接开关处于关闭状态时,点亮移动终端的屏幕进入解锁状态。The device is further configured to, when the network connection switch of the mobile terminal is in the off state, light up the screen of the mobile terminal to enter the unlocked state. 7.根据权利要求6所述的装置,其特征在于,所述网络连接开关关闭单元包括:7. The device according to claim 6, wherein the network connection switch closing unit comprises: wifi信息获取模块,用于获取当前环境的wifi信息,并判断所述移动终端是否保存所述当前环境的wifi信息;The wifi information obtaining module is used to obtain the wifi information of the current environment, and judge whether the mobile terminal saves the wifi information of the current environment; 第一网络连接开关关闭模块,用于在所述移动终端保存所述当前环境的wifi信息时,关闭处于打开状态的数据网络连接开关;The first network connection switch closing module is used to close the open data network connection switch when the mobile terminal saves the wifi information of the current environment; 第二网络连接开关关闭模块,用于在所述移动终端没有保存所述当前环境的wifi信息时,关闭处于打开状态的wifi连接开关以及关闭处于打开状态的数据网络连接开关。The second network connection switch closing module is used to close the open wifi connection switch and close the open data network connection switch when the mobile terminal does not save the wifi information of the current environment. 8.根据权利要求6所述的装置,其特征在于,所述网络连接开关关闭单元包括:8. The device according to claim 6, wherein the network connection switch closing unit comprises: 第一wifi连接开关关闭模块,用于关闭处于打开状态的wifi连接开关;以及,The first wifi connection switch closing module is used to close the wifi connection switch in the open state; and, 第一数据网络连接开关关闭模块,用于关闭处于打开状态的数据网络连接开关。The first data network connection switch closing module is used to close the data network connection switch in the open state. 9.根据权利要求6所述的装置,其特征在于,所述网络连接开关关闭单元包括:9. The device according to claim 6, wherein the network connection switch closing unit comprises: 第二wifi连接开关关闭模块,用于在wifi连接开关处于打开状态时,关闭处于打开状态的wifi连接开关;The second wifi connection switch closing module is used to close the on wifi connection switch when the wifi connection switch is on; 第二数据网络连接开关关闭模块,用于在数据网络连接开关处于打开状态时,关闭处于打开状态的数据网络连接开关。The second data network connection switch closing module is used to close the data network connection switch in the open state when the data network connection switch is in the open state. 10.根据权利要求7至9任一项所述的装置,其特征在于,所述装置包括:10. The device according to any one of claims 7 to 9, characterized in that the device comprises: 信息提示单元,用于询问用户是否关闭wifi连接开关,或者,提示用户已关闭wifi连接开关。The information prompt unit is used to ask the user whether to turn off the wifi connection switch, or to prompt the user to turn off the wifi connection switch.
CN201510591241.2A 2015-09-16 2015-09-16 Network connection switchs method for closing and device Expired - Fee Related CN105187653B (en)

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 Expired - Fee Related 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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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 엘지전자 주식회사 Multifunctional shortcut key setting device, method and mobile communication terminal having the 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 flashlight based on mobile phone in standby state

Patent Citations (2)

* Cited by examiner, † Cited by third party
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
CN105306682A (en) Method and device for automatically disconnecting network connection
CN105187653B (en) Network connection switchs method for closing and device
WO2019029618A1 (en) Ims voice call network switching method, storage device and mobile terminal
US11262911B2 (en) Integrated home key and virtual key area for a smart terminal
CN106603548A (en) Application registration method and mobile terminal
CN106358225B (en) Network data processing method and device and mobile terminal
CN106131930A (en) A WiFi network access control method, device and terminal
CN106250014A (en) Application recommended method and device
CN106055947A (en) Method, device and mobile terminal for unlocking mobile terminal by fingerprint
CN106791084A (en) Synchronization method of personalized parameters and mobile terminal
CN105807891A (en) Screen control method, device and electronic equipment
CN106453908A (en) A method, device, and mobile terminal for switching between dual-card networks based on calls
CN105892850A (en) Method and device for opening mobile terminal application program and mobile terminal
CN105162930B (en) The way of recording and device of mobile terminal
CN105933944A (en) Optimized use method, device and mobile terminal of 4G network
CN106936516A (en) Display screen display state control method, storage medium and terminal
CN107145386A (en) Data migration method, terminal device and computer-readable recording medium
CN105975316A (en) Process management method, device and equipment
CN105100361B (en) The way of recording and device of mobile terminal
CN106254673A (en) Terminal fall detection method and device
CN105792299A (en) Optimal use method, device and mobile terminal of 3G network
CN105282330B (en) The method and device of automatic connection network
CN106255146B (en) A kind of electricity-saving control method of terminal, device and terminal
CN105208208B (en) Network connection switchs deployment method and device
CN106484141A (en) Threshold setting method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
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.

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

Granted publication date: 20180619