The content of the invention
It is a primary object of the present invention to propose a kind of state switching method and mobile terminal, it is intended to solve mobile terminal frequency
It is numerous when switching between holding state and working condition, user's manual switching is cumbersome, poor user experience the problem of.
First, to achieve the above object, the present invention provides a kind of mobile terminal, and the mobile terminal includes memory, place
Manage device and be stored in the state changeover program that can be run on the memory and on the processor, the state changeover program
Following steps are realized during by the computing device:
Whether detection user changes to the grip of mobile terminal;
When the grip changes, the current state of the mobile terminal is obtained, the current state includes
Holding state and working condition;
, will if the current state is working condition and the grip switches to inoperative gesture by work gesture
The mobile terminal switches to holding state by current state;
, will if the current state is holding state and the grip switches to work gesture by inoperative gesture
The mobile terminal switches to working condition by current state.
Alternatively, the inoperative gesture includes first gesture and second gesture, and it is described that the processor is additionally operable to execution
State changeover program, to realize following steps:
If the current state is that working condition and the grip are first gesture by work gesture seamless switching,
The mobile terminal is switched into holding state by current state;
If the current state is working condition and the grip switches to second gesture by work gesture, by institute
State mobile terminal and holding state is switched to by current state, and screen locking is carried out to the mobile terminal;
If the current state is that holding state and the grip are work gesture by first gesture seamless switching,
The mobile terminal is switched into working condition by current state, and the mobile terminal enters standby front interface;
If the current state is holding state and the grip switches to work gesture by second gesture, by institute
State mobile terminal and working condition is switched to by current state, and receive unblock operation of the user to the mobile terminal and treated with entering
Machine front interface.
Alternatively, after the step of whether the detection user changes to the grip of mobile terminal, the place
Reason device is additionally operable to perform the state changeover program, to realize following steps:
If the grip changes, judge whether the duration of the current grip is more than and preset
Duration;
If the determination result is YES, then the step of performing the current state of the acquisition mobile terminal.
Alternatively, before the step of whether the detection user changes to the grip of mobile terminal, the place
Reason device is additionally operable to perform the state changeover program, to realize following steps:
Obtain the touch location that current touch is operated in the edge touch area of the mobile terminal;
Grip of the user to the mobile terminal is determined according to the touch location.
Meanwhile, the present invention also provides a kind of state switching method, and applied to mobile terminal, the state switching method includes
Following steps:
Whether detection user changes to the grip of mobile terminal;
When the grip changes, the current state of the mobile terminal is obtained, the current state includes
Holding state and working condition;
, will if the current state is working condition and the grip switches to inoperative gesture by work gesture
The mobile terminal switches to holding state by current state;
, will if the current state is holding state and the grip switches to work gesture by inoperative gesture
The mobile terminal switches to working condition by current state.
Alternatively, the inoperative gesture includes first gesture and second gesture;
If the current state is working condition and the grip switches to inoperative gesture by work gesture,
The step of mobile terminal then is switched into holding state by current state includes:
If the current state is that working condition and the grip are first gesture by work gesture seamless switching,
The mobile terminal is switched into holding state by current state;
If the current state is working condition and the grip switches to second gesture by work gesture, by institute
State mobile terminal and holding state is switched to by current state, and screen locking is carried out to the mobile terminal.
Alternatively, if the current state is holding state and the grip switches to work by inoperative gesture
Make a sign with the hand, then the step of mobile terminal being switched into working condition by current state includes:
If the current state is that holding state and the grip are work gesture by first gesture seamless switching,
The mobile terminal is switched into working condition by current state, and the mobile terminal enters standby front interface;
If the current state is holding state and the grip switches to work gesture by second gesture, by institute
State mobile terminal and working condition is switched to by current state, and receive unblock operation of the user to the mobile terminal and treated with entering
Machine front interface.
Alternatively, also include after the step of whether the detection user changes to the grip of mobile terminal:
If the grip changes, judge whether the duration of the current grip is more than and preset
Duration;
If the determination result is YES, then the step of performing the current state of the acquisition mobile terminal.
Alternatively, also include before the step of whether the detection user changes to the grip of mobile terminal:
Obtain the touch location that current touch is operated in the edge touch area of the mobile terminal;
Grip of the user to the mobile terminal is determined according to the touch location.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable
Stateful changeover program is stored on storage medium, is realized when the state changeover program is executed by processor such as the switching of above-mentioned state
The step of method.
Compared to prior art, state switching method, mobile terminal and computer-readable storage medium proposed by the invention
Matter, by detecting whether user changes to the grip of mobile terminal, and when the grip changes, is obtained
Take the current state of the mobile terminal, and in the current state be working condition and the grip by work gesture
When switching to inoperative gesture, the mobile terminal is switched into holding state by current state, is to treat in the current state
Machine state and when the grip switches to work gesture by inoperative gesture, the mobile terminal is switched by current state
To working condition, it is achieved thereby that according to the state of the grip automatic switchover mobile terminal of user, it is to avoid user is frequent
Manual switching, improve Consumer's Experience;And the operation that the grip of user is wanted to carry out with user has certain mapping
Relation, therefore control the switching of mobile terminal state to meet the actual demand of user by grip.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixed
Ground is used.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. are moved
Move the fixed terminals such as terminal, and numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of realization each embodiment of the invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,
Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent into base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user's transmitting-receiving electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or
The voice data stored in memory 109 is converted into audio signal and is output as sound.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 1 00 is performed can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042,1041 pairs of graphics processor is in video acquisition mode
Or the view data progress of the static images or video obtained in image capture mode by image capture apparatus (such as camera)
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after being handled through graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
The noise produced during frequency signal or interference.
Mobile terminal 1 00 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 1 00 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can be wrapped
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can be wrapped
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, can
By contact panel 1071 and the input that is integrated and realizing mobile terminal of display panel 1061 and output function, not do specifically herein
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 1 00 or can be with
For transmitting data between mobile terminal 1 00 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, application program (the such as sound that storing program area can be needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as according to mobile phone
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, it can also include non-easy
The property lost memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by operation or performs and is stored in software program and/or module in memory 109, and calls and be stored in storage
Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;It is preferred that, processor 110 can integrated application processor and modulatedemodulate mediate
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 1 00 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system that the mobile terminal of the present invention is based on is entered below
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
There is provided carrying and connection management for the control node of signaling between EPC203.HSS2032 is all to manage for providing some registers
Such as function of attaching position register (not shown) etc, and some are preserved about the use such as service features, data rate
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on the above-mentioned hardware configuration of mobile terminal 1 00 and communications network system, each embodiment of the inventive method is proposed.
First, the present invention proposes a kind of mobile terminal, and the mobile terminal includes memory, processor and is stored in described
On memory and the state changeover program 400 that can run on the processor.
As shown in figure 3, being the high-level schematic functional block diagram of the first embodiment of state changeover program 400 of the present invention.In this implementation
In example, the state changeover program 400 can be divided into one or more modules, and one or more of modules are stored in institute
In the memory 109 for stating mobile terminal 1 00, and by one or more processors (being the controller 110 in the present embodiment) institute
Perform, to complete the present invention.For example, in figure 3, the state changeover program 400 can be divided into detection module 401, shape
State acquisition module 402 and handover module 403.Module alleged by the present invention refers to a kind of to complete a series of of specific function
Computer program instructions section, the implementation procedure than computer program more suitable for description software in the mobile terminal 1 00.With
The lower concrete function by just above-mentioned each functional module 401-403 is described in detail.Wherein:
The detection module 401, for detecting whether user changes to the grip of mobile terminal.
In the present embodiment, mobile terminal can detect grip of the user to mobile terminal in real time, and then judge to grip
Whether gesture changes.Specifically, detection user comprises the following steps to the method for the grip of mobile terminal:(1) obtain
Take the touch location that current touch is operated in the edge touch area of the mobile terminal;(2) determined according to the touch location
Grip of the user to the mobile terminal.Wherein, edge touch area can be set on the left and right side of mobile terminal
Left and right fringe region on the touch area put or mobile terminal front touch-screen.The present embodiment is with edge Petting Area
Domain now needs left and right the two of mobile terminal to be illustrated exemplified by the touch area that sets on the left and right side of mobile terminal
Touch area is provided with side, it is used to detect the touch operation on arranged on left and right sides side, refer to Fig. 7, Fig. 7 is the present invention
Label A represents the touch area on the left side of mobile terminal in the schematic diagram of the embodiment of mobile terminal one, Fig. 7, and label B is represented
Touch area in the right edge of mobile terminal, and touch area can be pressure touch technology touch-screen, resistive technologies touch
Any type of touch-screen such as screen, capacitance technology touch-screen, infrared technology touch-screen, surface acoustic wave technique touch-screen.Generally
In the case of, when user grips mobile terminal, the edge touch area of mobile terminal, and different grips can be applied force to,
The position distribution of touch operation is also different, therefore the current touch operation detected by touch area on arranged on left and right sides side
Touch location, you can judge current grip.
The state acquisition module 402, for when the grip changes, obtaining working as the mobile terminal
Preceding state, the current state includes holding state and working condition.
Specifically, holding state refers to the start of the electronic equipments such as mobile phone or computer but without any substantive work
State, that is, start shooting but the state that is not operated to file and program;And working condition refers to that mobile terminal carries out reality
The state of matter sex work.In the present invention, user includes work gesture and inoperative gesture to the grip of mobile terminal, its
In, work gesture represents user using grip of user during mobile terminal to mobile terminal, and inoperative gesture is represented
User is current and grip of the user to mobile terminal during unused mobile terminal.It should be noted that work gesture and non-
The gesture that works is defined according to the universal use habit of most of users, and the grip has certain versatility.It please join
Examine Fig. 8 and Fig. 9, Fig. 8 is the schematic diagram for each embodiment of gesture that worked in the present invention, and Fig. 9 is real for inoperative gesture one in the present invention
The schematic diagram of example is applied, specifically, four in Fig. 8 kind grip G1, G2, G3, G4 represent work gesture, i.e., ought detect and hold
When holding gesture for G1, G2, G3 or G4, it is determined as work gesture, under the grip, represents that hand is being currently used in user
Machine, such as browses video or sees novel;Grip G5 in Fig. 9 represents inoperative gesture, under the grip, represents user
Mobile phone is currently not used.By taking grip shown in Fig. 8 and Fig. 9 as an example, held by touch area detections left, on two sides
When holding gesture, during due to gripping mobile terminal using different grips, hand and the mobile terminal arranged on left and right sides side of user
Contact area is different, so that the touch location that the current touch detected by touch area is operated, you can determine which it belongs to
Plant grip.Figure 10 is refer to, Figure 10 is the schematic diagram for the corresponding touch location of gesture G1 and G3 that worked in Fig. 8, Tu10Zhong
P1 represents the schematic diagram of the corresponding touch locations of work gesture G1, and shadow region shown in wherein X1 and X2 represents that grip is work
Make a sign with the hand G1 when, current touch operation touch location, that is, work gesture G1 when, the top touch area of mobile terminal right edge
The top touch area X2 of X1 and left side constitutes the touch location of work gesture, and the top touch area X2 of left side is less than
The top touch area X1 of right edge;Similarly, P3 represents the schematic diagram of the corresponding touch locations of work gesture G3 in Figure 10, wherein
When shadow region shown in X3 and X4 represents grip for work gesture G3, the touch location of current touch operation, that is, work hand
During gesture G3, the bottom touch area X3 of mobile terminal left side and the middle part touch area X4 of right edge constitute touching for work gesture
Touch position, and bottom touch area X3s of the middle part touch area X4 less than left side of right edge.It should be noted that Figure 10 is only
It is that show schematically when grip is different, the touch location detected is also different, so as to judge grip,
And when user is different in practice, grip custom it is different when, the particular location distribution of each grip may be different, therefore
It can pre-set the criterion of grip to specific user, or be set according to the use habit of most of user
The criterion of grip, is no longer described in detail herein.
The handover module 403, for being working condition and the grip by work gesture in the current state
When switching to inoperative gesture, the mobile terminal is switched into holding state by current state, and in the current state
When switching to work gesture by inoperative gesture for holding state and the grip, then by the mobile terminal by current shape
State switches to working condition.That is, mobile terminal current state be working condition, and grip as shown in Figure 8 G1, G2,
When G3 or G4 switch to G5 shown in Fig. 9, mobile terminal is switched into holding state by working condition;In the current shape of mobile terminal
State is holding state, and grip is when G5 switches to G1, G2, G3 or G4 shown in Fig. 8 as shown in Figure 9, by mobile terminal by treating
Machine state switches to working condition.
By above-mentioned module 401-403, state changeover program of the present invention is by detecting gripping hand of the user to mobile terminal
Whether gesture changes, and when the grip changes, obtains the current state of the mobile terminal, and in institute
When stating current state and switching to inoperative gesture by work gesture for working condition and the grip, by the mobile terminal
Holding state is switched to by current state, in the current state be holding state and the grip is cut by inoperative gesture
When being changed to work gesture, the mobile terminal is switched into working condition by current state, it is achieved thereby that holding according to user
Hold the state of gesture automatic switchover mobile terminal, it is to avoid user frequently manual switching, improve Consumer's Experience;And user
The operation that grip is wanted to carry out with user has certain mapping relations, therefore controls mobile terminal shape by grip
The switching of state meets the actual demand of user.
Further, the first embodiment based on the invention described above state changeover program 400, proposes state switching of the present invention
The second embodiment of program 400.Fig. 4 is refer to, Fig. 4 is the functional module of the second embodiment of state changeover program 400 of the present invention
Schematic diagram, compared with first embodiment, in the present embodiment, state changeover program 400 also includes judge module 404.The present embodiment
In, each functional module is described as follows:
The judge module 404, for when the grip changes, judging the current grip
Whether duration is more than preset duration, if the determination result is YES, then performs the state acquisition module 402.In the present embodiment,
After the grip of mobile terminal changes, it can judge whether the duration of current grip is more than preset duration,
Be in order to prevent current grip from being a transient state, only when its duration be more than preset duration when, just judge should
Preceding grip is stable.Wherein, preset duration can be user or application developer according to user's use habit with
The numerical value that machine is set, such as preset duration are 3 seconds, 5 seconds.
In addition, in the present embodiment, the inoperative gesture includes first gesture and second gesture, first gesture is used to represent
User grips mobile terminal but the mobile terminal is not used, and second gesture represents that user does not grip mobile terminal, first gesture
Schematic diagram is as shown in figure 9, the schematic diagram of second gesture is as shown in Figure 10, and Figure 10 represents that user does not grip mobile terminal now, will
The corresponding grip of the state is denoted as second gesture G6.The handover module 403 is specifically for realizing:(1) if described current
State is working condition and the grip switches to first gesture by work gesture, then by the mobile terminal by current shape
State switches to holding state, i.e., when grip, grip G1, G2, G3 or G4 is switched to hand is gripped shown in Fig. 9 as shown in Figure 8
During gesture G5, mobile terminal is switched into holding state by working condition, and screen locking is not carried out to mobile terminal;(2) if described work as
Preceding state is working condition and the grip switches to second gesture by work gesture, then by the mobile terminal by current
State switches to holding state, and carries out screen locking to the mobile terminal, i.e., when grip as shown in Figure 8 grip G1,
When G2, G3 or G4 switch to grip G6 shown in Figure 10, mobile terminal is switched into holding state by working condition, and to moving
Dynamic terminal carries out screen locking.Wherein, when grip switches to first gesture without screen locking, and is switched in grip
Screen locking is carried out during two gestures, be because:To the grip of mobile terminal by during work gesture switches to first gesture,
All the time user touches (gripping) mobile terminal, the process is typically the process of same user's transition gesture, by the process
Seamless switching process is designated as, due to being same user's operation mobile terminal, therefore there is a possibility that potential safety hazard is very low,
So when be not necessarily to carry out screen locking;Conversely, switching to the mistake of second gesture by work gesture to the grip of mobile terminal
User does not grip mobile terminal under Cheng Zhong, second gesture situation, and the process is typically the applied field that user puts down mobile terminal
Scape, non-seamless handoff procedure is designated as by the process, because user puts down mobile terminal, and the mobile terminal may be taken away by other people
Or operation, therefore there is a possibility that potential safety hazard is very big, so when need to carry out screen locking, to ensure information of mobile terminal
Security.
In the present embodiment, due to not locked when grip switches to first gesture by work gesture to mobile terminal
Screen, and screen locking is carried out when switching to second gesture, therefore when mobile terminal is switched into work gesture by inoperative gesture, need
Opposite operation is performed to mobile terminal.Specifically, handover module 403 is additionally operable to realize:(3) if the current state is standby
The state and grip switches to work gesture by first gesture, then switch to work by the mobile terminal by current state
Make state, and the mobile terminal enters standby front interface, i.e., when grip, grip G5 switches to Fig. 8 as shown in Figure 9
When shown grip G1, G2, G3 or G4, mobile terminal is switched into working condition by holding state, and mobile terminal is direct
Into standby front interface, it is because mobile terminal is not locked in the state of grip G5 that need not now be unlocked
Screen;(4), will be described if the current state is holding state and the grip switches to work gesture by second gesture
Mobile terminal switches to working condition by current state, and it is standby to enter to the unblock operation of the mobile terminal to receive user
Front interface, i.e., will when grip G6 switches to grip G1, G2, G3 or G4 shown in Fig. 8 to grip as shown in Figure 10
Mobile terminal switches to working condition by holding state, and enters standby front interface after the unblock for receiving user is operated, this
When need user be unlocked be because mobile terminal screen locking has been carried out in the state of grip G6.
By above-mentioned module 401-404, inoperative gesture includes first in state changeover program 400 proposed by the invention
Gesture and second gesture, are working condition in current state, and grip switches to not enter during first gesture by work gesture
Row screen locking, and screen locking is carried out when grip switches to second gesture by work gesture, and in current state be standby shape
State, and grip makes when switching to work gesture by first gesture mobile terminal be directly entered standby front interface, and gripping
Gesture is switched to by second gesture just enters standby front interface after the unblock for receiving user is operated during work gesture, by right
Whether the classification of inoperative gesture and Type Control screen locking or not screen locking according to inoperative gesture, unblock or not, and it is improved
The security that mobile terminal is used, with more preferable Consumer's Experience.
Further it is proposed that a kind of state switching method, the state switching method is applied to move shown in Fig. 1 to Fig. 2
Terminal, the mobile terminal includes memory and processor.
As shown in figure 5, being the implementing procedure figure of state switching method first embodiment of the present invention.In the present embodiment, root
According to different demands, the execution sequence of the step in flow chart shown in Fig. 5 can change, and some steps can be omitted.It is described
State switching method includes:
Whether step S501, detection user changes to the grip of mobile terminal.
In the present embodiment, mobile terminal can detect grip of the user to mobile terminal in real time, and then judge to grip
Whether gesture changes.Specifically, detection user comprises the following steps to the method for the grip of mobile terminal:(1) obtain
Take the touch location that current touch is operated in the edge touch area of the mobile terminal;(2) determined according to the touch location
Grip of the user to the mobile terminal.Wherein, edge touch area can be set on the left and right side of mobile terminal
Left and right fringe region on the touch area put or mobile terminal front touch-screen.The present embodiment is with edge Petting Area
Domain now needs left and right the two of mobile terminal to be illustrated exemplified by the touch area that sets on the left and right side of mobile terminal
Touch area is provided with side, it is used to detect the touch operation on arranged on left and right sides side, refer to Fig. 7, Fig. 7 is the present invention
Label A represents the touch area on the left side of mobile terminal in the schematic diagram of the embodiment of mobile terminal one, Fig. 7, and label B is represented
Touch area in the right edge of mobile terminal, and touch area can be pressure touch technology touch-screen, resistive technologies touch
Any type of touch-screen such as screen, capacitance technology touch-screen, infrared technology touch-screen, surface acoustic wave technique touch-screen.Generally
In the case of, when user grips mobile terminal, the edge touch area of mobile terminal, and different grips can be applied force to,
The position distribution of touch operation is also different, therefore the current touch operation detected by touch area on arranged on left and right sides side
Touch location, you can judge current grip.
Step S502, when the grip changes, obtains the current state of the mobile terminal, described current
State includes holding state and working condition.
Specifically, holding state refers to the start of the electronic equipments such as mobile phone or computer but without any substantive work
State, that is, start shooting but the state that is not operated to file and program;And working condition refers to that mobile terminal carries out reality
The state of matter sex work.In the present invention, user includes work gesture and inoperative gesture to the grip of mobile terminal, its
In, work gesture represents user using grip of user during mobile terminal to mobile terminal, and inoperative gesture is represented
User is current and grip of the user to mobile terminal during unused mobile terminal.It should be noted that work gesture and non-
The gesture that works is defined according to the universal use habit of most of users, and the grip has certain versatility.It please join
Examine Fig. 8 and Fig. 9, Fig. 8 is the schematic diagram for each embodiment of gesture that worked in the present invention, and Fig. 9 is real for inoperative gesture one in the present invention
The schematic diagram of example is applied, specifically, four in Fig. 8 kind grip G1, G2, G3, G4 represent work gesture, i.e., ought detect and hold
When holding gesture for G1, G2, G3 or G4, it is determined as work gesture, under the grip, represents that hand is being currently used in user
Machine, such as browses video or sees novel;Grip G5 in Fig. 9 represents inoperative gesture, under the grip, represents user
Mobile phone is currently not used.By taking grip shown in Fig. 8 and Fig. 9 as an example, held by touch area detections left, on two sides
When holding gesture, during due to gripping mobile terminal using different grips, hand and the mobile terminal arranged on left and right sides side of user
Contact area is different, so that the touch location that the current touch detected by touch area is operated, you can determine which it belongs to
Plant grip.Figure 10 is refer to, Figure 10 is the schematic diagram for the corresponding touch location of gesture G1 and G3 that worked in Fig. 8, Tu10Zhong
P1 represents the schematic diagram of the corresponding touch locations of work gesture G1, and shadow region shown in wherein X1 and X2 represents that grip is work
Make a sign with the hand G1 when, current touch operation touch location, that is, work gesture G1 when, the top touch area of mobile terminal right edge
The top touch area X2 of X1 and left side constitutes the touch location of work gesture, and the top touch area X2 of left side is less than
The top touch area X1 of right edge;Similarly, P3 represents the schematic diagram of the corresponding touch locations of work gesture G3 in Figure 10, wherein
When shadow region shown in X3 and X4 represents grip for work gesture G3, the touch location of current touch operation, that is, work hand
During gesture G3, the bottom touch area X3 of mobile terminal left side and the middle part touch area X4 of right edge constitute touching for work gesture
Touch position, and bottom touch area X3s of the middle part touch area X4 less than left side of right edge.It should be noted that Figure 10 is only
It is that show schematically when grip is different, the touch location detected is also different, so as to judge grip,
And when user is different in practice, grip custom it is different when, the particular location distribution of each grip may be different, therefore
It can pre-set the criterion of grip to specific user, or be set according to the use habit of most of user
The criterion of grip, is no longer described in detail herein.
Step S503, if the current state is working condition and the grip switches to inoperative by work gesture
Gesture, then switch to holding state by the mobile terminal by current state.That is, it is work shape in the current state of mobile terminal
State, and grip is when G1, G2, G3 or G4 switch to G5 shown in Fig. 9 as shown in Figure 8, and mobile terminal is switched by working condition
To holding state.
Step S504, if the current state is holding state and the grip switches to work by inoperative gesture
Gesture, then switch to working condition by the mobile terminal by current state.That is, it is standby shape in the current state of mobile terminal
State, and grip is when G5 switches to G1, G2, G3 or G4 shown in Fig. 8 as shown in Figure 9, and mobile terminal is switched by holding state
To working condition.
By above-mentioned steps S501-S504, state switching method of the present invention is by detecting gripping of the user to mobile terminal
Whether gesture changes, and when the grip changes, obtains the current state of the mobile terminal, Yi Ji
When the current state is that working condition and the grip switch to inoperative gesture by work gesture, will it is described it is mobile eventually
End switches to holding state by current state, is holding state and the grip by inoperative gesture in the current state
When switching to work gesture, the mobile terminal is switched into working condition by current state, it is achieved thereby that according to user's
The state of grip automatic switchover mobile terminal, it is to avoid user frequently manual switching, improves Consumer's Experience;And user
Grip and the user operation wanting to carry out there are certain mapping relations, therefore mobile terminal is controlled by grip
The switching of state meets the actual demand of user.
Further, based on above-mentioned first embodiment, the second embodiment of state switching method of the present invention is proposed.Such as Fig. 6
It is shown, it is the implementing procedure figure of state switching method second embodiment of the present invention.In the present embodiment, according to different demands,
The execution sequence of the step in flow chart shown in Fig. 6 can change, and some steps can be omitted.The state switching method bag
Include:
Step S601, obtains the touch location of current touch operation in the edge touch area of the mobile terminal, and root
Grip of the user to the mobile terminal is determined according to the touch location.It should be noted that passing through movement in the present invention
Grip of the user to mobile terminal is detected in touch area on the arranged on left and right sides side of terminal, as long as and can realize gripping
Any method of gestures detection is applied to the present invention, and the present invention is no longer illustrated one by one to other method.
Whether step S602, detection user changes to the grip of mobile terminal, if testing result is yes, performs
Step S603, on the contrary repeat step S602.
Step S603, judges whether the duration of the current grip is more than preset duration, if judged result
It is yes, performs step S604, otherwise repeat step S602.
In the present embodiment, after the grip of mobile terminal changes, can judge current grip it is lasting when
It is long whether to be more than preset duration, it is in order to prevent current grip from being a transient state, only when its duration is more than in advance
If during duration, just judging that the current grip is stable.Wherein, preset duration can be user or application developer
The numerical value being randomly provided according to user's use habit, such as preset duration are 3 seconds, 5 seconds.
Step S604, obtains the current state of the mobile terminal, performs step S605 and step S606.
Step S605, if the current state is working condition and the grip switches to inoperative by work gesture
Gesture, then switch to holding state by the mobile terminal by current state.
In the present embodiment, user includes work gesture and inoperative gesture to the grip of mobile terminal, wherein non-work
Make a sign with the hand including first gesture and second gesture, first gesture is used to represent that user grips mobile terminal but movement end is not used
End, second gesture represents that user does not grip mobile terminal, and the schematic diagram of first gesture is as shown in figure 9, the schematic diagram of second gesture
As shown in Figure 10, Figure 10 represents that user does not grip mobile terminal now, and the corresponding grip of the state is denoted as into second gesture
G6.Now, step S605 is specially:(1) if the current state is working condition and the grip is cut by work gesture
First gesture is changed to, then the mobile terminal is switched into holding state by current state, i.e., when grip is held as shown in Figure 8
When holding gesture G1, G2, G3 or G4 and switching to grip G5 shown in Fig. 9, mobile terminal is switched into standby shape by working condition
State, and screen locking is not carried out to mobile terminal;(2) if the current state is working condition and the grip by work gesture
Second gesture is switched to, then the mobile terminal is switched into holding state by current state, and the mobile terminal is carried out
Screen locking, i.e., when grip G1, G2, G3 or G4 switches to grip G6 shown in Figure 10 to grip as shown in Figure 8, will move
Dynamic terminal switches to holding state by working condition, and carries out screen locking to mobile terminal.Wherein, first is switched in grip
Without screen locking during gesture, and screen locking is carried out when grip switches to second gesture, be because:Gripping to mobile terminal
Gesture by during work gesture switches to first gesture, there is user to touch (gripping) mobile terminal all the time, and the process is led to
It is often the process of same user's transition gesture, the process is designated as seamless switching process, due to is that same user's operation is moved
Dynamic terminal, therefore there is a possibility that potential safety hazard is very low, so when be not necessarily to carry out screen locking;Conversely, to mobile terminal
Grip by during work gesture switches to second gesture, under second gesture situation user do not grip it is mobile eventually
End, the process is typically the application scenarios that user puts down mobile terminal, the process is designated as into non-seamless handoff procedure, due to user
Mobile terminal is put down, the mobile terminal may be taken away or be operated by other people, therefore there is a possibility that potential safety hazard is very big,
So when need carry out screen locking, to ensure the security of information of mobile terminal.
Step S606, if the current state is holding state and the grip switches to work by inoperative gesture
Gesture, then switch to working condition by the mobile terminal by current state.
In the present embodiment, due to not locked when grip switches to first gesture by work gesture to mobile terminal
Screen, and screen locking is carried out when switching to second gesture, therefore when mobile terminal is switched into work gesture by inoperative gesture, need
Opposite operation is performed to mobile terminal.Specifically, step S606 includes:(1) if the current state is holding state and institute
State grip and work gesture switched to by first gesture, then the mobile terminal is switched into working condition by current state,
And the mobile terminal enters standby front interface, i.e., when grip, grip G5 switches to gripping shown in Fig. 8 as shown in Figure 9
During gesture G1, G2, G3 or G4, mobile terminal is switched into working condition by holding state, and mobile terminal be directly entered it is standby
Front interface, it is because mobile terminal does not carry out screen locking in the state of grip G5 that need not now be unlocked;(2) if institute
Current state is stated for the holding state and grip switches to work gesture by second gesture, then by the mobile terminal by
Current state switches to working condition, receives unblock of the user to the mobile terminal and operates to enter standby front interface, that is, works as
Grip is when grip G6 switches to grip G1, G2, G3 or G4 shown in Fig. 8 as shown in Figure 10, by mobile terminal by
Holding state switches to working condition, and enters standby front interface after the unblock for receiving user is operated, and now needs user
Be unlocked is because mobile terminal has carried out screen locking in the state of grip G6.
By above-mentioned steps S601 to S606, inoperative gesture includes first gesture and the in state switching method of the present invention
Two gestures, are working condition in current state, and grip when switching to first gesture by work gesture without screen locking, and
Carry out screen locking when grip switches to second gesture by work gesture, and in current state be holding state, and grip
Gesture makes mobile terminal be directly entered standby front interface when switching to work gesture by first gesture, and in grip by second
Gesture is switched to just enters standby front interface during work gesture after the unblock for receiving user is operated, by inoperative gesture
Classification and Type Control screen locking or not screen locking according to inoperative gesture, unblock or do not unlock, which raises mobile terminal
The security used, with more preferable Consumer's Experience.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, clothes
It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.