CN103873684B - The application process of flashlight and device - Google Patents

The application process of flashlight and device Download PDF

Info

Publication number
CN103873684B
CN103873684B CN201410067909.9A CN201410067909A CN103873684B CN 103873684 B CN103873684 B CN 103873684B CN 201410067909 A CN201410067909 A CN 201410067909A CN 103873684 B CN103873684 B CN 103873684B
Authority
CN
China
Prior art keywords
photoflash lamp
described
flashlight
screen intensity
system
Prior art date
Application number
CN201410067909.9A
Other languages
Chinese (zh)
Other versions
CN103873684A (en
Inventor
韩伟
续丽娜
杨亮
Original Assignee
小米科技有限责任公司
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 小米科技有限责任公司 filed Critical 小米科技有限责任公司
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

Links

Abstract

The disclosure is directed to a kind of application process and device of flashlight, belong to terminal applies field.Described method comprises: receive flashlight open command; Judge whether system supports photoflash lamp and whether photoflash lamp can be used; When system supports photoflash lamp and photoflash lamp is available, open photoflash lamp; When system does not support photoflash lamp or photoflash lamp is unavailable, screen intensity is adjusted to the maximum of described screen intensity.The disclosure is by judging system and whether support photoflash lamp and whether photoflash lamp can being used, when system does not support photoflash lamp or photoflash lamp is unavailable, screen intensity is adjusted to the maximum of screen intensity, therefore when system does not support photoflash lamp, can screen illumination be used, expand the range of application of flashlight.And when photoflash lamp damages, when namely photoflash lamp is unavailable, can screen illumination be used, the inconvenience of user can not be caused.

Description

The application process of flashlight and device

Technical field

The disclosure relates to terminal applies field, particularly relates to a kind of application process and device of flashlight.

Background technology

Along with the development of society, mobile phone has become people's belongings.Adopt mobile phone to substitute traditional flashlight to throw light on, can effectively avoid people to need to carry with the trouble of conventional flashlights.

Usual mobile phone, after receiving the open command of flashlight, opens photoflash lamp, can throw light on.

But when cell phone system does not support photoflash lamp or photoflash lamp damages, user can not use mobile phone to throw light on, and cause the inconvenience of user.

Summary of the invention

In order to overcome exist in correlation technique when cell phone system does not support that photoflash lamp or photoflash lamp damage, mobile phone can not be used to throw light on and cause the problem of the inconvenience of user, the disclosure provides a kind of application process and device of flashlight.Described technical scheme is as follows:

According to the first aspect of disclosure embodiment, a kind of application process of flashlight is provided, comprises:

Receive flashlight open command;

Judge whether system supports photoflash lamp and whether photoflash lamp can be used;

When system supports photoflash lamp and photoflash lamp is available, calling system service configuration flashlight is masked as flash lamp illumination mark, and opens photoflash lamp;

When system does not support photoflash lamp or photoflash lamp is unavailable, calling system service configuration flashlight is masked as screen illumination mark, records current screen intensity, and described screen intensity is adjusted to the maximum of described screen intensity;

Described open photoflash lamp or described screen intensity is adjusted to the maximum of described screen intensity after, register dead linker to system service;

Wherein, described system service is used for when receiving the death news of corresponding flashlight, if described flashlight is masked as flash lamp illumination mark, then close photoflash lamp, if described flashlight is masked as screen illumination mark, then screen intensity is adjusted to the current screen intensity recorded after described screen illumination mark is set.

In the implementation that the first is possible, described method also comprises:

Receive flashlight out code;

When system supports photoflash lamp and photoflash lamp is available, close described photoflash lamp;

When system does not support photoflash lamp or photoflash lamp is unavailable, described screen intensity is adjusted to the described screen intensity of record.

In the implementation that the second is possible, described method also comprises:

Described closedown photoflash lamp or described described screen intensity is adjusted to the described screen intensity of record after, if register dead linker to system service, then cancel registration to dead linker to system service.

According to the second aspect of disclosure embodiment, a kind of application apparatus of flashlight is provided, comprises:

Receiver module, for receiving flashlight open command;

Judge module, for judging whether system supports photoflash lamp and whether photoflash lamp can be used;

Lighting module, for when system supports photoflash lamp and photoflash lamp is available, opens photoflash lamp; When system does not support photoflash lamp or photoflash lamp is unavailable, record current screen intensity, and described screen intensity is adjusted to the maximum of described screen intensity;

Arrange module, for when system supports photoflash lamp and photoflash lamp is available, calling system service configuration flashlight is masked as flash lamp illumination mark; When system does not support photoflash lamp or photoflash lamp is unavailable, calling system service configuration flashlight is masked as screen illumination mark;

Second Registering modules, for described open photoflash lamp or described screen intensity is adjusted to the maximum of described screen intensity after, register dead linker to system service;

Wherein, described system service is used for when receiving the death news of corresponding flashlight, if described flashlight is masked as flash lamp illumination mark, then close photoflash lamp, if described flashlight is masked as screen illumination mark, then screen intensity is adjusted to the current screen intensity recorded after described screen illumination mark is set.

In the implementation that the first is possible, described receiver module also for, receive flashlight out code;

Described lighting module also for, when system support photoflash lamp and photoflash lamp available time, close described photoflash lamp; When system does not support photoflash lamp or photoflash lamp is unavailable, described screen intensity is adjusted to the described screen intensity of record.

In the implementation that the second is possible, described device also comprises:

First Registering modules, for described closedown photoflash lamp or described described screen intensity is adjusted to the described screen intensity of record after, if register dead linker to system service, then cancel registration to dead linker to system service.

According to the third aspect of disclosure embodiment, a kind of application apparatus of flashlight is provided, comprises:

Processor;

For the memory of storage of processor executable instruction;

Wherein, described processor is configured to:

Receive flashlight open command;

Judge whether system supports photoflash lamp and whether photoflash lamp can be used;

When system supports photoflash lamp and photoflash lamp is available, calling system service configuration flashlight is masked as flash lamp illumination mark, and opens photoflash lamp;

When system does not support photoflash lamp or photoflash lamp is unavailable, calling system service configuration flashlight is masked as screen illumination mark, records current screen intensity, and described screen intensity is adjusted to the maximum of described screen intensity;

Described open photoflash lamp or described screen intensity is adjusted to the maximum of described screen intensity after, register dead linker to system service;

Wherein, described system service is used for when receiving the death news of corresponding flashlight, if described flashlight is masked as flash lamp illumination mark, then close photoflash lamp, if described flashlight is masked as screen illumination mark, then screen intensity is adjusted to the current screen intensity recorded after described screen illumination mark is set.

The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: by judging whether system supports photoflash lamp and whether photoflash lamp can be used, when system does not support photoflash lamp or photoflash lamp is unavailable, screen intensity is adjusted to the maximum of screen intensity, therefore when system does not support photoflash lamp, can screen illumination be used, expand the range of application of flashlight.And when photoflash lamp damages, when namely photoflash lamp is unavailable, can screen illumination be used, the inconvenience of user can not be caused.

Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.

Accompanying drawing explanation

Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.

Fig. 1 is the flow chart of the application process of a kind of flashlight according to an exemplary embodiment;

Fig. 2 is the flow chart of the application process of another kind of flashlight according to an exemplary embodiment;

Fig. 3 is that output according to an exemplary embodiment is for inputting the terminal interface figure of the virtual push button of flashlight open command;

Fig. 4 is the schematic diagram of the application apparatus of a kind of flashlight according to an exemplary embodiment;

Fig. 5 is the schematic diagram of the application apparatus of another kind of flashlight according to an exemplary embodiment;

Fig. 6 is the block diagram of the application apparatus of a kind of flashlight according to an exemplary embodiment.

Embodiment

Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing 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 only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.

Fig. 1 is the flow chart of the application process of a kind of flashlight according to an exemplary embodiment, and as shown in Figure 1, the application process of flashlight is used for, in mobile terminal, comprising the following steps.

In step S101, receive flashlight open command.

In step s 102, judge whether system supports photoflash lamp and whether photoflash lamp can be used.When system supports photoflash lamp and photoflash lamp is available, perform step S103; When system does not support photoflash lamp or photoflash lamp is unavailable, perform step S104.

In step s 103: open photoflash lamp.

In step S104: maximum screen intensity being adjusted to screen intensity.

Disclosure embodiment is by judging system and whether support photoflash lamp and whether photoflash lamp can being used, when system does not support photoflash lamp or photoflash lamp is unavailable, screen intensity is adjusted to the maximum of screen intensity, therefore when system does not support photoflash lamp, can screen illumination be used, expand the range of application of flashlight.And when photoflash lamp damages, when namely photoflash lamp is unavailable, can screen illumination be used, the inconvenience of user can not be caused.

Fig. 2 is the flow chart of the application process of another kind of flashlight according to an exemplary embodiment, and as shown in Figure 2, the application process of flashlight is used for, in mobile terminal, comprising the following steps.Flashlight application is there is in mobile terminal.

In step s 201, flashlight open command is received.

In actual applications, the flashlight OPEN that user can be inputted is as flashlight open command, also can after user opens flashlight application, the virtual push button for inputting flashlight open command is exported to user, as shown in Figure 3, flashlight open command is received by this virtual push button.

Flashlight OPEN can for user click on mobile terminal screen flashlight application icon time mobile terminal received by instruction, flashlight OPEN also can for instruction when user performs certain trigger action received by mobile terminal, as user pins home (the returning main menu) button of mobile terminal for a long time.

In step S202, judge whether system supports photoflash lamp and whether photoflash lamp can be used.When system supports photoflash lamp and photoflash lamp is available, perform step S203; When system does not support photoflash lamp or photoflash lamp is unavailable, perform step S204.

In actual applications, the interface that mobile terminal can directly be carried by system judges.For android system, provide in android system check photoflash lamp whether can interface, directly call this interface and can judge whether system supports photoflash lamp and whether photoflash lamp can be used.Mobile terminal also can by checking that self model or configuration judge.

After first time performs step S202, mobile terminal can record the result of judgement in flashlight, as arranged flashlight mark, avoids repeating to judge.

In step S203, calling system service configuration flashlight is masked as flash lamp illumination mark, and opens photoflash lamp.

In actual applications, flashlight can send service request to system service, and application arranges flashlight and is masked as flash lamp illumination mark, and then completes the setting of flashlight mark by system service.System service automatically runs and the process run all the time after android system starts, can all service requests of monitor terminal application always, and service request is sent to the module of this service request of process.

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 completes the setting of flashlight mark by system service.

After calling system service configuration flashlight is masked as screen illumination mark, system service also can record current screen intensity.

In step S205, to system service registration DeathLinker (dead linker).This step S205 performs after step S203 or step S204.

In actual applications, for android system, define the registration interface of DeathLinker in android system, terminal applies (as flashlight application) can register DeathLinker by this interface to system service.After registration DeathLinker, system service starts the death incident of monitor terminal application, if terminal applies unexpected death (can not normally run), android system can send the death news of terminal applies to system service.

After execution step S205, when system service receives the death news of the terminal applies of registration DeathLinker, the terminal applies of the death that death news is corresponding can be determined.If the terminal applies of death is flashlight application, then flashlight mark is checked in system service.When flashlight is masked as flash lamp illumination mark, photoflash lamp is closed in system service; When flashlight is masked as screen illumination mark, screen intensity is adjusted to the screen intensity of system service record by system service.

After execution step S205, when the terminal applies blinks lamp except flashlight or adjusting screen brightness, system service can receive the instruction of blinks lamp or adjusting screen brightness.When the instruction receiving blinks lamp and flashlight is masked as flash lamp illumination mark, or receive the instruction of adjusting screen brightness and flashlight is masked as screen illumination mark time, flashlight mark is cancelled in system service.

Understandably, above-mentioned implementation is applicable to when mobile terminal is thrown light on by flashlight, the scene that another terminal applies operates photoflash lamp or screen intensity.As by when photoflash lamp is opened, camera applications has carried out taking pictures of Night, or when screen intensity is adjusted to the maximum of screen intensity, browser opens browse mode at night.

In step S206, receive flashlight out code.When system supports photoflash lamp and photoflash lamp is available, perform step S207; When system does not support photoflash lamp or photoflash lamp is unavailable, perform step S208.

In actual applications, the flashlight out code that user can be inputted, as flashlight out code, also after flashlight application is opened, can export the virtual push button for inputting flashlight out code to user.

When performing step S206, mobile terminal can by perform again step S202 obtain system whether support photoflash lamp and photoflash lamp whether can judged result, also can directly adopt first time perform step S202 after the result that records.

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 DeathLinker to system service.

Disclosure embodiment is by judging system and whether support photoflash lamp and whether photoflash lamp can being used, when system does not support photoflash lamp or photoflash lamp is unavailable, screen intensity is adjusted to the maximum of screen intensity, therefore when system does not support photoflash lamp, can screen illumination be used, expand the range of application of flashlight.And when photoflash lamp damages, when namely photoflash lamp is unavailable, can screen illumination be used, the inconvenience of user can not be caused.In addition, disclosure embodiment is by system service registration DeathLinker, and after flashlight application is died unexpectedly, system service can carry out the operation of the screen intensity of closing photoflash lamp or screen intensity being adjusted to record, the normal operation of recovery system, improves the stability of system.

Fig. 4 is the schematic diagram of the application apparatus of a kind of flashlight according to 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 photoflash lamp and whether photoflash lamp can be used.

This lighting module 303 is configured to, when system supports photoflash lamp and photoflash lamp is available, open photoflash lamp; When system does not support photoflash lamp or photoflash lamp is unavailable, screen intensity is adjusted to the maximum of screen intensity.

Disclosure embodiment is by judging system and whether support photoflash lamp and whether photoflash lamp can being used, when system does not support photoflash lamp or photoflash lamp is unavailable, screen intensity is adjusted to the maximum of screen intensity, therefore when system does not support photoflash lamp, can screen illumination be used, expand the range of application of flashlight.And when photoflash lamp damages, when namely photoflash lamp is unavailable, can screen illumination be used, the inconvenience of user can not be caused.

Fig. 5 is the schematic diagram of the application apparatus of another kind of flashlight according to 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 photoflash lamp and whether photoflash lamp can be used.

This lighting module 403 is configured to, when system supports photoflash lamp and photoflash lamp is available, open photoflash lamp; When system does not support photoflash lamp or photoflash lamp is unavailable, 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 maximum screen intensity being adjusted to 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, when system supports photoflash lamp and photoflash lamp is available, close photoflash lamp; When system does not support photoflash lamp or photoflash lamp is unavailable, 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 be configured to close photoflash lamp or screen intensity is adjusted to record screen intensity after, if to system service registration DeathLinker, then cancel the registration to DeathLinker to system service.

In another implementation of the present embodiment, this device can also comprise and arranges module 405.

This arranges module 405 and is configured to when system supports photoflash lamp and photoflash lamp is available, and calling system service configuration flashlight is masked as flash lamp illumination mark; When system does not support photoflash lamp or photoflash lamp is unavailable, 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 the maximum opened photoflash lamp or screen intensity is adjusted to screen intensity, to system service registration DeathLinker.

System service is used for when receiving the death news of corresponding flashlight, if flashlight is masked as flash lamp illumination mark, then close photoflash lamp, if flashlight is masked as screen illumination mark, then screen intensity is adjusted to the current screen intensity recorded after screen illumination mark is set.

Disclosure embodiment is by judging system and whether support photoflash lamp and whether photoflash lamp can being used, when system does not support photoflash lamp or photoflash lamp is unavailable, screen intensity is adjusted to the maximum of screen intensity, therefore when system does not support photoflash lamp, can screen illumination be used, expand the range of application of flashlight.And when photoflash lamp damages, when namely photoflash lamp is unavailable, can screen illumination be used, the inconvenience of user can not be caused.In addition, disclosure embodiment is by system service registration DeathLinker, and after flashlight application is died unexpectedly, system service can carry out the operation of the screen intensity of closing photoflash lamp or screen intensity being adjusted to record, the normal operation of recovery system, improves the stability of system.

About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.

Fig. 6 is the block diagram of the device 800 of a kind of application process for flashlight according to an exemplary embodiment.Such as, device 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, 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 the usual control device 800 of processing components 802, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 802 can comprise one or more processor 820 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more module, and what be convenient between processing components 802 and other assemblies is mutual.Such as, processing unit 802 can comprise multi-media module, mutual with what facilitate 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 (StaticRandomAccessMemory, static RAM), EEPROM (ElectricallyErasableProgrammableRead-OnlyMemory, Electrically Erasable Read Only Memory), EPROM (ErasableProgrammableReadOnlyMemory, Erasable Programmable Read Only Memory EPROM), PROM (ProgrammableRead-OnlyMemory, programmable read only memory), ROM (Read-OnlyMemory, read-only memory), magnetic memory, flash memory, disk or CD.

The various assemblies that electric power assembly 806 is device 800 provide electric power.Electric power assembly 806 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 800 and be associated.

Multimedia groupware 808 is included in the screen providing an output interface between this device 800 and user.In certain embodiments, screen can comprise LCD (LiquidCrystalDisplay, liquid crystal display) and TP (TouchPanel, touch panel).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.This touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to this touch or slide and pressure.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 export and/or input audio signal.Such as, audio-frequency assembly 810 comprises a MIC (Microphone, microphone), and 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 received can be stored in memory 804 further 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 transducer, for providing the state estimation of various aspects for device 800.Such as, sensor cluster 814 can detect the opening/closing state of equipment 800, the relative positioning of assembly, such as this assembly is display and the keypad of device 800, the position of all right checkout gear 800 of sensor cluster 814 or device 800 1 assemblies changes, the presence or absence that user contacts with device 800, 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 (ComplementaryMetalOxideSemiconductor, complementary metal oxide semiconductors (CMOS)) or CCD (Charge-coupledDevice, 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 the communication being convenient to wired or wireless mode between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, as WiFi (WirelessFidelity, adopting wireless fidelity technology), 2G (SecondGenerationmobilecommunicationtechnology, second generation mobile communication technology) or 3G (3rdGenerationmobilecommunicationtechnology, third generation mobile technology), or their combination.In one exemplary embodiment, communication component 816 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, this communication component 816 also comprises NFC (NearFieldCommunication, near-field communication) module, to promote junction service.Such as, can based on RFID (RadioFrequencyIdentification in NFC module, radio-frequency (RF) identification) technology, IrDA (InfraredDataAssociation, Infrared Data Association) technology, UWB (UltraWideband, ultra broadband) technology, BT (BlueTooth, bluetooth) technology and other technologies realize.

In the exemplary embodiment, device 800 can by one or more ASIC (ApplicationSpecificIntegratedCircuit, application specific integrated circuit), DSP (DigitalSignalProcessing, digital signal processor), DSPD (DigitalSignalProcessingDevice, digital signal processing appts), PLD (ProgrammableLogicDevice, programmable logic device), FPGA (Field-ProgrammableGateArray, field programmable gate array), controller, microcontroller, microprocessor or other electronic components realize, for performing said method.

In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 804 of instruction, above-mentioned instruction can perform said method by the processor 820 of device 800.Such as, this non-transitory computer-readable recording medium can be ROM, RAM (RamdomAccessMemory, random access memory), CD-ROM (CompactDiscRead-OnlyMemory, compact disc read-only memory), tape, floppy disk and optical data storage devices etc.

Those skilled in the art, at consideration specification and after putting into practice 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 the undocumented common practise in the art of the disclosure or conventional techniques means.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 amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (7)

1. an application process for flashlight, is characterized in that, comprising:
Receive flashlight open command;
Judge whether system supports photoflash lamp and whether photoflash lamp can be used;
When system supports photoflash lamp and photoflash lamp is available, calling system service configuration flashlight is masked as flash lamp illumination mark, and opens photoflash lamp;
When system does not support photoflash lamp or photoflash lamp is unavailable, calling system service configuration flashlight is masked as screen illumination mark, records current screen intensity, and described screen intensity is adjusted to the maximum of described screen intensity;
Described open photoflash lamp or described screen intensity is adjusted to the maximum of described screen intensity after, register dead linker to system service;
Wherein, described system service is used for when receiving the death news of corresponding flashlight, if described flashlight is masked as flash lamp illumination mark, then close photoflash lamp, if described flashlight is masked as screen illumination mark, then screen intensity is adjusted to the current screen intensity recorded after described screen illumination mark is set.
2. method according to claim 1, is characterized in that, described method also comprises:
Receive flashlight out code;
When system supports photoflash lamp and photoflash lamp is available, close described photoflash lamp;
When system does not support photoflash lamp or photoflash lamp is unavailable, described screen intensity is adjusted to the described screen intensity of record.
3. method according to claim 2, is characterized in that, described method also comprises:
Described closedown photoflash lamp or described described screen intensity is adjusted to the described screen intensity of record after, if register dead linker to system service, then cancel registration to dead linker to system service.
4. an application apparatus for flashlight, is characterized in that, comprising:
Receiver module, for receiving flashlight open command;
Judge module, for judging whether system supports photoflash lamp and whether photoflash lamp can be used;
Lighting module, for when system supports photoflash lamp and photoflash lamp is available, opens photoflash lamp; When system does not support photoflash lamp or photoflash lamp is unavailable, record current screen intensity, and described screen intensity is adjusted to the maximum of described screen intensity;
Arrange module, for when system supports photoflash lamp and photoflash lamp is available, calling system service configuration flashlight is masked as flash lamp illumination mark; When system does not support photoflash lamp or photoflash lamp is unavailable, calling system service configuration flashlight is masked as screen illumination mark;
Second Registering modules, for described open photoflash lamp or described screen intensity is adjusted to the maximum of described screen intensity after, register dead linker to system service;
Wherein, described system service is used for when receiving the death news of corresponding flashlight, if described flashlight is masked as flash lamp illumination mark, then close photoflash lamp, if described flashlight is masked as screen illumination mark, then screen intensity is adjusted to the current screen intensity recorded after described screen illumination mark is set.
5. device according to claim 4, is characterized in that, described receiver module also for, receive flashlight out code;
Described lighting module also for, when system support photoflash lamp and photoflash lamp available time, close described photoflash lamp; When system does not support photoflash lamp or photoflash lamp is unavailable, described screen intensity is adjusted to the described screen intensity of record.
6. device according to claim 5, is characterized in that, described device also comprises:
First Registering modules, for described closedown photoflash lamp or described described screen intensity is adjusted to the described screen intensity of record after, if register dead linker to system service, then cancel registration to dead linker to system service.
7. an application apparatus for flashlight, 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 photoflash lamp and whether photoflash lamp can be used;
When system supports photoflash lamp and photoflash lamp is available, calling system service configuration flashlight is masked as flash lamp illumination mark, and opens photoflash lamp;
When system does not support photoflash lamp or photoflash lamp is unavailable, calling system service configuration flashlight is masked as screen illumination mark, records current screen intensity, and described screen intensity is adjusted to the maximum of described screen intensity;
Described open photoflash lamp or described screen intensity is adjusted to the maximum of described screen intensity after, register dead linker to system service;
Wherein, described system service is used for when receiving the death news of corresponding flashlight, if described flashlight is masked as flash lamp illumination mark, then close photoflash lamp, if described flashlight is masked as screen illumination mark, then screen intensity is adjusted to the current screen intensity recorded after described screen illumination mark is set.
CN201410067909.9A 2014-02-27 2014-02-27 The application process of flashlight and device 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 CN103873684A (en) 2014-06-18
CN103873684B true CN103873684B (en) 2015-12-09

Family

ID=50911792

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN103873684B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363341B (en) * 2014-11-12 2017-06-06 惠州Tcl移动通信有限公司 Many applications use the control method and system of FLASH LED
CN105306702A (en) * 2015-10-08 2016-02-03 广东欧珀移动通信有限公司 Flashlight application regulation method and mobile terminal
CN105487786A (en) * 2015-11-30 2016-04-13 小米科技有限责任公司 Application icon management method and device
CN105430196B (en) * 2015-12-30 2018-12-04 广东欧珀移动通信有限公司 A kind of method and device of the flashlight state of combined positioning system controlling 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

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

Also Published As

Publication number Publication date
CN103873684A (en) 2014-06-18

Similar Documents

Publication Publication Date Title
CN104038263B (en) Method and device for establishing Bluetooth connection
US10123196B2 (en) Method and device for alarm triggering
EP3139584B1 (en) Camera-lens automatic pop-up device and terminal
CN103885588B (en) Automatic switching method and device
WO2016023340A1 (en) Camera switching method and device
CN104318741B (en) Bluetooth equipment control method and device
CN105491113A (en) Migrating method, device and terminal
CN104991789B (en) Application program open method and device
US9967811B2 (en) Method and device for displaying WIFI list
CN103926890A (en) Intelligent terminal control method and device
WO2017054356A1 (en) Control method and apparatus for electronic device and terminal
CN104714414A (en) Smart home equipment control method and device and electronic equipment
US20170031557A1 (en) Method and apparatus for adjusting shooting function
EP3086539A1 (en) Method and device for deleting smart scene
CN104506772A (en) Method and device for regulating shooting parameters
CN103841264A (en) Method and device for protecting terminal equipment and terminal equipment
CN104159218B (en) Internetwork connection establishing method and device
JP6336091B2 (en) Method and apparatus for triggering execution of operating instructions
KR101571993B1 (en) Method for voice calling method for voice playing, devices, program and storage medium thereof
CN104407592A (en) Method and device for regulating running state of smart home device
CN104955126A (en) Operator network access method and device
CN104902059A (en) Call reminding method and device
CN104519282A (en) Image shooting method and device
CN104793846A (en) Displaying method and device for interface of application program
CN104461304A (en) Application control method and device

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