CN106897007A - Screen locking method and terminal - Google Patents

Screen locking method and terminal Download PDF

Info

Publication number
CN106897007A
CN106897007A CN201510958218.2A CN201510958218A CN106897007A CN 106897007 A CN106897007 A CN 106897007A CN 201510958218 A CN201510958218 A CN 201510958218A CN 106897007 A CN106897007 A CN 106897007A
Authority
CN
China
Prior art keywords
terminal
distance
distance detector
screen
detector
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
CN201510958218.2A
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510958218.2A priority Critical patent/CN106897007A/en
Publication of CN106897007A publication Critical patent/CN106897007A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the present invention provides a kind of screen locking method and terminal, the method is applied to terminal, the screen side of terminal sets at least one distance detector, and each distance detector is used for the distance between the corresponding barrier of screen side and distance detector of measuring terminals, and the method includes:The distance that each distance detector measurement is obtained in acquisition terminal;In at least one distance that the detection of at least one distance detector is obtained, judge whether that the distance of the first predetermined number is less than default minimum range, number of first predetermined number less than the distance detector that terminal screen side is set;If the determination result is YES, by the screen locking of terminal.Such scheme can avoid performing terminal maloperation, and then improve Consumer's Experience.

Description

Screen locking method and terminal
Technical field
The present embodiments relate to communication technical field, more particularly to a kind of screen locking method and terminal.
Background technology
At present, most terminals have button and/or Touch screen, when user does not need using terminal, It is most in order to prevent user from maloperation is carried out to terminal by the button and/or Touch screen in terminal Terminal has screen locking function, and when terminal is in screen lock state, user passes through button and/or touch-screen Operation to terminal is invalid.
In the prior art, user can be operated by performing screen locking to terminal, by the screen lock of terminal It is fixed, or, user can in the terminal set and lock screen automatically duration (such as 1 minute, 2 minutes), If terminal does not receive the operation of user input locking screen automatically in duration, terminal is automatic by screen lock It is fixed;However, in actual application, after user has used terminal, not performed to terminal generally Screen locking operation mmk terminal is placed on the interim storeroom such as bag, pocket, if in terminal when locking screen automatically Within length, when the button and/or Touch screen of terminal are squeezed, terminal cannot automatically by screen lock Screen, and when the screen of terminal is not locked out, the extruding behaviour of button and/or Touch screen to terminal It is likely to result in terminal and performs maloperation, for example, outwards called when user is ignorant, or The operation such as application program (Application, abbreviation APP) of charge is opened, is that user causes not Necessary trouble so that poor user experience.
The content of the invention
The embodiment of the present invention provides a kind of screen locking method and terminal, is used to avoid perform maloperation to terminal, And then improve Consumer's Experience.
In a first aspect, the embodiment of the present invention provides a kind of screen locking method, terminal is applied to, the terminal Screen side sets at least one distance detector, and each distance detector is used to measure the screen of the terminal The distance between the corresponding barrier in curtain side and described distance detector, methods described includes:
Obtain the distance that each distance detector measurement in the terminal is obtained;
In at least one distance that at least one distance detector detection is obtained, judge whether The distance of the first predetermined number is less than default minimum range, and first predetermined number is less than the end panel The number of the distance detector that curtain side is set;
If the determination result is YES, by the screen locking of the terminal.
Second aspect, the embodiment of the present invention provides a kind of terminal, and the screen side of the terminal sets at least one Individual distance detector, each distance detector is used to measure the corresponding barrier of screen side of the terminal The distance between with the distance detector, the terminal includes:
Acquisition module, for obtaining the distance that each distance detector measurement in the terminal is obtained;
Detection module, in detecting obtain at least one distance at least one distance detector, Judge whether that the distance of the first predetermined number is less than default minimum range, first predetermined number is small The number of the distance detector set in the terminal screen side;
Screen lock module, for judging to be detected at least one distance detector in the detection module To at least one distance in, when the distance that there is the first predetermined number is less than default minimum range, by institute State the screen locking of terminal.
Screen locking method provided in an embodiment of the present invention and terminal, the method are applied to screen side and set at least one Individual distance detector terminal, when terminal is in released state, by obtaining each distance detector in terminal The distance that measurement is obtained, and at least one distance that the detection of at least one distance detector is obtained, sentence The disconnected distance with the presence or absence of the first predetermined number is less than default minimum range, in the situation that judged result is yes Under, user may not be currently in use terminal, thereby increases and it is possible to during terminal is placed on into bag, the position such as pocket, Then terminal according to above-mentioned judged result by the screen locking of terminal, now, due to by terminal current state Screen lock state is changed to by released state, when the button and/or touch-screen of terminal are squeezed, still may be used To avoid carrying out maloperation to terminal, it is to avoid for user brings unnecessary trouble, and then improve user's body Test.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to reality The accompanying drawing to be used needed for example or description of the prior art is applied to be briefly described, it should be apparent that, under Accompanying drawing in the description of face is some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
The schematic flow sheet one of the screen locking method that Fig. 1 is provided for the present invention;
The distribution schematic diagram of screen sides of the Fig. 2 for the distance detector for providing of the invention in terminal;
The schematic flow sheet two of the screen locking method that Fig. 3 is provided for the present invention;
Fig. 4 provides the structural representation one of terminal for the present invention;
Fig. 5 provides the structural representation two of terminal for the present invention.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with this hair Accompanying drawing in bright embodiment, is clearly and completely described to the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained under the premise of creative work is not made The every other embodiment for obtaining, belongs to the scope of protection of the invention.
It is mobile logical that terminal involved by the embodiment of the present invention can include but is not limited to mobile phone, panel computer etc. News equipment, terminal includes button and/touch-screen, and terminal possesses screen locking function;Further, terminal Screen side is additionally provided with distance detector, and terminal can obtain the obstacle that distance detector in terminal is detected The distance between thing and screen, and the distance obtained according to distance detector detection, the screen to terminal enter Row screen locking, it is to avoid maloperation is performed to terminal, and then improves Consumer's Experience, specific embodiment is used below Screen locking method is described in detail.
The schematic flow sheet one of the screen locking method that Fig. 1 is provided for the present invention, the executive agent of the method is for eventually End, the terminal can realize that the screen side of terminal sets at least one distance inspection by software and/or hardware Device is surveyed, each distance detector is used between the corresponding barrier of screen side of measuring terminals and distance detector Distance, refer to Fig. 1, the method can include:
The distance that each distance detector measurement is obtained in S101, acquisition terminal;
S102, at least one distance detector detection obtain at least one distance in, judge whether to deposit Default minimum range is less than in the distance of the first predetermined number;
Wherein, number of first predetermined number less than the distance detector that terminal screen side is set;
If the determination result is YES, then S103 is performed;
If judged result is no, S104 is performed;
S103, the screen locking by terminal;
S104, flow terminate.
In the embodiment shown in the present invention, the screen side of terminal sets at least one distance detector, In actual application, in order to increase the accuracy of screen locking judgement, can be uniform in the screen side of terminal Multiple distance detectors are set, further, the influence in order to avoid distance detector to screen operator area, Optionally, distance detector can be uniformly arranged on the not operation area in the screen of terminal, below by Fig. 2 shows a kind of distribution schematic diagram of distance detector in the screen side of terminal.
The distribution schematic diagram of screen sides of the Fig. 2 for the distance detector for providing of the invention in terminal, refer to Fig. 2, the screen side of terminal includes operating space 201 and not operation area 202, in the not operation area 202 of screen In be provided with 6 distance detectors, respectively 203A, 203B, 203C, 203D, 203E and 203F, Wherein, 203A and 203B are separately positioned on the top both sides in the not operation area of screen, 203C and 203D points Two middle side parts in the not operation area of screen are not arranged on, and 203E and 203D is separately positioned on the non-behaviour of screen Make the two bottom sides in area.
It should be noted that Fig. 2 only describes screen of the distance detector in terminal in exemplary fashion The set-up mode of side, restriction of the detector in the set-up mode of the screen side of terminal of not adjusting the distance, in reality In the application process of border, can according to actual needs in setting terminal screen side the number of distance detector and Set-up mode, the present invention is not specifically limited to this.
In the embodiment shown in fig. 1, the first predetermined number is less than the distance detection that terminal screen side is set The number of device, optionally, the first predetermined number can be equal to the distance detector that terminal screen side is set Several half, certainly, during practical application, can according to actual needs set first default Number;Optionally, default minimum range can be 5 centimetres, it is, of course, also possible to set according to actual needs The size of default minimum range.
The state of terminal includes screen lock state and released state, when terminal is in released state, in terminal The real-time measuring terminals of each distance detector the corresponding barrier of screen side and distance detector between away from Obtain the distance that each distance detector measurement is obtained from, terminal, and judgement acquire at least one away from In, if the distance that there is the first predetermined number is less than default minimum range, if judged result is no, Then flow terminates, in actual application, it is also possible to maintain the current released state of terminal, and continues The distance that simultaneously detecting distance detectors measure is obtained is obtained, until judged result is yes;If judged result is It is that then user currently may not be currently in use terminal, thereby increases and it is possible to during terminal is placed on into bag, pocket etc. Position, now, due to terminal current state be released state, in order to avoid to the button in terminal and/ Or touch-screen is extruded and carries out maloperation with to terminal, by the screen locking of terminal.
Screen locking method provided in an embodiment of the present invention, is applied to screen side and sets at least one distance detector Terminal, when terminal is in released state, by obtain that each distance detector measurement in terminal obtains away from From, and at least one distance that the detection of at least one distance detector is obtained, judge whether the The distance of one predetermined number is less than default minimum range, and in the case where the judgment result is yes, user may It is not currently in use terminal, thereby increases and it is possible to during terminal is placed on into bag, the position such as pocket, then by the screen of terminal Curtain locking, now, due to terminal current state is changed into screen lock state by released state, in terminal Button and/or touch-screen when being squeezed, can still avoid carrying out maloperation to terminal, it is to avoid be use Unnecessary trouble is brought at family, and then improves Consumer's Experience.
In the embodiment shown in fig. 1, in order to avoid the non-screen locking mmk terminal of user is placed on bag, pocket Deng position when, maloperation is caused to terminal because the button and/or touch-screen to terminal are extruded, eventually Hold in the condition during the distance that judging distance detector acquisition is obtained meets S102, by the screen lock of terminal It is fixed;Further, in order to avoid user is when terminal is not used, because the screen of terminal is still within electricity Amount state, and the electricity of terminal is wasted, terminal meets another in the distance that judging distance detector acquisition is obtained During a kind of condition, also by the screen locking of terminal, specifically, refer to the embodiment shown in Fig. 3.
The schematic flow sheet two of the screen locking method that Fig. 3 is provided for the present invention, the executive agent of the method is for eventually End, the terminal can realize that the screen side of terminal sets at least one distance inspection by software and/or hardware Device is surveyed, each distance detector is used between the corresponding barrier of screen side of measuring terminals and distance detector Distance, refer to Fig. 3, the method can include:
S301, when determining that the current state of terminal switches to released state by screen lock state, in starting terminal Each distance detector;
The distance that each distance detector measurement is obtained in S302, acquisition terminal;
S303, at least one distance detector detection obtain at least one distance in, judge whether to deposit Default minimum range is less than in the distance of the first predetermined number;
If the determination result is YES, then S304-S305 is performed;
If judged result is no, S306 is performed;
S304, the screen locking by terminal;
S305, close a terminal in each distance detector;
S306, at least one distance detector detection obtain at least one distance in, judge whether to deposit It is more than default ultimate range in the detecting distance of the second predetermined number;
Wherein, the second predetermined number is less than the number of the distance detector that the terminal screen side is set, in advance If ultimate range is more than default minimum range.
If the determination result is YES, then S304-S305 is performed;
If judged result is no, S307 is performed;
S307, maintenance terminal current state.
After S307, S302-S306 can be continued executing with, until by the screen locking of terminal.
In S301, the current state of terminal includes released state and screen lock state, in order in reducing terminal The work load and electric quantity consumption of each distance detector, when it is determined that the current state of terminal is from screen locking shape When state switches to released state, start each distance detector in terminal, and cause that each distance detector is protected Hold working condition.
S302-S304 is identical with the S101-S103 in Fig. 1 embodiments, is no longer repeated herein.
In S305, after the screen locking by terminal, in order to reduce the work of each distance detector in terminal Bear and electric quantity consumption, each distance detector in closing a terminal.
In S306, the second predetermined number, can less than the number of the distance detector that terminal screen side is set Choosing, the first predetermined number can be equal to the half of the distance detector number that terminal screen side is set, when So, during practical application, the second predetermined number can according to actual needs be set;Optionally, Default ultimate range can be 60 centimetres, it is, of course, also possible to set default ultimate range according to actual needs Size.
In real life, during user's using terminal, user's eyes are logical with the distance between the screen of terminal Be often 30-60 centimetres, when the distance that obtains of most distance detectors detection of terminal screen side be both greater than it is pre- If during ultimate range, then user currently can not be currently in use terminal, thereby increases and it is possible to which terminal is placed on into table On the positions such as son, now, in order to reduce the power consumption of terminal, by the screen locking of terminal.
During user's using terminal, user weighs again after may being left into sight line the screen moment of terminal New using terminal, when the screen moment of terminal is left sight line by user, may cause terminal judges S307 Condition be satisfied after will terminal screen locking, in order to avoid user leaves the screen moment of terminal By the screen locking of terminal during sight line, minimum range is preset judging that the distance in the first predetermined number is less than, Before by the screen locking of terminal, and/or judge to exist the detecting distance of the second predetermined number more than it is default most Big distance, by the screen locking of terminal before, also include:Determine that terminal is not received in preset duration The operation of user input, optionally, preset duration can be 10 seconds, and user can set according to actual needs Determine preset duration, it is preferred that preset duration locks screen automatically duration less than what is set in terminal.
In the embodiment shown in Fig. 1 or Fig. 3, optionally, distance detector is detected for ultrasonic distance Device, infrared ray distance detector, wherein, the measuring principle of the distance detector set in terminal is:Away from Determine that distance detector sends the transmission time point of detection signal from detector, wherein, detection signal is being met Layback detector determines that distance detector receives the reception time point of detection signal when seeing barrier; According to the transmission rate for sending time point, receiving time point and detection signal, before determining distance detector The principle of the detecting distance between barrier and distance detector.
Below, by specific example, the method shown in Fig. 3 is described in detail.
Assuming that 6 distance detectors are provided with terminal, screen side of 6 distance detectors in terminal Setting as illustrated in fig. 2, it is assumed that the first predetermined number is 4, it is 5 centimetres, the to preset minimum range Two predetermined numbers are 5, and it is 60 centimetres to preset ultimate range.
Assuming that at the first moment, the state of terminal is released state, and terminal is obtained at the first moment To each distance detector measurement distance be respectively:2 centimetres, 0 centimetre, 3 centimetres, 0 centimetre, 1 Centimetre and 6 centimetres, in terminal judges 6 distances, exist 5 (more than the first predetermined number 4) , less than default minimum range (5 centimetres), in that case, may be placed on for terminal by user for distance In the bag or position such as pocket, terminal according to above-mentioned judged result, by the screen locking of terminal;So, exist When mmk terminal is placed on the positions such as bag, pocket when user forgets screen locking, terminal is according to above-mentioned judged result By the screen locking of terminal, it is to avoid when the button and/or touch-screen of terminal are squeezed, terminal is performed Maloperation, and then improve Consumer's Experience.
Assuming that at the second moment, the state of terminal is released state, and terminal is obtained at the second moment To each distance detector measurement distance be respectively:200 centimetres, 200 centimetres, 150 centimetres, 80 lis Rice, 180 centimetres and 200 centimetres, do not exist the first predetermined number (4 in terminal judges 6 distances It is individual) distance be less than default minimum range (5 centimetres), then, in terminal judges 6 distances, In the presence of 6 (being more than the second predetermined number 5) distances more than default ultimate range (60 centimetres), at this In the case of kind, terminal may be placed on the positions such as desktop by user, and user is currently without being currently in use end End, terminal according to above-mentioned judged result, by the screen locking of terminal;So, do not applied to currently in user Terminal, and when to terminal not carrying out screen locking mmk terminal and being placed on the positions such as desktop, terminal is sentenced according to above-mentioned Disconnected result, by the screen locking of terminal, it is to avoid the screen of terminal is still in electricity in user's not using terminal Amount state, it is to avoid waste the electricity of terminal, and then improve Consumer's Experience.
Fig. 4 is that the present invention provides the structural representation one of terminal, the screen side setting at least one of terminal away from From detector, each distance detector is used for the corresponding barrier of screen side and distance detector of measuring terminals The distance between, the terminal can include:
Acquisition module 401, for obtaining the distance that each distance detector measurement in terminal is obtained;
Detection module 402, in detecting obtain at least one distance at least one distance detector, Judge whether that the distance of the first predetermined number is less than default minimum range, the first predetermined number is less than eventually The number of the distance detector that end screen side is set;
Screen lock module 403, for judging what is obtained in the detection of at least one distance detector in detection module In at least one distance, when the distance that there is the first predetermined number is less than default minimum range, by terminal Screen locking.
In the embodiment shown in fig. 4, optionally, detection module 402 can be also used for:
In at least one distance that detection module 402 judges to be obtained in the detection of at least one distance detector In, when the distance in the absence of the first predetermined number is less than default minimum range, at least one distance detection In at least one distance that device detection is obtained, judge whether that the detecting distance of the second predetermined number is more than Default ultimate range, wherein, the second predetermined number is less than the distance detector that the terminal screen side is set Number, preset ultimate range be more than the default minimum range;
Accordingly, screen lock module 403 be can be also used for, and at least one distance is judged in detection module 402 In at least one distance that detector detection is obtained, there is the detecting distance of the second predetermined number more than default During ultimate range, by the screen locking of terminal;Otherwise, then the current state of terminal is maintained, wherein, in advance If ultimate range is more than default minimum range.
Fig. 5 provides the structural representation two of terminal for the present invention, on the basis of embodiment illustrated in fig. 4, Fig. 5 is refer to, terminal can also include determining module 404, and determining module 404 is used for, in detection module When the detecting distance that 402 judgements have the second predetermined number is more than default ultimate range, screen lock module 403 Before by the screen locking of terminal, determine that terminal does not receive the operation of user input in preset duration.
Optionally, on the basis of embodiment illustrated in fig. 5, terminal can also include the He of starting module 405 Closedown module 406, wherein,
Starting module 405 specifically can be used for, each distance detector in acquisition module 401 obtains terminal Before the detecting distance that measurement is obtained, it is determined that the current state of terminal switches to unblock shape by screen lock state During state, start each distance detector in terminal;
Closedown module 406 specifically can be used for, after screen locking of the screen lock module 403 by terminal, Each distance detector in closing a terminal.
In the embodiment shown in Fig. 4 and Fig. 5, it is preferred that distance detector is uniformly arranged on terminal Not operation area in screen.
Optionally, distance detector be ultrasonic distance detector, infrared ray distance detector, wherein, The measuring principle of the distance detector of setting is in terminal:Distance detector determines that distance detector sends inspection The transmission time point of signal is surveyed, wherein, detection signal layback detector when barrier is met determines Distance detector receives the reception time point of detection signal;According to send time point, receive time point with And the transmission rate of detection signal, determine the detection between barrier and distance detector before distance detector The principle of distance.
Terminal shown in the present embodiment, can perform the technical scheme shown in above method embodiment, in fact Existing principle is similar with technique effect, and here is omitted for the present embodiment.
One of ordinary skill in the art will appreciate that:Realize all or part of step of above-mentioned each method embodiment Suddenly can be completed by the related hardware of programmed instruction.Foregoing program can be stored in a computer can In reading storage medium.The program upon execution, performs the step of including above-mentioned each method embodiment;And Foregoing storage medium includes:ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than right Its limitation;Although being described in detail to the present invention with reference to foregoing embodiments, this area it is common Technical staff should be understood:It can still modify to the technical scheme described in foregoing embodiments, Or equivalent is carried out to which part or all technical characteristic;And these modifications or replacement, and The scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution is not made.

