CN105094323A - Method and apparatus for setting night mode of terminal - Google Patents

Method and apparatus for setting night mode of terminal Download PDF

Info

Publication number
CN105094323A
CN105094323A CN201510401978.3A CN201510401978A CN105094323A CN 105094323 A CN105094323 A CN 105094323A CN 201510401978 A CN201510401978 A CN 201510401978A CN 105094323 A CN105094323 A CN 105094323A
Authority
CN
China
Prior art keywords
night
application
terminal
parameter
current environment
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
Application number
CN201510401978.3A
Other languages
Chinese (zh)
Inventor
赵恒兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510401978.3A priority Critical patent/CN105094323A/en
Publication of CN105094323A publication Critical patent/CN105094323A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a method for setting a night mode of a terminal, wherein the method for setting the night model of the terminal comprises steps: detecting current environment parameter; judging whether the current environment parameter is within the range of preset environment parameter or not; and if the current environment parameter is within the range of the preset environment parameter, then the night mode of a corresponding application is controlled to be opened. The invention also discloses an apparatus for setting the night mode of the terminal. By adopting the method and the apparatus provided herein, the operation convenience of setting the night mode of each application is improved.

Description

The Night method to set up of terminal and device
Technical field
The present invention relates to terminal control technical field, particularly relate to Night method to set up and the device of terminal.
Background technology
Along with the high speed development of science and technology, the function of the terminals such as mobile phone, PAD (panel computer) gets more and more, and user can be realized reading news at any time, see video, be played games by each application of terminal.More comfortable in order to make user watch, some application has Night function, when opening each application when user is when in night or dark, need user one by one manually opened each application Night, when by day or light is brighter time need again user one by one manual-lock each application Night.Therefore user to arrange the step of the Night of each application various, operate not simple and direct.
Summary of the invention
Fundamental purpose of the present invention is the Night method to set up and the device that propose a kind of terminal, is intended to solve the not simple and direct technical matters of the existing operation arranging the Night of each application.
For achieving the above object, the Night method to set up of a kind of terminal provided by the invention, the Night method to set up of described terminal comprises the following steps:
The current environment parameter of sense terminals;
Judge described current environment parameter whether within the scope of preset environmental parameter;
If so, then control respective application and open Night.
Preferably, described environmental parameter comprises the light luminance of environment, describedly judges that the step of described current environment parameter whether within the scope of preset environmental parameter comprises:
Judge that whether the light luminance of current environment is lower than preset ambient light luminance threshold.
Preferably, described environmental parameter comprises time parameter, describedly judges that the step of described current environment parameter whether within the scope of preset environmental parameter comprises:
Judge current time whether within the preset time period.
Preferably, the step of described control respective application unlatching Night comprises:
Send the broadcast corresponding to opening Night to corresponding application.
Preferably, before the step of described detection current environment parameter, also comprise:
Detection Night arranges switch and whether is in opening.
In addition, for achieving the above object, the present invention also proposes a kind of Night setting device of terminal, and the Night setting device of described terminal comprises:
Detection module, for the current environment parameter of sense terminals;
Judge module, for judging described current environment parameter whether within the scope of preset environmental parameter;
Processing module, if for described current environment parameter within the scope of preset environmental parameter, then controls respective application and opens Night.
Preferably, described environmental parameter comprises the light luminance of environment, and described judge module is used for:
Judge that whether the light luminance of current environment is lower than preset ambient light luminance threshold.
Preferably, described environmental parameter comprises time parameter, and described judge module is used for:
Judge current time whether within the preset time period.
Preferably, described processing module is used for:
Send the broadcast corresponding to opening Night to corresponding application.
Preferably, described detection module also for:
Detection Night arranges switch and whether is in opening.
The Night method to set up of the terminal that the present invention proposes and device, in the Night method to set up of described terminal, first the current environment parameter of sense terminals, then described current environment parameter is judged whether within the scope of preset environmental parameter, if, then control respective application and open Night, therefore avoid the operation steps of Night of user's each application manually opened one by one, improve the simple operation of the Night that each application is set.
Accompanying drawing explanation
Fig. 1 is the hardware configuration schematic diagram of the terminal realizing each embodiment of the present invention;
Fig. 2 is the schematic flow sheet of Night method to set up first embodiment of terminal of the present invention;
Fig. 3 is the schematic flow sheet of Night method to set up second embodiment of terminal of the present invention;
Fig. 4 is the schematic flow sheet of Night method to set up the 3rd embodiment of terminal of the present invention;
Fig. 5 is the high-level schematic functional block diagram of Night setting device first embodiment of terminal of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
Terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desk-top computer etc.
The hardware configuration schematic diagram of a kind of terminal 1100 that the embodiment of the present invention provides, as shown in Figure 1, this terminal 1100 comprises:
Processor 1110, a general central processor (CPU), microprocessor, ASIC(Application Specific Integrated Circuit) (application-specificintegratedcircuit, ASIC), or one or more for control the present invention program S10-S14 perform integrated circuit.
Storer 1120, for completing the storage of various software programs, the storage of data of terminal, and the operation etc. of software program.This storer 1120 can be RAM, EPROM, SSD, SD card, one or more in HD hard disk.The video file that the embodiment of the present invention provides and special efficacy, also run and store on storer 1120.
Sensor 1130, for measure and record data, this sensor 1130 can comprise following in any one or more: camera, GPS module, gravity sensor, acceleration transducer, range sensor, optical sensor, microphone, loudspeaker.
Transmission circuit 1140, for providing communication function, comprise in cellular network (GSM/UMTS/LTE/CDMA etc.), WLAN (wireless local area network) (WLAN), short-range communication (NFC), bluetooth etc. one or more.
Power supply 1150, for providing direct current supply, or converts Alternating Current Power Supply to direct current supply.
I/O interface circuit 1160, for providing external interface.Alternatively, this I/O interface circuit 1160 can comprise any one or more in following interfaces: USB interface, SD card interface, keystroke interface.
Display 1170 can be display screen and/or the touch-screen of terminal, in display video file and the special efficacy of display screen; Touch-screen is for receiving user's touch operation and converting user operation instruction to.
I/O control circuit 1180, for controlling the data interaction between various imput output circuit parts, especially, such as, data interaction between processor 1110 and I/O interface circuit 1160, display 1170.
Based on above-mentioned terminal hardware structure, each embodiment of Night method to set up of terminal of the present invention is proposed.Below for smart mobile phone, the Night method to set up of terminal of the present invention is described in detail, it will be appreciated by persons skilled in the art that the Night method to set up of terminal of the present invention is not limited to be applied in smart mobile phone.
With reference to the schematic flow sheet that Fig. 2, Fig. 2 are Night method to set up first embodiment of terminal of the present invention.
In the present embodiment, the Night method to set up of this terminal comprises the following steps:
Step S10, the current environment parameter of sense terminals;
In the present embodiment, smart mobile phone detects current environmental parameter in real time or regularly.Such as, in smart mobile phone, be previously provided with light sensor, by this light sensor in real time or the light luminance of the current residing environment of timing acquiring smart mobile phone.
Step S20, judges described current environment parameter whether within the scope of preset environmental parameter;
After getting current environment parameter by step S10, the described current environment parameter obtained and the environmental parameter that pre-sets are compared, judge that the described current environment parameter of acquisition is whether within the scope of described preset environmental parameter.Such as, whether the light luminance of environment that obtains of multilevel iudge is in preset ambient light brightness range.
Step S30, if so, then controls respective application and opens Night.
In the present embodiment, the system of smart mobile phone has application by oneself and corresponding to the Night in advance broadcast of third-party application is registered.Particularly, each application can adopt dynamic registration mode or static registration mode to register.Such as, the registration of dynamical fashion is carried out in each application by Context.registerReceiver () function, or in AndroidManifest.xml, carried out the registration of static mode by <receiver>.When the described current environment parameter judging to obtain by step S20 is within the scope of described preset environmental parameter, then Night is opened in each application accordingly controlling broadcast corresponding to the Night of registered in advance in smart mobile phone.Such as, if the application of the broadcast that registered in advance Night is corresponding has browser application, reader application and a notepad appli-cation in smart mobile phone, wherein, browser application and notepad appli-cation is current is in Night closed condition, reader application is current is in Night opening.When the described current environment parameter judging to obtain is within the scope of described preset environmental parameter, then control browser application and notepad appli-cation unlatching Night, make browser application and notepad appli-cation be switched to Night opening from current Night closed condition; Reader application is current has been in Night opening, then control reader application and continue to open Night.Corresponding to the Night all in advance broadcast of application not all in smart mobile phone is registered, when the described current environment parameter judging to obtain is within the scope of described preset environmental parameter, for the application of broadcast corresponding to Night unregistered in smart mobile phone, do not process, Night is opened in the application also namely not controlling broadcast corresponding to unregistered Night.
When the described current environment parameter judging to obtain is not within the scope of described preset environmental parameter, then each the corresponding application controlling broadcast corresponding to the Night of registered in advance in smart mobile phone does not open Night.Such as, above-mentioned for example in, after browser application, reader application and notepad appli-cation open Night, when the described current environment parameter judging to obtain is not within the scope of described preset environmental parameter, then controls browser application, reader application and notepad appli-cation and close Night.
The Night method to set up of the terminal that the present embodiment provides, by the current environment parameter of sense terminals, judge described current environment parameter whether within the scope of preset environmental parameter, if described current environment parameter is within the scope of preset environmental parameter, Night is opened in each application accordingly then controlling have registered broadcast corresponding to Night, therefore the operation steps of Night of user's each application manually opened is one by one avoided, improve the simple operation of the Night that each application is set, improve Consumer's Experience.
Further, with reference to Fig. 3, propose Night method to set up second embodiment of terminal of the present invention based on the first embodiment, in the present embodiment, described environmental parameter comprises time parameter, and the Night method to set up of described terminal comprises step:
Step S11, detects current time;
Step S21, judges current time whether within the preset time period;
Step S30, if so, then controls respective application and opens Night.
In the present embodiment, described environmental parameter comprises time parameter.Smart mobile phone pre-sets the time period scope of opening Night.Particularly, by pre-setting when smart mobile phone dispatches from the factory, or arrange the time period scope of opening Night by user at the interface oneself that arranges of Night, such as arranging the time period scope of opening Night is 6 points between 18 to morning of night.First detect the current time, if current time is within the described preset time period, then Night is opened in each application accordingly controlling broadcast corresponding to the Night of registered in advance in smart mobile phone.If current time is not within the preset time period, then each the corresponding application controlling broadcast corresponding to the Night of registered in advance in smart mobile phone does not open Night.
The Night method to set up of the terminal that the present embodiment proposes, described environmental parameter comprises time parameter, first current time is detected, judge current time whether within the preset time period, if current time is within the preset time period, Night is opened in each application accordingly then controlling broadcast corresponding to the Night of registered in advance in smart mobile phone, avoid the operation steps of Night of user's each application manually opened one by one, improve the simple operation of the Night that each application is set, improve Consumer's Experience.
Further, with reference to Fig. 4, propose Night method to set up the 3rd embodiment of terminal of the present invention based on the first embodiment, in the present embodiment, described environmental parameter comprises the light luminance of environment, and the Night method to set up of described terminal comprises step:
Step S12, detects the light luminance of current environment;
Step S22, judges that whether the light luminance of current environment is lower than preset ambient light luminance threshold;
Step S30, if so, then controls respective application and opens Night.
In the present embodiment, described environmental parameter comprises the light luminance of environment.Light sensor is previously provided with in smart mobile phone, by this light sensor in real time or the light luminance of timing acquiring environment, particularly, the light intensity signal of light sensor build environment, the light intensity signal of the environment generated by the microprocessor detected light dependent sensor of smart mobile phone, thus get the light luminance of environment.
Further, in the present embodiment, smart mobile phone pre-sets the ambient light luminance threshold opening Night.Particularly, by pre-setting when smart mobile phone dispatches from the factory, or by user, the ambient light luminance threshold opening Night is set at the interface oneself that arranges of Night.Got the light luminance of current environment by light sensor after, judge that whether the light luminance of current environment is lower than described preset ambient light luminance threshold.If the light luminance of current environment is lower than described preset ambient light luminance threshold, then Night is opened in each application accordingly controlling broadcast corresponding to the Night of registered in advance in smart mobile phone.If the light luminance of current environment is higher than described preset ambient light luminance threshold, then each the corresponding application controlling broadcast corresponding to the Night of registered in advance in smart mobile phone does not open Night.
The Night method to set up of the terminal that the present embodiment proposes, described environmental parameter comprises the light luminance of environment, first the light luminance of current environment is detected, judge that whether the light luminance of current environment is lower than preset ambient light luminance threshold, if the light luminance of current environment is lower than preset ambient light luminance threshold, Night is opened in each application accordingly then controlling broadcast corresponding to the Night of registered in advance in smart mobile phone, avoid the operation steps of Night of user's each application manually opened one by one, improve the simple operation of the Night that each application is set, improve Consumer's Experience.
Further, propose Night method to set up the 4th embodiment of terminal of the present invention based on above-described embodiment, in the present embodiment, described step S10 comprises:
Step a, when detecting described respective application and being in opening, the current environment parameter of sense terminals.
The Night of automatically opening or closing each application accordingly can be realized by above-described embodiment, such as, current time is within the preset time period, or when the light luminance of current environment is lower than preset ambient light luminance threshold, then Night is opened in the corresponding application controlling have registered broadcast corresponding to Night; Current time outside preset time period scope, or the light luminance of current environment higher than preset ambient light luminance threshold time, then Night is closed in the corresponding application controlling have registered broadcast corresponding to Night.Therefore, even if when user does not start described respective application, smart mobile phone also controls described respective application according to the current environment parameter detected and opens or close Night.But when in fact if user is not activated described respective application, then unnecessary going controls described each respective application unlatching or closes Night, particularly change frequently in situation in environmental parameter, each respective application described can be caused to open continually or close Night, thus cause system resource waste.In order to improve the experience of user further, in the present embodiment, only when corresponding application is in opening, open Cai go to control each respective application described according to current environment parameter or close Night.Particularly, first detected in smart mobile phone registered in advance and whether there is application in each accordingly application of broadcast corresponding to Night and be in opening, if there is not corresponding application to be in opening, also when namely each corresponding application is all in closed condition, then do not process.Such as, if detect described respective application when being in opening, if when the browser application detecting broadcast corresponding to the Night of registered in advance in smart mobile phone is in opening, detect the current environment parameter of smart mobile phone.If the current environment parameter detected is within the scope of preset environmental parameter, then Night is opened in each application accordingly controlling broadcast corresponding to the Night of registered in advance in smart mobile phone.Otherwise each the corresponding application controlling broadcast corresponding to the Night of registered in advance in smart mobile phone does not open Night.
Preferably, when there is application in each application accordingly having detected in smart mobile phone registered in advance broadcast corresponding to Night and being in opening, judge whether described application is in front stage operation state further, also namely judge that user is current and whether using described application correspondingly to watch browse operation.If when judging that described application is in background operation state, then do not process.If when judging that described application is in front stage operation state, then detect the current environment parameter of smart mobile phone.If the current environment parameter detected is within the scope of preset environmental parameter, then Night is opened in each application accordingly controlling broadcast corresponding to the Night of registered in advance in smart mobile phone.Otherwise each the corresponding application controlling broadcast corresponding to the Night of registered in advance in smart mobile phone does not open Night.
The Night method to set up of the terminal that the present embodiment proposes, when the respective application detecting broadcast corresponding to the Night of registered in advance in smart mobile phone is in opening, according to registered in advance in the described current environment state modulator smart mobile phone detected, each application accordingly of the broadcast that Night is corresponding is opened or closes Night; When corresponding application is in closed condition, then do not process.This embodiment avoids the operation steps of Night of user's each application manually opened one by one, improve the simple operation of the Night that each application is set, improve Consumer's Experience.Meanwhile, also avoid when user does not start corresponding application, according to current environment state modulator, state corresponding application open or close Night, cause system resource waste.
Further, propose Night method to set up the 5th embodiment of terminal of the present invention based on above-described embodiment, in the present embodiment, described step S30 comprises:
Step b, sends the broadcast corresponding to opening Night to corresponding application.
On the basis of above-described embodiment, when judging that described current environment parameter is within the scope of preset environmental parameter, such as, current time is within the preset time period, or when the light luminance of current environment is lower than preset ambient light luminance threshold, controls corresponding application and open Night.Particularly, in the present embodiment, smart mobile phone sends and opens extremely corresponding each of broadcast corresponding to Night and apply.Such as, smart mobile phone sends the broadcast corresponding to opening Night to each the corresponding application that have registered broadcast corresponding to Night by sendBroadcast is unified.After each application accordingly receives the described broadcast corresponding with opening Night, then the pattern of application is switched to Night.Such as, each application by after receiving the described broadcast corresponding with unlatching Night in the onRecive function of respective Broadcast, and respective pattern is then switched to Night by each application respectively.Particularly, pre-set the preset parameter value that each is applied in the Night parameter under Night, described Night parameter preferably includes the Night such as backlighting parameters, color parameter parameter.The preset parameter value of the same Night parameter of each application can be identical, also can be different, with user when opening the viewing reading that each application is carried out under Night, watches comfortable being advisable.When each application receives the described broadcast corresponding with opening Night, when respectively respective pattern being switched to Night, the preset parameter value of the Night parameter such as backlighting parameters, color parameter be applied under Night according to each pre-setting regulates described Night parameter, thus reaches user and watch comfortable effect.
The Night method to set up of the terminal that the present embodiment proposes, when judging that described current environment parameter is within the scope of preset environmental parameter, send the broadcast corresponding to opening Night to corresponding application, after each application accordingly receives the described broadcast corresponding with opening Night, then respectively respective pattern is switched to Night, thus avoid the operation steps of Night of user's each application manually opened one by one, improve the simple operation of the Night that each application is set, improve Consumer's Experience.
Further, propose Night method to set up the 6th embodiment of terminal of the present invention based on above-described embodiment, in the present embodiment, the Night method to set up of described terminal, before step S10, also comprises:
Step c, detection Night arranges switch and whether is in opening.
The Night of automatically opening or closing each application accordingly can be realized by above-described embodiment, but sometimes user not only wishes unlatching or the closedown that automatically can control the Night that each is applied accordingly, but also wish unlatching or the closedown that can realize each Night applied accordingly of user's Non-follow control further.Therefore, in order to improve the interactivity of user and smart mobile phone, make user manually can also control each accordingly unlatching of the Night of application or closedown, in the present embodiment, the Night of smart mobile phone arranges interface and is previously provided with a Night and arranges switch control rule icon.User arranges switch control rule icon by clicking this Night, can control to open or close Night and arrange switch.Such as, if this Night current arranges switch control rule icon and to appear dimmed state, also namely current Night arranges switch and is in closed condition, when user click this Night switch control rule icon is set time, this Night arranges switch control rule icon and is shown as black state, and also namely current Night arranges switch and is in opening.When user carries out the operation of brose and reading by smart mobile phone, the Night first detecting smart mobile phone arranges switch and whether is in opening.If the Night of smart mobile phone arranges switch and is in closed condition, then do not carry out opening the operation of Night, directly control each Night of application closedown accordingly of broadcast corresponding to the Night of registered in advance in smart mobile phone.If the Night of smart mobile phone arranges switch and is in opening, then perform the operation of step S10, step S20 and step S30 further, when described current environment parameter is within the scope of preset environmental parameter, controls corresponding application and open Night.Therefore, when user does not need the Night function applying smart mobile phone, can select manual-lock Night that switch is set.When user needs the Night function applying smart mobile phone, manually opened Night arranges switch, then each application accordingly that environmentally parameter controls broadcast corresponding to the Night of registered in advance in smart mobile phone automatically can open or close Night.
The Night method to set up of the terminal that the present embodiment proposes, user can opened manually or close Night switch is set, when user is when carrying out the operation of brose and reading, first detection Night arranges switch and whether is in opening, Night arrange switch be in opening time, and current environment parameter within the scope of preset environmental parameter time, then control corresponding application and open Night; Night arrange switch be in closed condition time, then do not consider that environmental parameter directly controls corresponding application and closes Night, the present embodiment, while the simple operation improving the Night arranging each application, also improves the interactivity of user, further increases Consumer's Experience.
The present invention further provides a kind of Night setting device of terminal, is the high-level schematic functional block diagram of Night setting device first embodiment of terminal of the present invention with reference to Fig. 5, Fig. 5.
In the present embodiment, the Night setting device of described terminal comprises:
Detection module 10, for the current environment parameter of sense terminals;
In the present embodiment, detection module 10 current environmental parameter that is real-time or regularly sense terminals.Such as, detection module 10 detects the light luminance of the current residing environment of smart mobile phone in real time or regularly.
Judge module 20, for judging described current environment parameter whether within the scope of preset environmental parameter;
After getting current environment parameter by detection module 10 detection, the described current environment parameter obtained and the environmental parameter that pre-sets compare by judge module 20, judge that the described current environment parameter of acquisition is whether within the scope of described preset environmental parameter.Such as, whether the light luminance of environment that obtains of judge module 20 multilevel iudge is in preset ambient light brightness range.
Processing module 30, if for described current environment parameter within the scope of preset environmental parameter, then controls respective application and opens Night.
In the present embodiment, the system of smart mobile phone has application by oneself and corresponding to the Night in advance broadcast of third-party application is registered.Particularly, each application can adopt dynamic registration mode or static registration mode to register.Such as, the registration of dynamical fashion is carried out in each application by Context.registerReceiver () function, or in AndroidManifest.xml, carried out the registration of static mode by <receiver>.When the described current environment parameter judging to obtain by judge module 20 is within the scope of described preset environmental parameter, then Night is opened in each application accordingly that processing module 30 controls broadcast corresponding to the Night of registered in advance in smart mobile phone.Such as, if the application of the broadcast that registered in advance Night is corresponding has browser application, reader application and a notepad appli-cation in smart mobile phone, wherein, browser application and notepad appli-cation is current is in Night closed condition, reader application is current is in Night opening.When judge module 20 judges that the described current environment parameter of acquisition is within the scope of described preset environmental parameter, then processing module 30 controls browser application and notepad appli-cation unlatching Night, makes browser application and notepad appli-cation be switched to Night opening from current Night closed condition; Reader application is current has been in Night opening, then control reader application and continue to open Night.Corresponding to the Night all in advance broadcast of application not all in smart mobile phone is registered, when judge module 20 judges that the described current environment parameter of acquisition is within the scope of described preset environmental parameter, for the application of broadcast corresponding to Night unregistered in smart mobile phone, processing module 30 does not process, and Night is opened in the application also namely not controlling broadcast corresponding to unregistered Night.
When judge module 20 judges that the described current environment parameter that obtains is not within the scope of described preset environmental parameter, then each corresponding application that processing module 30 controls broadcast corresponding to the Night of registered in advance in smart mobile phone does not open Night.Such as, above-mentioned for example in, after browser application, reader application and notepad appli-cation open Night, when judge module 20 judges that the described current environment parameter of acquisition is not within the scope of described preset environmental parameter, then processing module 30 controls browser application, reader application and notepad appli-cation and closes Night.
The Night setting device of the terminal that the present embodiment provides, current environment parameter is detected by detection module 10, judge module 20 judges described current environment parameter whether within the scope of preset environmental parameter, if described current environment parameter is within the scope of preset environmental parameter, then processing module 30 controls each Night of application unlatching accordingly that have registered broadcast corresponding to Night, therefore the operation steps of Night of user's each application manually opened is one by one avoided, improve the simple operation of the Night that each application is set, improve Consumer's Experience.
Further, propose Night setting device second embodiment of terminal of the present invention based on the first embodiment, in the present embodiment, described environmental parameter comprises time parameter, described judge module 20 for:
Judge current time whether within the preset time period.
In the present embodiment, described environmental parameter comprises time parameter.Smart mobile phone pre-sets the time period scope of opening Night.Particularly, by pre-setting when smart mobile phone dispatches from the factory, or arrange the time period scope of opening Night by user at the interface oneself that arranges of Night, such as arranging the time period scope of opening Night is 6 points between 18 to morning of night.If judge module 20 judges that current time is within the described preset time period, then Night is opened in each application accordingly that processing module 30 controls broadcast corresponding to the Night of registered in advance in smart mobile phone.If judge module 20 judges current time not within the preset time period, then each corresponding application that processing module 30 controls broadcast corresponding to the Night of registered in advance in smart mobile phone does not open Night.
The Night setting device of the terminal that the present embodiment proposes, described environmental parameter comprises time parameter, judge module 20 judges current time whether within the preset time period, if current time is within the preset time period, Night is opened in each application accordingly that then processing module 30 controls broadcast corresponding to the Night of registered in advance in smart mobile phone, avoid the operation steps of Night of user's each application manually opened one by one, improve the simple operation of the Night that each application is set, improve Consumer's Experience.
Further, propose Night setting device the 3rd embodiment of terminal of the present invention based on the first embodiment, in the present embodiment, described environmental parameter comprises the light luminance of environment, described judge module 20 also for:
Judge that whether the light luminance of current environment is lower than preset ambient light luminance threshold.
In the present embodiment, described environmental parameter comprises the light luminance of environment.Light sensor is previously provided with in smart mobile phone, by this light sensor in real time or the light luminance of timing acquiring environment, particularly, the light intensity signal of light sensor build environment, the light intensity signal of the environment generated by detection module 10 detected light dependent sensor, thus get the light luminance of environment.
Further, in the present embodiment, smart mobile phone pre-sets the ambient light luminance threshold opening Night.Particularly, by pre-setting when smart mobile phone dispatches from the factory, or by user, the ambient light luminance threshold opening Night is set at the interface oneself that arranges of Night.After getting the light luminance of current environment by detection module 10 detection, judge module 20 judges that whether the light luminance of current environment is lower than described preset ambient light luminance threshold.If the light luminance of current environment is lower than described preset ambient light luminance threshold, then Night is opened in each application accordingly that processing module 30 controls broadcast corresponding to the Night of registered in advance in smart mobile phone.If the light luminance of current environment is higher than described preset ambient light luminance threshold, then each corresponding application that processing module 30 controls broadcast corresponding to the Night of registered in advance in smart mobile phone does not open Night.
The Night setting device of the terminal that the present embodiment proposes, described environmental parameter comprises the light luminance of environment, detection module 10 detects the light luminance of current environment, judge module 20 judges that whether the light luminance of current environment is lower than preset ambient light luminance threshold, if the light luminance of current environment is lower than preset ambient light luminance threshold, Night is opened in each application accordingly that then processing module 30 controls broadcast corresponding to the Night of registered in advance in smart mobile phone, avoid the operation steps of Night of user's each application manually opened one by one, improve the simple operation of the Night that each application is set, improve Consumer's Experience.
Further, Night setting device the 4th embodiment of terminal of the present invention is proposed based on above-described embodiment, in the present embodiment, described detection module 10 for:
When detecting described respective application and being in opening, the current environment parameter of sense terminals.
The Night of automatically opening or closing each application accordingly can be realized by above-described embodiment, such as, current time is within the preset time period, or when the light luminance of current environment is lower than preset ambient light luminance threshold, then processing module 30 controls the corresponding application unlatching Night that have registered broadcast corresponding to Night; Current time outside preset time period scope, or the light luminance of current environment higher than preset ambient light luminance threshold time, then Night is closed in the corresponding application that processing module 30 controls have registered broadcast corresponding to Night.Therefore, even if when user does not start corresponding application, processing module 30 also controls described respective application according to the current environment parameter detected and opens or close Night.But when in fact if user is not activated described respective application, then unnecessary going controls described each respective application unlatching or closes Night, particularly change frequently in situation in environmental parameter, each respective application described can be caused to open continually or close Night, thus cause system resource waste.In order to improve the experience of user further, in the present embodiment, only when corresponding application is in opening, open Cai go to control each respective application described according to current environment parameter or close Night.Particularly, whether first detection module 10 has been detected in smart mobile phone registered in advance exists application in each accordingly application of broadcast corresponding to Night and is in opening, if there is not corresponding application to be in opening, also when namely each corresponding application is all in closed condition, then do not process.If detection module 10 detects described respective application when being in opening, such as, if when the browser application that detection module 10 detects broadcast corresponding to the Night of registered in advance in smart mobile phone is in opening, detection module 10 detects the current environment parameter of smart mobile phone further.If the current environment parameter detected is within the scope of preset environmental parameter, then Night is opened in each application accordingly that processing module 30 controls broadcast corresponding to the Night of registered in advance in smart mobile phone.Otherwise each corresponding application that processing module 30 controls broadcast corresponding to the Night of registered in advance in smart mobile phone does not open Night.
Preferably, when detection module 10 detected in smart mobile phone registered in advance in each accordingly application of broadcast corresponding to Night exist application be in opening time, judge whether described application is in front stage operation state further, also namely judge that user is current and whether using described application correspondingly to watch browse operation.If when detection module 10 judges that described application is in background operation state, then do not process.If when detection module 10 judges that described application is in front stage operation state, then detect the current environment parameter of smart mobile phone further.If the current environment parameter detected is within the scope of preset environmental parameter, then Night is opened in each application accordingly that processing module 30 controls broadcast corresponding to the Night of registered in advance in smart mobile phone.Otherwise each corresponding application that processing module 30 controls broadcast corresponding to the Night of registered in advance in smart mobile phone does not open Night.
The Night setting device of the terminal that the present embodiment proposes, when the respective application that detection module 10 detects broadcast corresponding to the Night of registered in advance in smart mobile phone is in opening, each application accordingly of processing module 30 broadcast that Night is corresponding according to registered in advance in the described current environment state modulator smart mobile phone detected is opened or closes Night; Detection module 10 detect corresponding application be in closed condition time, then do not process.This embodiment avoids the operation steps of Night of user's each application manually opened one by one, improve the simple operation of the Night that each application is set, improve Consumer's Experience.Meanwhile, also avoid when user does not start corresponding application, according to current environment state modulator, state corresponding application open or close Night, cause system resource waste.
Further, Night setting device the 5th embodiment of terminal of the present invention is proposed based on above-described embodiment, in the present embodiment, described processing module 30 for:
Send the broadcast corresponding to opening Night to corresponding application.
On the basis of above-described embodiment, when judge module 20 judges that described current environment parameter is within the scope of preset environmental parameter, such as, current time is within the preset time period, or when the light luminance of current environment is lower than preset ambient light luminance threshold, processing module 30 controls corresponding application and opens Night.Particularly, in the present embodiment, processing module 30 sends and opens extremely corresponding each of broadcast corresponding to Night and apply.Such as, processing module 30 sends the broadcast corresponding to opening Night to each the corresponding application that have registered broadcast corresponding to Night by sendBroadcast is unified.After each application accordingly receives the described broadcast corresponding with opening Night, then the pattern of application is switched to Night.Such as, each application by after receiving the described broadcast corresponding with unlatching Night in the onRecive function of respective Broadcast, and respective pattern is then switched to Night by each application respectively.Particularly, pre-set the preset parameter value that each is applied in the Night parameter under Night, described Night parameter preferably includes the Night such as backlighting parameters, color parameter parameter.The preset parameter value of the same Night parameter of each application can be identical, also can be different, with user when opening the viewing reading that each application is carried out under Night, watches comfortable being advisable.When each application accordingly receives broadcast corresponding with opening Night described in processing module 30 transmission, when respectively respective pattern being switched to Night, the preset parameter value of the Night parameter such as backlighting parameters, color parameter be applied under Night according to each pre-setting regulates described Night parameter, thus reaches user and watch comfortable effect.
The Night setting device of the terminal that the present embodiment proposes, when judge module 20 judges that described current environment parameter is within the scope of preset environmental parameter, processing module 30 sends the broadcast corresponding to opening Night to corresponding application, after each application accordingly receives the described broadcast corresponding with opening Night, then respectively respective pattern is switched to Night, thus avoid the operation steps of Night of user's each application manually opened one by one, improve the simple operation of the Night that each application is set, improve Consumer's Experience.
Further, Night setting device the 6th embodiment of terminal of the present invention is proposed based on above-described embodiment, in the present embodiment, described detection module 10 also for:
Detection Night arranges switch and whether is in opening.
The Night of automatically opening or closing each application accordingly can be realized by above-described embodiment, but sometimes user not only wishes unlatching or the closedown that automatically can control the Night that each is applied accordingly, but also wish unlatching or the closedown that can realize each Night applied accordingly of user's Non-follow control further.Therefore, in order to improve the interactivity of user and smart mobile phone, make user manually can also control each accordingly unlatching of the Night of application or closedown, in the present embodiment, the Night of smart mobile phone arranges interface and is previously provided with a Night and arranges switch control rule icon.User arranges switch control rule icon by clicking this Night, can control to open or close Night and arrange switch.Such as, if this Night current arranges switch control rule icon and to appear dimmed state, also namely current Night arranges switch and is in closed condition, when user click this Night switch control rule icon is set time, this Night arranges switch control rule icon and is shown as black state, and also namely current Night arranges switch and is in opening.When user carries out the operation of brose and reading by smart mobile phone, the Night that first detection module 10 detects smart mobile phone arranges switch and whether is in opening.If the Night that detection module 10 detects smart mobile phone arranges switch and is in closed condition, then Night is closed in each application accordingly that processing module 30 directly controls broadcast corresponding to the Night of registered in advance in smart mobile phone.If the Night that detection module 10 detects smart mobile phone arranges switch and is in opening, then when judge module 20 judges that described current environment parameter is within the scope of preset environmental parameter, processing module 30 controls corresponding application and opens Night.Therefore, when user does not need the Night function applying smart mobile phone, can select manual-lock Night that switch is set.When user needs the Night function applying smart mobile phone, manually opened Night arranges switch, then each application accordingly that environmentally parameter controls broadcast corresponding to the Night of registered in advance in smart mobile phone automatically can open or close Night.
The Night setting device of the terminal that the present embodiment proposes, user can opened manually or close Night switch is set, when user is when carrying out the operation of brose and reading, detection module 10 detects Night and arranges switch and whether be in opening, Night arrange switch be in opening time, and judge module 20 is when judging that current environment parameter is within the scope of preset environmental parameter, processing module 30 controls corresponding application and opens Night; Night arrange switch be in closed condition time, processing module 30 does not consider that environmental parameter directly controls corresponding application and closes Night, the present embodiment is while the simple operation improving the Night arranging each application, also improve the interactivity of user, further increase Consumer's Experience.
Through the above description of the embodiments, it will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment) or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, device (equipment) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a Night method to set up for terminal, is characterized in that, the Night method to set up of described terminal comprises step:
The current environment parameter of sense terminals;
Judge described current environment parameter whether within the scope of preset environmental parameter;
If so, then control respective application and open Night.
2. the Night method to set up of terminal as claimed in claim 1, it is characterized in that, described environmental parameter comprises the light luminance of environment, describedly judges that the step of described current environment parameter whether within the scope of preset environmental parameter comprises:
Judge that whether the light luminance of current environment is lower than preset ambient light luminance threshold.
3. the Night method to set up of terminal as claimed in claim 1, it is characterized in that, described environmental parameter comprises time parameter, describedly judges that the step of described current environment parameter whether within the scope of preset environmental parameter comprises:
Judge current time whether within the preset time period.
4. the Night method to set up of terminal as claimed in claim 1, is characterized in that, the step that described control respective application opens Night comprises:
Send the broadcast corresponding to opening Night to corresponding application.
5. the Night method to set up of the terminal according to any one of claim 1-4, is characterized in that, before the step of the current environment parameter of described sense terminals, also comprises:
Detection Night arranges switch and whether is in opening.
6. a Night setting device for terminal, is characterized in that, the Night setting device of described terminal comprises:
Detection module, for the current environment parameter of sense terminals;
Judge module, for judging described current environment parameter whether within the scope of preset environmental parameter;
Processing module, if for described current environment parameter within the scope of preset environmental parameter, then controls respective application and opens Night.
7. the Night setting device of terminal as claimed in claim 6, it is characterized in that, described environmental parameter comprises the light luminance of environment, and described judge module is used for:
Judge that whether the light luminance of current environment is lower than preset ambient light luminance threshold.
8. the Night setting device of terminal as claimed in claim 6, it is characterized in that, described environmental parameter comprises time parameter, and described judge module is used for:
Judge current time whether within the preset time period.
9. the Night setting device of terminal as claimed in claim 6, it is characterized in that, described processing module is used for:
Send the broadcast corresponding to opening Night to corresponding application.
10. the Night setting device of the terminal according to any one of claim 6-9, is characterized in that, described detection module also for:
Detection Night arranges switch and whether is in opening.
CN201510401978.3A 2015-07-09 2015-07-09 Method and apparatus for setting night mode of terminal Pending CN105094323A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510401978.3A CN105094323A (en) 2015-07-09 2015-07-09 Method and apparatus for setting night mode of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510401978.3A CN105094323A (en) 2015-07-09 2015-07-09 Method and apparatus for setting night mode of terminal

