CN107835553A - Control method, mobile terminal and the computer-readable recording medium of flashlight - Google Patents

Control method, mobile terminal and the computer-readable recording medium of flashlight Download PDF

Info

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
Application number
CN201711175507.0A
Other languages
Chinese (zh)
Other versions
CN107835553B (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 CN201711175507.0A priority Critical patent/CN107835553B/en
Publication of CN107835553A publication Critical patent/CN107835553A/en
Application granted granted Critical
Publication of CN107835553B publication Critical patent/CN107835553B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The application is applied to technical field of mobile terminals, there is provided method, mobile terminal and the computer-readable recording medium of flashlight are controlled, including:Whether the light intensity and mobile terminal for detecting current environment remain static;Obtain the light intensity and be less than the duration that preset value and the mobile terminal remain static;If when the duration exceedes preset duration, detect that the mobile terminal is changed into motion state from inactive state, then open flashlight.The operation for opening flashlight can be simplified by the application, improve the efficiency for opening flashlight.

Description

Control method, mobile terminal and the computer-readable recording medium of flashlight
Technical field
The application belongs to technical field of mobile terminals, more particularly to method, mobile terminal and the computer of control flashlight Readable storage medium storing program for executing.
Background technology
Widely available with mobile terminals such as mobile phone, tablet personal computers, mobile terminal generally has flashlight function.So And prior art usually requires to find flashlight application from mobile terminal, flashlight is opened into application interface, especially User waken up with a start in sleeping soundly need to use flashlight when, it is necessary to which first light screen opens flashlight again, operation is relatively complicated.
Therefore, it is necessary to a kind of new technical problem is proposed, to solve above-mentioned technical problem.
The content of the invention
In view of this, this application provides control flashlight method, mobile terminal and computer-readable recording medium, with Simplify the operation for opening flashlight, improve the efficiency for opening flashlight.
The first aspect of the application provides a kind of method for controlling flashlight, and methods described includes:
Whether the light intensity and mobile terminal for detecting current environment remain static;
Obtain the light intensity and be less than the duration that preset value and the mobile terminal remain static;
If when the duration exceedes preset duration, detect that the mobile terminal is changed into moving shape from inactive state State, then open flashlight.
The second aspect of the application provides a kind of mobile terminal, and the mobile terminal includes:
Whether detection module, light intensity and mobile terminal for detecting current environment remain static;
Duration acquisition module, it is in static less than preset value and the mobile terminal for obtaining the light intensity The duration of state;
Flashlight opens module, if for when the duration exceedes preset duration, detecting the mobile terminal Motion state is changed into from inactive state, then opens flashlight.
The third aspect of the application provides a kind of mobile terminal, including memory, processor and is stored in described deposit In reservoir and the computer program that can run on the processor, realized such as during computer program described in the computing device The step of above-mentioned first aspect methods described.
The fourth aspect of the application provides a kind of computer-readable recording medium, and the computer-readable recording medium is deposited Computer program is contained, is realized when the computer program is executed by processor such as the step of above-mentioned first aspect methods described.
The 5th aspect of the application provides a kind of computer program product, and the computer program product includes computer Program, realized when the computer program is executed by one or more processors such as the step of above-mentioned first aspect methods described.
Therefore whether application scheme is in static shape by the light intensity and mobile terminal for detecting current environment State, and start timing when detecting that light intensity remains static less than preset value and mobile terminal, obtain light intensity The duration to be remained static less than preset value and mobile terminal, if when duration exceedes preset duration, detect The mobile terminal is changed into motion state from inactive state, then opens flashlight.Application scheme is by detecting current environment The state of light intensity and mobile terminal judges whether current environment needs to use flashlight, and is needing to use flashlight When, flashlight is automatically turned on, simplifies the operation for opening flashlight, improves the efficiency for opening flashlight.
Brief description of the drawings
, below will be to embodiment or description of the prior art in order to illustrate more clearly of the technical scheme in the embodiment of the present application In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description are only some of the application Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the implementation process schematic diagram of the method for the control flashlight that the embodiment of the present application one provides;
Fig. 2 is the implementation process schematic diagram of the method for the control flashlight that the embodiment of the present application two provides;
Fig. 3 is the schematic diagram for the mobile terminal that the embodiment of the present application three provides;
Fig. 4 is the schematic diagram for the mobile terminal that the embodiment of the present application four provides;
Fig. 5 is the schematic diagram for the mobile terminal that the embodiment of the present application five provides.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand the embodiment of the present application.However, it will be clear to one skilled in the art that there is no these specific The application can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders the description of the present application.
It should be appreciated that ought be in this specification and in the appended claims in use, special described by the instruction of term " comprising " Sign, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, entirety, step, Operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this present specification is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the application.As used in present specification and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and appended claims is Refer to any combinations of one or more of the associated item listed and be possible to combine, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the mobile terminal described in the embodiment of the present application is including but not limited to such as with the sensitive table of touch Mobile phone, laptop computer or the tablet PC in face (for example, touch-screen display and/or touch pad) etc it is other Portable set.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but is had The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch pad).
In discussion below, the mobile terminal including display and touch sensitive surface is described.However, it should manage Solution, one or more of the other physical User that mobile terminal can include such as physical keyboard, mouse and/or control-rod connect Jaws equipment.
Mobile terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application Program, word-processing application, website establishment application program, disk imprinting application program, spreadsheet applications, game are answered With program, telephony application, videoconference application, email application, instant messaging applications, forging Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing should With program, digital music player application and/or video frequency player application program.
The various application programs that can be performed on mobile terminals can use at least one of such as touch sensitive surface Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick Feel the corresponding information shown in the one or more functions and terminal on surface.So, terminal public physical structure (for example, Touch sensitive surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence in the present embodiment, each process Execution sequence should determine that the implementation process without tackling the embodiment of the present application forms any restriction with its function and internal logic.
In order to illustrate technical scheme described herein, illustrated below by specific embodiment.
It is the implementation process schematic diagram of the method for the control flashlight that the embodiment of the present application one provides referring to Fig. 1, the control The method of flashlight is applied to mobile terminal, and the method for the control flashlight may comprise steps of as shown in the figure:
Whether step S101, the light intensity and mobile terminal for detecting current environment remain static.
In the embodiment of the present application, mobile terminal surrounding environment can be detected by the light sensor in mobile terminal Light intensity.The state of mobile terminal, including static shape are detected by the acceleration transducer in mobile terminal and/or gyroscope State and motion state.For example, when the acceleration for detecting mobile terminal is less than predetermined acceleration threshold value, it is possible to determine that mobile whole End remains static, when the acceleration for detecting mobile terminal is not less than predetermined acceleration threshold value, it is possible to determine that mobile whole End is kept in motion.
Step S102, obtain the light intensity less than preset value and the mobile terminal remain static it is lasting when It is long.
Step S103, if when the duration exceedes preset duration, detect the mobile terminal by inactive state It is changed into motion state, then opens flashlight.
In the embodiment of the present application, when mobile terminal detects that the light intensity of current environment is less than preset value and movement is whole When end remains static, timer can be started and start timing and continue to detect the light intensity and mobile terminal of current environment State, by the time of timing compared with preset duration, if the duration of timing exceedes preset duration, can be determined that user Pattern of sleeping soundly is had been enter into, mobile terminal need not start flashlight, if when the duration of timing exceedes preset duration, detect movement The state of terminal is changed into motion state from inactive state, then can be determined that user may wake up from sleeping soundly, and need to use hand Torch checks surrounding environment, and now mobile terminal can start flashlight.Wherein, the preset value is used to judge that user whether can Current environment is enough seen clearly, when the light intensity of current environment is less than preset value, it is possible to determine that user, which is not enough to see clearly, works as front ring Border, when the light intensity of current environment is higher than preset value, it is possible to determine that user can see current environment clearly.If in preset duration Inside detect that the light intensity of current environment is changed into motion state higher than preset value or mobile terminal from inactive state, then can be with Judge that user is introduced into pattern of sleeping soundly, not automatic start flashlight.
Optionally, in the state of flashlight is opened, user can adjust hand by the volume key of touch-control mobile terminal Torch brightness, such as pressing volume increase key increase flashlight brightness, and pressing volume down key reduces flashlight brightness.It can also move Control strip corresponding to flashlight brightness is shown in dynamic terminal, receives what user inputted by sliding the control strip on mobile terminals Brightness value, realize the regulation of flashlight brightness.
Application scheme is to judge current environment by detecting the light intensity of current environment and the state of mobile terminal It is no to need to use flashlight, and when needing to use flashlight, flashlight is automatically turned on, the operation for opening flashlight is simplified, Improve the efficiency for opening flashlight.
It is the implementation process schematic diagram of the method for the control flashlight that the embodiment of the present application two provides referring to Fig. 2, the control The method of flashlight is applied to mobile terminal, and the method for the control flashlight may comprise steps of as shown in the figure:
Step S201, open the function that flashlight is controlled by the state of light intensity and mobile terminal.
In the embodiment of the present application, before the light intensity of detection current environment and the state of mobile terminal, Yong Huke To choose whether to need to open the function that flashlight is controlled by the state of light intensity and mobile terminal, when user selects "Yes" Or when not selecting, the light intensity of current environment and the state of mobile terminal can be detected in real time, to judge whether user needs To use flashlight.Wherein, the state of mobile terminal includes inactive state and motion state.
Whether step S202, the light intensity and mobile terminal for detecting current environment remain static.
In the embodiment of the present application, mobile terminal surrounding environment can be detected by the light sensor in mobile terminal Light intensity.The state of mobile terminal is detected by the acceleration transducer in mobile terminal and/or gyroscope.For example, examining When measuring the acceleration of mobile terminal and being less than predetermined acceleration threshold value, it is possible to determine that mobile terminal remains static, and is detecting When being not less than predetermined acceleration threshold value to the acceleration of mobile terminal, it is possible to determine that mobile terminal is kept in motion.
Step S203, obtain the light intensity less than preset value and the mobile terminal remain static it is lasting when It is long.
Step S204, if when the duration exceedes preset duration, detect the mobile terminal by inactive state It is changed into motion state, then opens flashlight.
In the embodiment of the present application, when mobile terminal detects that the light intensity of current environment is less than preset value and movement is whole When end remains static, timer can be started and start timing and continue to detect the light intensity and mobile terminal of current environment State, by the time of timing compared with preset duration, if the duration of timing exceedes preset duration, can be determined that user Pattern of sleeping soundly is had been enter into, mobile terminal need not start flashlight, if after the duration of timing exceedes preset duration, detect shifting The state of dynamic terminal is changed into motion state from inactive state, then can be determined that user may wake up from sleeping soundly, and need to use Flashlight checks surrounding environment, and now mobile terminal can start flashlight.Wherein, the preset value is used for whether judging user Current environment can be seen clearly, when the light intensity of current environment is less than preset value, it is possible to determine that user is not enough to see clearly currently Environment, when the light intensity of current environment is higher than preset value, it is possible to determine that user can see current environment clearly.If when default Detect that the light intensity of current environment is changed into motion state higher than preset value or mobile terminal from inactive state in length, then may be used To judge that user is introduced into pattern of sleeping soundly, not automatic start flashlight.
Optionally, in the state of flashlight is opened, user can adjust hand by the volume key of touch-control mobile terminal Torch brightness, such as pressing volume increase key increase flashlight brightness, and pressing volume down key reduces flashlight brightness.It can also move Control strip corresponding to flashlight brightness is shown in dynamic terminal, receives what user inputted by sliding the control strip on mobile terminals Brightness value, realize the regulation of flashlight brightness.
In the embodiment of the present application, in the state of flashlight in opening mobile terminal, mobile terminal can continue to detect The light intensity of current environment and the state of mobile terminal, according to the light intensity of current environment and the condition adjudgement of mobile terminal It is to continue to open flashlight, or closes flashlight.
Step S205, if detecting, the light intensity is less than the preset value, and the mobile terminal is by motion state It is changed into inactive state, then closes the flashlight.
In the embodiment of the present application, in the state of flashlight is opened, if detecting, the light intensity of current environment is still low In preset value, and mobile terminal is changed into inactive state from motion state, then closes flashlight automatically.
Optionally, if detecting, the light intensity is less than the preset value, and the mobile terminal is become by motion state For inactive state, then display the prompt box, if not receiving the lasting instruction for opening the flashlight in preset time, is closed The flashlight.Wherein, the prompting frame is used to prompt the user whether to continue to open the flashlight.
In the embodiment of the present application, the light intensity of current environment is changed into less than preset value and mobile terminal from motion state Inactive state, it is also possible to which user holds flashlight and persistently illuminates some place, in order to avoid closing flashlight, Ke Yixian by mistake Show prompting frame, the prompting frame can prompt the user whether to continue to open flashlight, if not receiving lasting unlatching in preset time The instruction of flashlight, then flashlight is closed, otherwise persistently opens flashlight.Wherein, user can be carried by click or long-press Show frame, the instruction of flashlight is persistently opened to mobile terminal input, if being not detected by user's click or long in preset time By prompting frame, it is possible to determine that mobile terminal does not receive the instruction of lasting unlatching flashlight.
Step S206, if detecting, the light intensity by being changed to above the preset value less than the preset value, closes Close the flashlight.
In the embodiment of the present application, in the state of flashlight is opened, if detecting the light intensity of current environment by low Preset value is changed to above in preset value, then can be determined that the light intensity of current environment changes from weak to strong, user can see clearly currently Environment.
Application scheme can be according to the light intensity of current environment and the motion state intelligent control torch of mobile terminal The switch of cylinder, is controlled manually without user, simplifies the operation of control flashlight, improves the efficiency of control flashlight.
Referring to Fig. 3, it is the schematic diagram for the mobile terminal that the embodiment of the present application three provides, for convenience of description, illustrate only The part related to the embodiment of the present application.
The mobile terminal includes:
Whether detection module 31, light intensity and mobile terminal for detecting current environment remain static;
Duration acquisition module 32, it is in quiet less than preset value and the mobile terminal for obtaining the light intensity The only duration of state;
Flashlight opens module 33, if described mobile whole for when the duration exceedes preset duration, detecting End is changed into motion state from inactive state, then opens flashlight.
Optionally, the mobile terminal also includes:
First closedown module 34, if for detecting that the light intensity is less than the preset value, and the mobile terminal Inactive state is changed into from nonstatic state, then closes the flashlight.
Optionally, the mobile terminal also includes:
Second closedown module 35, if for detecting that the light intensity is described pre- by being changed to above less than the preset value If value, then close the flashlight.
Optionally, the mobile terminal also includes:
Function opening module 36, the function of flashlight is controlled by the state of light intensity and mobile terminal for opening.
The mobile terminal that the embodiment of the present application provides can be applied in preceding method embodiment one and embodiment two, details Referring to the description of above method embodiment one and embodiment two, will not be repeated here.
Fig. 4 is the schematic diagram for the mobile terminal that the embodiment of the present application four provides.The mobile terminal as depicted can wrap Include:One or more processors 401 (only show one) in figure;One or more input equipments 402 (one is only shown in figure), One or more output equipments 403 (one is only shown in figure) and memory 404.It is above-mentioned processor 401, input equipment 402, defeated Go out equipment 403 and memory 404 is connected by bus 405.Memory 404 is used for store instruction, and processor 401 is deposited for execution The instruction that reservoir 404 stores.Wherein:
Whether the processor 401, light intensity and mobile terminal for detecting current environment remain static;Obtain The light intensity is taken to be less than the duration that preset value and the mobile terminal remain static;If in the duration During more than preset duration, detect that the mobile terminal is changed into motion state from inactive state, then open flashlight.
Optionally, in the case where opening flashlight state, the processor 401 is additionally operable to:
If detecting, the light intensity is less than the preset value, and the mobile terminal is changed into static from nonstatic state State, then close the flashlight.
Optionally, described in the case where opening flashlight state, the processor 401 is additionally operable to:
If detecting, the light intensity by being changed to above the preset value less than the preset value, closes the torch Cylinder.
Optionally, the processor 401 is additionally operable to:
Open the function that flashlight is controlled by the state of light intensity and mobile terminal.
It should be appreciated that in the embodiment of the present application, the processor 401 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Input equipment 402 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint Directional information), microphone, data receiver interface etc..Output equipment 403 can include display (LCD etc.), loudspeaker, data Transmission interface etc..
The memory 404 can include read-only storage and random access memory, and to processor 401 provide instruction and Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited Store up the information of device type.
In the specific implementation, processor 401, input equipment 402, the and of output equipment 403 described in the embodiment of the present application Memory 404 can perform the implementation described in the embodiment of the method for the control flashlight of the embodiment of the present application offer, Also the implementation described in mobile terminal described in embodiment three is can perform, will not be repeated here.
Fig. 5 is the schematic diagram for the mobile terminal that the embodiment of the present application five provides.As shown in figure 5, the mobile end of the embodiment End 5 includes:Processor 50, memory 51 and it is stored in the meter that can be run in the memory 51 and on the processor 50 Calculation machine program 52.The processor 50 realizes that the method for above-mentioned each control flashlight is implemented when performing the computer program 52 Step in example, such as the step S101 to S103 shown in Fig. 1.Or the processor 50 performs the computer program 52 The function of each module/unit in the above-mentioned each mobile terminal embodiments of Shi Shixian, such as the function of module 31 to 36 shown in Fig. 3.
Exemplary, the computer program 52 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 51, and are performed by the processor 50, to complete the application.Described one Individual or multiple module/units can be the series of computation machine programmed instruction section that can complete specific function, and the instruction segment is used for Implementation procedure of the computer program 52 in the mobile terminal 5 is described.For example, the computer program 52 can be divided It is cut into detection module, duration acquisition module, flashlight and opens module, the first closedown module, the second closedown module and work( Energy opening module, each module concrete function are as follows:
Whether detection module, light intensity and mobile terminal for detecting current environment remain static;
Duration acquisition module, it is in static less than preset value and the mobile terminal for obtaining the light intensity The duration of state;
Flashlight opens module, if for when the duration exceedes preset duration, detecting the mobile terminal Motion state is changed into from inactive state, then opens flashlight.
Optionally, the mobile terminal also includes:
First closedown module, if for detecting that the light intensity is less than the preset value, and the mobile terminal by Motion state is changed into inactive state, then closes the flashlight.
Optionally, the mobile terminal also includes:
Second closedown module, if for detecting that the light intensity is described default by being changed to above less than the preset value Value, then close the flashlight.
Optionally, the mobile terminal also includes:
Function opening module, the function of flashlight is controlled by the state of light intensity and mobile terminal for opening.
The mobile terminal 5 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set It is standby.The mobile terminal may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5 The only example of mobile terminal 5, the restriction to mobile terminal 5 is not formed, can included than illustrating more or less portions Part, some parts or different parts are either combined, such as the mobile terminal can also include input-output equipment, net Network access device, bus etc..
Alleged processor 50 can be central processing unit CPU, can also be other general processors, Digital Signal Processing Device DSP, application-specific integrated circuit ASIC, ready-made programmable gate array FPGA either other PLDs, discrete gate or Transistor logic, discrete hardware components etc..General processor can be microprocessor or the processor can also be appointed What conventional processor etc..
The memory 51 can be the internal storage unit of the mobile terminal 5, such as the hard disk of mobile terminal 5 or interior Deposit.The memory 51 can also be the External memory equipment of the mobile terminal 5, such as be equipped with the mobile terminal 5 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, dodge Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the mobile terminal 5 Member also includes External memory equipment.The memory 51 is used to store needed for the computer program and the mobile terminal Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used To be that unit is individually physically present, can also two or more units it is integrated in a unit, it is above-mentioned integrated Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.In addition, each function list Member, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Said system The specific work process of middle unit, module, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment The part of load, it may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed mobile terminal and method, it can be passed through Its mode is realized.For example, mobile terminal embodiment described above is only schematical, for example, the module or list The division of member, only a kind of division of logic function can have an other dividing mode when actually realizing, for example, multiple units or Component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, show Show or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, between device or unit Coupling or communication connection are connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and as independent production marketing or In use, it can be stored in a computer read/write memory medium.Based on such understanding, the application realizes above-mentioned implementation All or part of flow in example method, by computer program the hardware of correlation can also be instructed to complete, described meter Calculation machine program can be stored in a computer-readable recording medium, and the computer program can be achieved when being executed by processor The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or some intermediate forms etc..The computer-readable medium It can include:Any entity or device, recording medium, USB flash disk, mobile hard disk, the magnetic of the computer program code can be carried Dish, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that described The content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in some jurisdictions, electric carrier signal and electricity are not included according to legislation and patent practice, computer-readable medium Believe signal.
Embodiment described above is only to illustrate the technical scheme of the application, rather than its limitations;Although with reference to foregoing reality Example is applied the application is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of each embodiment technical scheme of the application, all should Within the protection domain of the application.

Claims (10)

  1. A kind of 1. method for controlling flashlight, it is characterised in that methods described includes:
    Whether the light intensity and mobile terminal for detecting current environment remain static;
    Obtain the light intensity and be less than the duration that preset value and the mobile terminal remain static;
    If when the duration exceedes preset duration, detect that the mobile terminal is changed into motion state from inactive state, Then open flashlight.
  2. 2. the method as described in claim 1, it is characterised in that in the state of flashlight is opened, in addition to:
    If detecting, the light intensity is less than the preset value, and the mobile terminal is changed into inactive state from motion state, Then close the flashlight.
  3. 3. the method as described in claim 1, it is characterised in that it is described in the state of flashlight is opened, in addition to:
    If detecting, the light intensity by being changed to above the preset value less than the preset value, closes the flashlight.
  4. 4. the method as described in any one of claims 1 to 3, it is characterised in that methods described also includes:
    Open the function that flashlight is controlled by the state of light intensity and mobile terminal.
  5. 5. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
    Whether detection module, light intensity and mobile terminal for detecting current environment remain static;
    Duration acquisition module, remained static for obtaining the light intensity less than preset value and the mobile terminal Duration;
    Flashlight opens module, if for when the duration exceedes preset duration, detecting the mobile terminal by quiet Only state is changed into motion state, then opens flashlight.
  6. 6. mobile terminal as claimed in claim 5, it is characterised in that the mobile terminal also includes:
    First closedown module, if for detecting that the light intensity is less than the preset value, and the mobile terminal is by moving State is changed into inactive state, then closes the flashlight.
  7. 7. mobile terminal as claimed in claim 5, it is characterised in that the mobile terminal also includes:
    Second closedown module, if for detecting the light intensity by being changed to above the preset value less than the preset value, Then close the flashlight.
  8. 8. the mobile terminal as described in any one of claim 5 to 7, it is characterised in that the mobile terminal also includes:
    Function opening module, the function of flashlight is controlled by the state of light intensity and mobile terminal for opening.
  9. 9. a kind of mobile terminal, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that realize such as Claims 1-4 described in the computing device during computer program The step of any one methods described.
  10. 10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, and its feature exists In when the computer program is executed by processor the step of realization such as any one of Claims 1-4 methods described.
CN201711175507.0A 2017-11-22 2017-11-22 Method for controlling flashlight, mobile terminal and computer readable storage medium Active CN107835553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711175507.0A CN107835553B (en) 2017-11-22 2017-11-22 Method for controlling flashlight, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711175507.0A CN107835553B (en) 2017-11-22 2017-11-22 Method for controlling flashlight, mobile terminal and computer readable storage medium

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 for controlling flashlight, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107835553B (en)

Cited By (1)

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

* Cited by examiner, † Cited by third party
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 广东欧珀移动通信有限公司 Flashlight illumination brightness adjusting method, flashlight illumination brightness adjusting device and mobile terminal
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 广东小天才科技有限公司 The control method and mobile device of a kind of mobile device
CN107360324A (en) * 2017-07-07 2017-11-17 广东小天才科技有限公司 Based reminding method, device, terminal and the storage medium that terminal is looked for

Patent Citations (10)

* Cited by examiner, † Cited by third party
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 广东欧珀移动通信有限公司 Flashlight illumination brightness adjusting method, flashlight illumination brightness adjusting device and mobile terminal
CN106793040A (en) * 2016-12-30 2017-05-31 深圳天珑无线科技有限公司 Terminal control method and device
CN106878553A (en) * 2017-02-06 2017-06-20 广东小天才科技有限公司 The control method and mobile device of a kind of mobile device
CN107360324A (en) * 2017-07-07 2017-11-17 广东小天才科技有限公司 Based reminding method, device, terminal and the storage medium that terminal is looked for

Cited By (1)

* Cited by examiner, † Cited by third party
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
CN104571857A (en) Customizing method, responding method and mobile terminal of user-defined touch
CN107451244A (en) File naming method, mobile terminal and computer-readable recording medium
CN107920162A (en) Control method, mobile terminal and the computer-readable recording medium of alarm clock
CN107193598A (en) One kind application startup method, mobile terminal and computer-readable recording medium
CN108038112A (en) Document handling method, mobile terminal and computer-readable recording medium
CN107181858A (en) A kind of method and terminal for showing notification message
CN106951057A (en) The control method and mobile terminal of application
CN109283996A (en) Display control method and Related product
CN106991179A (en) Data-erasure method, device and mobile terminal
CN109151337A (en) Recognition of face light compensation method, recognition of face light compensating apparatus and mobile terminal
CN108400868A (en) Storage method, device and the mobile terminal of seed key
CN107484190A (en) Method for connecting network, mobile terminal and computer-readable recording medium
CN107491300A (en) The reminding method and its terminal of a kind of intelligent function
CN108804175A (en) Multilingual adaptation method, mobile terminal and computer readable storage medium
CN107506494B (en) Document handling method, mobile terminal and computer readable storage medium
CN107479806A (en) The method and terminal of a kind of changing interface
CN107368255A (en) Unlocking method, mobile terminal and computer-readable recording medium
CN107608719A (en) A kind of interface operation method, terminal and computer-readable recording medium
CN107783932A (en) Information processing method, mobile terminal and the computer-readable recording medium of calculator
CN109298907A (en) Application program display methods, application program display device and terminal
CN109358927A (en) The method, apparatus and terminal device that application program is shown
CN108268291A (en) A kind of application program delet method and terminal device
CN108520186A (en) Record screen method, mobile terminal and computer readable storage medium
CN108366298A (en) Video broadcasting method, mobile terminal and computer readable storage medium
CN108490824B (en) Intelligent electric appliance control method, device and mobile terminal

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