Claims (10)

1. a kind of screen locking method, it is characterised in that be applied to terminal, the screen side of the terminal is provided with At least one distance detector, the screen side that each distance detector is used to measure the terminal is corresponding The distance between barrier and described distance detector, methods described includes:
Obtain the distance that each distance detector measurement in the terminal is obtained;
In at least one distance that at least one distance detector detection is obtained, judge whether The distance of the first predetermined number is less than default minimum range, and first predetermined number is less than the end panel The number of the distance detector that curtain side is set;
If the determination result is YES, by the screen locking of the terminal.
2. method according to claim 1, it is characterised in that methods described also includes:
If judged result is no, at least one distance that at least one distance detector detection is obtained In, judge whether that the detecting distance of the second predetermined number is more than default ultimate range, if so, then will The screen locking of the terminal, if it is not, the current state of the terminal is then maintained, wherein, described second Predetermined number is less than the number of the distance detector that the terminal screen side is set, the default ultimate range More than the default minimum range.
3. method according to claim 1 and 2, it is characterised in that by the screen of the terminal Before locking, also include:
Determine that the terminal does not receive the operation of user input in preset duration.
4. the method according to claim any one of 1-3, it is characterised in that the acquisition end Before the detecting distance that each distance detector measurement is obtained in end, also include:
When determining that the current state of the terminal switches to released state by screen lock state, start the terminal In each described distance detector;
It is described by the screen locking of the terminal after, also include:
Each described distance detector closed in the terminal.
5. the method according to claim any one of 1-3, it is characterised in that the distance detector It is uniformly arranged on the not operation area in the screen of the terminal.
6. the method according to claim any one of 1-3, it is characterised in that the distance detector It is ultrasonic distance detector, infrared ray distance detector.
7. the method according to claim any one of 1-3, it is characterised in that set in the terminal The measuring principle of distance detector be:The distance detector determines that the distance detector sends detection The transmission time point of signal, wherein, the detection signal returns to the distance detection when barrier is met Device determines that the distance detector receives the reception time point of the detection signal;During according to the transmission Between point, the reception time point and the detection signal transmission rate, determine the distance detector The principle of the detecting distance between preceding barrier and the distance detector.
8. a kind of terminal, it is characterised in that including:
At least one distance detector of the screen side of the terminal is arranged at, each distance detector is used In measuring the distance between the corresponding barrier of screen side of the terminal and described distance detector;
Acquisition module, for obtaining the distance that each distance detector measurement in the terminal is obtained;
Detection module, in detecting obtain at least one distance at least one distance detector, Judge whether that the distance of the first predetermined number is less than default minimum range, first predetermined number is small The number of the distance detector set in the terminal screen side;
Screen lock module, for judging to be detected at least one distance detector in the detection module To at least one distance in, when the distance that there is the first predetermined number is less than default minimum range, by institute State the screen locking of terminal.
9. terminal according to claim 8, it is characterised in that the detection module is additionally operable to:
The detection module judge at least one distance detector detection obtain at least one away from In, when the distance in the absence of the first predetermined number is less than default minimum range, described at least one away from In with a distance from least one that detector detection is obtained, judge whether the detection of the second predetermined number away from From more than default ultimate range, second predetermined number is less than the distance inspection that the terminal screen side is set The number of device is surveyed, the default ultimate range is more than the default minimum range;
Accordingly, the screen lock module is additionally operable to, and at least one distance is judged in the detection module In at least one distance that detector detection is obtained, there is the detecting distance of the second predetermined number more than default During ultimate range, by the screen locking of the terminal;Otherwise, then the current state of the terminal is maintained, Wherein, the default ultimate range is more than the default minimum range.
10. terminal according to claim 8 or claim 9, it is characterised in that the terminal also includes true Cover half block, the determining module is used for, before the screen lock module is by the screen locking of the terminal, Determine that the terminal does not receive the operation of user input in preset duration.
CN201510958218.2A 2015-12-18 2015-12-18 Screen locking method and terminal Pending CN106897007A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510958218.2A CN106897007A (en) 2015-12-18 2015-12-18 Screen locking method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510958218.2A CN106897007A (en) 2015-12-18 2015-12-18 Screen locking method and terminal

