A kind of mobile terminal and its method for unblockTechnical field
The present invention relates to technical field of touch control, more particularly to a kind of mobile terminal and its method for unblock.
Background technology
Touch-screen (touch screen) is also known as " touch screen ", " contact panel ", is that one kind can receive the input such as contactThe induction type liquid crystal display device of signal, it is a kind of input equipment as mouse, keyboard.Touch-screen with its is easy to use,Sturdy and durable, reaction speed is fast, saves the advantages that space so that system designers are more and more felt using touch-screenReally there is sizable superiority.
The mobile terminal such as mobile phone and PDA is as a kind of means of communication, it has also become an indispensable part in people's life,With the continuous development of mobile communication technology, the mobile terminal with touch-control touch-screen brings new experience to the use of userAnd facility,
According to the operation principle of touch-screen and the medium of transmission information, current touch-screen is divided into four classes, respectively resistanceFormula, capacitor induction type, infrared-type and surface acoustic wave type.All it is to use induction technology regardless of the touch-screen of typeThe contact of induction touch panel, determined whether to perform corresponding operation according to the track of contact.One of application scenarios are screensUnblock.
In order to prevent mobile terminal is not intended to touch icon in released state by user from carrying out non-essential operation, normal conditionsLower mobile terminal can according to the instruction of user carry out screen locking, or detect user exceed certain time be not used mobile terminal when fromIt is dynamic to carry out screen locking.Equally, in order to prevent user is not intended to touch icon to be unlocked, the unlocking manner of generally use has two kinds:OneKind discontinuously touches for single-point, and touching specific at least two button if desired for user realizes unblock, or shows on screen locking is solvedRegistration word, unblock is realized after inputting multiple numerals in certain sequence by user, another kind continuously touches for single-point, and this mode needsUser is at least continuously slipping on screen, and once the track of slip is unlocked when meeting specific require, as crosspoint unblock,Closed loop unblock etc..
It can be seen that in the prior art, the mobile terminal with touch-control touch-screen uses single-touch unlocking manner substantially, unblockForm is single, and if when user accurately can not touch in the manner described above under specific circumstances sometimes, it may be necessary to grasp againMake, have impact on unblock speed, unblock efficiency comparison is low.
The content of the invention
A kind of method that the present invention provides mobile terminal and its unblock, it is easy to operate and improve unblock efficiency.
A kind of method of mobile terminal unblock, including:
If detecting on touch-screen while there are two contacts continuously slipping, at the end of two contact wipes, obtain eachThe start position of contact wipe track and final position;
Determine the first spacing between the starting point of the sliding trace of two contacts, the terminal with the sliding trace of two contactsBetween the second spacing difference absolute value be more than setting spacing when, carry out unlocking screen.
Preferably, at the end of two contact wipes, between further obtaining at the beginning of the sliding trace of each contact andEnd time;
Determine the first spacing between the starting point of the sliding trace of two contacts, the terminal with the sliding trace of two contactsBetween the second spacing difference absolute value be more than setting spacing, and at the beginning of the sliding trace of two contacts between difference it is smallIn setting very first time threshold value, when the end time difference of the sliding trace of two contacts is less than the second time threshold of setting, enterRow unlocking screen.
Preferably, determine whether the absolute value of the difference of the first spacing and the second spacing is more than setting spacing, specifically include:
The first spacing between the starting point of the sliding trace of two contacts is more than setting first threshold, and the cunning of two contactsSecond between the terminal of dynamic rail mark be smaller than set Second Threshold when, determine the first spacing and the second spacing difference it is exhaustedIt is more than setting spacing to value;
The setting first threshold is with setting the difference of Second Threshold not less than setting spacing.
Preferably, determine whether the absolute value of the difference of the first spacing and the second spacing is more than setting spacing, specifically include:
First between the starting point of the sliding trace of two contacts is smaller than setting Second Threshold, the slip of two contactsWhen the second spacing between the terminal of track is more than setting first threshold, determine the first spacing and the second spacing difference it is absoluteValue is more than setting spacing;
The setting first threshold is with setting the difference of Second Threshold not less than setting spacing.
Preferably, at the end of two contact wipes, the stripe shape of two contact wipe tracks is further obtained;
Determine the first spacing between the starting point of the sliding trace of two contacts, the terminal with the sliding trace of two contactsBetween the absolute value of difference of the second spacing be more than setting spacing, and when two lines be in herringbone shape, progress screen solutionLock.
The present invention also provides a kind of mobile terminal, including:
Acquiring unit, if for detecting on touch-screen while having two contacts continuously slipping, in two contact wipe knotsShu Shi, obtain start position and the final position of each contact wipe track;
Unlocking unit, for determine two contacts sliding trace starting point between the first spacing, with two contactsWhen the absolute value of the difference of the second spacing between the terminal of sliding trace is more than setting spacing, unlocking screen is carried out.
Preferably, acquiring unit is further used for obtaining the sliding trace of each contact at the end of two contact wipesAt the beginning of between and the end time;
Unlocking unit is specifically used for determining the first spacing between the starting point of the sliding trace of two contacts, with two contactsSliding trace terminal between the absolute value of difference of the second spacing be more than setting spacing, and the sliding trace of two contactsAt the beginning of between difference be less than setting very first time threshold value, the end time difference of the sliding trace of two contacts is less than setting theDuring two time thresholds, unlocking screen is carried out.
Preferably, unlocking unit determines whether the absolute value of the difference of the first spacing and the second spacing is more than setting spacing,Specifically include:
The first spacing between the starting point of the sliding trace of two contacts is more than setting first threshold, and the cunning of two contactsSecond between the terminal of dynamic rail mark be smaller than set Second Threshold when, determine the first spacing and the second spacing difference it is exhaustedIt is more than setting spacing to value;
The setting first threshold is with setting the difference of Second Threshold not less than setting spacing.
Preferably, unlocking unit determines whether the absolute value of the difference of the first spacing and the second spacing is more than setting spacing,Specifically include:
First between the starting point of the sliding trace of two contacts is smaller than setting Second Threshold, the slip of two contactsWhen the second spacing between the terminal of track is more than setting first threshold, determine the first spacing and the second spacing difference it is absoluteValue is more than setting spacing;
The setting first threshold is with setting the difference of Second Threshold not less than setting spacing.
Preferably, acquiring unit is further used for two contact wipe tracks of acquisition at the end of two contact wipesStripe shape;
Unlocking unit is specifically used for determining the first spacing between the starting point of the sliding trace of two contacts, with two contactsSliding trace terminal between the absolute value of difference of the second spacing be more than setting spacing, and two lines are in herringboneDuring shape, unlocking screen is carried out.
Using mobile terminal provided by the invention and its unlocking method, have the advantages that:Utilize two of userAdjacent finger such as forefinger and middle finger have the characteristics of sliding simultaneously, have necessarily as long as user slides out both ends in solution lock screenThe curve of distance difference, then automatic unlocking can be realized, unblock pattern freely and unlocks speed height relatively, while is also convenient for userOperated under any circumstance, improve unblock efficiency.
Brief description of the drawings
Fig. 1 is the method flow diagram of mobile terminal of embodiment of the present invention unblock;
Fig. 2 is to use both hands fingering row unlocking screen schematic diagram in the embodiment of the present invention;
Fig. 3 is mobile terminal structure figure of the embodiment of the present invention.
Embodiment
Mobile terminal provided by the invention and its method for unblock are carried out in more detail with reference to the accompanying drawings and examplesExplanation.
The embodiment of the present invention provides a kind of method of mobile terminal unblock, as shown in figure 1, this method includes:
Step 101, if detecting on touch-screen while having two contacts continuously slipping, at the end of two contact wipes,Obtain start position and the final position of each contact wipe track;
Mobile terminal is based on whether having contact on existing induction technology detection screen, if having sensed on screen while having hadTwo contacts, whether continuous, if the slip of two contacts if further detecting the slip of the two contacts using induction technologyContinuously, then illustrate user while use two fingers continuously slipping on screen, it is necessary to be unlocked judgement.
The induction technology specifically used can be, but not limited to be resistance-type, capacitor induction type, infrared-type and surface soundWaves induction technology.Detect that contact does not leave touch-screen always in sliding process using induction technology, say contact continuousSlide.
The embodiment of the present invention two contacts it is continuously slipping at the end of, the start position of sliding trace and final position,Can be specifically the abscissa and ordinate for obtaining contact on screen, generally using the lower left corner of screen as the origin of coordinates, whenSo, can also be using other positions as the origin of coordinates.
Step 102, the first spacing between the starting point of the sliding trace of two contacts is determined, the slip rail with two contactsWhen the absolute value of the difference of the second spacing between the terminal of mark is more than setting spacing, unlocking screen is carried out.
Two fingers of user, if shunk or unfolded simultaneously, can slide out both ends when being slided on screen simultaneouslyCurve with certain distance difference, the method for mobile terminal unblock provided in an embodiment of the present invention, using this slip feature, ifWhen detecting that both ends have two lines of certain distance difference, then automatic unlocking can be realized, to the shape of sliding trace notIt is construed as limiting, both can had been specifically splayed shape or herringbone shape, certain radian can also be carried, unlocks patternRelatively free and unblock speed is high, while is also convenient for user and is operated under any circumstance, improves unblock efficiency.
The present invention implements the mobile terminal unlocking method provided, is slided and is unlocked using two fingers suitable for user, thanRelatively meet the custom of people, such as two fingers unconsciously can close up two fingers in slide downward on screen, and track forms oneIndividual eight words, while this track will not seldom misread lock in nature.It is user-friendly while unblock efficiency is improved,Suitable for widely applying.
The preferred embodiment of the method for mobile terminal unblock of the present invention is given below.
Embodiment 1
The method of mobile terminal unblock of the present invention mainly includes the following steps that:
If 1) detect on touch-screen while there are two contacts continuously slipping, at the end of two contact wipes, obtain everyThe start position of individual contact wipe track and final position, that is, the starting point coordinate and terminal for obtaining each contact wipe track are satMark;
2) the first spacing between the starting point of the sliding trace of two contacts, the end with the sliding trace of two contacts are judgedWhether the difference of the second spacing between point is more than setting spacing;
Mobile terminal detects records sliding trace starting point coordinate (including abscissa and ordinate) when contact presses screen,The coordinate (including abscissa and ordinate) that sliding trace terminal is recorded when contact frames out is detected, according to two contactsStarting point coordinate calculates the first spacing, and the second spacing is calculated according to the terminal point coordinate of two contacts.
During specific slip, if user is to be shunk to slide with two fingers, the spacing between starting point is more than between terminalSpacing, it is preferable that determine whether the difference of the first spacing and the second spacing is more than setting spacing, specifically include:
The first spacing between the starting point of the sliding trace of two contacts is more than setting first threshold, and the cunning of two contactsSecond between the terminal of dynamic rail mark be smaller than set Second Threshold when, determine the first spacing and the second spacing difference it is exhaustedIt is more than setting spacing to value;Set first threshold and be more than setting Second Threshold, setting first threshold and the difference for setting Second ThresholdValue is not less than setting spacing.
It is of course also possible to directly compare the first spacing and the second spacing, the second spacing is subtracted using the first spacing, judges differenceValue is more than setting spacing.
As shown in Fig. 2 the gesture of the user perspective corresponding with the operation of above-mentioned screen response is then:User diverges twoFinger (be usually forefinger and middle finger) while touch screen, then slide separately down while closely and draw generallyTwo sections of curves of inverted "eight" shape, can also be other shapes of both ends curve certainly.
The spacing between forefinger and middle finger when finger can be specifically diverged according to user sets above-mentioned first threshold, according toThe spacing between forefinger and middle finger when user merges finger sets above-mentioned Second Threshold.In general, Second Threshold is set notThe spacing at finger center when less than two fingers of normal person and together;First threshold is set no more than two finger forks of normal personThe spacing at finger center is opened, also no more than the width of screen.
According to another preferred embodiment, it is above-mentioned can to refer to and merge the spacing difference setting that both hands refer to according to fork both handsSet spacing so that the solution screen action that user arrives can be detected in most cases.
3) the first spacing between the starting point of the sliding trace of two contacts, the end with the sliding trace of two contacts are determinedWhen the difference of the second spacing between point is more than setting spacing, unlocking screen is carried out.
Embodiment 2
If 1) detect on touch-screen while there are two contacts continuously slipping, at the end of two contact wipes, obtain everyThe start position of individual contact wipe track and final position, that is, the starting point coordinate and terminal for obtaining each contact wipe track are satMark;
2) the first spacing between the starting point of the sliding trace of two contacts, the end with the sliding trace of two contacts are judgedWhether the difference of the second spacing between point is less than setting spacing;
If user is slided with two finger extensions, the spacing being smaller than between terminal between starting point, preferablyGround, it is preferable that determine whether the difference of the first spacing and the second spacing is less than setting spacing, specifically include:
First between the starting point of the sliding trace of two contacts is smaller than setting Second Threshold, the slip of two contactsWhen the second spacing between the terminal of track is more than setting first threshold, determine the first spacing and the second spacing difference it is absoluteValue is more than setting spacing;First threshold is set with setting the difference of Second Threshold not less than setting spacing.
It is of course also possible to directly compare the first spacing and the second spacing, the first spacing is subtracted using the second spacing, judges differenceValue is more than setting spacing.
Gesture with the corresponding user perspective of operation of above-mentioned screen response is then:User merges two fingers (oneAs be forefinger and middle finger) while touch screen, then mutually fork ground slides and draws generally "eight" shape simultaneously separately downTwo sections of curves, can also be other shapes of both ends curve certainly.
The spacing between forefinger and middle finger when finger can be specifically diverged according to user sets above-mentioned first threshold, according toThe spacing between forefinger and middle finger when user merges finger sets above-mentioned Second Threshold.In general, Second Threshold is set notThe spacing at finger center when less than two fingers of normal person and together;First threshold is set no more than two finger forks of normal personThe spacing at finger center is opened, also no more than the width of screen.
According to another preferred embodiment, it is above-mentioned can to refer to and merge the spacing difference setting that both hands refer to according to fork both handsSet spacing so that the solution screen action that user arrives can be detected in most cases.
3) the first spacing between the starting point of the sliding trace of two contacts, the end with the sliding trace of two contacts are determinedWhen the difference of the second spacing between point is less than setting spacing, unlocking screen is carried out.
Embodiment 3
The method of mobile terminal unblock of the present invention mainly includes the following steps that:
If 1) detect on touch-screen while there are two contacts continuously slipping, at the end of two contact wipes, obtain everyThe start position of individual contact wipe track and final position, that is, the starting point coordinate and terminal for obtaining each contact wipe track are satMark, while between also obtaining at the beginning of the sliding trace of each contact and the end time
Between being detected using induction technology at the beginning of press contacts screen record contact wipe track, detect contact fromThe end time of contact wipe track is recorded when spreading its tail act.
2) the first spacing between the starting point of the sliding trace of two contacts, the end with the sliding trace of two contacts are determinedWhether the absolute value of the difference of the second spacing between point is more than setting spacing.
Specific deterministic process may refer to the description of embodiment 1 and embodiment 2, no longer repeat here.
3) whether difference is less than setting very first time threshold value between judging at the beginning of the sliding trace of two contacts, and two are touchedWhether the end time difference of the sliding trace of point is less than the second time threshold of setting.
Two both hands of user refer in the enterprising line slip of screen, are typically to start simultaneously at slip and while terminate to slide.Above-mentioned setting very first time threshold value and the second time threshold of setting can also can respectively take different values with equal.
The execution sequence of step 2) and step 3) limits without priority, and can be performed separately to perform simultaneously, if step2) determine with step 3) either step and be unsatisfactory for unlocking condition, then another step stops performing.
4) the first spacing between the starting point of the sliding trace of two contacts, the end with the sliding trace of two contacts are determinedPoint between the second spacing difference absolute value be more than setting spacing, and at the beginning of the sliding trace of two contacts between differenceLess than setting very first time threshold value, when the end time difference of the sliding trace of two contacts is less than the second time threshold of setting,Carry out unlocking screen.
1~3 pair of both hands of the above embodiment of the present invention refer to the curve shape slided out and are not construed as limiting, and can be arbitrary shapesFree curve, as long as detecting while sliding, the spacing at both ends has certain difference, at the beginning of the sliding trace of two contactsBetween difference be less than setting very first time threshold value (optional), then it is assumed that meet that unlocking condition is unlocked automatically.So user will notThe curve as given shape have to be slided out in the prior art is confined to, is such as pressed on the screen comprising numerical key from setting positionEnter line slip according to setting track, the embodiment of the present invention is slided freer relatively, and unblock pattern is more rich, user-friendly,Both unblock efficiency can be improved or will not cause to be not intended to be unlocked.
Embodiment 4
For the embodiment of the present invention in order to further strengthen the safety of unblock, user can set the shape of corresponding curve during unblockShape, it is preferable that can be set as herringbone shape, other shapes can also be set as certainly;
The basis of above-described embodiment of the embodiment of the present invention 1~3, add following judgment step:
Judge whether two lines are down eight words.
Judge whether two lines are down eight words, can use various methods, such as using Graphic Pattern Matching method etc., hereNo longer it is described in detail.
So, mobile terminal it is determined that user with the hands fingering line slip unlocks, and the track slided meets between both endsAway from there is certain difference, at the beginning of the sliding trace of two contacts between difference be less than setting very first time threshold value (optional), it is and fullIt is unlocked again during the shape of sufficient user's setting, can further improves the security of unblock.
The mode of mobile terminal unblock provided in an embodiment of the present invention, may apply to any type of mobile terminal, such asIt can apply to the mobile terminal of the types such as resistance-type, capacitor induction type, infrared-type and surface acoustic wave type.
Based on same inventive concept, a kind of mobile terminal is additionally provided in the embodiment of the present invention, due to the mobile terminal solutionCertainly the principle of problem is similar to a kind of method that mobile terminal unlocks, therefore the implementation of the mobile terminal may refer to the reality of methodApply, repeat part and repeat no more.
The embodiment of the present invention provides a kind of mobile terminal, as shown in figure 3, including:
Acquiring unit 301, if for detecting on touch-screen while having two contacts continuously slipping, in two contact wipesAt the end of, obtain start position and the final position of each contact wipe track;
Unlocking unit 302, for the first spacing between the starting point of the sliding trace of two contacts of determination, with two contactsSliding trace terminal between the second spacing difference absolute value be more than setting spacing when, carry out unlocking screen.
Preferably, acquiring unit is further used for obtaining the sliding trace of each contact at the end of two contact wipesAt the beginning of between and the end time;
Unlocking unit is specifically used for determining the first spacing between the starting point of the sliding trace of two contacts, with two contactsSliding trace terminal between the absolute value of difference of the second spacing be more than setting spacing, and the sliding trace of two contactsAt the beginning of between difference be less than setting very first time threshold value, the end time difference of the sliding trace of two contacts is less than setting theDuring two time thresholds, unlocking screen is carried out.
Preferably, unlocking unit determines whether the absolute value of the difference of the first spacing and the second spacing is more than setting spacing,Specifically include:
The first spacing between the starting point of the sliding trace of two contacts is more than setting first threshold, and the cunning of two contactsSecond between the terminal of dynamic rail mark be smaller than set Second Threshold when, determine the first spacing and the second spacing difference it is exhaustedIt is more than setting spacing to value;
The setting first threshold is with setting the difference of Second Threshold not less than setting spacing.
Preferably, unlocking unit determines whether the absolute value of the difference of the first spacing and the second spacing is more than setting spacing,Specifically include:
First between the starting point of the sliding trace of two contacts is smaller than setting Second Threshold, the slip of two contactsWhen the second spacing between the terminal of track is more than setting first threshold, determine the first spacing and the second spacing difference it is absoluteValue is more than setting spacing;
The setting first threshold is with setting the difference of Second Threshold not less than setting spacing.
Preferably, acquiring unit is further used for two contact wipe tracks of acquisition at the end of two contact wipesStripe shape;
Unlocking unit is specifically used for determining the first spacing between the starting point of the sliding trace of two contacts, with two contactsSliding trace terminal between the absolute value of difference of the second spacing be more than setting spacing, and two lines are in herringboneDuring shape, unlocking screen is carried out.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program productFigure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagramJourney and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be providedThe processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produceA raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for realThe device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spyDetermine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring toMake the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram orThe function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that countedSeries of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer orThe instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram oneThe step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creationProperty concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellentSelect embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present inventionGod and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologiesWithin, then the present invention is also intended to comprising including these changes and modification.