CN103873684A - Application method and device of flashlight - Google Patents

Application method and device of flashlight Download PDF

Info

Publication number
CN103873684A
CN103873684A CN201410067909.9A CN201410067909A CN103873684A CN 103873684 A CN103873684 A CN 103873684A CN 201410067909 A CN201410067909 A CN 201410067909A CN 103873684 A CN103873684 A CN 103873684A
Authority
CN
China
Prior art keywords
photoflash lamp
flashlight
screen intensity
adjusted
screen
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
CN201410067909.9A
Other languages
Chinese (zh)
Other versions
CN103873684B (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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410067909.9A priority Critical patent/CN103873684B/en
Publication of CN103873684A publication Critical patent/CN103873684A/en
Application granted granted Critical
Publication of CN103873684B publication Critical patent/CN103873684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an application method and an application device of a flashlight and belongs to the field of terminal application. The method comprises the steps of receiving a starting instruction of the flashlight; judging whether a flash lamp is supported by the system and whether the flash lamp is usable; when the flash lamp is supported by the system and the flash lamp is usable, switching on the flash lamp; when the flash lamp is not supported by the system or the flash lamp is not usable, adjusting the brightness of a screen to a maximum value of the brightness of the screen. Through judging whether the flash lamp is supported by the system and whether the flash lamp is usable, when the flash lamp is not supported by the system or the flash lamp is not usable, the brightness of the screen is adjusted to the maximum value of the brightness of the screen, so that the screen can be used for illumination when the flash lamp is not supported by the system, and the application range of the flashlight is expanded; when the flash lamp is damaged, namely, the flash lamp is not usable, the screen is used for illumination, and no inconvenience is caused to a user.

Description

The application process of flashlight and device
Technical field
The disclosure relates to terminal applies field, relates in particular to a kind of application process and device of flashlight.
Background technology
Along with social development, mobile phone has become people's belongings.Adopt mobile phone to substitute traditional flashlight and throw light on, can effectively avoid people need to carry the trouble of traditional flashlight.
Conventionally mobile phone, receiving after the open command of flashlight, is opened photoflash lamp, can throw light on.
But in the time that cell phone system does not support that photoflash lamp or photoflash lamp damage, user can not use mobile phone illumination, cause user's inconvenience.
Summary of the invention
For overcome in correlation technique, exist in the time that cell phone system does not support that photoflash lamp or photoflash lamp damage, can not use mobile phone illumination and cause user's inconvenient problem, the disclosure that a kind of application process and device of flashlight are provided.Described technical scheme is as follows:
According to the first aspect of disclosure embodiment, a kind of application process of flashlight is provided, comprising:
Receive flashlight open command;
Judge whether system supports whether photoflash lamp and photoflash lamp can be used;
Support photoflash lamp and photoflash lamp when available when system, open photoflash lamp;
Do not support photoflash lamp or photoflash lamp when unavailable when system, screen intensity is adjusted to the maximum of described screen intensity.
In the possible implementation of the first, described method also comprises:
Before the described maximum that screen intensity is adjusted to described screen intensity, record current described screen intensity.
In the possible implementation of the second, described method also comprises:
Receive flashlight out code;
Support photoflash lamp and photoflash lamp when available when system, close described photoflash lamp;
Do not support photoflash lamp or photoflash lamp when unavailable when system, described screen intensity is adjusted to the described screen intensity of record.
In the third possible implementation, described method also comprises:
Described close photoflash lamp or the described described screen intensity that described screen intensity is adjusted to record after, if register dead linker to system service, cancel the registration to dead linker to system service.
In the 4th kind of possible implementation, described method also comprises:
Support photoflash lamp and photoflash lamp when available when system, calling system service configuration flashlight is masked as photoflash lamp simulated log;
When system does not support photoflash lamp or photoflash lamp when unavailable, flashlight is masked as screen illumination mark described in calling system service configuration.
In the 5th kind of possible implementation, described method also comprises:
Described open photoflash lamp or the described maximum that screen intensity is adjusted to described screen intensity after, register dead linker to system service;
Wherein, described system service is in the time receiving the death news of corresponding flashlight, if described flashlight is masked as photoflash lamp simulated log, close photoflash lamp, if described flashlight is masked as screen illumination mark, screen intensity is adjusted to the current screen intensity recording after described screen illumination mark is set.
According to the second aspect of disclosure embodiment, a kind of application apparatus of flashlight is provided, comprising:
Receiver module, for receiving flashlight open command;
Judge module, for judging whether system supports whether photoflash lamp and photoflash lamp can be used;
Lighting module, for supporting photoflash lamp and photoflash lamp when available when system, opens photoflash lamp; Do not support photoflash lamp or photoflash lamp when unavailable when system, screen intensity is adjusted to the maximum of described screen intensity.
In the possible implementation of the first, described lighting module also for,
Before the described maximum that screen intensity is adjusted to described screen intensity, record current described screen intensity.
In the possible implementation of the second, described receiver module also for, receive flashlight out code;
Described lighting module also for, support photoflash lamp and photoflash lamp when available when system, close described photoflash lamp; Do not support photoflash lamp or photoflash lamp when unavailable when system, described screen intensity is adjusted to the described screen intensity of record.
In the third possible implementation, described device also comprises:
The first Registering modules, for described close photoflash lamp or the described described screen intensity that described screen intensity is adjusted to record after, if register dead linker to system service, cancel the registration to dead linker to system service.
In the 4th kind of possible implementation, described device also comprises:
Module is set, and for supporting photoflash lamp and photoflash lamp when available when system, calling system service configuration flashlight is masked as photoflash lamp simulated log; When system does not support photoflash lamp or photoflash lamp when unavailable, flashlight is masked as screen illumination mark described in calling system service configuration.
In the 5th kind of possible implementation, described device also comprises:
The second Registering modules, for described open photoflash lamp or the described maximum that screen intensity is adjusted to described screen intensity after, register dead linker to system service;
Wherein, described system service is in the time receiving the death news of corresponding flashlight, if described flashlight is masked as photoflash lamp simulated log, close photoflash lamp, if described flashlight is masked as screen illumination mark, screen intensity is adjusted to the current screen intensity recording after described screen illumination mark is set.
According to the third aspect of disclosure embodiment, a kind of application apparatus of flashlight is provided, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive flashlight open command;
Judge whether system supports whether photoflash lamp and photoflash lamp can be used;
Support photoflash lamp and photoflash lamp when available when system, open photoflash lamp;
Do not support photoflash lamp or photoflash lamp when unavailable when system, screen intensity is adjusted to the maximum of described screen intensity.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: by judging whether system supports whether photoflash lamp and photoflash lamp can be used, when system does not support photoflash lamp or photoflash lamp when unavailable, screen intensity is adjusted to the maximum of screen intensity, therefore in the time that system is not supported photoflash lamp, can use screen illumination, expand the range of application of flashlight.And in the time that photoflash lamp damages, when photoflash lamp is unavailable, can use screen illumination, can not cause user's inconvenience.
Should be understood that, it is only exemplary and explanatory that above general description and details are hereinafter described, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing is herein merged in specification and forms the part of this specification, shows embodiment according to the invention, and is used from and explains principle of the present invention with specification one.
Fig. 1 is according to the flow chart of the application process of a kind of flashlight shown in an exemplary embodiment;
Fig. 2 is according to the flow chart of the application process of the another kind of flashlight shown in an exemplary embodiment;
Fig. 3 is for inputting the terminal interface figure of virtual push button of flashlight open command according to the output shown in an exemplary embodiment;
Fig. 4 is according to the schematic diagram of the application apparatus of a kind of flashlight shown in an exemplary embodiment;
Fig. 5 is according to the schematic diagram of the application apparatus of the another kind of flashlight shown in an exemplary embodiment;
Fig. 6 is according to the block diagram of the application apparatus of a kind of flashlight shown in an exemplary embodiment.
Embodiment
Here will at length describe exemplary embodiment, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless separately there is expression, the same numbers in different accompanying drawings represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they are only and the example of apparatus and method as consistent in some aspects that described in detail in appended claims, of the present invention.
Fig. 1 is according to the flow chart of the application process of a kind of flashlight shown in an exemplary embodiment, and as shown in Figure 1, the application process of flashlight, for mobile terminal, comprises the following steps.
In step S101, receive flashlight open command.
In step S102, judge whether system supports whether photoflash lamp and photoflash lamp can be used.When system supports photoflash lamp and photoflash lamp when available, execution step S103; When system does not support photoflash lamp or photoflash lamp when unavailable, execution step S104.
In step S103: open photoflash lamp.
In step S104: the maximum that screen intensity is adjusted to screen intensity.
Disclosure embodiment is by judging whether system supports whether photoflash lamp and photoflash lamp can be used, when system does not support photoflash lamp or photoflash lamp when unavailable, screen intensity is adjusted to the maximum of screen intensity, therefore in the time that system is not supported photoflash lamp, can use screen illumination, expand the range of application of flashlight.And in the time that photoflash lamp damages, when photoflash lamp is unavailable, can use screen illumination, can not cause user's inconvenience.
Fig. 2 is according to the flow chart of the application process of the another kind of flashlight shown in an exemplary embodiment, and as shown in Figure 2, the application process of flashlight, for mobile terminal, comprises the following steps.In mobile terminal, there is flashlight application.
In step S201, receive flashlight open command.
In actual applications, can be using the flashlight OPEN of user's input as flashlight open command, also can be after user opens flashlight application, be used for inputting the virtual push button of flashlight open command to user's output, as shown in Figure 3, receive flashlight open command by this virtual push button.
The received instruction of mobile terminal when flashlight OPEN can be clicked the icon of flashlight application for user on mobile terminal screen, the received instruction of mobile terminal when flashlight OPEN also can be carried out certain trigger action for user, the home(that pins for a long time mobile terminal as user returns to main menu) button.
In step S202, judge whether system supports whether photoflash lamp and photoflash lamp can be used.When system supports photoflash lamp and photoflash lamp when available, execution step S203; When system does not support photoflash lamp or photoflash lamp when unavailable, execution step S204.
In actual applications, the interface that mobile terminal can directly carry by system judges.Take Android system as example, the interface of checking whether photoflash lamp can be used is provided in Android system, directly call this interface and can judge whether system supports whether photoflash lamp and photoflash lamp can be used.Mobile terminal also can be by checking that self model or configuration judge.
After performing step S202 for the first time, mobile terminal can record the result of judgement in flashlight, as flashlight mark is set, and avoids repeating judgement.
In step S203, calling system service configuration flashlight is masked as photoflash lamp simulated log, and opens photoflash lamp.
In actual applications, flashlight can send service request to system service, and application arranges flashlight and is masked as photoflash lamp simulated log, and then is completed the setting of flashlight mark by system service.System service is operation and all the time process of operation automatically after Android system starts, all service requests of monitor terminal application always, and service request is sent to the module of processing this service request.
In step S204, calling system service configuration flashlight is masked as screen illumination mark, records current screen intensity, and screen intensity is adjusted to the maximum of screen intensity.
In actual applications, flashlight also can send service request to system service, and application arranges flashlight and is masked as screen illumination mark, and then is completed the setting of flashlight mark by system service.
After calling system service configuration flashlight is masked as screen illumination mark, system service also can be recorded current screen intensity.
In step S205, to the dead linker of system service registration Death Linker().This step S205 carries out after step S203 or step S204.
In actual applications, take Android system as example, defined the registration interface of Death Linker in Android system, terminal applies (as flashlight application) can be by this interface to system service registration Death Linker.After registration Death Linker, system service starts the death incident of monitor terminal application, if terminal applies unexpected death (can not normally move), Android system can be sent to system service the death news of terminal applies.
After execution step S205, in the time that system service receives the death news of terminal applies of registration Death Linker, can determine the dead terminal applies that death news is corresponding.If dead terminal applies is flashlight application, flashlight mark is checked in system service.In the time that flashlight is masked as photoflash lamp simulated log, photoflash lamp is closed in system service; In the time that flashlight is masked as screen illumination mark, system service is adjusted to screen intensity the screen intensity of system service record.
After execution step S205, in the time of the terminal applies switch photoflash lamp except flashlight or adjusting screen brightness, system service meeting receives the instruction of switch photoflash lamp or adjusting screen brightness.When the instruction and the flashlight that receive switch photoflash lamp are masked as photoflash lamp simulated log, or when receiving the instruction of adjusting screen brightness and flashlight and being masked as screen illumination mark, flashlight mark is cancelled in system service.
Understandably, above-mentioned implementation is applicable in the time that mobile terminal throws light on by flashlight, and another terminal applies has been carried out the scene of operation to photoflash lamp or screen intensity.As by the situation that photoflash lamp is opened, camera applications has been carried out taking pictures of Night, or in the time that screen intensity is adjusted to the maximum of screen intensity, browser has been opened browse mode at night.
In step S206, receive flashlight out code.When system supports photoflash lamp and photoflash lamp when available, execution step S207; When system does not support photoflash lamp or photoflash lamp when unavailable, execution step S208.
In actual applications, can, using the flashlight out code of user's input as flashlight out code, also can, after flashlight application is opened, be used for inputting the virtual push button of flashlight out code to user's output.
In the time of execution step S206, mobile terminal can carry out the judged result whether acquisition system supports whether photoflash lamp and photoflash lamp can be used by carrying out a step S202 again, also can directly adopt and perform step for the first time the result recording after S202.
In step S207, close photoflash lamp.
In step S208, screen intensity is adjusted to the screen intensity of record.
In step S209, cancel the registration to Death Linker to system service.
Disclosure embodiment is by judging whether system supports whether photoflash lamp and photoflash lamp can be used, when system does not support photoflash lamp or photoflash lamp when unavailable, screen intensity is adjusted to the maximum of screen intensity, therefore in the time that system is not supported photoflash lamp, can use screen illumination, expand the range of application of flashlight.And in the time that photoflash lamp damages, when photoflash lamp is unavailable, can use screen illumination, can not cause user's inconvenience.In addition, disclosure embodiment is by registering Death Linker to system service, and after flashlight application unexpected death, system service can be closed photoflash lamp or screen intensity is adjusted to the operation of the screen intensity of record, the normal operation of recovery system, has improved the stability of system.
Fig. 4 is according to the schematic diagram of the application apparatus of a kind of flashlight shown in an exemplary embodiment.With reference to Fig. 4, this device comprises receiver module 301, judge module 302 and lighting module 303.
This receiver module 301 is configured to receive flashlight open command.
This judge module 302 is configured to judge whether system supports whether photoflash lamp and photoflash lamp can be used.
This lighting module 303 is configured to support photoflash lamp and photoflash lamp when available when system, opens photoflash lamp; Do not support photoflash lamp or photoflash lamp when unavailable when system, screen intensity is adjusted to the maximum of screen intensity.
Disclosure embodiment is by judging whether system supports whether photoflash lamp and photoflash lamp can be used, when system does not support photoflash lamp or photoflash lamp when unavailable, screen intensity is adjusted to the maximum of screen intensity, therefore in the time that system is not supported photoflash lamp, can use screen illumination, expand the range of application of flashlight.And in the time that photoflash lamp damages, when photoflash lamp is unavailable, can use screen illumination, can not cause user's inconvenience.
Fig. 5 is according to the schematic diagram of the application apparatus of the another kind of flashlight shown in an exemplary embodiment.With reference to Fig. 5, this device comprises receiver module 401, judge module 402 and lighting module 403.
This receiver module 401 is configured to receive flashlight open command.
This judge module 402 is configured to judge whether system supports whether photoflash lamp and photoflash lamp can be used.
This lighting module 403 is configured to support photoflash lamp and photoflash lamp when available when system, opens photoflash lamp; Do not support photoflash lamp or photoflash lamp when unavailable when system, screen intensity is adjusted to the maximum of screen intensity.
In a kind of implementation of the present embodiment, this lighting module 403 can also be configured to, before screen intensity is adjusted to the maximum of screen intensity, record current screen intensity.
In the another kind of implementation of the present embodiment, this receiver module 403 can also be configured to receive flashlight out code.
This lighting module 403 can also be configured to support photoflash lamp and photoflash lamp when available when system, close photoflash lamp; Do not support photoflash lamp or photoflash lamp when unavailable when system, screen intensity is adjusted to the screen intensity of record.
In another implementation of the present embodiment, this device can also comprise the first Registering modules 404.
This first Registering modules 404 is configured to after closing photoflash lamp or screen intensity being adjusted to the screen intensity of record, if to system service registration Death Linker, cancel the registration to Death Linker to system service.
In another implementation of the present embodiment, this device can also comprise module 405 is set.
This arranges module 405 and is configured to support photoflash lamp and photoflash lamp when available when system, and calling system service configuration flashlight is masked as photoflash lamp simulated log; Do not support photoflash lamp or photoflash lamp when unavailable when system, calling system service configuration flashlight is masked as screen illumination mark.
In another implementation of the present embodiment, this device can also comprise the second Registering modules 406.
This second Registering modules 406 is configured to after opening photoflash lamp or screen intensity being adjusted to the maximum of screen intensity, to system service registration Death Linker.
System service is in the time receiving the death news of corresponding flashlight, if flashlight is masked as photoflash lamp simulated log, close photoflash lamp, if flashlight is masked as screen illumination mark, screen intensity is adjusted to the current screen intensity recording after screen illumination mark is set.
Disclosure embodiment is by judging whether system supports whether photoflash lamp and photoflash lamp can be used, when system does not support photoflash lamp or photoflash lamp when unavailable, screen intensity is adjusted to the maximum of screen intensity, therefore in the time that system is not supported photoflash lamp, can use screen illumination, expand the range of application of flashlight.And in the time that photoflash lamp damages, when photoflash lamp is unavailable, can use screen illumination, can not cause user's inconvenience.In addition, disclosure embodiment is by registering Death Linker to system service, and after flashlight application unexpected death, system service can be closed photoflash lamp or screen intensity is adjusted to the operation of the screen intensity of record, the normal operation of recovery system, has improved the stability of system.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations have been described in detail in the embodiment about the method, will not elaborate explanation herein.
Fig. 6 is according to the block diagram of the device 800 of a kind of application process for flashlight shown in an exemplary embodiment.For example, device 800 can be mobile phone, computer, digital broadcast terminal, information receiving and transmitting equipment, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 6, device 800 can comprise following one or more assembly: processing components 802, memory 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, I/O(Input/Output, I/O) interface 812, sensor cluster 814, and communications component 816.
The integrated operation of processing components 802 common control device 800, such as with demonstration, call, data communication, the operation that camera operation and record operation are associated.Treatment element 802 can comprise that one or more processors 820 carry out instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more modules, is convenient to mutual between processing components 802 and other assemblies.For example, processing unit 802 can comprise multi-media module, to facilitate mutual between multimedia groupware 808 and processing components 802.
Memory 804 is configured to store various types of data to be supported in the operation of equipment 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as SRAM(Static Random Access Memory, static RAM), EEPROM(Electrically Erasable Programmable Read-Only Memory, Electrically Erasable Read Only Memory), EPROM(Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM(Programmable Read-Only Memory, programmable read only memory), ROM(Read-Only Memory, read-only memory), magnetic memory, flash memory, disk or CD.
Electric power assembly 806 provides electric power for installing 800 various assemblies.Electric power assembly 806 can comprise power-supply management system, one or more power supplys, and other and the assembly that generates, manages and distribute electric power to be associated for device 800.
Multimedia groupware 808 is included in the screen that an output interface is provided between this device 800 and user.In certain embodiments, screen can comprise LCD(Liquid Crystal Display, liquid crystal display) and TP(Touch Panel, touch panel).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises that one or more touch sensors are with the gesture on sensing touch, slip and touch panel.This touch sensor is the border of sensing touch or sliding action not only, but also detects duration and the pressure relevant to this touch or slide.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 comprises a MIC(Microphone, microphone), when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal receiving can be further stored in memory 804 or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loud speaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 814 comprises one or more transducers, is used to device 800 that the state estimation of various aspects is provided.For example, sensor cluster 814 can detect the opening/closing state of equipment 800, the relative positioning of assembly, for example this assembly is display and the keypad of device 800, the position of all right checkout gear 800 of sensor cluster 814 or 800 1 assemblies of device changes, user is with device 800 existence that contact or do not have the variations in temperature of device 800 orientation or acceleration/deceleration and device 800.Sensor cluster 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 814 can also comprise optical sensor, as CMOS(Complementary Metal Oxide Semiconductor, complementary metal oxide semiconductors (CMOS)) or CCD(Charge-coupled Device, charge coupled cell) imageing sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 816 is configured to be convenient to the communication of wired or wireless mode between device 800 and other equipment.Device 800 wireless networks that can access based on communication standard, as WiFi(Wireless Fidelity, adopting wireless fidelity technology), 2G(Second Generation mobile communication technology, second generation mobile communication technology) or 3G(3rd Generation mobile communication technology, third generation mobile technology), or their combination.In one exemplary embodiment, communication component 816 receives broadcast singal or the broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, this communication component 816 also comprises NFC(Near Field Communication, near-field communication) module, to promote junction service.For example, can be based on RFID(Radio Frequency Identification in NFC module, radio-frequency (RF) identification) technology, IrDA(Infrared Data Association, Infrared Data Association) technology, UWB(Ultra Wideband, ultra broadband) technology, BT(Blue Tooth, bluetooth) technology and other technologies realize.
In the exemplary embodiment, device 800 can be by one or more ASIC(Application Specific Integrated Circuit, application specific integrated circuit), DSP(Digital Signal Processing, digital signal processor), DSPD(Digital Signal Processing Device, digital signal processing appts), PLD(Programmable Logic Device, programmable logic device), FPGA(Field-Programmable Gate Array, field programmable gate array), controller, microcontroller, microprocessor or other electronic components are realized, be used for carrying out said method.
In the exemplary embodiment, also provide a kind of non-provisional computer-readable recording medium that comprises instruction, for example, comprised the memory 804 of instruction, above-mentioned instruction can have been carried out said method by the processor 820 of device 800.For example, this non-provisional computer-readable recording medium can be ROM, RAM(Ramdom Access Memory, random access memory), CD-ROM(Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and optical data storage equipment etc.
Those skilled in the art, considering specification and putting into practice after invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised undocumented common practise or the conventional techniques means in the art of the disclosure.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various modifications and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (13)

1. an application process for flashlight, is characterized in that, comprising:
Receive flashlight open command;
Judge whether system supports whether photoflash lamp and photoflash lamp can be used;
Support photoflash lamp and photoflash lamp when available when system, open photoflash lamp;
Do not support photoflash lamp or photoflash lamp when unavailable when system, screen intensity is adjusted to the maximum of described screen intensity.
2. method according to claim 1, is characterized in that, described method also comprises:
Before the described maximum that screen intensity is adjusted to described screen intensity, record current described screen intensity.
3. method according to claim 2, is characterized in that, described method also comprises:
Receive flashlight out code;
Support photoflash lamp and photoflash lamp when available when system, close described photoflash lamp;
Do not support photoflash lamp or photoflash lamp when unavailable when system, described screen intensity is adjusted to the described screen intensity of record.
4. method according to claim 3, is characterized in that, described method also comprises:
Described close photoflash lamp or the described described screen intensity that described screen intensity is adjusted to record after, if register dead linker to system service, cancel the registration to dead linker to system service.
5. method according to claim 1, is characterized in that, described method also comprises:
Support photoflash lamp and photoflash lamp when available when system, calling system service configuration flashlight is masked as photoflash lamp simulated log;
When system does not support photoflash lamp or photoflash lamp when unavailable, flashlight is masked as screen illumination mark described in calling system service configuration.
6. method according to claim 5, is characterized in that, described method also comprises:
Described open photoflash lamp or the described maximum that screen intensity is adjusted to described screen intensity after, register dead linker to system service;
Wherein, described system service is in the time receiving the death news of corresponding flashlight, if described flashlight is masked as photoflash lamp simulated log, close photoflash lamp, if described flashlight is masked as screen illumination mark, screen intensity is adjusted to the current screen intensity recording after described screen illumination mark is set.
7. an application apparatus for flashlight, is characterized in that, comprising:
Receiver module, for receiving flashlight open command;
Judge module, for judging whether system supports whether photoflash lamp and photoflash lamp can be used;
Lighting module, for supporting photoflash lamp and photoflash lamp when available when system, opens photoflash lamp; Do not support photoflash lamp or photoflash lamp when unavailable when system, screen intensity is adjusted to the maximum of described screen intensity.
8. device according to claim 7, is characterized in that, described lighting module also for,
Before the described maximum that screen intensity is adjusted to described screen intensity, record current described screen intensity.
9. device according to claim 8, is characterized in that, described receiver module also for, receive flashlight out code;
Described lighting module also for, support photoflash lamp and photoflash lamp when available when system, close described photoflash lamp; Do not support photoflash lamp or photoflash lamp when unavailable when system, described screen intensity is adjusted to the described screen intensity of record.
10. device according to claim 9, is characterized in that, described device also comprises:
The first Registering modules, for described close photoflash lamp or the described described screen intensity that described screen intensity is adjusted to record after, if register dead linker to system service, cancel the registration to dead linker to system service.
11. methods according to claim 7, is characterized in that, described device also comprises:
Module is set, and for supporting photoflash lamp and photoflash lamp when available when system, calling system service configuration flashlight is masked as photoflash lamp simulated log; When system does not support photoflash lamp or photoflash lamp when unavailable, flashlight is masked as screen illumination mark described in calling system service configuration.
12. devices according to claim 11, is characterized in that, described device also comprises:
The second Registering modules, for described open photoflash lamp or the described maximum that screen intensity is adjusted to described screen intensity after, register dead linker to system service;
Wherein, described system service is in the time receiving the death news of corresponding flashlight, if described flashlight is masked as photoflash lamp simulated log, close photoflash lamp, if described flashlight is masked as screen illumination mark, screen intensity is adjusted to the current screen intensity recording after described screen illumination mark is set.
The application apparatus of 13. 1 kinds of flashlights, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive flashlight open command;
Judge whether system supports whether photoflash lamp and photoflash lamp can be used;
Support photoflash lamp and photoflash lamp when available when system, open photoflash lamp;
Do not support photoflash lamp or photoflash lamp when unavailable when system, screen intensity is adjusted to the maximum of described screen intensity.
CN201410067909.9A 2014-02-27 2014-02-27 The application process of flashlight and device Active CN103873684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410067909.9A CN103873684B (en) 2014-02-27 2014-02-27 The application process of flashlight and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410067909.9A CN103873684B (en) 2014-02-27 2014-02-27 The application process of flashlight and device

Publications (2)

Publication Number Publication Date
CN103873684A true CN103873684A (en) 2014-06-18
CN103873684B CN103873684B (en) 2015-12-09

Family

ID=50911792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410067909.9A Active CN103873684B (en) 2014-02-27 2014-02-27 The application process of flashlight and device

Country Status (1)

Country Link
CN (1) CN103873684B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363341A (en) * 2014-11-12 2015-02-18 惠州Tcl移动通信有限公司 Flash LED multi-application use control method and system
CN105306702A (en) * 2015-10-08 2016-02-03 广东欧珀移动通信有限公司 Flashlight application regulation method and mobile terminal
CN105430196A (en) * 2015-12-30 2016-03-23 广东欧珀移动通信有限公司 Method and device for controlling electric torch state of mobile terminal by means of positioning system
CN106535434A (en) * 2016-11-29 2017-03-22 维沃移动通信有限公司 Method for controlling flash lamp of mobile terminal and mobile terminal
WO2017092129A1 (en) * 2015-11-30 2017-06-08 小米科技有限责任公司 Application icon management method and device
CN107436622A (en) * 2016-05-27 2017-12-05 富泰华工业(深圳)有限公司 A kind of electronic installation and night-light control method with night-light function
CN108008880A (en) * 2017-12-25 2018-05-08 深圳豪客互联网有限公司 A kind of flashlight operation interface control method and device
CN112732141A (en) * 2021-01-13 2021-04-30 展讯通信(天津)有限公司 Flashlight control method and device, electronic equipment and storage medium
CN113900745A (en) * 2020-07-06 2022-01-07 Oppo广东移动通信有限公司 Display method and device of wearable device, wearable device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572040A (en) * 2010-12-30 2012-07-11 希姆通信息技术(上海)有限公司 Mobile terminal
CN103067604A (en) * 2013-01-17 2013-04-24 广东欧珀移动通信有限公司 Method for enabling cell phone to be in flashlight mode
CN103345355A (en) * 2013-07-18 2013-10-09 北京小米科技有限责任公司 Screen-locking interface display control method, device and terminal device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572040A (en) * 2010-12-30 2012-07-11 希姆通信息技术(上海)有限公司 Mobile terminal
CN103067604A (en) * 2013-01-17 2013-04-24 广东欧珀移动通信有限公司 Method for enabling cell phone to be in flashlight mode
CN103345355A (en) * 2013-07-18 2013-10-09 北京小米科技有限责任公司 Screen-locking interface display control method, device and terminal device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363341A (en) * 2014-11-12 2015-02-18 惠州Tcl移动通信有限公司 Flash LED multi-application use control method and system
CN105306702A (en) * 2015-10-08 2016-02-03 广东欧珀移动通信有限公司 Flashlight application regulation method and mobile terminal
WO2017092129A1 (en) * 2015-11-30 2017-06-08 小米科技有限责任公司 Application icon management method and device
CN105430196A (en) * 2015-12-30 2016-03-23 广东欧珀移动通信有限公司 Method and device for controlling electric torch state of mobile terminal by means of positioning system
CN105430196B (en) * 2015-12-30 2018-12-04 广东欧珀移动通信有限公司 A kind of method and device of the flashlight state of combined positioning system controlling terminal
CN107436622A (en) * 2016-05-27 2017-12-05 富泰华工业(深圳)有限公司 A kind of electronic installation and night-light control method with night-light function
CN106535434A (en) * 2016-11-29 2017-03-22 维沃移动通信有限公司 Method for controlling flash lamp of mobile terminal and mobile terminal
CN106535434B (en) * 2016-11-29 2018-12-04 维沃移动通信有限公司 A kind of flash lamp control method and mobile terminal of mobile terminal
CN108008880A (en) * 2017-12-25 2018-05-08 深圳豪客互联网有限公司 A kind of flashlight operation interface control method and device
CN108008880B (en) * 2017-12-25 2020-08-11 深圳豪客互联网有限公司 Flashlight operation interface control method and device
CN113900745A (en) * 2020-07-06 2022-01-07 Oppo广东移动通信有限公司 Display method and device of wearable device, wearable device and storage medium
CN112732141A (en) * 2021-01-13 2021-04-30 展讯通信(天津)有限公司 Flashlight control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN103873684B (en) 2015-12-09

Similar Documents

Publication Publication Date Title
CN103873684B (en) The application process of flashlight and device
CN104318741B (en) Bluetooth equipment control method and device
CN104038263B (en) Method and device for establishing Bluetooth connection
CN104159218B (en) Internetwork connection establishing method and device
CN105338157A (en) Nuisance call processing method, and device and telephone
CN105245775A (en) Method and device for camera imaging, and mobile terminal
CN105162945A (en) Method and device for displaying information
CN105530384A (en) Method and device for power reminding based on alarm clock
CN104320774A (en) Updating method, device and facility
CN104243829A (en) Self-shooting method and self-shooting device
CN105578401A (en) Locating information collection method, locating information collection device and mobile terminal
CN103927200A (en) Electronic equipment awakening method and related device
CN103942047A (en) User instruction execution method and device
CN105162193A (en) Charging method and charging apparatus for terminal, and terminal
CN105491292A (en) Method and device for shooting fill-in light
CN105511307A (en) Control method and apparatus of electronic device
CN105301183A (en) Air quality detecting method and device
CN104461358B (en) Light the method and device of screen
CN105549572A (en) Control method and device for intelligent home equipment and equipment
CN105187671A (en) Recording method and device
CN104463047A (en) Device and method for control modules to work
CN105450861A (en) Information prompt method and information prompt device
CN105677428A (en) Upgrading method and device for terminal and terminal
CN104780256A (en) Address book management method and device and intelligent terminal
CN105338482A (en) Method and device for emergency call

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant