Detailed description of the invention
For making the purpose of the application, technical scheme and advantage clearer, specifically real below in conjunction with the application
Execute example and technical scheme is clearly and completely described by corresponding accompanying drawing.Obviously, described
Embodiment is only some embodiments of the present application rather than whole embodiments.Based on the enforcement in the application
Example, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise
Example, broadly falls into the scope of the application protection.
The control method of the page brightness that Fig. 1 provides for the embodiment of the present application, specifically includes following steps:
S101: determine the screen intensity parameter arranged in advance for current page.
In the embodiment of the present application, current page is to go out during application program (Application, App) operation
A page in existing some pages.
Screen intensity parameter can be defined as some different brackets from high in the end.Such as, screen intensity ginseng
Number may be defined as Three Estate, the most high, medium and low.When screen intensity parameter is high, this screen
Curtain brightness adjustment is the 75% of screen overall brightness, and when screen intensity parameter is middle, this screen intensity adjusts
For the 50% of screen overall brightness, when screen intensity parameter is low, it is overall that this screen intensity is adjusted to screen
The 25% of brightness.More than being merely illustrative screen intensity parameter, screen intensity parameter is also to be defined as
More grades, each grade can also a corresponding brightness range.
It should be noted that the different pages occurred when running for application A pp, application program is opened
Originator can pre-set screen intensity parameter.Preferably, occur when running for application A pp
The different types of page, the developer of application program can preset different screen intensity parameters.Application
The some pages occurred when program App is run can be classified by the difference of page scene.Such as,
When one game class application program runs, the page, game running page are set including login page, background function
The type page such as face are at the interior some different types of page.For login page, background function arrange the page,
The page of game running page these three type, application developer pre-sets screen intensity ginseng respectively
Number.Therefore, the screen intensity parameter arranged for current page in advance can be application A pp acquiescence
Screen intensity parameter.
It addition, the screen intensity parameter arranged for current page in advance, it is also possible to further by user
Amendment determines.
Fig. 2 is the acquisition of the screen intensity parameter arranged for current page in advance in the embodiment of the present application
Journey schematic diagram, specifically includes following steps:
S201: receive the screen intensity parameter that user inputs for current page, and be saved in this locality.
When user uses its account when logging in or use application A pp, find and be unaccustomed in advance
For the brightness corresponding to the screen intensity parameter (default value that application A pp sets) of page setup
After.Application A pp backstage provide screen intensity parameter modification interface, user can according to oneself
Need, the screen intensity parameter corresponding to the various types of page of self-defined amendment or each page.Above-mentioned
Amended screen intensity parameter is saved in this locality, is i.e. stored in application A pp local file
Under the sub-folder about the setting of screen intensity parameter in folder.
S202: the screen intensity parameter of the described current page preserved is uploaded onto the server.
In the embodiment of the present application, the screen intensity parameter of the amended current page of User Defined not only by
It is stored in this locality, is also uploaded to for the server end corresponding to the control device of page brightness.Need
Bright, when the screen intensity parameter of the current page of preservation is user login application program App, user
Screen intensity parameter corresponding to account used.
Fig. 3 is that in the embodiment of the present application, step S101 determines the screen intensity arranged in advance for current page
The process schematic of parameter, specifically includes:
S1011: search the screen intensity parameter of the current page that this locality preserves;
Search this locality and save user previously with setting during its account login application program App
The screen intensity parameter of current page.
S1012: when not finding the screen intensity parameter of current page of local preservation, from described service
Device obtains the screen intensity parameter of described current page.
When the screen intensity parameter of the current page corresponding to the user account number not finding local preservation, then
The screen intensity parameter of described current page is obtained from described server.
When user is in its use application A pp on other mobile terminal, or user is at mobile terminal
When reinstalling application A pp after upper unloading, user uses the account of its earlier registration to log in application journey
Sequence client, then cannot find the screen intensity parameter of current page corresponding to user account in this locality.But
It is, the screen intensity parameter that user can be stored on server according to its account active obtaining user, then
Pass application A pp client back.So, its account is used to reuse application A pp as user
Time, it is no need for being once again set up the screen intensity parameter that screen intensity parameter can be obtained by originally just setting,
Achieve the automatic adjustment of page brightness, facilitate user.
S102: according to described screen intensity parameter, is adjusted to described screen intensity parameter institute right by screen intensity
The brightness answered.
As shown in Figure 4, in the embodiment of the present application, according to described screen intensity parameter, screen intensity is adjusted
Whole brightness corresponding to described screen intensity parameter, specifically includes:
Brightness applications Program Interfaces (the Application Programming of S1022: call operation system
Interface, API);
S1023: by described brightness API, is adjusted to screen intensity corresponding to described screen intensity parameter
Brightness.
By described brightness API, screen intensity is adjusted to the brightness corresponding to described screen intensity parameter it
Before, described method also includes:
S1021: close the screen intensity automatic regulating function of described operating system.
To sum up, after step S101 and S102, the intelligent adjustment of page brightness can be realized.
The control method of the page brightness provided for the embodiment of the present application above, based on same thinking, this Shen
Please the control device of page brightness that provides of embodiment, as shown in Figure 5.
The structural representation controlling device of the page brightness that Fig. 5 provides for the embodiment of the present application, specifically wraps
Include:
Determine module 302, for determining the screen intensity parameter arranged in advance for current page;
Adjusting module 303, for according to described screen intensity parameter, is adjusted to described screen by screen intensity
Brightness corresponding to luminance parameter.
Described device also includes setting module 301, bright for the screen obtaining arranging for current page in advance
Degree parameter.
Described setting module 301, specifically for:
Receive the screen intensity parameter that user inputs for current page, and be saved in this locality;
The screen intensity parameter of the described current page preserved is uploaded onto the server.
Described determine module 302, specifically include:
Search unit 3021, for searching the screen intensity parameter of the current page of local preservation;
Acquiring unit 3022, is used for when not finding the screen intensity parameter of current page of local preservation,
The screen intensity parameter of described current page is obtained from described server.
Described adjusting module 303, specifically includes:
Call unit 3032, for the brightness applications Program Interfaces API of call operation system;
Adjustment unit 3033, for by described brightness API, is adjusted to described screen intensity by screen intensity
Brightness corresponding to parameter.
Described adjusting module 303, also includes:
Closing unit 3031, for closing the screen intensity automatic regulating function of described operating system.
Described current page is a page in the some pages occurred during the operation of application A pp.
The embodiment of the present application provides control method and the device of a kind of page brightness, by setting the screen of the page
Luminance parameter, is automatically adjusted the screen intensity of the corresponding page, decreases the wave that mobile terminal electricity is unnecessary
Taking, power savings is good.It addition, the regulation of page brightness need not manually adjust, facilitate user.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knot
The form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or more
Computer-usable storage medium containing computer usable program code (include but not limited to disk memory,
CD-ROM, optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present invention
The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and
/ or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding
The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating
The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one
The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set
In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory
Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart
The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes
Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices
Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one
The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
In a typical configuration, calculating equipment includes one or more processor (CPU), input/defeated
Outgoing interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
(RAM) and/or the form such as Nonvolatile memory, such as read only memory (ROM) or flash memory (flash
RAM).Internal memory is the example of computer-readable medium.
Computer-readable medium includes that removable media permanent and non-permanent, removable and non-can be by appointing
Where method or technology realize information storage.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its
The random access memory (RAM) of his type, read only memory (ROM), electrically erasable are read-only
Memorizer (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory
(CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be calculated
The information that equipment accesses.According to defining herein, computer-readable medium does not include temporary computer-readable matchmaker
Body (transitory media), such as data signal and the carrier wave of modulation.
Also, it should be noted term " includes ", " comprising " or its any other variant are intended to non-
Comprising of exclusiveness, so that include that the process of a series of key element, method, commodity or equipment not only wrap
Include those key elements, but also include other key elements being not expressly set out, or also include for this process,
The key element that method, commodity or equipment are intrinsic.In the case of there is no more restriction, statement " include
One ... " key element that limits, it is not excluded that including the process of described key element, method, commodity or setting
Other identical element is there is also in Bei.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, the application can use complete hardware embodiment, complete software implementation or combine software and
The form of the embodiment of hardware aspect.And, the application can use and wherein include calculating one or more
The computer-usable storage medium of machine usable program code (include but not limited to disk memory, CD-ROM,
Optical memory etc.) form of the upper computer program implemented.
The foregoing is only embodiments herein, be not limited to the application.For this area skill
For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle
Any modification, equivalent substitution and improvement etc. made, within the scope of should be included in claims hereof.