Publications (1)

Publication Number Publication Date
CN105094323A true CN105094323A (en) 2015-11-25

Family

ID=54574957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510401978.3A Pending CN105094323A (en) 2015-07-09 2015-07-09 Method and apparatus for setting night mode of terminal

Country Status (1)

Country Link
CN (1) CN105094323A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912238A (en) * 2016-04-12 2016-08-31 上海斐讯数据通信技术有限公司 Method and device for automatic adjustment of backlight brightness of application program
CN106095288A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of based on the treating method and apparatus waking up lock up
CN106484396A (en) * 2016-09-18 2017-03-08 北京京东尚科信息技术有限公司 Night changing method, device and terminal unit
CN106713599A (en) * 2015-07-28 2017-05-24 中兴通讯股份有限公司 Terminal lighting application control method, device and terminal
CN109600518A (en) * 2019-01-30 2019-04-09 努比亚技术有限公司 Application method, mobile terminal, the readable storage medium storing program for executing of eyeshield display pattern

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2922326Y (en) * 2006-05-30 2007-07-11 康佳集团股份有限公司 Intelligent TV set
CN102541495A (en) * 2010-12-15 2012-07-04 阿尔派株式会社 Electronic apparatus
CN103135895A (en) * 2011-11-23 2013-06-05 腾讯科技(深圳)有限公司 Method of controlling display mode and device
CN103258038A (en) * 2013-05-17 2013-08-21 广州市动景计算机科技有限公司 Method and device for synchronizing display modes between browser and webpage
CN103310763A (en) * 2013-05-30 2013-09-18 北京小米科技有限责任公司 Method for switching display state of mobile equipment, device and equipment
CN103327194A (en) * 2013-06-18 2013-09-25 广东欧珀移动通信有限公司 Mode switching method and device for browser skin brightness
CN103793443A (en) * 2012-11-05 2014-05-14 腾讯科技(深圳)有限公司 Application control method and device
CN104219372A (en) * 2013-05-31 2014-12-17 腾讯科技(深圳)有限公司 A method and an apparatus for adjusting backlight brightness of a mobile terminal
CN104252327A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Reading mode start method and device
CN104580657A (en) * 2013-10-11 2015-04-29 中兴通讯股份有限公司 A sensor user self-configuring method, and device and mobile terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2922326Y (en) * 2006-05-30 2007-07-11 康佳集团股份有限公司 Intelligent TV set
CN102541495A (en) * 2010-12-15 2012-07-04 阿尔派株式会社 Electronic apparatus
CN103135895A (en) * 2011-11-23 2013-06-05 腾讯科技(深圳)有限公司 Method of controlling display mode and device
CN103793443A (en) * 2012-11-05 2014-05-14 腾讯科技(深圳)有限公司 Application control method and device
CN103258038A (en) * 2013-05-17 2013-08-21 广州市动景计算机科技有限公司 Method and device for synchronizing display modes between browser and webpage
CN103310763A (en) * 2013-05-30 2013-09-18 北京小米科技有限责任公司 Method for switching display state of mobile equipment, device and equipment
CN104219372A (en) * 2013-05-31 2014-12-17 腾讯科技(深圳)有限公司 A method and an apparatus for adjusting backlight brightness of a mobile terminal
CN103327194A (en) * 2013-06-18 2013-09-25 广东欧珀移动通信有限公司 Mode switching method and device for browser skin brightness
CN104252327A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Reading mode start method and device
CN104580657A (en) * 2013-10-11 2015-04-29 中兴通讯股份有限公司 A sensor user self-configuring method, and device and mobile terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713599A (en) * 2015-07-28 2017-05-24 中兴通讯股份有限公司 Terminal lighting application control method, device and terminal
CN105912238A (en) * 2016-04-12 2016-08-31 上海斐讯数据通信技术有限公司 Method and device for automatic adjustment of backlight brightness of application program
CN106095288A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of based on the treating method and apparatus waking up lock up
CN106484396A (en) * 2016-09-18 2017-03-08 北京京东尚科信息技术有限公司 Night changing method, device and terminal unit
CN106484396B (en) * 2016-09-18 2020-03-03 北京京东尚科信息技术有限公司 Night mode switching method and device and terminal equipment
CN109600518A (en) * 2019-01-30 2019-04-09 努比亚技术有限公司 Application method, mobile terminal, the readable storage medium storing program for executing of eyeshield display pattern

