Embodiment
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
The embodiment of the present invention, for the present situation of touch-screen, provides a kind of command processing method and terminal device.Wherein, wherein, terminal device receives the operational order that touch operation produces; The latching operation state that detects the shown application program of touch-screen, described latching operation state comprises lock-out state and released state; If described latching operation state is described released state, according to described operational order, process; If described latching operation state is described lock-out state, whether the type that judges described operational order is maloperation instruction type, if, ignore described operational order, or show the processing prompt message of described operational order, according to processing instruction corresponding to described processing prompt message receiving, process.Realized thus the function of locking user operation, the inconvenience of having avoided maloperation to cause.
The method flow diagram of a kind of instruction process that Fig. 1 provides for the embodiment of the present invention.As shown in Figure 1, the present embodiment comprises the following steps:
Step 101, terminal device is received the operational order that touch operation produces.
While producing touch operation on the touch-screen of terminal device, touch-screen detection part is by the contact information of the touch operation receiving, and described contact information is sent to processor, processor receives described contact information, and described contact information is converted to the operational order that described touch operation produces.
Step 102, terminal device detects the latching operation state of the shown application program of touch-screen, and described latching operation state comprises lock-out state and released state.
Preferably, before the latching operation state of described detection touch-screen, also comprise, receive user by photoinduction equipment, or temperature sense equipment, or infrared induction equipment, or menu, or the instruction of the shown application program of the described touch-screen of locking that triggers of button, the application program that lock-out state need to be set arranges lock-out state.
Described method also comprises: receive the instruction of the shown application program of the described touch-screen of locking that temperature sense equipment sends, application program is lock-out state described in Lookup protocol.
Alternatively, user can select only some application program in terminal device to be carried out the setting of latching operation state, other application programs is not carried out to described setting.For example, for the setting of latching operation state can be carried out browser application, novel reader application is not carried out the setting of latching operation state.
Alternatively, in some application program, carry out after arranging of latching operation state, user also can be further for corresponding application program, by corresponding setting option, and when touch-screen being set being in the lock state, the operation that user can carry out described application program.
It should be noted that, described lock-out state refers to that some operational order to being created on touch-screen enters line-locked state.Under lock-out state, to being created in the single-click operation on touch-screen, terminal device is not carried out normal single-click operation, comprise that the page switches, or operation switches, or the operation such as opening operation, but ignore described operational order, or the highlighted demonstration position of clicking, or show the information of aforesaid operations, wait for next step operational order for described information.Described released state refers to that terminal device is all processed by normal software treatment scheme to being created in all operations instruction on touch-screen.
Particularly, the embodiment of the present invention provides the latching operation state of the shown application program of two kinds of touch-screens, comprises lock-out state and released state.The lock-out state of touch-screen and the switching between released state are by sensing apparatus, shortcut, menu or unsteady button control.Described sensing apparatus comprises photoinduction equipment, temperature sense equipment, infrared induction equipment etc.Wherein, while using photoinduction equipment, infrared induction equipment, shortcut, menu or button to switch lock-out state and released state, by user is artificial, switch; Terminal device utilizes temperature sense equipment automatically to carry out the setting of lock-out state, and user also can think and utilizes temperature sense equipment to control the switching between lock-out state and released state.Terminal device utilizes temperature sense equipment automatically to carry out the setting of lock-out state, and this has improved the ease for use of terminal device.
It should be noted that, described sensing apparatus can be an independently equipment, also can with the form of a module, be present in other equipment of terminal device.
Preferably, the embodiment of the present invention can serviceability temperature sensing apparatus be controlled the latching operation state of the shown application program of touch-screen automatically.When using terminal device after a period of time, the temperature of the temperature sense equipment in terminal device changes, and when temperature surpasses certain threshold value, temperature sense equipment can send an instruction that locks the shown application program of touch-screen to processor, processor is processed described instruction, realizes the shown application program of locking touch-screen.Alternatively, the embodiment of the present invention can also serviceability temperature sensing apparatus be carried out the latching operation state of the shown application program of manual control touch-screen, for example, under the touch-screen of terminal device, can configure temperature sense equipment, staff can improve the temperature of temperature sense equipment when certain position touches on touch-screen, and then make temperature sense equipment send an instruction that locks the shown application program of touch-screen, processor is processed described instruction, realizes the shown application program of locking touch-screen.
Preferably, the embodiment of the present invention can be controlled with photoinduction equipment the latching operation state of the shown application program of touch-screen.Photo-electric sensing equipment is by two assemblies, be that light projector and light-receiving device form, utilize light projector that rays pass through lens is focused on, through transmission and the lens of the light-receiving device that arrives, again to receiving inductor, inductor is transformed into electrical signal by the light signal of receiving, this electrical signal more can further be made various switch and control action, and its ultimate principle is done to the light between light projector light-receiving device signal that the action of covering obtains and used various robotizations and control.The electrical signal that terminal device can utilize photoinduction equipment to produce is controlled the latching operation state of touch-screen.
Alternatively, the embodiment of the present invention can also be used the latching operation state of the shown application program of menu control touch-screen.Locking touch-screen and two orders of release touch-screen are set in menu, by two bottom program codes corresponding to order, can control the latching operation state of touch-screen.
Alternatively, the embodiment of the present invention can also be used the latching operation state of the shown application program of button control touch-screen.Button comprises two states of pressing and upspring, and uses two state correspondences can control two states of the locking and unlocking of touch-screen.
Alternatively, the embodiment of the present invention can also be used shortcut to control the latching operation state of the shown application program of touch-screen.Press shortcut, by bottom program code corresponding to shortcut, can control the latching operation state of touch-screen.
It should be noted that; the embodiment of the present invention is only illustrated controlling the method for the latching operation state of touch-screen; the protection domain that more than explanation is not intended to limit the present invention, is used the latching operation state of other sensing apparatus control touch-screens also in the protection domain of the embodiment of the present invention.
When described latching operation state is lock-out state, execution step 104; When described latching operation state is released state, execution step 103.
Step 103, if described latching operation state is described released state, terminal device is processed according to described operational order.
When described latching operation state is described released state, the processor in terminal device is directly processed according to the operational order under normal state.Operational order under described normal state refers to the operational order consistent with common software operation flow process.
Step 104, if described latching operation state is described lock-out state, terminal device judges whether the type of described operational order is maloperation instruction type, if described operational order is maloperation instruction type, ignore described maloperation instruction, or show the processing prompt message of described operational order, according to processing instruction corresponding to described processing prompt message receiving, process.
Whether the described type that judges described operational order is also to comprise after maloperation instruction type: if described operational order is not maloperation instruction, according to described operational order, process.
Described maloperation instruction can be specifically single-click operation instruction, can also be that other easily cause the operational order of faulty operation.It should be noted that, the embodiment of the present invention be take single-click operation instruction and is described as example as maloperation instruction, but this does not form limiting the scope of the invention.
Describedly judge whether the type of described operational order is that maloperation instruction type is specially: whether the type that judges described operational order is single-click operation instruction.Describedly judge whether the type of described operational order is that single-click operation instruction is specially: first judge whether described operational order is the operational order of clicking type, it should be noted that, the operational order of clicking type comprises single-click operation instruction and long by operational order.Single-click operation instruction is the operational order of clicking type that is not more than time threshold the running time, while growing by operational order, the running time is greater than the operational order of clicking type of time threshold, if, described in detecting, click in the operational order of type and operate lasting time span, if described time span is no more than time threshold, judge that described operational order is single-click operation instruction; Otherwise judge that described operational order is for length is by operational order.
In the present embodiment, using single-click operation instruction as maloperation instruction type, and length is pressed operational order as normal running instruction type, do not think maloperation instruction type, this be because, the long operation duration by operation is longer, and user, when carrying out touch control operation, generally can not produce long by being operating as the such situation of maloperation.By the enforcement of above method, ensured that terminal device can not process as maloperation by operation long, improved the accuracy of terminal device identification maloperation.
Alternatively, described method also comprises: preset time threshold.Time threshold is the time having arranged in terminal device, as 0.1s, use this time and the time of clicking the operation of type to make comparisons, if the duration of operation is not more than time threshold, described in judgement, be operating as single-click operation, by terminal device, detected as maloperation; If the duration of operation is greater than time threshold, described in judgement, be operating as length by operation, do not think maloperation.
When the described operational order of clicking type is detected as length by operational order, according to described operational order, according to normal operating process, process; When described operation is detected as single-click operation, ignore described operational order, or show the processing prompt message of described operational order, according to processing instruction corresponding to described processing prompt message receiving, process.
Particularly, the non-click generic operation instruction such as except single-click operation instruction, described operational order also comprises translation, rotation, amplify, dwindle, and longly by operational order, double click operation instruction, three, hit operational order.If other operational orders except single-click operation instruction are non-maloperation instruction, when touch-screen is in the lock state, receive drag, during the non-click generic operation instruction such as rotation, two point drag, terminal device can be carried out translation, rotation, the operation such as amplify, dwindles; Receiving longly during by operational order, can carry out opening operation or carry out length under concrete application program by the corresponding operation of operational order; When receiving double click operation instruction, also can carry out opening operation or carry out the corresponding operation of double click operation instruction under concrete application program; Receiving three while hitting operational order, can carry out three under concrete application program and hit the corresponding operation of operational order.
Alternatively, user also can be further for corresponding application program, by corresponding setting option, and when touch-screen being set being in the lock state, the operation that user can carry out described application program.For example, for novel reader application, user can arrange can only amplify this application program, dwindle, the operation such as translation, for clicking, the operational order such as double-click, do not respond or be the position that highlighted demonstration is clicked, or display reminding information, which operation prompting user can carry out.
If described operational order is maloperation instruction, ignores described maloperation instruction, or show the processing prompt message of described operational order.The information that the processing prompt message of described operational order is for further processing to this operational order for prompting user, take single-click operation instruction as example, described processing prompt message specifically comprises: the information of carrying out release processing, or the information of carrying out page switching, or operate the information of switching.
Alternatively, touch after the processing prompt message of screen display single-click operation, user can operate according to processing prompt message.Described processing prompt message comprises the information that release is processed, and while showing the information of release processing, user can select touch-screen to carry out release.The lock-out state of touch-screen and the switching between released state are by sensing apparatus, shortcut, menu or unsteady button control.Described sensing apparatus comprises photoinduction equipment, temperature sense equipment, infrared induction equipment etc.
It should be noted that, described sensing apparatus can be an independently equipment, also can with the form of a module, be present in other equipment of terminal device.
Alternatively, when described processing prompt message is page switch prompting information, user can select to leave current page, enters a new page.For example, open a new link page, enter the contact details page.
Alternatively, when described processing prompt message is operation switch prompting information, user can select to carry out a new operation.For example, deletion action, interpolation operation etc.
Alternatively, all right highlighted demonstration of described processing prompt message, also can normally show.
Alternatively; described processing prompt message is except comprising the information of carrying out release processing; or the information of carrying out page switching; or operate outside the information of switching; can also comprise other processing prompt messages, the processing prompt message of all single-click operation is all in protection scope of the present invention.
In the present embodiment, terminal device receives the operational order that touch operation produces; Detect the latching operation state of the shown application program of touch-screen; If described latching operation state is lock-out state, whether the type that judges described operational order is maloperation instruction type, if described operational order is maloperation instruction type, ignore described operational order, or showing the processing prompt message of described operational order, processor is processed according to processing instruction corresponding to described processing prompt message receiving; If described operational order is not maloperation instruction type, according to described operational order, process.Realize thus the maloperation instruction of the application program to showing on touch-screen and processed, avoided maloperation, improved terminal device when running application, the ease for use of terminal device.
A kind of terminal device schematic diagram that Fig. 2 provides for the embodiment of the present invention.The present embodiment comprises with lower member:
Touch-screen 201 is for carrying out touch operation, and display application program, and the processing prompt message of display operation instruction.
Touch-screen detection part 202 is for detection of the contact information of the touch operation on touch-screen 201.
Processor 203 comprises: receiving element 204, and the described contact information sending for receiving described touch-screen detection part, and described contact information is converted to operational order or processing instruction; Detecting unit 205, for detection of the latching operation state of the shown described application program of described touch-screen, described latching operation state comprises lock-out state and released state; The first processing unit 206, while being described released state for described latching operation state detected when described detecting unit, processes according to described operational order; The second processing unit 207, while being described lock-out state for described latching operation state being detected when described detecting unit, whether the type that judges described operational order is maloperation instruction type, if described operational order is maloperation instruction type, ignore described operational order, or generate the processing prompt message of described operational order and pass to described touch-screen, processing instruction corresponding to described processing prompt message receiving according to described receiving element processed.
Preferably, the second processing unit 207 can also be for: if described operational order is not maloperation instruction, according to described operational order, process.
Described maloperation instruction type is single-click operation instruction.The second processing unit 207 specifically for: when described latching operation state is described lock-out state, judge whether described operational order is the operational order of clicking type, if, described in detecting, click in the operational order of type and operate lasting time span, if described time span is no more than time threshold, judge that described operational order is single-click operation instruction; Otherwise judge that described operational order is for length is by operational order.
The embodiment of the present invention provides the latching operation state of two kinds of touch-screens, comprises lock-out state and released state.The lock-out state of touch-screen and the switching between released state are by inductor, shortcut, menu or unsteady button control.Described inductor comprises optical inductor, temperature inductor, infrared inductor etc.It should be noted that, described inductor can be an independently equipment, also can with the form of a module, be present in other equipment of terminal device.
Optionally, with reference to Fig. 3, when using shortcut, menu, unsteady button or inductor to control the latching operation state of touch-screen, processor in the device that the embodiment of the present invention provides also comprises: setting unit 208, be connected with described detecting unit, for according to the instruction of the shown application program of the described touch-screen of locking of button or menu or shortcut or the triggering of described inductor, described application program is arranged to lock-out state.Detecting unit 205, specifically for the latching operation state of the described application program arranging according to described setting unit, detects the latching operation state of the shown described application program of described touch-screen.
Optionally, with reference to Fig. 4, when using inductor to control the latching operation state of touch-screen, the device that the embodiment of the present invention provides also comprises: inductor 209, and for triggering the instruction of the shown application program of the described touch-screen of locking.Described inductor can be optical inductor, temperature inductor, infrared inductor etc.Inductor 209 sends to setting unit 208 by the instruction of the shown application program of the described touch-screen of the triggering receiving, setting unit 208 is connected with described detecting unit, for according to the instruction of the shown application program of the described touch-screen of locking of button or menu or shortcut or the triggering of described inductor, described application program is arranged to lock-out state.
Described maloperation instruction can be specifically single-click operation instruction, can also be that other easily cause the operational order of faulty operation.It should be noted that, the embodiment of the present invention be take single-click operation instruction and is described as example as maloperation instruction, but this does not form limiting the scope of the invention.
Alternatively, on touch-screen 201, show that, after the processing prompt message of single-click operation, user can operate according to processing prompt message.Described processing prompt message comprises the information that release is processed, and while showing the information of release processing, user can select touch-screen 201 to carry out release.
It should be noted that, receiving element 204 in the embodiment of the present invention, detecting unit 205, the first processing unit 206, the second processing unit 207, setting unit 208 can adopt independent hardware module to realize, also can be the microprocessor integrating, can also be the functional module being integrated in master chip.
In the present embodiment, terminal device receives the operational order that touch operation produces; The latching operation state that detects the shown application program of touch-screen, described latching operation state comprises lock-out state and released state; If described latching operation state is described released state, according to described operational order, process; If described latching operation state is described lock-out state, whether the type that judges described operational order is maloperation instruction type, if described operational order is maloperation instruction type, touch the processing prompt message of operational order described in screen display, processor is processed according to processing instruction corresponding to described processing prompt message receiving.Realized thus the maloperation instruction of application program on touch-screen has been processed, avoided the maloperation of application programs, improved the ease for use of terminal device.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part of detailed description, can be referring to the associated description of other embodiment.
Professional should further recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software is clearly described, composition and the step of each example described according to function in the above description in general manner.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
The software module that the method for describing in conjunction with embodiment disclosed herein or the step of algorithm can use hardware, processor to carry out, or the combination of the two is implemented.Software module can be placed in the storage medium of any other form known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Above-described embodiment; object of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the foregoing is only the specific embodiment of the present invention; the protection domain being not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.