Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, in accompanying drawing, only show part related to the present invention but not full content.
Fig. 1 shows the first embodiment of the present invention.
A kind of schematic flow sheet of controlling the method for screen locking time that Fig. 1 provides for first embodiment of the invention.The method is illustrated to be applied in the terminal with screen locking function, and these terminals include but not limited to smart mobile phone, panel computer, personal digital assistant, pocket computer on knee etc.Referring to Fig. 1, described method comprises:
Step S101, detect the software foremost at terminal operating.
In the present embodiment, can be by a poll process of registration, every Preset Time, detect once the software foremost at terminal operating, also can when opening foremost software, user detect this software.While planting detection mode before adopting, the large I of Preset Time is set automatically by system, and the interval time that also can user be set by man-machine interaction is as Preset Time.In order more to approach real-time sense terminals screen, whether have the software moving, and to system, do not make in cumbrous situation, preferred, by system, automatically setting Preset Time is 2 seconds.Be understandable that, Preset Time can be adjusted according to user's user demand, such as being set to 3 seconds, 4 seconds or 5 seconds.
Step S102, obtain this software screen locking time of software foremost.
When the software foremost of operation being detected in terminal, obtain the sign of software foremost, according to this sign, obtain the software screen locking time of software foremost.Wherein, software is by unique a software that active user used in all softwares of terminal screen operation foremost.For example, terminal screen detected and moving text edit software, instant communication software, browser software, wherein text edit software is used by terminal user, and other two softwares are all in minimized state, and software foremost is now text edit software.
In the present embodiment, obtaining the step of the software screen locking time of software foremost can further comprise: first from preset corresponding relation list, search the corresponding scene of software foremost, obtain again the corresponding software screen locking time of described corresponding scene as software screen locking time of software foremost, wherein preset corresponding relation list records at least one scene and the software identification corresponding with each scene in described at least one scene; Or
Directly from preset software screen locking time list, search the screen locking time of software foremost, wherein software screen locking time list records at least one software identification and the software screen locking time corresponding with every software identification in described at least one software identification.
Step S103, the current screen locking time of obtaining terminal.
The current screen locking time of step S104, comparison terminal and foremost the software screen locking time of software.
If the current screen locking time of step S105 terminal and the software screen locking asynchronism(-nization) of software foremost, be adjusted into the software screen locking time of software foremost the current screen locking time of terminal.
Suitable in order to realize current screen locking time and the current software foremost of terminal, getting the current screen locking time of terminal and foremost after software screen locking time of software, two obtained times are compared, judge that whether the current screen locking time of terminal is consistent with the software screen locking time of software foremost, if not, be adjusted into the software screen locking time of software foremost the current screen locking time of terminal.
Certainly those of ordinary skill in the art should understand, when the software screen locking time phase difference of the current screen locking time of terminal and software foremost being detected when little, without the current time to terminal again, adjust, and the screen locking time of switching terminal can impact the stability of system frequently, one of the present embodiment preferred embodiment in, when the current screen locking time of judgement terminal and the software screen locking asynchronism(-nization) of software foremost, whether the current screen locking time that also can further judge terminal is less than the software screen locking time of software foremost, and be less than default first threshold with the difference of the software screen locking time of software foremost, if, just the current screen locking time of terminal is adjusted into the software screen locking time of software foremost, or
When the current screen locking time of judgement terminal and the software screen locking asynchronism(-nization) of software foremost, whether the current screen locking time that also can further judge terminal is greater than the software screen locking time of software foremost, and be greater than default Second Threshold with the difference of the software screen locking time of software foremost, if so, just the current screen locking time of terminal is adjusted into the software screen locking time of software foremost.
For example, the current screen locking time of the terminal of obtaining is 5 seconds, the software screen locking time of software is 20 seconds foremost, default first threshold is-5, Second Threshold is+5, the current screen locking time (5 seconds) that judges terminal is less than the software screen locking time of software (20 seconds) foremost, and is less than first threshold-5 with difference-15 of the software screen locking time of software (20 seconds) foremost, now the current screen locking time of terminal is adjusted into 20 seconds.
Consider that terminal user is sometimes because of maloperation switching terminal screen software foremost frequently, or open a terminal screen foremost after software within very short time (for example 2 seconds) just close, now without the screen locking time to terminal, adjust.One of the present embodiment preferred embodiment in, whether terminal, when execution step S101, also comprises: detect the software foremost of terminal operating in predetermined duration length and all belong to a software.If so, perform step S102.
The technical scheme that first embodiment of the invention provides, during software screen locking asynchronism(-nization) by the current screen locking time of comparison terminal and software foremost, the current screen locking time of terminal is adjusted into the software screen locking time, thereby make terminal to switch automatically the current screen locking time according to software foremost, overcome manual switchover screen locking time and then expend the drawback of more terminal battery electricity quantity frequently because of user.
Fig. 2 shows the second embodiment of the present invention.
A kind of schematic flow sheet of controlling the method for screen locking time that Fig. 2 provides for second embodiment of the invention.The method is illustrated to be applied in the terminal with screen locking function, and these terminals include but not limited to smart mobile phone, panel computer, personal digital assistant, pocket computer on knee etc.Referring to Fig. 2, described method comprises:
Step S201, the software foremost of operation in terminal, whether detected.
In the present embodiment, can be by a poll process of registration, every Preset Time, detect once the software foremost at terminal operating.When the software foremost of operation being detected in terminal, execution step S202, otherwise execution step S204.
Step S202, search in preset corresponding relation list, whether there is the corresponding scene of software foremost.
In the present embodiment, software is by unique a software that active user used in all softwares of terminal screen operation foremost.Preset corresponding relation list records at least one scene and the software identification corresponding with each scene in described at least one scene.Wherein, software identification can be the MD5(Message-Digest5 of software path, dbase or software, informative abstract 5) various forms such as value grade.For example, following table is the preset a kind of corresponding relation list of terminal:
Preset corresponding relation list can acquire from server, also can be by a personal-machine interactive interface is provided, and the dependent instruction that reception user inputs on this interface generates.One of the present embodiment preferred embodiment in, periodically from server, obtain scene software matrix, according to scene software matrix, upgrade preset corresponding relation list.This renewal process can adopt comprehensive local preset corresponding relation list mode that covers, and also preset corresponding relation list and the up-to-date scene software matrix obtaining in this locality can be compared, and only revises the list item mode of changing unit.
In terminal, detect after the software foremost of operation, first obtain the software identification of software foremost, then search the corresponding scene that whether has obtained software identification in preset corresponding relation list, if, execution step S203, otherwise execution step S204.It should be noted that, the software identification of the software foremost that the every software identification in preset corresponding relation list and terminal are obtained should be unified in form mutually.For example, when MD5 value that every software identification of preset corresponding relation list records is each software, the software identification of the software foremost that terminal is obtained also should be the MD5 value of this software.
Step S203, obtain the corresponding software screen locking time of described corresponding scene as software screen locking time of software foremost.
When the software foremost of operation detected in terminal, and search while there is the corresponding scene of obtained software identification in preset corresponding relation list, obtain the corresponding software screen locking time of described corresponding scene, execution step S205.
Step S204, obtain acquiescence the screen locking time as software screen locking time of software foremost.
When the software foremost of operation not detected in terminal or searching while whether there is the corresponding scene of obtained software identification in preset corresponding relation list, the screen locking time of directly obtaining acquiescence, as terminal software screen locking time of software foremost, is continued execution step S205.
Step S205, the current screen locking time of obtaining terminal.
The current screen locking time of step S206, comparison terminal and foremost the software screen locking time of software;
If the current screen locking time of step S207 terminal and the foremost absolute value of the difference of the software screen locking time of software are greater than default threshold value, the current screen locking time is adjusted into the software screen locking time.
The technical scheme that second embodiment of the invention provides, according to default corresponding relation list, search the corresponding scene of software foremost, obtain the corresponding software screen locking time of this scene, when the absolute value of the judgement current screen locking time of terminal and the difference of software screen locking time is greater than default threshold value, the current screen locking time of terminal is adjusted into the software screen locking time, thereby make the terminal can be according to the corresponding scene of software foremost from the moving current screen locking of the switching time, overcome manual switchover screen locking time and then expend the drawback of more terminal battery electricity quantity frequently because of user, and avoided switching frequently the impact of screen locking time on system stability, by the scene software matrix obtaining from server, upgrade default corresponding relation list, can under more scenes, regulate the screen locking time of terminal, promote user and experience.
Fig. 3 shows the third embodiment of the present invention.
A kind of structural representation of controlling the device of screen locking time that Fig. 3 provides for third embodiment of the invention.Referring to Fig. 3, described device comprises:
Software detection module 301, for detection of the software foremost at terminal operating;
Software screen locking time-obtaining module 302, for obtaining this software screen locking time of software foremost;
Current screen locking time-obtaining module 303, for obtaining the current screen locking time of terminal;
Screen locking time comparison module 304, for the current screen locking time of more described terminal and the software screen locking time of described software foremost;
Screen locking time regulating module 305, for when described current screen locking time and the described software screen locking asynchronism(-nization), is adjusted into the described software screen locking time by the described current screen locking time.
In the present embodiment, software detection module 301 can be by a poll process of registration, every Preset Time, detects once the software foremost at terminal operating, also can when user opens foremost software, to this software, detect.While planting detection mode before adopting, the large I of Preset Time is set automatically by software detection module 301, and the interval time that also can user be set by man-machine interaction is as Preset Time.In order more to approach real-time sense terminals screen, whether have the software moving, and to system, do not make in cumbrous situation, preferred, by software detection module 301, automatically setting Preset Time is 2 seconds.Be understandable that, Preset Time can be adjusted according to user's user demand, such as being set to 3 seconds, 4 seconds or 5 seconds.
When software detection module 301 is when terminal detects the software foremost of operation, software screen locking time-obtaining module 302 is obtained the sign of software foremost, according to this sign, obtains the software screen locking time of software foremost.Wherein, software is by unique a software that active user used in all softwares of terminal screen operation foremost.
In the present embodiment, software screen locking time-obtaining module 302 the software screen locking of obtaining software foremost during the time specifically for: first from preset corresponding relation list, search the corresponding scene of software foremost, obtain again the corresponding software screen locking time of described corresponding scene as software screen locking time of software foremost, wherein preset corresponding relation list records at least one scene and the software identification corresponding with each scene in described at least one scene; Or
Directly from preset software screen locking time list, search the screen locking time of software foremost, wherein software screen locking time list records at least one software identification and the software screen locking time corresponding with every software identification in described at least one software identification.
Suitable in order to realize current screen locking time and the current software foremost of terminal, after current screen locking time-obtaining module 303 gets the software screen locking time that current screen locking time of terminal and software screen locking time-obtaining module 302 get software foremost, screen locking time comparison module 304 is compared two obtained times, judge that whether the current screen locking time of terminal is consistent with the software screen locking time of software foremost, if not, screen locking time regulating module 305 is adjusted into the software screen locking time of software foremost by the current screen locking time of terminal.
Certainly those of ordinary skill in the art should understand, when screen locking time comparison module 304 detects the software screen locking time phase difference of the current screen locking time of terminal and software foremost when little, screen locking time regulating module 305 is adjusted without the current time to terminal again, and the screen locking time of switching terminal can impact the stability of system frequently, one of the present embodiment preferred embodiment in, when the software screen locking asynchronism(-nization) of the current screen locking time of screen locking time comparison module 304 judgement terminals and software foremost, whether the current screen locking time that also can further judge terminal is less than the software screen locking time of software foremost, and be less than default first threshold with the difference of the software screen locking time of software foremost, if, screen locking time regulating module 305 is just adjusted into the software screen locking time of software foremost by the current screen locking time of terminal, or
When the software screen locking asynchronism(-nization) of the current screen locking time of screen locking time comparison module 304 judgement terminals and software foremost, whether the current screen locking time that also can further judge terminal is greater than the software screen locking time of software foremost, and be greater than default Second Threshold with the difference of the software screen locking time of software foremost, if so, screen locking time regulating module 305 is just adjusted into the software screen locking time of software foremost by the current screen locking time of terminal.
Consider that terminal user is sometimes because of maloperation switching terminal screen software foremost frequently, or open a terminal screen foremost after software within very short time (for example 2 seconds) just close, now without the screen locking time to terminal, adjust.One of the present embodiment preferred embodiment in, software detection module 301 also for: detect the software foremost of terminal operating in predetermined duration length and whether all belong to a software.If so, software screen locking time-obtaining module 302 is obtained this software screen locking time of software foremost.
The technical scheme that third embodiment of the invention provides, during software screen locking asynchronism(-nization) by the current screen locking time of comparison terminal and software foremost, the current screen locking time of terminal is adjusted into the software screen locking time, thereby make terminal to switch automatically the current screen locking time according to software foremost, overcome manual switchover screen locking time and then expend the drawback of more terminal battery electricity quantity frequently because of user.
Fig. 4 shows the fourth embodiment of the present invention.
A kind of structural representation of controlling the device of screen locking time that Fig. 4 provides for fourth embodiment of the invention.Referring to Fig. 4, described device comprises:
Software detection module 401, for detection of the software foremost at terminal operating, when not when terminal detects the software foremost of operation, obtains the acquiescence screen locking time of terminal as the described software screen locking time;
Software screen locking time-obtaining module 402, comprising: scene is searched subelement 4021, for when the software foremost of operation being detected in terminal, and the corresponding scene of software foremost described in searching from preset corresponding relation list; Time is obtained subelement 4022, for obtaining the corresponding software screen locking time of described corresponding scene as this software screen locking time of software foremost;
Current screen locking time-obtaining module 403, for obtaining the current screen locking time of terminal;
Screen locking time comparison module 404, for the current screen locking time of more described terminal and the software screen locking time of described software foremost;
Screen locking time regulating module 405, while being greater than default threshold value for the absolute value of the difference when described current screen locking time and described software screen locking time, is adjusted into the described software screen locking time by the described current screen locking time.
In the present embodiment, software detection module 401 can be by a poll process of registration, every Preset Time, detects once the software foremost at terminal operating.Software is by unique a software that active user used in all softwares of terminal screen operation foremost.Preset corresponding relation list records at least one scene and the software identification corresponding with each scene in described at least one scene.Wherein, software identification can be the MD5(Message-Digest5 of software path, dbase or software, informative abstract 5) various forms such as value grade.
In the present embodiment, software screen locking time-obtaining module 402 also comprises list update subelement (not shown), preset corresponding relation list can be acquired from server by list update subelement, also can be by a personal-machine interactive interface is provided, the dependent instruction that reception user inputs on this interface generates.One of the present embodiment preferred embodiment in, list update subelement periodically obtains scene software matrix from server, according to scene software matrix, upgrades preset corresponding relation list.This renewal process can adopt comprehensive local preset corresponding relation list mode that covers, and also preset corresponding relation list and the up-to-date scene software matrix obtaining in this locality can be compared, and only revises the list item mode of changing unit.
In software detection module 401, detect after the software foremost of operation, scene is searched subelement 4021 and is first obtained the software identification of software foremost, then search the corresponding scene that whether has obtained software identification in preset corresponding relation list, if, time obtains subelement 4022 and obtains the corresponding software screen locking time of described corresponding scene as this software screen locking time of software foremost, the acquiescence screen locking time of if not, obtaining terminal is as the described software screen locking time.It should be noted that, the software identification of the software foremost that the every software identification in preset corresponding relation list and terminal are obtained should be unified in form mutually.For example, when MD5 value that every software identification of preset corresponding relation list records is each software, the software identification that scene is searched the software foremost that subelement 4021 obtains also should be the MD5 value of this software.
The technical scheme that fourth embodiment of the invention provides, according to default corresponding relation list, search the corresponding scene of software foremost, obtain the corresponding software screen locking time of this scene, when the absolute value of the judgement current screen locking time of terminal and the difference of software screen locking time is greater than default threshold value, the current screen locking time of terminal is adjusted into the software screen locking time, thereby make the terminal can be according to the corresponding scene of software foremost from the moving current screen locking of the switching time, overcome manual switchover screen locking time and then expend the drawback of more terminal battery electricity quantity frequently because of user, and avoided switching frequently the impact of screen locking time on system stability, by the scene software matrix obtaining from server, upgrade default corresponding relation list, can under more scenes, regulate the screen locking time of terminal, promote user and experience.
Fig. 5 is the structural representation that can be used for implementing the present invention program's terminal.Referring to Fig. 5, terminal 50 can comprise the parts such as storer 501, input block 502, processor 503, display unit 504, communicator 505.
Storer 501 is stored software program and the module of the method for the control screen locking time of realizing embodiment of the present invention proposition.
Input block 502 receives numeral or the note information of input, and generation arranges with user or function is controlled relevant Trackpad, keyboard, mouse, the input of control lever signal.
The data that processor 503 is stored in the software program of storer 501 and is obtained input block 502 by operation, thus various function application and data processing carried out.
Display unit 504 can be used for the information of being inputted by user that video-stream processor 503 provides or the various graphical user interface of the information that offers user and terminal 50, and these graphical user interface can consist of figure, text, icon, video and its combination in any.
Communicator 505 can be used for transmitting and receive data by the Wireless/wired communication technology, wherein wireless communication technology includes but not limited to CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), the technology such as GPRS (General Packet Radio Service, general packet radio service).
It will be understood by those skilled in the art that the not restriction of structure paired terminal of the terminal structure shown in Fig. 5, can comprise the parts more more or less than diagram, or combine some parts, or different parts are arranged.
All or part of content in the technical scheme that above embodiment provides can realize by software programming, its software program is stored in the storage medium can read, storage medium such as the hard disk in computing machine, computer readable memory, CD or floppy disk etc.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious variations, readjust and substitute and can not depart from protection scope of the present invention.Therefore, although the present invention is described in further detail by above embodiment, the present invention is not limited only to above embodiment, in the situation that not departing from the present invention's design, can also comprise more other equivalent embodiment, and scope of the present invention is determined by appended claim scope.