Similar Documents

Publication Publication Date Title
US11431784B2 (en) File transfer display control method and apparatus, and corresponding terminal
US20150029089A1 (en) Display apparatus and method for providing personalized service thereof
CN105094323A (en) Method and apparatus for setting night mode of terminal
CN109710139B (en) Page processing method, device, terminal and storage medium
WO2015154670A1 (en) Method and apparatus for invoking application programming interface
CN106484228B (en) Double screen switches display methods and mobile terminal
WO2021083040A1 (en) Message viewing method and terminal
CN110750189B (en) Icon display method and device
JP2022501739A (en) Stylus pen detection method, system and related equipment
CN107957841B (en) Rolling screen capture method and device
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN113220176A (en) Display method and device based on widget, electronic equipment and readable storage medium
CN113515219A (en) Setting method, setting device, electronic equipment and storage medium
CN110084009B (en) Digital unlocking method and device, storage medium and mobile terminal
WO2022001279A1 (en) Cross-device desktop management method, first electronic device, and second electronic device
CN116431044A (en) Method and device for starting application program and terminal equipment
WO2015014138A1 (en) Method, device, and equipment for displaying display frame
CN109189515A (en) A kind of application starting method, terminal and computer readable storage medium
CN110336918B (en) Bright screen control method and device, storage medium and mobile terminal
CN111368238A (en) Status bar adjusting method and device, mobile terminal and storage medium
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN108920086B (en) Split screen quitting method and device, storage medium and electronic equipment
CN116594616A (en) Component configuration method and device and computer readable storage medium
CN110955436A (en) Application program installation method and electronic equipment
CN105808038B (en) A kind of information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20151125