CN108900708A - Application method, mobile terminal and the readable storage medium storing program for executing of flashlight - Google Patents
Application method, mobile terminal and the readable storage medium storing program for executing of flashlight Download PDFInfo
- Publication number
- CN108900708A CN108900708A CN201810695819.2A CN201810695819A CN108900708A CN 108900708 A CN108900708 A CN 108900708A CN 201810695819 A CN201810695819 A CN 201810695819A CN 108900708 A CN108900708 A CN 108900708A
- Authority
- CN
- China
- Prior art keywords
- flashlight
- quick start
- terminal
- function
- application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/22—Illumination; Arrangements for improving the visibility of characters on dials
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72406—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
Abstract
The present invention discloses a kind of application method of flashlight, and applied to the mobile terminal for being equipped with light sensor, the application method of the flashlight includes the following steps:Whether judgement currently meets the preset condition of quick start flashlight application function, wherein the preset condition includes at least:Exist by the light intensity of light sensor acquisition surrounding enviroment, terminal and shakes any one of operation;When currently meeting the preset condition of quick start flashlight application function, controlling terminal switches to quick start torch mode from normal starting torch mode;When switching to the quick start torch mode, default change parameter is obtained to change the configuration item of terminal starting flashlight application function.The invention also discloses a kind of mobile terminal and readable storage medium storing program for executing.The present invention can be realized light is weaker or dark surrounds in facilitate user's quick start flashlight application function.
Description
Technical field
The present invention relates to intelligent terminal technical field more particularly to a kind of application methods of flashlight, mobile terminal and can
Read storage medium.
Background technique
With electronic technology be constantly progressive and the improvement of people's living standards, have become people using mobile terminal
Live in a part.Existing mobile terminal has flashlight function mostly, can provide illumination for user.However in reality
In the application of border, it usually needs user's manual unlocking screen, and then select corresponding icon that can start flashlight function on the screen
Can, it is inconvenient that this is operated in the environment of night or dark, and inefficiency.If adding another physical button for opening
Dynamic flashlight function, then need to redesign the overall structure of mobile terminal, and then increase production cost.
Summary of the invention
The main purpose of the present invention is to provide a kind of application method of flashlight, mobile terminal and readable storage medium storing program for executing,
Aim to solve the problem that the technical issues of facilitating user's quick start flashlight application function how in a dark environment.
To achieve the above object, the application method of a kind of flashlight provided by the invention is applied to be equipped with light sensor
Mobile terminal, the application method of the flashlight includes the following steps:
Whether judgement currently meets the preset condition of quick start flashlight application function, wherein the preset condition is extremely
Include less:Exist by the light intensity of light sensor acquisition surrounding enviroment, terminal and shakes any one of operation;
When currently meeting the preset condition of quick start flashlight application function, controlling terminal starts flashlight from normal
Pattern switching is to quick start torch mode;
When switching to the quick start torch mode, default change parameter is obtained to change terminal starting flashlight
The configuration item of application function.
Preferably, the current preset condition for whether meeting quick start flashlight application function of the judgement includes:
The light intensity that surrounding enviroment are detected by light sensor, obtains light intensity value;
Judge whether the light intensity value is less than or equal to preset threshold;
If so, determining the preset condition for currently meeting quick start flashlight application function.
Preferably, the current preset condition for whether meeting quick start flashlight application function of the judgement includes:
Detection present terminal, which whether there is, shakes operation with what predetermined registration operation matched;
If it exists, it is determined that currently meet the preset condition of quick start flashlight application function.
Preferably, the application method of the flashlight further includes:
When being currently unsatisfactory for the preset condition of quick start flashlight application function, controlling terminal maintains or switches back into institute
State normal starting torch mode.
Preferably, described when switching to the quick start torch mode, default change parameter is obtained to change end
End starting flashlight application function configuration information include:
When switching to the quick start torch mode, when creating virtual functional key on locking screen interface to press
The function command of flashlight is opened in triggering, wherein the virtual functional key is flashlight icon.
Preferably, the size of the flashlight icon of creation is to maximize.
Preferably, described when switching to the quick start torch mode, default change parameter is obtained to change end
End starting flashlight application function configuration information include:
When switching to the quick start torch mode, by predetermined physical key in length corresponding operational order on time
It is changed to open the function command of flashlight, wherein the predetermined physical key includes power key and/or home key.
Preferably, described when switching to the quick start torch mode, default change parameter is obtained to change
After terminal starts the configuration item of flashlight application function, the application method of the flashlight further includes:
Obtain the button operation information that user presses;
Judge whether the button operation information matches with the function command for opening flashlight;
If matching, controlling terminal opens flashlight application function.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal is equipped with light level
Device, the mobile terminal further include:It memory, processor and is stored on the memory and can run on the processor
Flashlight application program, when the flashlight application program is executed by the processor realize as described in any one of above-mentioned
The step of application method of flashlight.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
It is stored with flashlight application program on storage medium, realizes when the flashlight application program is executed by processor as appointed among the above
The step of application method of flashlight described in one.
In the present invention, the preset condition for currently whether meeting quick start flashlight application function is first determined whether;Then, when
When currently meeting the preset condition of quick start flashlight application function, controlling terminal is switched to from normal starting torch mode
Quick start torch mode;Finally, obtaining default change parameter when switching to the quick start torch mode with more
The configuration item for changing terminal starting flashlight application function facilitates user's quick start flashlight to answer in a dark environment to realize
With function, and the overall structure without changing terminal.
Detailed description of the invention
A kind of hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of one embodiment of application method of flashlight of the present invention;
Fig. 4 is the refinement flow diagram of mono- embodiment of Fig. 3 step S10;
Fig. 5 is the refinement flow diagram of another embodiment of application method of flashlight of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone,
Tablet computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), just
Prompt formula media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer
Deng.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Moving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, that is, includes infrared sensor, can also include that light such as passes
Sensor, motion sensor and other sensors.Specifically, optical sensor includes ambient light sensor and proximity sensor,
In, ambient light sensor is used to obtain the intensity value of ambient light, or can adjust display panel according to the light and shade of ambient light
1061 brightness, proximity sensor can close display panel 1061 and/or backlight when mobile terminal 100 is moved in one's ear.Make
For one kind of motion sensor, accelerometer sensor can detect the size of (generally three axis) acceleration in all directions, static
When can detect that size and the direction of gravity, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching, dependent game,
Magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It is passed as the fingerprint that mobile phone can also configure
Sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, thermometer, infrared ray sensing
The other sensors such as device, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.In the present invention, the memory of mobile terminal 100
Bookmark setting program is stored in 109.Memory 109 can mainly include storing program area and storage data area, wherein storage journey
It sequence area can application program needed for storage program area, at least one function (such as sound-playing function, image player function
Deng) etc.;Storage data area, which can be stored, uses created data (such as audio data, phone directory etc.) etc. according to mobile phone.This
Outside, memory 109 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
In the present invention, processor 110 is configured to execute flashlight application program to execute operations described below:Judgement it is current whether
Meet the preset condition of quick start flashlight application function, wherein the preset condition includes at least:Pass through light sensor
The light intensity of acquisition surrounding enviroment, terminal, which exist, shakes any one of operation;Meet quick start flashlight when current
When the preset condition of application function, controlling terminal switches to quick start torch mode from normal starting torch mode;When
When switching to the quick start torch mode, default change parameter is obtained to change terminal starting flashlight application function
Configuration item.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although being not shown in Fig. 1, mobile terminal 100 can also be no longer superfluous herein including bluetooth module etc. in the present invention
It states.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, the setting method of intelligent bookmark of the present invention is proposed
Each embodiment.
It is the flow diagram of one embodiment of application method of flashlight of the present invention referring to Fig. 3, Fig. 3.
In the present embodiment, the application method of flashlight includes the following steps:
Whether step S10, judgement currently meet the preset condition of quick start flashlight application function, wherein described pre-
If condition includes at least:The light intensity of surrounding enviroment is obtained by light sensor, terminal has times shaken in operation
One;
In the present embodiment, light sensor is worked according to photoelectric principle in fact.So-called photoelectric effect, just
Refer to the phenomenon that certain special substances can convert light energy into electric energy after absorbing light, photoelectric effect can be divided into outer
Photoelectric effect and two kinds of inner photoeffect.External photoeffect refers under the irradiation of light, electronics can from the inside of substance to
It is outer transmitting and generate electric power effect, photoelectric tube, photomultiplier tube are all based on original part made of external photoeffect.Correspondingly, interior
Photoelectric effect is then to occur in the inside of substance, and when light is irradiated on substance, the resistivity for keeping it internal changes, from
And produce electromotive force.
In the present embodiment, light intensity is a kind of physical term, refers to the luminous flux of received visible light on unit area, is
It is used to indicate the power of illumination and the amount of the illuminated degree of body surface area.The light of surrounding enviroment can be natural light, can also
To be artificial light.Natural light is the light that the sun on daytime issues, and artificial light is the light of light-illuminating.Light sensor is practical
Belong to ambient light sensor, is mainly made of two components of light projector and light-receiving device.White point beside usual front camera rises
To the effect of a lens, can be transmitted on light-receiving device by the light focusing in environment, and via light projector.Light-receiving device root
According to photoelectric effect, various optical signals are converted to corresponding electric signal, the behaviour such as photosensitive adjusting, change parameter setting can be realized
Make.That is the mobile terminals such as mobile phone, laptop obtain the luminous ray intensity of surrounding enviroment by light sensor,
Such as the sunlight or indoor light outside room on daytime, and then according to light intensity, whether judgement currently meets preset condition.This is pre-
If condition is pre-set, for judging whether the condition of starting quick start flashlight application function.
In the present embodiment, operation is shaken, as the term suggests it is the operation that user rocks terminal, and terminal is by built-in
Acceleration sensor or vibrating sensor detect that user shakes this terminal, and then generate electric signal.Operation is shaken if it exists, is
Currently whether meet preset condition with judgement.The preset condition is pre-set, and starts quick start for judging whether
The condition of flashlight application function.Specifically, predetermined registration operation is the operational order pre-set, and user rocks the operation of terminal
It can be primary or continuous several times, that is, rock number, further, direction, intermittent time for also rocking etc..By shaking
Whether operation judges match with predetermined registration operation.If the operation of shaking that active user rocks terminal matches with predetermined registration operation,
It then can determine the preset condition for currently meeting quick start flashlight application function.If shaking operation and predetermined registration operation not phase
Match, is then currently unsatisfactory for the preset condition of quick start flashlight application function.
Step S20, when currently meeting the preset condition of quick start flashlight application function, controlling terminal is from normally opening
Torch pattern switching of starting is to quick start torch mode;
In the present embodiment, flashlight application function is a life utility classes software, and installation at the terminal, and can control
Terminal provides illumination in night or the place of dark for user.Flashlight function is consistent with the prior art herein, such as controls
Flash lamp is opened to issue light, while also controllable light power etc..After application program is mounted, in system desktop or beginning
Occurs a corresponding application icon in menu or taskbar, user clicks application icon and can correspond to opening and use
Application program.Normal starting torch mode, after referring to terminal installation flashlight application program, when user needs to open and use
When flashlight function, it is necessary first to solve lock screen, then be found in contrast in system desktop or start menu or taskbar
The application icon answered, flashlight function can be started by finally clicking icon.
Further, it should be noted that in the case where dark surrounds or dark, flashlight is normally started to user
The operation of cylinder application function has some impact on, i.e. operation under normal mode is very inconvenient, and then unlatching flashlight is caused to be answered
With the inefficiency of function.Thus when currently meeting the preset condition of quick start flashlight application function, controlling terminal from
Normal starting torch mode switches to quick start torch mode.If being currently unsatisfactory for preset condition, do not switch to fast
Speed starting torch mode.
Step S30 obtains default change parameter when switching to quick start torch mode to change terminal starting hand
The configuration item of torch application function.
In the present embodiment, configuration item (Configuration Item, CI), computerese is included in configuration management model
The all items on farmland, are the relevant configurations of software life cycle each stage action, are briefly in exploitation software process
Incidental all contents, including source code, document, program etc..Default change parameter is pre-set, and is existed for terminal
When switching to quick start torch mode, configuration item is changed, that is, the operation of normal starting flashlight is modified as one kind
More convenient and fast operation,
In the present embodiment, default change parameter is obtained to change configuration item, such as flashlight icon is located at and is under normal circumstances
It unites in menu bar, the flashlight icon can be while be on System menu column and locking screen interface after change, to facilitate use
Flashlight icon is being found at family at the first time in dark surrounds, is opened and is used flashlight application function;For another example positive reason
The operation that terminal supplying power bond distance presses under condition is restarting terminal, and long-pressing power key is to open flashlight application function after change,
To facilitate user to be not necessarily to search flashlight icon in a dark environment, flashlight application function can be started by shortcut key.
Further, it should be noted that terminal switches to quick start torch mode, is weaker or dark in light
Shortcut key is created for user automatically under environment, so that user selectively starts flashlight application function, rather than terminal opens certainly
Dynamic flashlight function, and then provide users with the convenient, and terminal self-starting is avoided to consume extra electricity, to improve user
Usage experience.
In the present embodiment, the light intensity of surrounding enviroment is obtained according to light sensor first, it is current whether full to judge
The preset condition of sufficient quick start flashlight application function;Then, when currently meeting the pre- of quick start flashlight application function
If when condition, controlling terminal switches to quick start torch mode from normal starting torch mode;Finally, fast when switching to
When speed starting torch mode, default change parameter is obtained to change the configuration item of terminal starting flashlight application function, thus
Realization facilitates user's quick start flashlight application function, and the overall structure without changing terminal in a dark environment.
It is the refinement flow diagram of mono- embodiment of Fig. 3 step S10 referring to Fig. 4, Fig. 4.
Based on the above embodiment, in the present embodiment, above-mentioned steps S10 obtains the light of surrounding enviroment according to light sensor
Line intensity, to judge currently whether to meet the preset condition of quick start flashlight application function, including:
Step S11 is detected the light intensity of surrounding enviroment by light sensor, obtains light intensity value;
Step S12, judges whether light intensity value is less than or equal to preset threshold;
Step S13, if so, determining the preset condition for currently meeting quick start flashlight application function.
In the present embodiment, mobile terminal detects the luminous ray intensity in surrounding enviroment, and light by light sensor
Intensity is a kind of physical term, refers to the luminous flux of received visible light on unit area, is the power and object for being used to indicate illumination
The amount of the illuminated degree of body surface area, unit be lux (Lux or Lx) to get arrive light intensity value.According to light intensity
Whether the size of value, judgement currently meet the preset condition for switching to quick start torch mode.Specifically, work as light intensity
When value is less than or equal to preset threshold, illustrate that user is not enough to see clearly current environment, i.e., current satisfaction switches to quick start hand
Torch mode, so that user being capable of quick start flashlight application function.When meeting the pre- of quick start flashlight application function
If condition, terminal can switch to quick start torch mode, and then reduce the input operation of user, beat to more convenient and quicker
It opens and uses flashlight application function.
It is further alternative, when light intensity value is greater than preset threshold, illustrate that user can see clearly under the present circumstances
Surrounding provides illumination without additional light source, that is, is currently unsatisfactory for the default item of quick start flashlight application function
Part.When being currently unsatisfactory for the preset condition of quick start flashlight application function, controlling terminal maintains or switches back into normally to open
Dynamic torch mode.It maintains, as the term suggests not doing any variation namely, and switches back into, refer to and restore the configuration item of change
To original configuration.Under normal mode, flashlight icon is in menu bar, and the long press operation of power key (or home key) is corresponding
Restart and (exits interface), and under quick mode, flashlight icon is on locking screen interface, and the long press operation of power key is starting hand
Torch application function.When detecting that light intensity value is greater than preset threshold, there are two kinds of situations:1) normal starting flashlight is maintained
Cylinder mould formula, i.e. flashlight icon are located in menu bar, without the flashlight icon on locking screen interface, while the long press operation of power key
To restart;2) under quick mode, need to switch back into normal starting torch mode, that is, original flashlight icon is located at
Menu bar, while also being located on locking screen interface, the flashlight icon on locking screen interface is deleted, an original hand is restored to
Torch icon and be located at menu bar in, and the long press operation of power key be start flashlight application function, revert back and restart.
It is further alternative, in an alternative embodiment of the invention, above-mentioned steps S30, when switching to quick start flashlight
When mode, default change parameter is obtained to change the configuration item of terminal starting flashlight application function, including:
1, when switching to quick start torch mode, the touching when creating virtual functional key on locking screen interface to press
Hair opens the function command of flashlight, wherein virtual functional key is flashlight icon.The size of the flashlight icon of creation is
It maximizes.
In the present embodiment, mobile terminal is taken the mobile phone as an example, when mobile phone in a dormant state when screen be it is black, from suspend mode shape
State wakes up to working condition, then blank screen switchs to bright screen, and shows locking screen interface.Password Input is shown on general mobile phone locking screen interface
Frame, date-time.User can input password and be unlocked, and show desktop after unlocking successfully.Terminal is detecting currently
When ambient light deficiency, quick start torch mode is automatically switched to from normal starting torch mode, and in locking screen interface
Upper creation flashlight icon.It is preferred that the icon sizes created are to maximize, further such that user is in dark or dark feelings
Under condition, and flashlight icon is found at the first time in the bright screen of terminal, and then click the icon manually, to open and use hand
Torch application function simplifies unlock and searches flashlight icon again, that is, saves the operating procedure of user, to improve user's opening
The efficiency of flashlight function, it is convenient and efficient.
2, when switching to quick start torch mode, by predetermined physical key, in length, corresponding operational order is more on time
It is changed to open the function command of flashlight.Predetermined physical key includes power key and/or home key.
In the present embodiment, terminal is equipped with power key, is also provided with home key, sound size adjusting key, mute key etc., has
Body is depending on the structure of different product.The identical some that physical button per a product has is not identical, and each key pair
It answers different operation to instruct, such as power key, that is, power button, for switching on and shutting down or restarts, press primary power source key usually as booting
Or shutdown, long-pressing power key are to restart.Home key is with the key for returning to main screen function.By primary in usual iOS system
Home key is return main screen, double-click home key is display running background program, long-pressing home key is to open voice assistant;And
A home key is pressed in android system to return to main screen, or enters all Application Program Interfaces, long-pressing home key for display
The application program of opening.Sound size adjusting key be adjust Headphone volume size key, mute key be control sound outside put or
Mute key.Physical button on terminal device is depending on the design of different manufacturers different series product, while difference is pressed
Key is corresponding with different operational orders, realizes the operation such as be switched on, restart, returning to main screen.To avoid increasing additionally hard
Part cost and development cost, and meet the shortcut key of creation flashlight, preferably the long press operation of power key and/or home key is referred to
The corresponding function command for being changed to starting flashlight is enabled, and then user is under dark or dark situations, without lighting screen
Long-pressing power key and/or home key may be selected, to trigger starting flashlight function, and then simplify user's unlock and search flashlight again
Sketch drawing target operating procedure, so that the efficiency that user opens flashlight function is improved, it is convenient and efficient.
Further, it should be noted that the change of virtual key or physical button triggering command is arranged, and can be and selects it
One or both changes together, can be specifically arranged according to practical application.It is default more according to user or the editor of producer's default setting
Change parameter, so that the corresponding modification configuration item when terminal switches to quick start torch mode, creates shortcut key, to meet
User is under dark or dark surrounds, quick start flashlight function.Surrounding enviroment, and intelligence are detected by light sensor
Can the normal starting torch mode of switching and quick start torch mode, do not influence user in the case where seeing clearly current environment just
It is often used, while more convenient starting flashlight service can be provided in the case where not seeing current environment again for user, and keep away
Exempt from terminal self-starting and consume extra electricity, to improve the usage experience of user.
It is the flow diagram of another embodiment of application method of flashlight of the present invention referring to Fig. 5, Fig. 5.
Based on the above embodiment, after step S30, another embodiment of the present invention, in the present embodiment, flashlight are proposed
Application method is further comprising the steps of:
Step S40 obtains the button operation information that user presses;
Step S50, judges whether button operation information matches with the function command for opening flashlight;
Step S60, if matching, controlling terminal opens flashlight application function.
In the present embodiment, terminal detects that surrounding enviroment light is weak by light sensor, is not enough to user and sees clearly currently
Environment, and automatically into quick start torch mode.This quick start torch mode is not terminal same without user
Automatically start flashlight function in the case of meaning, but create more convenient key and selectively open flashlight application for user
Function.The shortcut key of creation includes flashlight icon, power key, home key on locking screen interface.User is in dark or black
Screen is touched in dark situation, and input password box, imaging icon are generally shown on locking screen interface, also shows flashlight icon, if
When user selects to click the flashlight icon on locking screen interface, that is, the function command for opening flashlight is triggered, if user's selected element
It hits input password box to be unlocked, then will not trigger the function command for opening flashlight.Alternatively, user can directly long-pressing home
The function command that key, i.e. triggering open flashlight triggers display locking screen interface if user clicks home key.It is used by judgement
Whether the button operation information that family is pressed matches with the function command for opening flashlight, if matching, responds user and starts hand
Torch function responds other operational orders of user, so that terminal be avoided to start flashlight function, shadow automatically if mismatching
It rings user to use and waste extra electricity, and then reach convenient and efficient to have demand selection starting flashlight function for user, improve
The usage experience of user.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, on the computer readable storage medium
It is stored with flashlight application program, following operation is realized when the flashlight application program is executed by processor 110:
Whether judgement currently meets the preset condition of quick start flashlight application function, wherein the preset condition is extremely
Include less:Exist by the light intensity of light sensor acquisition surrounding enviroment, terminal and shakes any one of operation;
When currently meeting the preset condition of quick start flashlight application function, controlling terminal starts flashlight from normal
Pattern switching is to quick start torch mode;
When switching to the quick start torch mode, default change parameter is obtained to change terminal starting flashlight
The configuration item of application function.
Further, following operation is also realized when the flashlight application program is executed by processor 110:
The light intensity that surrounding enviroment are detected by light sensor, obtains light intensity value;
Judge whether the light intensity value is less than or equal to preset threshold;
If so, determining the preset condition for currently meeting quick start flashlight application function.
Further, following operation is also realized when the flashlight application program is executed by processor 110:
Detection present terminal, which whether there is, shakes operation with what predetermined registration operation matched;
If it exists, it is determined that currently meet the preset condition of quick start flashlight application function.
Further, following operation is also realized when the bookmark setting program is executed by processor 110:
When being currently unsatisfactory for the preset condition of quick start flashlight application function, controlling terminal maintains or switches back into institute
State normal starting torch mode.
Further, following operation is also realized when the flashlight application program is executed by processor 110:
When switching to the quick start torch mode, when creating virtual functional key on locking screen interface to press
The function command of flashlight is opened in triggering, wherein the virtual functional key is flashlight icon.
Further, following operation is also realized when the flashlight application program is executed by processor 110:
The size of the flashlight icon of creation is to maximize.
Further, following operation is also realized when the flashlight application program is executed by processor 110:
When switching to the quick start torch mode, by predetermined physical key in length corresponding operational order on time
It is changed to open the function command of flashlight, wherein the predetermined physical key includes power key and/or home key.
Further, following operation is also realized when the flashlight application program is executed by processor 110:
Obtain the button operation information that user presses;
Judge whether the button operation information matches with the function command for opening flashlight;
If matching, controlling terminal opens flashlight application function.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of application method of flashlight, applied to the mobile terminal for being equipped with light sensor, which is characterized in that the flashlight
The application method of cylinder includes the following steps:
Whether judgement currently meets the preset condition of quick start flashlight application function, wherein the preset condition is at least wrapped
It includes:Exist by the light intensity of light sensor acquisition surrounding enviroment, terminal and shakes any one of operation;
When currently meeting the preset condition of quick start flashlight application function, controlling terminal starts torch mode from normal
Switch to quick start torch mode;
When switching to the quick start torch mode, default change parameter is obtained to change terminal starting flashlight application
The configuration item of function.
2. the application method of flashlight as described in claim 1, which is characterized in that whether the judgement, which currently meets, is quickly opened
The preset condition of torch application function of starting includes:
The light intensity that surrounding enviroment are detected by light sensor, obtains light intensity value;
Judge whether the light intensity value is less than or equal to preset threshold;
If so, determining the preset condition for currently meeting quick start flashlight application function.
3. the application method of flashlight as described in claim 1, which is characterized in that whether the judgement, which currently meets, is quickly opened
The preset condition of torch application function of starting includes:
Detection present terminal, which whether there is, shakes operation with what predetermined registration operation matched;
If it exists, it is determined that currently meet the preset condition of quick start flashlight application function.
4. the application method of flashlight as claimed any one in claims 1 to 3, which is characterized in that the flashlight is answered
Further include with method:
When being currently unsatisfactory for the preset condition of quick start flashlight application function, controlling terminal maintain or switch back into it is described just
Often starting torch mode.
5. the application method of flashlight as described in claim 1, which is characterized in that described to switch to the quick start hand
When torch mode, default change parameter is obtained to change the configuration information of terminal starting flashlight application function and include:
When switching to the quick start torch mode, the triggering when creating virtual functional key on locking screen interface to press
Open the function command of flashlight, wherein the virtual functional key is flashlight icon.
6. the application method of flashlight as claimed in claim 5, which is characterized in that the size of the flashlight icon of creation
To maximize.
7. the application method of flashlight as described in claim 1, which is characterized in that described to switch to the quick start hand
When torch mode, default change parameter is obtained to change the configuration information of terminal starting flashlight application function and include:
When switching to the quick start torch mode, by predetermined physical key, in length, corresponding operational order is changed on time
For the function command for opening flashlight, wherein the predetermined physical key includes power key and/or home key.
8. the application method of the flashlight as described in any one of claim 5 to 7, which is characterized in that ought be switched to described
When the quick start torch mode, default change parameter is obtained to change the configuration item of terminal starting flashlight application function
Later, the application method of the flashlight further includes:
Obtain the button operation information that user presses;
Judge whether the button operation information matches with the function command for opening flashlight;
If matching, controlling terminal opens flashlight application function.
9. a kind of mobile terminal, the mobile terminal is equipped with light sensor, which is characterized in that the mobile terminal also wraps
It includes:Memory, processor and it is stored in the flashlight application program that can be run on the memory and on the processor, institute
It states and realizes answering such as flashlight described in any item of the claim 1 to 8 when flashlight application program is executed by the processor
The step of with method.
10. a kind of computer readable storage medium, which is characterized in that be stored with flashlight on the computer readable storage medium
Application program realizes such as flashlight described in any item of the claim 1 to 8 when the flashlight application program is executed by processor
The step of application method of cylinder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810695819.2A CN108900708A (en) | 2018-06-28 | 2018-06-28 | Application method, mobile terminal and the readable storage medium storing program for executing of flashlight |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810695819.2A CN108900708A (en) | 2018-06-28 | 2018-06-28 | Application method, mobile terminal and the readable storage medium storing program for executing of flashlight |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108900708A true CN108900708A (en) | 2018-11-27 |
Family
ID=64346740
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810695819.2A Pending CN108900708A (en) | 2018-06-28 | 2018-06-28 | Application method, mobile terminal and the readable storage medium storing program for executing of flashlight |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108900708A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110300226A (en) * | 2019-06-28 | 2019-10-01 | Oppo广东移动通信有限公司 | The control method of electronic equipment and its flashlight |
CN111741164A (en) * | 2020-06-17 | 2020-10-02 | Oppo(重庆)智能科技有限公司 | Sound mode switching method and device and computer readable storage medium |
CN112256183A (en) * | 2020-11-10 | 2021-01-22 | 深圳传音控股股份有限公司 | Shortcut function display method, terminal and computer storage medium |
CN113179349A (en) * | 2021-05-11 | 2021-07-27 | 深圳市卓翼科技股份有限公司 | Flashlight interaction control method and device and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103345355A (en) * | 2013-07-18 | 2013-10-09 | 北京小米科技有限责任公司 | Screen-locking interface display control method, device and terminal device |
CN105162991A (en) * | 2015-10-13 | 2015-12-16 | 上海斐讯数据通信技术有限公司 | A method and system for terminal automatically turning on and turning off electric torch |
CN105430162A (en) * | 2015-10-28 | 2016-03-23 | 广东欧珀移动通信有限公司 | Method and device of turning on electric torch |
CN105472142A (en) * | 2015-11-19 | 2016-04-06 | 广东欧珀移动通信有限公司 | Turning on method and apparatus for electric torch of mobile terminal |
CN105872240A (en) * | 2016-05-06 | 2016-08-17 | 乐视控股(北京)有限公司 | Flashlight mode starting method and mobile terminal |
-
2018
- 2018-06-28 CN CN201810695819.2A patent/CN108900708A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103345355A (en) * | 2013-07-18 | 2013-10-09 | 北京小米科技有限责任公司 | Screen-locking interface display control method, device and terminal device |
CN105162991A (en) * | 2015-10-13 | 2015-12-16 | 上海斐讯数据通信技术有限公司 | A method and system for terminal automatically turning on and turning off electric torch |
CN105430162A (en) * | 2015-10-28 | 2016-03-23 | 广东欧珀移动通信有限公司 | Method and device of turning on electric torch |
CN105472142A (en) * | 2015-11-19 | 2016-04-06 | 广东欧珀移动通信有限公司 | Turning on method and apparatus for electric torch of mobile terminal |
CN105872240A (en) * | 2016-05-06 | 2016-08-17 | 乐视控股(北京)有限公司 | Flashlight mode starting method and mobile terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110300226A (en) * | 2019-06-28 | 2019-10-01 | Oppo广东移动通信有限公司 | The control method of electronic equipment and its flashlight |
CN110300226B (en) * | 2019-06-28 | 2021-06-29 | Oppo广东移动通信有限公司 | Electronic equipment and control method of flashlight thereof |
CN111741164A (en) * | 2020-06-17 | 2020-10-02 | Oppo(重庆)智能科技有限公司 | Sound mode switching method and device and computer readable storage medium |
CN112256183A (en) * | 2020-11-10 | 2021-01-22 | 深圳传音控股股份有限公司 | Shortcut function display method, terminal and computer storage medium |
CN113179349A (en) * | 2021-05-11 | 2021-07-27 | 深圳市卓翼科技股份有限公司 | Flashlight interaction control method and device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109348123A (en) | Photographic method, mobile terminal and computer readable storage medium | |
CN109584879A (en) | A kind of sound control method and electronic equipment | |
CN107943399A (en) | Display methods, device and the computer-readable recording medium of double-sided screen | |
CN109739669A (en) | A kind of unread message reminding method and mobile terminal | |
CN108900708A (en) | Application method, mobile terminal and the readable storage medium storing program for executing of flashlight | |
CN106027916A (en) | Light compensation-based photographing method, and terminal | |
CN109270986A (en) | Flexible screen terminal and its display methods and computer readable storage medium | |
CN108900778A (en) | A kind of image pickup method, mobile terminal and computer readable storage medium | |
CN108156393A (en) | Image capturing method, mobile terminal and computer readable storage medium | |
CN109946986A (en) | Household electric appliance control method, wearable device and computer readable storage medium | |
CN108334272A (en) | A kind of control method and mobile terminal | |
CN107463243A (en) | A kind of screen control method, mobile terminal and computer-readable recording medium | |
CN108833709A (en) | A kind of the starting method and mobile terminal of camera | |
CN110049185A (en) | Image processing method and terminal device | |
CN109062405A (en) | Mobile terminal display methods, mobile terminal and computer readable storage medium | |
CN108898552A (en) | Picture joining method, double screen terminal and computer readable storage medium | |
CN110290331A (en) | A kind of screen control method and terminal | |
CN109976612A (en) | Application function implementation method, wearable device, mobile phone and computer readable storage medium | |
CN105635553B (en) | Image shooting method and device | |
CN109376669A (en) | Control method, mobile terminal and the computer readable storage medium of intelligent assistant | |
CN109542325A (en) | Double-sided screen touch control method, double-sided screen terminal, readable storage medium storing program for executing | |
CN108307073A (en) | Screen luminance adjustment method, mobile terminal and computer readable storage medium | |
WO2020103091A1 (en) | Touch operation locking method and electronic device | |
CN110175008A (en) | Method, wearable device and the computer readable storage medium of operating terminal | |
CN110045830A (en) | Application operating method, apparatus and computer readable storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181127 |