CN105426096A - Method and device for turning on a flashlight - Google Patents
Method and device for turning on a flashlight Download PDFInfo
- Publication number
- CN105426096A CN105426096A CN201510718535.7A CN201510718535A CN105426096A CN 105426096 A CN105426096 A CN 105426096A CN 201510718535 A CN201510718535 A CN 201510718535A CN 105426096 A CN105426096 A CN 105426096A
- Authority
- CN
- China
- Prior art keywords
- terminal
- gesture
- electric torch
- state
- flashlight
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000001514 detection method Methods 0.000 claims abstract description 50
- 108010001267 Protein Subunits Proteins 0.000 claims 1
- 230000008859 change Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000004913 activation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明实施例公开了一种开启手电筒的方法和装置,所述方法包括:在终端处于待机状态时,确定是否检测到作用于触摸屏的开启终端手电筒的手势;当检测到开启终端手电筒的手势时,判断终端侧键检测电路的状态;根据所述判断结果确定是否开启终端手电筒。本发明实施例提供的技术方案,开启终端手电筒的方式简单、可靠,可以防止误触发开启终端手电筒。
The embodiment of the present invention discloses a method and device for turning on a flashlight, the method comprising: when a terminal is in a standby state, determining whether a gesture for turning on the terminal flashlight acting on a touch screen is detected; when a gesture for turning on the terminal flashlight is detected, determining the state of a terminal side key detection circuit; and determining whether to turn on the terminal flashlight according to the judgment result. The technical solution provided by the embodiment of the present invention is simple and reliable in the way of turning on the terminal flashlight, and can prevent the terminal flashlight from being turned on by mistake.
Description
技术领域technical field
本发明实施例涉及终端应用技术领域,尤其涉及一种开启手电筒的方法和装置。Embodiments of the present invention relate to the technical field of terminal applications, and in particular, to a method and device for turning on a flashlight.
背景技术Background technique
随着智能手机的发展,作为一项基本的应用,手电筒功能在手机上的应用是非常普遍的。With the development of smart phones, as a basic application, the application of the flashlight function on mobile phones is very common.
但在使用过程中,经常存在误触发开启手机手电筒的现象。当误触发将手机手电筒开启时,手电筒功耗较大,影响手机续航,而且在手电筒开启时手机发热厉害,用户体验较差。However, during use, there is often a phenomenon that the flashlight of the mobile phone is turned on by mistake. When the flashlight of the mobile phone is turned on by mistake, the power consumption of the flashlight is relatively large, which affects the battery life of the mobile phone. Moreover, the mobile phone heats up when the flashlight is turned on, and the user experience is poor.
发明内容Contents of the invention
本发明实施例提供一种开启手电筒的方法和装置,以防止误开启终端手电筒。Embodiments of the present invention provide a method and device for turning on a flashlight, so as to prevent a terminal flashlight from being turned on by mistake.
一方面,本发明实施例提供了一种开启手电筒的方法,包括:On the one hand, an embodiment of the present invention provides a method for turning on a flashlight, including:
在终端处于待机状态时,确定是否检测到作用于触摸屏的开启终端手电筒的手势;When the terminal is in the standby state, determine whether a gesture acting on the touch screen to turn on the flashlight of the terminal is detected;
当检测到开启终端手电筒的手势时,判断终端侧键检测电路的状态;When the gesture of turning on the flashlight of the terminal is detected, the state of the side key detection circuit of the terminal is judged;
根据所述判断结果确定是否开启终端手电筒。Determine whether to turn on the terminal flashlight according to the judgment result.
另一方面,本发明实施例还提供了一种开启手电筒的装置,包括:On the other hand, an embodiment of the present invention also provides a device for turning on a flashlight, including:
开启手电筒手势检测单元,用于在终端处于待机状态时,确定是否检测到作用于触摸屏的开启终端手电筒的手势;Turn on the flashlight gesture detection unit, which is used to determine whether the gesture of turning on the terminal flashlight acting on the touch screen is detected when the terminal is in a standby state;
侧键电路状态判断单元,用于当检测到开启终端手电筒的手势时,判断终端侧键检测电路的状态;The side key circuit state judging unit is used to judge the state of the terminal side key detection circuit when the gesture of turning on the terminal flashlight is detected;
终端手电筒开启单元,用于根据所述判断结果确定是否开启终端手电筒。The terminal flashlight activation unit is configured to determine whether to activate the terminal flashlight according to the judgment result.
本发明实施例提供的技术方案,在终端处于待机状态时,确定是否检测到作用于触摸屏的开启终端手电筒的手势,当检测到作用于触摸屏的开启终端手电筒的手势时,判断终端侧键检测电路的状态,根据侧键检测电路的状态确定是否开启终端手电筒,采用触摸手势加侧键电路状态的双重判断,来确定是否开启终端手电筒,可以使用户方便、快捷的开启终端手电筒,也可以防止在不需要使用手电筒功能时误触发开启终端手电筒。In the technical solution provided by the embodiment of the present invention, when the terminal is in the standby state, it is determined whether the gesture of turning on the terminal flashlight acting on the touch screen is detected, and when the gesture of turning on the terminal flashlight acting on the touch screen is detected, the terminal side key detection circuit is judged According to the state of the side key detection circuit, it is determined whether to turn on the terminal flashlight, and the double judgment of the touch gesture and the side key circuit state is used to determine whether to turn on the terminal flashlight, which can enable the user to turn on the terminal flashlight conveniently and quickly, and can also prevent Mistakenly trigger to turn on the terminal flashlight when the flashlight function is not needed.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明实施例一提供的一种开启手电筒的方法的流程示意图;FIG. 1 is a schematic flowchart of a method for turning on a flashlight provided by Embodiment 1 of the present invention;
图2A是本发明实施例二提供的一种开启手电筒的方法的流程示意图;Fig. 2A is a schematic flowchart of a method for turning on a flashlight provided by Embodiment 2 of the present invention;
图2B是本发明实施例二提供的一种终端侧键检测电路的结构示意图;FIG. 2B is a schematic structural diagram of a terminal side key detection circuit provided in Embodiment 2 of the present invention;
图2C是本发明实施例二提供的一种终端侧键检测电路的结构示意图;FIG. 2C is a schematic structural diagram of a terminal side key detection circuit provided in Embodiment 2 of the present invention;
图3是本发明实施例三提供的一种开启手电筒的装置的结构示意图。Fig. 3 is a schematic structural diagram of a device for turning on a flashlight provided by Embodiment 3 of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,以下将参照本发明实施例中的附图,通过实施方式清楚、完整地描述本发明的技术方案,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through implementation with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are the embodiment of the present invention. Some, but not all, embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
实施例一Embodiment one
图1是本发明实施例一提供的一种开启手电筒的方法的流程示意图。该方法可以由配置在终端中的开启手电筒的装置来执行,所述装置可由软件和/或硬件实现。如图1所示,本实施例提供的开启手电筒的方法具体包括如下步骤:FIG. 1 is a schematic flowchart of a method for turning on a flashlight provided by Embodiment 1 of the present invention. The method can be executed by a device configured in the terminal for turning on the flashlight, and the device can be implemented by software and/or hardware. As shown in Figure 1, the method for turning on the flashlight provided by this embodiment specifically includes the following steps:
S110、在终端处于待机状态时,确定是否检测到作用于触摸屏的开启终端手电筒的手势;S110. When the terminal is in the standby state, determine whether a gesture acting on the touch screen to turn on the flashlight of the terminal is detected;
当终端处于待机状态时,终端的屏幕为黑屏状态,当用户需要开启终端手电电筒时,可以在终端黑屏时,在终端的触摸屏上输入相应的手势来开启终端手电筒,如在终端的触摸屏上划一个手势“V”来开启终端手电筒。终端处于待机状态时,检测确定作用于触摸屏的手势与终端中设置的开启手电筒的手势是否匹配,即判断二者匹配度是否达到设定阈值,当二者匹配程度达到设定阈值时,则确定检测到了开启终端手电筒的手势。When the terminal is in the standby state, the screen of the terminal is in a black state. When the user needs to turn on the flashlight of the terminal, he can enter the corresponding gesture on the touch screen of the terminal to turn on the flashlight of the terminal when the screen of the terminal is black, such as swiping on the touch screen of the terminal A gesture "V" to turn on the terminal flashlight. When the terminal is in the standby state, it detects whether the gesture acting on the touch screen matches the gesture to turn on the flashlight set in the terminal, that is, judges whether the matching degree of the two reaches the set threshold, and when the matching degree of the two reaches the set threshold, then determine A gesture to turn on the terminal's flashlight was detected.
进一步的,在所述在终端处于待机状态时,确定是否检测到作用于触摸屏的开启终端手电筒的手势之前,设置在终端待机状态下开启终端手电筒的手势。Further, before determining whether the gesture of turning on the flashlight of the terminal acting on the touch screen is detected when the terminal is in the standby state, the gesture of turning on the flashlight of the terminal in the standby state of the terminal is set.
在终端待机状态下作用于触摸屏开启终端手电筒的手势可以预先进行设置。如在终端中设置一系列的开启终端手电筒的手势,用户从中挑选一个或多个手势设置为开启终端手电筒的手势;另外,用户也可以在终端界面上输入习惯使用的开启终端手电筒的手势,然后终端对该手势进行处理与存储,作为开启终端手电筒的手势。The gesture that acts on the touch screen to turn on the flashlight of the terminal in the standby state of the terminal can be set in advance. For example, a series of gestures for turning on the flashlight of the terminal are set in the terminal, and the user selects one or more gestures to set as the gesture of turning on the flashlight of the terminal; in addition, the user can also input the gesture of turning on the flashlight of the terminal that the user is used to on the terminal interface, and then The terminal processes and stores the gesture as a gesture to turn on the flashlight of the terminal.
S120、当检测到开启终端手电筒的手势时,判断终端侧键检测电路的状态;S120. When the gesture of turning on the flashlight of the terminal is detected, determine the state of the side key detection circuit of the terminal;
当检测到开启终端手电筒的手势时,判断终端检测电路的状态是否发生变化,在终端待机的时候,终端侧键没有按下时可以设置终端检测电路处于一种默认电路状态,当按下终端侧键时,终端侧键检测电路的状态会发生变化,可以在检测到开启终端手电筒的手势时,判断终端侧键检测电路的状态是否发生了变化。此时,用户可以采用下述操作开启终端手电筒:在按下终端侧键的时候,在终端上输入开启手电筒的手势。When the gesture of turning on the flashlight of the terminal is detected, it is judged whether the state of the terminal detection circuit has changed. When the terminal is on standby, if the terminal side key is not pressed, the terminal detection circuit can be set in a default circuit state. When the terminal side is pressed When the key is pressed, the state of the key detection circuit on the terminal side will change. When the gesture of turning on the flashlight of the terminal is detected, it can be judged whether the state of the key detection circuit on the terminal side has changed. At this point, the user can use the following operation to turn on the flashlight of the terminal: when pressing the side key of the terminal, input a gesture of turning on the flashlight on the terminal.
为了提高用户操作体验,用户可以在终端触摸屏上划出开启终端手电筒的手势之后,再按下终端侧键,这样用户使用一只手就可以方便地开启终端手电筒。因此,可以在检测到开启终端手电筒的手势之后的一段设定时间内检测判断终端侧键检测电路的状态是否发生了变化。其中,设定的时间可以根据用户的操作习惯进行设置。In order to improve the user experience, the user can draw the gesture to turn on the flashlight of the terminal on the touch screen of the terminal, and then press the side button of the terminal, so that the user can conveniently turn on the flashlight of the terminal with one hand. Therefore, it is possible to detect and determine whether the state of the terminal side key detection circuit has changed within a set period of time after the gesture of turning on the flashlight of the terminal is detected. Wherein, the set time can be set according to the user's operating habit.
进一步的,所述侧键包括:终端音量键或拍照功能键。也可以采用其他类似的侧键,采用的侧键一般都是在终端待机状态时其相应功能被禁用的按键。Further, the side keys include: terminal volume keys or camera function keys. Other similar side keys may also be used, and the side keys used are generally keys whose corresponding functions are disabled when the terminal is in a standby state.
S130、根据所述判断结果确定是否开启终端手电筒。S130. Determine whether to turn on the flashlight of the terminal according to the judgment result.
当检测到开启终端手电筒的手势时,终端侧键检测电路的状态也发生了变化,即可判定用户在输入开启终端的手势时或在输入开启终端的手势之后的设定时间内按下了终端侧键,即可开启终端手电筒。When the gesture of turning on the terminal flashlight is detected, the state of the terminal side key detection circuit also changes, and it can be determined that the user has pressed the terminal when inputting the gesture of turning on the terminal or within a set time after inputting the gesture of turning on the terminal Press the side button to turn on the terminal flashlight.
本实施例提供的技术方案,首先设置在终端待机状态下开启终端手电筒的手势,在终端处于待机状态时,确定是否检测到作用于触摸屏的开启终端手电筒的手势,当检测到作用于触摸屏的开启终端手电筒的手势时,判断侧键检测电路的状态是否发生变化,根据侧键检测电路的状态变化确定是否开启终端手电筒,采用触摸手势加侧键电路状态变化的双重判断,来确定是否开启终端手电筒,用户不必在唤醒待机状态之后,进入相应的功能界面之后来开启终端手电筒在,用户可以方便、快捷的开启终端手电筒,还可防止在不需要使用手电筒功能时误触发开启终端手电筒。In the technical solution provided by this embodiment, first, the gesture of turning on the terminal flashlight is set when the terminal is in the standby state, and when the terminal is in the standby state, it is determined whether the gesture of turning on the terminal flashlight acting on the touch screen is detected. When the gesture of the terminal flashlight is performed, it is judged whether the state of the side key detection circuit changes, and whether the terminal flashlight is turned on is determined according to the state change of the side key detection circuit, and whether the terminal flashlight is turned on is determined by double judgment of the touch gesture plus the state change of the side key circuit , the user does not need to turn on the terminal flashlight after waking up the standby state and entering the corresponding function interface. The user can turn on the terminal flashlight conveniently and quickly, and it can also prevent the terminal flashlight from being accidentally triggered when the flashlight function is not needed.
实施例二Embodiment two
图2A是本发明实施例二提供的一种开启手电筒的方法的流程示意图。本实施例是对上述实施例进行了优化。如图2A所示,本实施例提供的开启手电筒的方法具体包括如下步骤:FIG. 2A is a schematic flowchart of a method for turning on a flashlight provided by Embodiment 2 of the present invention. This embodiment is an optimization of the foregoing embodiments. As shown in Figure 2A, the method for turning on the flashlight provided by this embodiment specifically includes the following steps:
S210、在终端处于待机状态时,设置所述终端侧键检测电路为上拉高电平状态;S210. When the terminal is in the standby state, set the terminal side key detection circuit to be pulled up to a high level state;
S220、在终端处于待机状态时,确定是否检测到作用于触摸屏的开启终端手电筒的手势;S220. When the terminal is in the standby state, determine whether a gesture acting on the touch screen to turn on the flashlight of the terminal is detected;
图2B是本发明实施例二提供的一种终端侧键检测电路的结构示意图。在终端处于待机状态时,终端侧键的功能都是被禁用的,当终端唤醒待机状态之后侧键的相应功能才被使能,在待机状态时,终端侧键检测电路的状态变化并不会使侧键的相应功能被执行。如在终端处于待机状态时,终端的音量键的功能是被禁用的,即按下音量加键或音量减键时,系统不执行增大音量或减小音量的操作。因此,如图2B所示,在终端处于待机状态时,可以向侧键检测电路施加一电源信号Vdd,在终端侧键20未按下时,电路输出Vout为上拉高电平状态,Vdd的大小可以根据终端系统中的电源进行设定。FIG. 2B is a schematic structural diagram of a terminal side key detection circuit provided by Embodiment 2 of the present invention. When the terminal is in the standby state, the functions of the side keys of the terminal are disabled, and the corresponding functions of the side keys are enabled only after the terminal wakes up from the standby state. When the terminal is in the standby state, the state changes of the side key detection circuit of the terminal will not change. Make the corresponding function of the side key be executed. For example, when the terminal is in the standby state, the function of the volume key of the terminal is disabled, that is, when the volume up key or the volume down key is pressed, the system does not perform the operation of increasing or decreasing the volume. Therefore, as shown in FIG. 2B, when the terminal is in the standby state, a power supply signal Vdd can be applied to the side key detection circuit. When the terminal side key 20 is not pressed, the circuit output Vout is pulled up to a high level state. The size can be set according to the power supply in the end system.
S230、当检测到开启终端手电筒的手势时,判断所述终端侧键检测电路是否处于下拉低电平状态;S230. When the gesture of turning on the terminal flashlight is detected, determine whether the terminal side key detection circuit is in a pull-down low level state;
如图2B所示,当终端侧键20按下时,就会将输出端Vout的电平由高电平转变为电平,即处于下拉低电平状态。当检测到开启终端手电筒的手势时,判断终端侧键检测电路是否处于下拉低电平,即判断终端侧键是否被使能按下。As shown in FIG. 2B , when the key 20 on the terminal side is pressed, the level of the output terminal Vout will be changed from a high level to a low level, that is, it will be pulled down to a low level. When the gesture of turning on the flashlight of the terminal is detected, it is judged whether the detection circuit of the terminal side key is in the pull-down low level, that is, it is judged whether the terminal side key is enabled to be pressed.
S240、当所述终端侧键检测电路处于下拉低电平状态时,开启终端手电筒。S240. Turn on the terminal flashlight when the terminal side key detection circuit is in a pull-down low state.
另外,终端侧键检测电路也可为如图2C所示,在终端处于待机状态下时,终端侧键检测电路处于下拉低电平状态,终端侧键检测电路输出Vout为低电平,当终端侧键21被按下时,侧键检测电路输出Vout输出为高电平。在此种电路下,当检测到开启终端手电筒的手势时,判断所述终端侧键检测电路是否处于上拉高电平状态。当检测到侧键检测电路处于上拉高电平状态时,开启终端手电筒。In addition, the terminal side key detection circuit can also be as shown in Figure 2C. When the terminal is in the standby state, the terminal side key detection circuit is in a pull-down low level state, and the output Vout of the terminal side key detection circuit is low. When the terminal When the side key 21 is pressed, the output Vout of the side key detection circuit is a high level. Under such a circuit, when a gesture of turning on the terminal flashlight is detected, it is judged whether the terminal side key detection circuit is in a state of pulling up a high level. When it is detected that the side key detection circuit is pulled up to a high level, the terminal flashlight is turned on.
本实施例提供的技术方案,在终端处于待机状态时,设置所述终端侧键检测电路为上拉高电平状态,当检测到开启终端手电筒的手势时,判断所述终端侧键检测电路是否处于下拉低电平状态,通过设置待机状态时,终端侧键检测电路的状态,检测侧键检测电路状态的变化,判断用户是否按下了终端侧键,根据开启终端手电筒手势和侧键电路状态开启终端手电筒,可以防止误触发开启终端手电筒。In the technical solution provided by this embodiment, when the terminal is in the standby state, the terminal side key detection circuit is set to pull up the high level state, and when the gesture of turning on the terminal flashlight is detected, it is judged whether the terminal side key detection circuit is In the pull-down low level state, by setting the status of the side key detection circuit of the terminal in the standby state, detect the change of the state of the side key detection circuit, and judge whether the user has pressed the side key of the terminal, according to the gesture of turning on the terminal flashlight and the state of the side key circuit Turn on the terminal flashlight to prevent false triggering to turn on the terminal flashlight.
实施例三Embodiment three
图3是本发明实施例三提供的一种开启手电筒的装置的结构示意图。如图3所示,该装置包括:Fig. 3 is a schematic structural diagram of a device for turning on a flashlight provided by Embodiment 3 of the present invention. As shown in Figure 3, the device includes:
开启手电筒手势检测单元310,用于在终端处于待机状态时,确定是否检测到作用于触摸屏的开启终端手电筒的手势;Turn on the flashlight gesture detection unit 310, which is used to determine whether the gesture of turning on the flashlight of the terminal acting on the touch screen is detected when the terminal is in the standby state;
侧键电路状态判断单元320,用于当检测到开启终端手电筒的手势时,判断终端侧键检测电路的状态;The side key circuit state judging unit 320 is used to judge the state of the terminal side key detection circuit when a gesture of turning on the terminal flashlight is detected;
终端手电筒开启单元330,用于根据所述判断结果确定是否开启终端手电筒。The terminal flashlight enabling unit 330 is configured to determine whether to enable the terminal flashlight according to the determination result.
进一步的,所述的装置还包括:Further, the described device also includes:
开启手电筒手势设置单元340,用于设置在终端待机状态下开启终端手电筒的手势。The gesture setting unit 340 for turning on the flashlight is configured to set a gesture for turning on the flashlight of the terminal in the standby state of the terminal.
进一步的,所述的装置还包括:Further, the described device also includes:
侧键检测电路设置单元350,用于在终端处于待机状态时,设置所述终端侧键检测电路为上拉高电平状态。The side key detection circuit setting unit 350 is configured to set the side key detection circuit of the terminal to pull up a high level state when the terminal is in a standby state.
进一步的,所述侧键电路状态判断单元320包括:Further, the side key circuit state judging unit 320 includes:
下拉低电平判断子单元321,用于当检测到开启终端手电筒的手势时,判断所述终端侧键检测电路是否处于下拉低电平状态;The pull-down low-level judging subunit 321 is used to determine whether the terminal side key detection circuit is in the pull-down low-level state when a gesture of turning on the terminal flashlight is detected;
所述终端手电筒开启单元330具体用于:The terminal flashlight opening unit 330 is specifically used for:
当所述终端侧键检测电路处于下拉低电平状态时,开启终端手电筒。When the terminal side key detection circuit is in the state of pulling down the low level, the terminal flashlight is turned on.
进一步的,所述终端侧键包括:Further, the terminal side keys include:
终端音量键或拍照功能键。Terminal volume key or camera function key.
上述装置可执行本发明任意实施例所提供的开启手电筒的方法,具备执行方法相应的功能模块和有益效果。The above-mentioned device can execute the method for turning on the flashlight provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510718535.7A CN105426096A (en) | 2015-10-28 | 2015-10-28 | Method and device for turning on a flashlight |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510718535.7A CN105426096A (en) | 2015-10-28 | 2015-10-28 | Method and device for turning on a flashlight |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105426096A true CN105426096A (en) | 2016-03-23 |
Family
ID=55504332
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510718535.7A Pending CN105426096A (en) | 2015-10-28 | 2015-10-28 | Method and device for turning on a flashlight |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105426096A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106020709A (en) * | 2016-06-03 | 2016-10-12 | 珠海市魅族科技有限公司 | Terminal control method and terminal |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101776947A (en) * | 2009-01-12 | 2010-07-14 | 晨星软件研发(深圳)有限公司 | Handheld electronic device, handheld action communication device and operation method thereof |
US20110316797A1 (en) * | 2008-10-06 | 2011-12-29 | User Interface In Sweden Ab | Method for application launch and system function |
CN103019600A (en) * | 2012-12-14 | 2013-04-03 | 广东欧珀移动通信有限公司 | A method and system for opening an application program in a mobile terminal |
CN103345360A (en) * | 2013-06-21 | 2013-10-09 | 广东欧珀移动通信有限公司 | Method for recognizing intelligent terminal touch screen gestures |
CN103543931A (en) * | 2013-10-18 | 2014-01-29 | 深圳市中兴移动通信有限公司 | Electronic information display method and device for mobile terminal |
CN104238759A (en) * | 2014-09-04 | 2014-12-24 | 广东欧珀移动通信有限公司 | Method and device for controlling terminal through physical keys |
CN104850259A (en) * | 2015-04-29 | 2015-08-19 | 努比亚技术有限公司 | Combination operation method, combination operation apparatus, touch screen operating method and electronic device |
-
2015
- 2015-10-28 CN CN201510718535.7A patent/CN105426096A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110316797A1 (en) * | 2008-10-06 | 2011-12-29 | User Interface In Sweden Ab | Method for application launch and system function |
CN101776947A (en) * | 2009-01-12 | 2010-07-14 | 晨星软件研发(深圳)有限公司 | Handheld electronic device, handheld action communication device and operation method thereof |
CN103019600A (en) * | 2012-12-14 | 2013-04-03 | 广东欧珀移动通信有限公司 | A method and system for opening an application program in a mobile terminal |
CN103345360A (en) * | 2013-06-21 | 2013-10-09 | 广东欧珀移动通信有限公司 | Method for recognizing intelligent terminal touch screen gestures |
CN103543931A (en) * | 2013-10-18 | 2014-01-29 | 深圳市中兴移动通信有限公司 | Electronic information display method and device for mobile terminal |
CN104238759A (en) * | 2014-09-04 | 2014-12-24 | 广东欧珀移动通信有限公司 | Method and device for controlling terminal through physical keys |
CN104850259A (en) * | 2015-04-29 | 2015-08-19 | 努比亚技术有限公司 | Combination operation method, combination operation apparatus, touch screen operating method and electronic device |
Non-Patent Citations (1)
Title |
---|
DEVELOPWZ: "手势启动手电筒功能", 《HTTP://BBS.COLOROS.COM/FORUM.PHP?MOD=VIEWTHREAD&TID=11687》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106020709A (en) * | 2016-06-03 | 2016-10-12 | 珠海市魅族科技有限公司 | Terminal control method and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106200989B (en) | Method and device for brightening screen of mobile terminal | |
CN104598134B (en) | Fingerprint operation method and system of mobile terminal | |
CN106886703B (en) | Fingerprint unlocking method and mobile terminal | |
CN105430162A (en) | Method and device for turning on a flashlight | |
CN106066767A (en) | An unlocking method and mobile terminal | |
CN104182145B (en) | A kind of method for preventing misoperation of touch screen, device and mobile device | |
JP6284687B2 (en) | MCU wakeup method and apparatus | |
CN105635483B (en) | A kind of processing method, device and storage medium operating mobile terminal | |
CN105302302B (en) | A kind of method and device of application control | |
CN106020419A (en) | Method, device and mobile terminal for reducing power consumption of mobile terminal | |
US10651950B2 (en) | Method and system for shortening wireless pairing connection time by detecting an object or body | |
CN104464647A (en) | Backlight brightness adjusting method and terminal | |
CN104732167A (en) | Mobile terminal and detecting control method used for same | |
CN105045519B (en) | The screen control method and user terminal of a kind of user terminal | |
CN105528170A (en) | Method and device for starting an application program | |
CN104375839A (en) | Data processing method and device in sleep mode and mobile terminal | |
CN106095422B (en) | Application control method and device and terminal equipment | |
CN105426095A (en) | A method and device for enabling the camera function of a mobile terminal when the screen is off | |
CN105898055A (en) | Mobile terminal dormancy method, device and mobile terminal | |
CN110691168A (en) | Screen control method and device of mobile terminal and storage medium | |
CN105306821A (en) | A method and device for enabling the camera function of a mobile terminal | |
CN105426096A (en) | Method and device for turning on a flashlight | |
CN105511639B (en) | Input control method, device and the terminal device of input method | |
CN105407221B (en) | False-touch prevention method and system when using self-shooting bar | |
CN106791065A (en) | A kind of method that mobile device and its finger touch control flashlight switch |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160323 |