Publications (1)

Publication Number Publication Date
CN106897007A true CN106897007A (en) 2017-06-27

Family

ID=59188860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510958218.2A Pending CN106897007A (en) 2015-12-18 2015-12-18 Screen locking method and terminal

Country Status (1)

Country Link
CN (1) CN106897007A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109302527A (en) * 2018-08-06 2019-02-01 上海与德通讯技术有限公司 Terminal false-touch prevention method, terminal and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103108085A (en) * 2013-01-31 2013-05-15 广东欧珀移动通信有限公司 Glance prevention method of mobile terminal
CN103685762A (en) * 2013-12-30 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and control method thereof
CN203746011U (en) * 2013-11-19 2014-07-30 联想(北京)有限公司 Electronic equipment
CN104461640A (en) * 2014-12-12 2015-03-25 上海斐讯数据通信技术有限公司 Electronic equipment and automatic sleeping method thereof
CN104541231A (en) * 2014-08-29 2015-04-22 华为技术有限公司 Method and device for preventing mistaken touch of touch screen

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103108085A (en) * 2013-01-31 2013-05-15 广东欧珀移动通信有限公司 Glance prevention method of mobile terminal
CN203746011U (en) * 2013-11-19 2014-07-30 联想(北京)有限公司 Electronic equipment
CN103685762A (en) * 2013-12-30 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and control method thereof
CN104541231A (en) * 2014-08-29 2015-04-22 华为技术有限公司 Method and device for preventing mistaken touch of touch screen
CN104461640A (en) * 2014-12-12 2015-03-25 上海斐讯数据通信技术有限公司 Electronic equipment and automatic sleeping method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109302527A (en) * 2018-08-06 2019-02-01 上海与德通讯技术有限公司 Terminal false-touch prevention method, terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN106655396B (en) Charge control method, device and terminal
CN105101330A (en) Connection switching method and device
CN106558295A (en) Screen brightness regulation method and device
CN106507445A (en) A kind of Wireless Fidelity Wi Fi scan methods and mobile terminal
CN101828381A (en) Camera of an electronic device used as a proximity detector
CN106792987A (en) Network selecting method and device
CN106708456A (en) Interface display method and device
CN105488348A (en) Method, device and system for providing health data
CN107147450B (en) Radio frequency interference processing method, device, storage medium and terminal
CN107404740B (en) Method for switching network, device and the terminal device of safety
CN106028410A (en) Mobile terminal network switching method and apparatus
CN107148059A (en) A kind of switching method of network connection, storage device and mobile terminal
CN103781122A (en) Flow management device and method
CN106713068A (en) Intelligent terminal WIFI network display control method and system and intelligent terminal
CN104601204B (en) trigger condition detection method and device
CN105893029A (en) Application program notification management method and device and mobile terminal
CN114094646A (en) Charging control method, charging control device, electronic device and storage medium
CN108632823A (en) A kind of method for switching network, terminal and computer storage media
CN107396365A (en) Data transmission method and mobile terminal
CN105843392A (en) Screen control method and device of mobile terminal
CN106897007A (en) Screen locking method and terminal
CN105472679A (en) Communication terminal network switching method and device
CN106484304A (en) The control method, system of touch panel device brightness and volume and touch panel device
CN103473001B (en) cell adjusting method and device
CN110912628B (en) Interference test method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170627

RJ01 Rejection of invention patent application after publication