CN107835553A - Method for controlling flashlight, mobile terminal and computer-readable storage medium - Google Patents
Method for controlling flashlight, mobile terminal and computer-readable storage medium Download PDFInfo
- Publication number
- CN107835553A CN107835553A CN201711175507.0A CN201711175507A CN107835553A CN 107835553 A CN107835553 A CN 107835553A CN 201711175507 A CN201711175507 A CN 201711175507A CN 107835553 A CN107835553 A CN 107835553A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- flashlight
- light intensity
- state
- preset value
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
- H05B47/11—Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Telephone Function (AREA)
Abstract
本申请适用于移动终端技术领域,提供了控制手电筒的方法、移动终端及计算机可读存储介质,包括:检测当前环境的光线强度和移动终端是否处于静止状态;获取所述光线强度低于预设值且所述移动终端处于静止状态的持续时长;若在所述持续时长超过预设时长时,检测到所述移动终端由静止状态变为运动状态,则开启手电筒。通过本申请可简化开启手电筒的操作,提高开启手电筒的效率。
The present application is applicable to the field of mobile terminal technology, and provides a method for controlling a flashlight, a mobile terminal, and a computer-readable storage medium, including: detecting the light intensity of the current environment and whether the mobile terminal is in a stationary state; obtaining the duration of the light intensity being lower than a preset value and the mobile terminal being in a stationary state; if the duration exceeds the preset duration, and it is detected that the mobile terminal changes from a stationary state to a moving state, then turning on the flashlight. The present application can simplify the operation of turning on the flashlight and improve the efficiency of turning on the flashlight.
Description
技术领域technical field
本申请属于移动终端技术领域,尤其涉及控制手电筒的方法、移动终端及计算机可读存储介质。The present application belongs to the technical field of mobile terminals, and in particular relates to a method for controlling a flashlight, a mobile terminal and a computer-readable storage medium.
背景技术Background technique
随着手机、平板电脑等移动终端的广泛普及,移动终端通常具有手电筒功能。然而,现有技术通常需要从移动终端中查找到手电筒应用,进入应用界面打开手电筒,尤其是用户在熟睡中惊醒需要使用手电筒时,需要先点亮屏幕再打开手电筒,操作较为繁琐。With the widespread popularization of mobile terminals such as mobile phones and tablet computers, mobile terminals usually have a flashlight function. However, in the prior art, it is usually necessary to find the flashlight application from the mobile terminal, and enter the application interface to turn on the flashlight. Especially when the user wakes up from a deep sleep and needs to use the flashlight, he needs to light up the screen first and then turn on the flashlight, which is cumbersome to operate.
故,有必要提出一种新的技术问题,以解决上述技术问题。Therefore, it is necessary to propose a new technical problem to solve the above technical problem.
发明内容Contents of the invention
有鉴于此,本申请提供了控制手电筒的方法、移动终端及计算机可读存储介质,以简化开启手电筒的操作,提高开启手电筒的效率。In view of this, the present application provides a method for controlling a flashlight, a mobile terminal and a computer-readable storage medium, so as to simplify the operation of turning on the flashlight and improve the efficiency of turning on the flashlight.
本申请的第一方面提供了一种控制手电筒的方法,所述方法包括:A first aspect of the present application provides a method of controlling a flashlight, the method comprising:
检测当前环境的光线强度和移动终端是否处于静止状态;Detect the light intensity of the current environment and whether the mobile terminal is in a static state;
获取所述光线强度低于预设值且所述移动终端处于静止状态的持续时长;Obtaining a duration during which the light intensity is lower than a preset value and the mobile terminal is in a static state;
若在所述持续时长超过预设时长时,检测到所述移动终端由静止状态变为运动状态,则开启手电筒。If it is detected that the mobile terminal changes from a stationary state to a moving state when the duration exceeds a preset duration, the flashlight is turned on.
本申请的第二方面提供了一种移动终端,所述移动终端包括:A second aspect of the present application provides a mobile terminal, the mobile terminal comprising:
检测模块,用于检测当前环境的光线强度和移动终端是否处于静止状态;The detection module is used to detect the light intensity of the current environment and whether the mobile terminal is in a static state;
持续时长获取模块,用于获取所述光线强度低于预设值且所述移动终端处于静止状态的持续时长;A duration acquisition module, configured to acquire a duration during which the light intensity is lower than a preset value and the mobile terminal is in a static state;
手电筒打开模块,用于若在所述持续时长超过预设时长时,检测到所述移动终端由静止状态变为运动状态,则开启手电筒。The flashlight opening module is used to turn on the flashlight if it is detected that the mobile terminal changes from a stationary state to a moving state when the duration exceeds a preset duration.
本申请的第三方面提供了一种移动终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面所述方法的步骤。A third aspect of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program to implement the following: The steps of the method described in the first aspect above.
本申请的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面所述方法的步骤。A fourth aspect of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the above-mentioned first aspect are implemented.
本申请的第五方面提供了一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被一个或多个处理器执行时实现如上述第一方面所述方法的步骤。A fifth aspect of the present application provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by one or more processors, the steps of the method described in the first aspect above are realized.
由上可见,本申请方案通过检测当前环境的光线强度和移动终端是否处于静止状态,并在检测到光线强度低于预设值且移动终端处于静止状态时开始计时,获取光线强度低于预设值且移动终端处于静止状态的持续时长,若在持续时长超过预设时长时,检测到所述移动终端由静止状态变为运动状态,则开启手电筒。本申请方案通过检测当前环境的光线强度和移动终端的状态来判断当前环境是否需要使用手电筒,并在需要使用手电筒时,自动开启手电筒,简化了开启手电筒的操作,提高了开启手电筒的效率。It can be seen from the above that the solution of this application detects the light intensity of the current environment and whether the mobile terminal is in a static state, and starts timing when it detects that the light intensity is lower than the preset value and the mobile terminal is in a static state, and obtains the time when the light intensity is lower than the preset value. value and the duration of the mobile terminal being in a static state, if the mobile terminal is detected to change from a static state to a motion state when the duration exceeds a preset duration, the flashlight is turned on. The solution of this application judges whether the current environment needs to use a flashlight by detecting the light intensity of the current environment and the state of the mobile terminal, and automatically turns on the flashlight when the flashlight is needed, which simplifies the operation of turning on the flashlight and improves the efficiency of turning on the flashlight.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are only for the present application For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative efforts.
图1是本申请实施例一提供的控制手电筒的方法的实现流程示意图;FIG. 1 is a schematic flow diagram of the implementation of the method for controlling a flashlight provided in Embodiment 1 of the present application;
图2是本申请实施例二提供的控制手电筒的方法的实现流程示意图;Fig. 2 is a schematic diagram of the implementation flow of the method for controlling a flashlight provided in Embodiment 2 of the present application;
图3是本申请实施例三提供的移动终端的示意图;FIG. 3 is a schematic diagram of a mobile terminal provided in Embodiment 3 of the present application;
图4是本申请实施例四提供的移动终端的示意图;FIG. 4 is a schematic diagram of a mobile terminal provided in Embodiment 4 of the present application;
图5是本申请实施例五提供的移动终端的示意图。FIG. 5 is a schematic diagram of a mobile terminal provided in Embodiment 5 of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other features. , whole, step, operation, element, component and/or the presence or addition of a collection thereof.
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the specification of this application is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural referents unless the context clearly dictates otherwise.
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that the term "and/or" used in the description of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context . Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.
具体实现中,本申请实施例中描述的移动终端包括但不限于诸如具有触摸敏感表面(例如,触摸屏显示器和/或触摸板)的移动电话、膝上型计算机或平板计算机之类的其它便携式设备。还应当理解的是,在某些实施例中,所述设备并非便携式通信设备,而是具有触摸敏感表面(例如,触摸屏显示器和/或触摸板)的台式计算机。In a specific implementation, the mobile terminals described in the embodiments of the present application include but are not limited to other portable devices such as mobile phones, laptop computers or tablet computers with touch-sensitive surfaces (for example, touch screen displays and/or touchpads) . It should also be appreciated that in some embodiments, the device is not a portable communication device, but a desktop computer with a touch-sensitive surface (eg, a touchscreen display and/or a touchpad).
在接下来的讨论中,描述了包括显示器和触摸敏感表面的移动终端。然而,应当理解的是,移动终端可以包括诸如物理键盘、鼠标和/或控制杆的一个或多个其它物理用户接口设备。In the ensuing discussion, a mobile terminal including a display and a touch-sensitive surface is described. However, it should be understood that a mobile terminal may include one or more other physical user interface devices such as a physical keyboard, mouse and/or joystick.
移动终端支持各种应用程序,例如以下中的一个或多个:绘图应用程序、演示应用程序、文字处理应用程序、网站创建应用程序、盘刻录应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息收发应用程序、锻炼支持应用程序、照片管理应用程序、数码相机应用程序、数字摄影机应用程序、web浏览应用程序、数字音乐播放器应用程序和/或数字视频播放器应用程序。The mobile terminal supports various applications such as one or more of the following: drawing application, presentation application, word processing application, website creation application, disk burning application, spreadsheet application, game application, telephone applications, video conferencing applications, email applications, instant messaging applications, exercise support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications and/or digital video player applications.
可以在移动终端上执行的各种应用程序可以使用诸如触摸敏感表面的至少一个公共物理用户接口设备。可以在应用程序之间和/或相应应用程序内调整和/或改变触摸敏感表面的一个或多个功能以及终端上显示的相应信息。这样,终端的公共物理架构(例如,触摸敏感表面)可以支持具有对用户而言直观且透明的用户界面的各种应用程序。Various applications that can be executed on the mobile terminal can use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed between applications and/or within the respective applications. In this way, the common physical architecture (eg, touch-sensitive surface) of the terminal can support various applications with a user interface that is intuitive and transparent to the user.
应理解,本实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in this embodiment do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions described in this application, specific examples are used below to illustrate.
参见图1,是本申请实施例一提供的控制手电筒的方法的实现流程示意图,该控制手电筒的方法应用于移动终端,如图所示该控制手电筒的方法可以包括以下步骤:Referring to FIG. 1 , it is a schematic diagram of the implementation flow of the method for controlling a flashlight provided in Embodiment 1 of the present application. The method for controlling a flashlight is applied to a mobile terminal. As shown in the figure, the method for controlling a flashlight may include the following steps:
步骤S101,检测当前环境的光线强度和移动终端是否处于静止状态。Step S101, detecting the light intensity of the current environment and whether the mobile terminal is in a static state.
在本申请实施例中,可以通过移动终端中的光线传感器检测移动终端周围环境的光线强度。通过移动终端中的加速度传感器和/或陀螺仪检测移动终端的状态,包括静止状态和运动状态。例如,在检测到移动终端的加速度小于预设加速度阈值时,可以判定移动终端处于静止状态,在检测到移动终端的加速度不小于预设加速度阈值时,可以判定移动终端处于运动状态。In the embodiment of the present application, the light intensity of the surrounding environment of the mobile terminal may be detected by a light sensor in the mobile terminal. The state of the mobile terminal, including a static state and a motion state, is detected through an acceleration sensor and/or a gyroscope in the mobile terminal. For example, when it is detected that the acceleration of the mobile terminal is less than the preset acceleration threshold, it can be determined that the mobile terminal is in a static state; when it is detected that the acceleration of the mobile terminal is not less than the preset acceleration threshold, it can be determined that the mobile terminal is in a moving state.
步骤S102,获取所述光线强度低于预设值且所述移动终端处于静止状态的持续时长。Step S102, obtaining a duration during which the light intensity is lower than a preset value and the mobile terminal is in a static state.
步骤S103,若在所述持续时长超过预设时长时,检测到所述移动终端由静止状态变为运动状态,则开启手电筒。Step S103, if it is detected that the mobile terminal changes from a stationary state to a moving state when the duration exceeds a preset duration, turn on the flashlight.
在本申请实施例中,当移动终端检测到当前环境的光线强度低于预设值且移动终端处于静止状态时,可以启动计时器开始计时并持续检测当前环境的光线强度和移动终端的状态,将计时的时间与预设时长进行比较,若计时的时长超过预设时长,则可以判定用户已进入熟睡模式,移动终端无需启动手电筒,若在计时的时长超过预设时长时,检测到移动终端的状态由静止状态变为运动状态,则可以判定用户可能从熟睡中醒来,并需要使用手电筒查看周围环境,此时移动终端可以启动手电筒。其中,所述预设值用于判断用户是否能够看清当前环境,在当前环境的光线强度低于预设值时,可以判定用户不足以看清当前环境,在当前环境的光线强度高于预设值时,可以判定用户可以看清当前环境。若在预设时长内检测到当前环境的光线强度高于预设值或者移动终端由静止状态变为运动状态,则可以判定用户未进入熟睡模式,不自动启动手电筒。In the embodiment of the present application, when the mobile terminal detects that the light intensity of the current environment is lower than the preset value and the mobile terminal is in a static state, it can start a timer to start timing and continuously detect the light intensity of the current environment and the state of the mobile terminal, Compare the counted time with the preset duration. If the counted duration exceeds the preset duration, it can be determined that the user has entered the deep sleep mode. The mobile terminal does not need to activate the flashlight. If the counted duration exceeds the preset duration, the mobile terminal is detected If the state of the user changes from a static state to an active state, it can be determined that the user may wake up from a deep sleep and needs to use a flashlight to check the surrounding environment. At this time, the mobile terminal can activate the flashlight. Wherein, the preset value is used to judge whether the user can see the current environment clearly. When the light intensity of the current environment is lower than the preset value, it can be determined that the user is not enough to see the current environment clearly. When setting the value, it can be determined that the user can clearly see the current environment. If it is detected that the light intensity of the current environment is higher than the preset value or the mobile terminal changes from a static state to a motion state within the preset time period, it can be determined that the user has not entered the deep sleep mode, and the flashlight will not be automatically activated.
可选的,在开启手电筒的状态下,用户可以通过触控移动终端的音量键来调整手电筒亮度,例如按压音量增键增加手电筒亮度,按压音量减键减小手电筒亮度。也可以在移动终端上显示手电筒亮度对应的控制条,接收用户在移动终端上通过滑动该控制条输入的亮度值,实现对手电筒亮度的调节。Optionally, when the flashlight is turned on, the user can adjust the brightness of the flashlight by touching the volume keys of the mobile terminal, such as pressing the volume up key to increase the brightness of the flashlight, and pressing the volume down key to decrease the brightness of the flashlight. The control bar corresponding to the brightness of the flashlight can also be displayed on the mobile terminal, and the brightness value input by the user by sliding the control bar on the mobile terminal can be received to realize the adjustment of the brightness of the flashlight.
本申请方案通过检测当前环境的光线强度和移动终端的状态来判断当前环境是否需要使用手电筒,并在需要使用手电筒时,自动开启手电筒,简化了开启手电筒的操作,提高了开启手电筒的效率。The solution of this application judges whether the current environment needs to use a flashlight by detecting the light intensity of the current environment and the state of the mobile terminal, and automatically turns on the flashlight when the flashlight is needed, which simplifies the operation of turning on the flashlight and improves the efficiency of turning on the flashlight.
参见图2,是本申请实施例二提供的控制手电筒的方法的实现流程示意图,该控制手电筒的方法应用于移动终端,如图所示该控制手电筒的方法可以包括以下步骤:Referring to FIG. 2 , it is a schematic diagram of the implementation flow of the method for controlling a flashlight provided in Embodiment 2 of the present application. The method for controlling a flashlight is applied to a mobile terminal. As shown in the figure, the method for controlling a flashlight may include the following steps:
步骤S201,开启通过光线强度和移动终端的状态控制手电筒的功能。Step S201, enabling the function of controlling the flashlight according to the light intensity and the state of the mobile terminal.
在本申请实施例中,在检测当前环境的光线强度和移动终端的状态之前,用户可以选择是否需要开启通过光线强度和移动终端的状态控制手电筒的功能,当用户选择“是”或者不选择时,可以实时检测当前环境的光线强度和移动终端的状态,以判断用户是否需要使用手电筒。其中,移动终端的状态包括静止状态和运动状态。In this embodiment of the application, before detecting the light intensity of the current environment and the state of the mobile terminal, the user can choose whether to enable the function of controlling the flashlight through the light intensity and the state of the mobile terminal. When the user selects "Yes" or does not select , which can detect the light intensity of the current environment and the state of the mobile terminal in real time to determine whether the user needs to use the flashlight. Wherein, the state of the mobile terminal includes a static state and a moving state.
步骤S202,检测当前环境的光线强度和移动终端是否处于静止状态。Step S202, detecting the light intensity of the current environment and whether the mobile terminal is in a static state.
在本申请实施例中,可以通过移动终端中的光线传感器检测移动终端周围环境的光线强度。通过移动终端中的加速度传感器和/或陀螺仪检测移动终端的状态。例如,在检测到移动终端的加速度小于预设加速度阈值时,可以判定移动终端处于静止状态,在检测到移动终端的加速度不小于预设加速度阈值时,可以判定移动终端处于运动状态。In the embodiment of the present application, the light intensity of the surrounding environment of the mobile terminal may be detected by a light sensor in the mobile terminal. The state of the mobile terminal is detected through an acceleration sensor and/or a gyroscope in the mobile terminal. For example, when it is detected that the acceleration of the mobile terminal is less than the preset acceleration threshold, it can be determined that the mobile terminal is in a static state; when it is detected that the acceleration of the mobile terminal is not less than the preset acceleration threshold, it can be determined that the mobile terminal is in a moving state.
步骤S203,获取所述光线强度低于预设值且所述移动终端处于静止状态的持续时长。Step S203, acquiring a duration during which the light intensity is lower than a preset value and the mobile terminal is in a static state.
步骤S204,若在所述持续时长超过预设时长时,检测到所述移动终端由静止状态变为运动状态,则开启手电筒。Step S204, if it is detected that the mobile terminal changes from a stationary state to a moving state when the duration exceeds a preset duration, turn on the flashlight.
在本申请实施例中,当移动终端检测到当前环境的光线强度低于预设值且移动终端处于静止状态时,可以启动计时器开始计时并持续检测当前环境的光线强度和移动终端的状态,将计时的时间与预设时长进行比较,若计时的时长超过预设时长,则可以判定用户已进入熟睡模式,移动终端无需启动手电筒,若在计时的时长超过预设时长之后,检测到移动终端的状态由静止状态变为运动状态,则可以判定用户可能从熟睡中醒来,并需要使用手电筒查看周围环境,此时移动终端可以启动手电筒。其中,所述预设值用于判断用户是否能够看清当前环境,在当前环境的光线强度低于预设值时,可以判定用户不足以看清当前环境,在当前环境的光线强度高于预设值时,可以判定用户可以看清当前环境。若在预设时长内检测到当前环境的光线强度高于预设值或者移动终端由静止状态变为运动状态,则可以判定用户未进入熟睡模式,不自动启动手电筒。In the embodiment of the present application, when the mobile terminal detects that the light intensity of the current environment is lower than the preset value and the mobile terminal is in a static state, it can start a timer to start timing and continuously detect the light intensity of the current environment and the state of the mobile terminal, Compare the counted time with the preset duration. If the counted duration exceeds the preset duration, it can be determined that the user has entered the deep sleep mode, and the mobile terminal does not need to activate the flashlight. If the counted duration exceeds the preset duration, the mobile terminal is detected If the state of the user changes from a static state to an active state, it can be determined that the user may wake up from a deep sleep and needs to use a flashlight to check the surrounding environment. At this time, the mobile terminal can activate the flashlight. Wherein, the preset value is used to judge whether the user can see the current environment clearly. When the light intensity of the current environment is lower than the preset value, it can be determined that the user is not enough to see the current environment clearly. When setting the value, it can be determined that the user can clearly see the current environment. If it is detected that the light intensity of the current environment is higher than the preset value or the mobile terminal changes from a static state to a motion state within the preset time period, it can be determined that the user has not entered the deep sleep mode, and the flashlight will not be automatically activated.
可选的,在开启手电筒的状态下,用户可以通过触控移动终端的音量键来调整手电筒亮度,例如按压音量增键增加手电筒亮度,按压音量减键减小手电筒亮度。也可以在移动终端上显示手电筒亮度对应的控制条,接收用户在移动终端上通过滑动该控制条输入的亮度值,实现对手电筒亮度的调节。Optionally, when the flashlight is turned on, the user can adjust the brightness of the flashlight by touching the volume keys of the mobile terminal, such as pressing the volume up key to increase the brightness of the flashlight, and pressing the volume down key to decrease the brightness of the flashlight. The control bar corresponding to the brightness of the flashlight can also be displayed on the mobile terminal, and the brightness value input by the user by sliding the control bar on the mobile terminal can be received to realize the adjustment of the brightness of the flashlight.
在本申请实施例中,在开启移动终端中手电筒的状态下,移动终端可以持续检测当前环境的光线强度和移动终端的状态,根据当前环境的光线强度和移动终端的状态判断是持续开启手电筒,还是关闭手电筒。In the embodiment of the present application, when the flashlight in the mobile terminal is turned on, the mobile terminal can continuously detect the light intensity of the current environment and the state of the mobile terminal, and judge whether to continue to turn on the flashlight according to the light intensity of the current environment and the state of the mobile terminal. Or turn off the flashlight.
步骤S205,若检测到所述光线强度低于所述预设值,且所述移动终端由运动状态变为静止状态,则关闭所述手电筒。Step S205, if it is detected that the light intensity is lower than the preset value and the mobile terminal changes from a moving state to a stationary state, then turn off the flashlight.
在本申请实施例中,在开启手电筒的状态下,若检测到当前环境的光线强度仍低于预设值,且移动终端由运动状态变为静止状态,则自动关闭手电筒。In the embodiment of the present application, when the flashlight is turned on, if it is detected that the light intensity of the current environment is still lower than the preset value, and the mobile terminal changes from a moving state to a stationary state, the flashlight is automatically turned off.
可选的,若检测到所述光线强度低于所述预设值,且所述移动终端由运动状态变为静止状态,则显示提示框,若在预设时间内未接收到持续开启所述手电筒的指令,则关闭所述手电筒。其中,该提示框用于提示用户是否持续开启所述手电筒。Optionally, if it is detected that the light intensity is lower than the preset value, and the mobile terminal changes from a motion state to a static state, a prompt box will be displayed, and if the mobile terminal does not receive the flashlight command, turn off the flashlight. Wherein, the prompt box is used to prompt the user whether to keep turning on the flashlight.
在本申请实施例中,当前环境的光线强度低于预设值且移动终端由运动状态变为静止状态,也可能是用户手持手电筒持续照亮某一个地方,为了避免误关闭手电筒,可以显示提示框,该提示框可以提示用户是否持续开启手电筒,若预设时间内未接收到持续开启手电筒的指令,则关闭手电筒,否则持续开启手电筒。其中,用户可以通过点击或者长按提示框,向移动终端输入持续开启手电筒的指令,若在预设时间内未检测到用户点击或者长按提示框,可以判定移动终端未接收到持续开启手电筒的指令。In the embodiment of this application, the light intensity of the current environment is lower than the preset value and the mobile terminal changes from a moving state to a static state. It may also be that the user holds a flashlight to continuously illuminate a certain place. In order to avoid turning off the flashlight by mistake, a prompt can be displayed box, the prompt box can prompt the user whether to continue to turn on the flashlight, if no instruction to continue to turn on the flashlight is received within the preset time, turn off the flashlight, otherwise turn on the flashlight continuously. Among them, the user can input an instruction to continuously turn on the flashlight to the mobile terminal by clicking or long-pressing the prompt box. If no user click or long-press the prompt box is detected within the preset time, it can be determined that the mobile terminal has not received the instruction to continuously turn on the flashlight. instruction.
步骤S206,若检测到所述光线强度由低于所述预设值变为高于所述预设值,则关闭所述手电筒。Step S206, if it is detected that the light intensity changes from lower than the preset value to higher than the preset value, turn off the flashlight.
在本申请实施例中,在开启手电筒的状态下,若检测到当前环境的光线强度由低于预设值变为高于预设值,则可以判定当前环境的光线强度由弱变强,用户可以看清当前环境。In the embodiment of the present application, when the flashlight is turned on, if it is detected that the light intensity of the current environment changes from lower than the preset value to higher than the preset value, it can be determined that the light intensity of the current environment changes from weak to strong, and the user You can see the current environment clearly.
本申请方案可以根据当前环境的光线强度和移动终端的运动状态智能控制手电筒的开关,无需用户手动控制,简化了控制手电筒的操作,提高了控制手电筒的效率。The solution of this application can intelligently control the switch of the flashlight according to the light intensity of the current environment and the motion state of the mobile terminal, without manual control by the user, which simplifies the operation of controlling the flashlight and improves the efficiency of controlling the flashlight.
参见图3,是本申请实施例三提供的移动终端的示意图,为了便于说明,仅示出了与本申请实施例相关的部分。Referring to FIG. 3 , it is a schematic diagram of a mobile terminal provided in Embodiment 3 of the present application. For convenience of description, only parts related to the embodiment of the present application are shown.
所述移动终端包括:The mobile terminal includes:
检测模块31,用于检测当前环境的光线强度和移动终端是否处于静止状态;Detection module 31, for detecting the light intensity of the current environment and whether the mobile terminal is in a static state;
持续时长获取模块32,用于获取所述光线强度低于预设值且所述移动终端处于静止状态的持续时长;A duration acquisition module 32, configured to acquire the duration during which the light intensity is lower than a preset value and the mobile terminal is in a stationary state;
手电筒打开模块33,用于若在所述持续时长超过预设时长时,检测到所述移动终端由静止状态变为运动状态,则开启手电筒。The flashlight opening module 33 is configured to turn on the flashlight if it is detected that the mobile terminal changes from a stationary state to a moving state when the duration exceeds a preset duration.
可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:
第一关闭模块34,用于若检测到所述光线强度低于所述预设值,且所述移动终端由非静止状态变为静止状态,则关闭所述手电筒。The first closing module 34 is configured to turn off the flashlight if it is detected that the light intensity is lower than the preset value and the mobile terminal changes from a non-stationary state to a stationary state.
可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:
第二关闭模块35,用于若检测到所述光线强度由低于所述预设值变为高于所述预设值,则关闭所述手电筒。The second closing module 35 is configured to turn off the flashlight if it is detected that the light intensity changes from being lower than the preset value to higher than the preset value.
可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:
功能开启模块36,用于开启通过光线强度和移动终端的状态控制手电筒的功能。The function enabling module 36 is configured to enable the function of controlling the flashlight through the light intensity and the state of the mobile terminal.
本申请实施例提供的移动终端可以应用在前述方法实施例一和实施例二中,详情参见上述方法实施例一和实施例二的描述,在此不再赘述。The mobile terminal provided in the embodiment of the present application can be applied in the foregoing method embodiment 1 and embodiment 2. For details, refer to the description of the foregoing method embodiment 1 and embodiment 2, which will not be repeated here.
图4是本申请实施例四提供的移动终端的示意图。如图所示的该移动终端可以包括:一个或多个处理器401(图中仅示出一个);一个或多个输入设备402(图中仅示出一个),一个或多个输出设备403(图中仅示出一个)和存储器404。上述处理器401、输入设备402、输出设备403和存储器404通过总线405连接。存储器404用于存储指令,处理器401用于执行存储器404存储的指令。其中:FIG. 4 is a schematic diagram of a mobile terminal provided in Embodiment 4 of the present application. The mobile terminal as shown in the figure may include: one or more processors 401 (only one is shown in the figure); one or more input devices 402 (only one is shown in the figure), one or more output devices 403 (only one is shown in the figure) and memory 404 . The aforementioned processor 401 , input device 402 , output device 403 and memory 404 are connected through a bus 405 . The memory 404 is used to store instructions, and the processor 401 is used to execute the instructions stored in the memory 404 . in:
所述处理器401,用于检测当前环境的光线强度和移动终端是否处于静止状态;获取所述光线强度低于预设值且所述移动终端处于静止状态的持续时长;若在所述持续时长超过预设时长时,检测到所述移动终端由静止状态变为运动状态,则开启手电筒。The processor 401 is configured to detect the light intensity of the current environment and whether the mobile terminal is in a static state; obtain the duration of the light intensity lower than a preset value and the mobile terminal is in a static state; if within the duration When the preset duration is exceeded, it is detected that the mobile terminal changes from a stationary state to a moving state, and the flashlight is turned on.
可选的,在开启手电筒状态下,所述处理器401还用于:Optionally, when the flashlight is turned on, the processor 401 is also used to:
若检测到所述光线强度低于所述预设值,且所述移动终端由非静止状态变为静止状态,则关闭所述手电筒。If it is detected that the light intensity is lower than the preset value and the mobile terminal changes from a non-stationary state to a stationary state, then turn off the flashlight.
可选的,所述在开启手电筒状态下,所述处理器401还用于:Optionally, when the flashlight is turned on, the processor 401 is further configured to:
若检测到所述光线强度由低于所述预设值变为高于所述预设值,则关闭所述手电筒。If it is detected that the light intensity changes from lower than the preset value to higher than the preset value, then turn off the flashlight.
可选的,所述处理器401还用于:Optionally, the processor 401 is further configured to:
开启通过光线强度和移动终端的状态控制手电筒的功能。Turn on the function of controlling the flashlight through the light intensity and the state of the mobile terminal.
应当理解,在本申请实施例中,所述处理器401可以是中央处理单元(CentralProcessing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present application, the processor 401 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), dedicated Integrated Circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
输入设备402可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风、数据接收接口等。输出设备403可以包括显示器(LCD等)、扬声器、数据发送接口等。The input device 402 may include a touch panel, a fingerprint sensor (for collecting user's fingerprint information and fingerprint direction information), a microphone, a data receiving interface, and the like. The output device 403 may include a display (LCD, etc.), a speaker, a data sending interface, and the like.
该存储器404可以包括只读存储器和随机存取存储器,并向处理器401提供指令和数据。存储器404的一部分还可以包括非易失性随机存取存储器。例如,存储器404还可以存储设备类型的信息。The memory 404 may include read-only memory and random-access memory, and provides instructions and data to the processor 401 . A portion of memory 404 may also include non-volatile random access memory. For example, memory 404 may also store device type information.
具体实现中,本申请实施例中所描述的处理器401、输入设备402、输出设备403和存储器404可执行本申请实施例提供的控制手电筒的方法的实施例中所描述的实现方式,也可执行实施例三所述移动终端中所描述的实现方式,在此不再赘述。In a specific implementation, the processor 401, input device 402, output device 403, and memory 404 described in the embodiment of the application can execute the implementation described in the embodiment of the method for controlling a flashlight provided in the embodiment of the application, or can Execute the implementation described in the mobile terminal described in Embodiment 3, which will not be repeated here.
图5是本申请实施例五提供的移动终端的示意图。如图5所示,该实施例的移动终端5包括:处理器50、存储器51以及存储在所述存储器51中并可在所述处理器50上运行的计算机程序52。所述处理器50执行所述计算机程序52时实现上述各个控制手电筒的方法实施例中的步骤,例如图1所示的步骤S101至S103。或者,所述处理器50执行所述计算机程序52时实现上述各移动终端实施例中各模块/单元的功能,例如图3所示模块31至36的功能。FIG. 5 is a schematic diagram of a mobile terminal provided in Embodiment 5 of the present application. As shown in FIG. 5 , the mobile terminal 5 of this embodiment includes: a processor 50 , a memory 51 , and a computer program 52 stored in the memory 51 and operable on the processor 50 . When the processor 50 executes the computer program 52 , the steps in the above embodiments of the method for controlling a flashlight are implemented, such as steps S101 to S103 shown in FIG. 1 . Alternatively, when the processor 50 executes the computer program 52, functions of the modules/units in the above mobile terminal embodiments are implemented, for example, the functions of the modules 31 to 36 shown in FIG. 3 .
示例性的,所述计算机程序52可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器51中,并由所述处理器50执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序52在所述移动终端5中的执行过程。例如,所述计算机程序52可以被分割成检测模块、持续时长获取模块、手电筒打开模块、第一关闭模块、第二关闭模块以及功能开启模块,各模块具体功能如下:Exemplarily, the computer program 52 can be divided into one or more modules/units, and the one or more modules/units are stored in the memory 51 and executed by the processor 50 to complete this application. The one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program 52 in the mobile terminal 5 . For example, the computer program 52 can be divided into a detection module, a duration acquisition module, a flashlight opening module, a first closing module, a second closing module and a function opening module, and the specific functions of each module are as follows:
检测模块,用于检测当前环境的光线强度和移动终端是否处于静止状态;The detection module is used to detect the light intensity of the current environment and whether the mobile terminal is in a static state;
持续时长获取模块,用于获取所述光线强度低于预设值且所述移动终端处于静止状态的持续时长;A duration acquisition module, configured to acquire a duration during which the light intensity is lower than a preset value and the mobile terminal is in a static state;
手电筒打开模块,用于若在所述持续时长超过预设时长时,检测到所述移动终端由静止状态变为运动状态,则开启手电筒。The flashlight opening module is used to turn on the flashlight if it is detected that the mobile terminal changes from a stationary state to a moving state when the duration exceeds a preset duration.
可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:
第一关闭模块,用于若检测到所述光线强度低于所述预设值,且所述移动终端由运动状态变为静止状态,则关闭所述手电筒。The first closing module is configured to turn off the flashlight if it is detected that the light intensity is lower than the preset value and the mobile terminal changes from a moving state to a stationary state.
可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:
第二关闭模块,用于若检测到所述光线强度由低于所述预设值变为高于所述预设值,则关闭所述手电筒。The second closing module is configured to turn off the flashlight if it is detected that the light intensity changes from being lower than the preset value to higher than the preset value.
可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:
功能开启模块,用于开启通过光线强度和移动终端的状态控制手电筒的功能。The function enabling module is configured to enable the function of controlling the flashlight through the light intensity and the state of the mobile terminal.
所述移动终端5可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述移动终端可包括,但不仅限于,处理器50、存储器51。本领域技术人员可以理解,图5仅仅是移动终端5的示例,并不构成对移动终端5的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述移动终端还可以包括输入输出设备、网络接入设备、总线等。The mobile terminal 5 may be a computing device such as a desktop computer, a notebook, a palmtop computer, or a cloud server. The mobile terminal may include, but not limited to, a processor 50 and a memory 51 . Those skilled in the art can understand that FIG. 5 is only an example of the mobile terminal 5, and does not constitute a limitation to the mobile terminal 5. It may include more or less components than those shown in the figure, or combine certain components, or different components. , for example, the mobile terminal may further include an input and output device, a network access device, a bus, and the like.
所称处理器50可以是中央处理单元CPU,还可以是其他通用处理器、数字信号处理器DSP、专用集成电路ASIC、现成可编程门阵列FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 50 can be a central processing unit CPU, and can also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices , discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
所述存储器51可以是所述移动终端5的内部存储单元,例如移动终端5的硬盘或内存。所述存储器51也可以是所述移动终端5的外部存储设备,例如所述移动终端5上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器51还可以既包括所述移动终端5的内部存储单元也包括外部存储设备。所述存储器51用于存储所述计算机程序以及所述移动终端所需的其他程序和数据。所述存储器51还可以用于暂时地存储已经输出或者将要输出的数据。The memory 51 may be an internal storage unit of the mobile terminal 5 , such as a hard disk or memory of the mobile terminal 5 . The memory 51 can also be an external storage device of the mobile terminal 5, such as a plug-in hard disk equipped on the mobile terminal 5, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc. Further, the memory 51 may also include both an internal storage unit of the mobile terminal 5 and an external storage device. The memory 51 is used to store the computer program and other programs and data required by the mobile terminal. The memory 51 can also be used to temporarily store data that has been output or will be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above system, reference may be made to the corresponding process in the foregoing method embodiments, and details will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。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 application.
在本申请所提供的实施例中,应该理解到,所揭露的移动终端和方法,可以通过其它的方式实现。例如,以上所描述的移动终端实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed mobile terminal and method can be implemented in other ways. For example, the mobile terminal embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components May be combined or may be integrated into another system, or some features may be omitted, 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 application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the integrated module/unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments in the present application can also be completed by instructing related hardware through computer programs. The computer programs can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, computer-readable media Excludes electrical carrier signals and telecommunication signals.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still implement the foregoing embodiments Modifications to the technical solutions described in the examples, or equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application, and should be included in the Within the protection scope of this application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711175507.0A CN107835553B (en) | 2017-11-22 | 2017-11-22 | Method, mobile terminal and computer-readable storage medium for controlling flashlight |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711175507.0A CN107835553B (en) | 2017-11-22 | 2017-11-22 | Method, mobile terminal and computer-readable storage medium for controlling flashlight |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107835553A true CN107835553A (en) | 2018-03-23 |
CN107835553B CN107835553B (en) | 2020-06-26 |
Family
ID=61653302
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711175507.0A Active CN107835553B (en) | 2017-11-22 | 2017-11-22 | Method, mobile terminal and computer-readable storage medium for controlling flashlight |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107835553B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111327767A (en) * | 2020-02-06 | 2020-06-23 | Tcl移动通信科技(宁波)有限公司 | Lighting device control method, system, storage medium and mobile terminal |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20140081012A (en) * | 2012-12-21 | 2014-07-01 | 최민영 | Wireless LED Flashlight Combination Portable Stand |
CN104676821A (en) * | 2013-11-29 | 2015-06-03 | 广东美的制冷设备有限公司 | Method and device for automatically opening air conditioner sleep mode |
CN105791537A (en) * | 2016-02-16 | 2016-07-20 | 上海斐讯数据通信技术有限公司 | System and method for starting or closing application |
CN105882813A (en) * | 2015-08-11 | 2016-08-24 | 乐视体育文化产业发展(北京)有限公司 | Vehicle lamp control method and system of riding equipment |
CN105916267A (en) * | 2016-04-12 | 2016-08-31 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for adjusting brightness of flash light |
CN106332389A (en) * | 2015-07-01 | 2017-01-11 | 青岛亿联客信息技术有限公司 | Device for automatically turning on/off lamp during sleep, and application method thereof |
CN106793040A (en) * | 2016-12-30 | 2017-05-31 | 深圳天珑无线科技有限公司 | Terminal control method and device |
US20170171445A1 (en) * | 2015-12-10 | 2017-06-15 | Le Holdings (Beijing) Co., Ltd. | Brightness compensation method and electronic device for front-facing camera, and mobile terminal |
CN106878553A (en) * | 2017-02-06 | 2017-06-20 | 广东小天才科技有限公司 | Control method of mobile equipment and mobile equipment |
CN107360324A (en) * | 2017-07-07 | 2017-11-17 | 广东小天才科技有限公司 | Terminal searching prompting method and device, terminal and storage medium |
-
2017
- 2017-11-22 CN CN201711175507.0A patent/CN107835553B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20140081012A (en) * | 2012-12-21 | 2014-07-01 | 최민영 | Wireless LED Flashlight Combination Portable Stand |
CN104676821A (en) * | 2013-11-29 | 2015-06-03 | 广东美的制冷设备有限公司 | Method and device for automatically opening air conditioner sleep mode |
CN106332389A (en) * | 2015-07-01 | 2017-01-11 | 青岛亿联客信息技术有限公司 | Device for automatically turning on/off lamp during sleep, and application method thereof |
CN105882813A (en) * | 2015-08-11 | 2016-08-24 | 乐视体育文化产业发展(北京)有限公司 | Vehicle lamp control method and system of riding equipment |
US20170171445A1 (en) * | 2015-12-10 | 2017-06-15 | Le Holdings (Beijing) Co., Ltd. | Brightness compensation method and electronic device for front-facing camera, and mobile terminal |
CN105791537A (en) * | 2016-02-16 | 2016-07-20 | 上海斐讯数据通信技术有限公司 | System and method for starting or closing application |
CN105916267A (en) * | 2016-04-12 | 2016-08-31 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for adjusting brightness of flash light |
CN106793040A (en) * | 2016-12-30 | 2017-05-31 | 深圳天珑无线科技有限公司 | Terminal control method and device |
CN106878553A (en) * | 2017-02-06 | 2017-06-20 | 广东小天才科技有限公司 | Control method of mobile equipment and mobile equipment |
CN107360324A (en) * | 2017-07-07 | 2017-11-17 | 广东小天才科技有限公司 | Terminal searching prompting method and device, terminal and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111327767A (en) * | 2020-02-06 | 2020-06-23 | Tcl移动通信科技(宁波)有限公司 | Lighting device control method, system, storage medium and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107835553B (en) | 2020-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107885534B (en) | Screen locking method, terminal and computer readable medium | |
KR102485448B1 (en) | Electronic device and method for processing gesture input | |
CN108900770A (en) | Method and device for controlling rotation of camera, smart watch and mobile terminal | |
CN107193598B (en) | Application starting method, mobile terminal and computer readable storage medium | |
CN107920162A (en) | Method for controlling alarm clock, mobile terminal and computer-readable storage medium | |
CN108038112A (en) | Document handling method, mobile terminal and computer-readable recording medium | |
CN108733298A (en) | Processing method, device, storage medium and the electronic equipment of touch information | |
CN107071264A (en) | A kind of image resolution ratio method of adjustment and mobile terminal | |
CN106648326A (en) | Method for regulating screen-off time, and mobile terminal | |
CN107368255A (en) | Unlocking method, mobile terminal and computer-readable recording medium | |
CN111142650B (en) | Screen brightness adjusting method, screen brightness adjusting device and terminal | |
CN107943359A (en) | A kind of method, terminal and the computer-readable medium of the control of application program | |
CN107317928A (en) | Information processing method, mobile terminal and computer-readable recording medium | |
CN108521460A (en) | Information pushing method and device, mobile terminal and computer readable storage medium | |
CN108733299A (en) | Application split screen method and device, storage medium and electronic equipment | |
CN107506494A (en) | File processing method, mobile terminal, and computer-readable storage medium | |
US9965098B2 (en) | Clamshell electronic device and calibration method capable of enabling calibration based on separated number of cover | |
CN107783932A (en) | Information processing method, mobile terminal and the computer-readable recording medium of calculator | |
CN108366298A (en) | Video playing method, mobile terminal and computer readable storage medium | |
CN108021301A (en) | A kind of volume adjusting method, terminal device and computer-readable recording medium | |
CN108363915A (en) | unlocking method, mobile terminal and computer readable storage medium | |
CN108490824B (en) | Intelligent electric appliance control method and device and mobile terminal | |
US9965173B2 (en) | Apparatus and method for precise multi-touch input | |
CN107277906A (en) | Mode Selection Method, Device, Terminal, and Computer-Readable Storage Medium | |
CN107835553B (en) | Method, mobile terminal and computer-readable storage medium for controlling flashlight |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |