Embodiment
Through accompanying drawing and embodiment, technical scheme of the present invention is done further detailed description below.
The embodiment of the invention provides a kind of command processing method and terminal device to the present situation of touch-screen.Wherein, wherein, terminal device receives the operational order that touch operation produced; The latching operation state of the application program that the senses touch screen is shown, said latching operation state comprises lock-out state and released state; If said latching operation state is said released state, then handle according to said operational order; If said latching operation state is said lock-out state; Whether the type of then judging said operational order is the maloperation instruction type; If; Then ignore said operational order, or show the processing prompt message of said operational order, handle according to the said processing prompt message corresponding processing instruction that receives.Realized the function of locking user operation thus, 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 invention.As shown in Figure 1, present embodiment may further comprise the steps:
Step 101, terminal device is received the operational order that touch operation produced.
When on the touch-screen of terminal device, producing touch operation; The touch-screen detection part is with the contact information of the touch operation that receives; And said contact information sent to processor; Processor receives said contact information, and converts said contact information into operational order that said touch operation produces.
Step 102, the latching operation state of the application program that terminal device senses touch screen is shown, said latching operation state comprises lock-out state and released state.
Preferably; Also comprise before the latching operation state of said senses touch screen, receive the user through photoinduction equipment, or temperature sense equipment; Or infrared induction equipment; Or menu, or the instruction of the application program that shown of the said touch-screen of locking that triggers of button, the application program that needs is provided with lock-out state is provided with lock-out state.
Said method also comprises: the instruction of the application program that the said touch-screen of locking that reception temperature sense equipment sends is shown, it is lock-out state that said application program is set automatically.
Alternatively, the user can select only some application program in the terminal device to be carried out the setting of latching operation state, other application programs is not carried out said setting.For example, be used for to carry out the setting of latching operation state to browser application, the novel reader application do not carried out the setting of latching operation state.
Alternatively, after some application program was carried out being provided with of latching operation state, the user also can be directed against corresponding application further, through the corresponding setting item, and when touch-screen being set being in the lock state, the operation that the user can carry out said application program.
Need to prove that said lock-out state is meant the state that some operational order that is created on the touch-screen is locked.Under lock-out state, to being created in the single-click operation on the touch-screen, terminal device is not carried out normal single-click operation; Comprise that the page switches, or operation switches, or operation such as opening operation; But ignore said operational order; Or the high bright demonstration position of clicking, or show the information of aforesaid operations, wait for next step operational order to said information.Said released state is meant that terminal device is all handled by normal software processes flow process to being created in all operations instruction on the touch-screen.
Particularly, the embodiment of the invention provides the latching operation state of two kinds of application programs that touch-screen showed, comprises lock-out state and released state.The lock-out state of touch-screen and the switching between the released state are by sensing apparatus, shortcut, menu or unsteady button control.Said sensing apparatus comprises photoinduction equipment, temperature sense equipment, infrared induction equipment etc.Wherein, when using photoinduction equipment, infrared induction equipment, shortcut, menu or button to switch lock-out state and released state, switch by the user is artificial; Terminal device utilizes temperature sense equipment to carry out the setting of lock-out state automatically, and the user also can think and utilizes the switching between temperature sense device control lock-out state and the released state.Terminal device utilizes temperature sense equipment to carry out the setting of lock-out state automatically, and this has improved the ease for use of terminal device.
Need to prove that said sensing apparatus can be a separate equipment, also can be present in the form of a module in other equipment of terminal device.
Preferably, the embodiment of the invention can be come the latching operation state of the control application program that touch-screen showed automatically by the serviceability temperature sensing apparatus.When using terminal device after a period of time; The temperature of the temperature sense equipment in the terminal device changes; And when temperature surpasses certain threshold value; Temperature sense equipment can send the instruction of a locking application program that touch-screen showed to processor, and processor is handled said instruction, realizes the locking application program that touch-screen showed.Alternatively; The embodiment of the invention can also be come the latching operation state of the artificial control application program that touch-screen showed by the serviceability temperature sensing apparatus; For example; Under the touch-screen of terminal device, can dispose temperature sense equipment, staff can improve the temperature of temperature sense equipment when certain position touches on touch-screen, and then makes temperature sense equipment send the instruction of a locking application program that touch-screen showed; Processor is handled said instruction, realizes the locking application program that touch-screen showed.
Preferably, the embodiment of the invention can use photoinduction equipment to control the latching operation state of the application program that touch-screen shows.Photo-electric sensing equipment is by two assemblies; Be that light projector and light-receiving device are formed, utilize light projector that rays pass through lens is focused on, the lens of the light-receiving device that arrives through transmitting; Again to receiving inductor; Inductor is transformed into electrical signal with the light signal of receiving, this electrical signal more can further be made various switch and control action, and its ultimate principle is promptly done the signal that action obtained that covers to the light between the light projector light-receiving device and used to accomplish various robotization controls.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 invention can also be used the latching operation state of the application program that the menu control touch-screen shown.Locking touch-screen and two orders of release touch-screen are set in menu, can control the latching operation state of touch-screen through two corresponding bottom program codes of order.
Alternatively, the embodiment of the invention can also be used the latching operation state of the application program that the button control touch-screen shown.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 invention can also be used the latching operation state of the shortcut control application program that touch-screen showed.Press shortcut, can control the latching operation state of touch-screen through the corresponding bottom program code of shortcut.
Need to prove; The embodiment of the invention only is illustrated the method for latching operation state of control touch-screen; More than explanation and be not used in qualification protection scope of the present invention, the latching operation state that uses other sensing apparatus control touch-screens is also in the protection domain of the embodiment of the invention.
When said latching operation state is lock-out state, execution in step 104; When said latching operation state is released state, execution in step 103.
Step 103, if said latching operation state is said released state, then terminal device is handled according to said operational order.
When said latching operation state was said released state, the processor in the terminal device was directly handled according to the operational order under the normal state.Operational order under the said normal state is meant and software operation flow process uniform operation instruction usually.
Step 104; If said latching operation state is said lock-out state; Then terminal device judges whether the type of said operational order is the maloperation instruction type, if said operational order is the maloperation instruction type, then ignores said maloperation instruction; Or show the processing prompt message of said operational order, handle according to the said processing prompt message corresponding processing instruction that receives.
Whether the said type of judging said operational order is also to comprise after the maloperation instruction type: if said operational order is not the maloperation instruction, then handle according to said operational order.
Said maloperation instruction specifically can be the single-click operation instruction, can also be other operational orders that cause faulty operation easily.Need to prove that the embodiment of the invention is that example describes with the single-click operation instruction as the maloperation instruction, but this does not constitute the restriction to protection domain of the present invention.
Whether the said type of judging said operational order is specially for the maloperation instruction type: whether the type of judging said operational order is the single-click operation instruction.Whether the said type of judging said operational order is that the single-click operation instruction is specially: judge whether said operational order is the operational order of clicking type, need to prove earlier, the operational order of clicking type comprises the single-click operation instruction and grows by operational order.The single-click operation instruction is the operational order of clicking type that is not more than time threshold the running time; The running time is greater than the operational order of clicking type of time threshold when growing by operational order; If; Then detect the time span that operation continues in the said operational order of clicking type,, judge that then said operational order is the single-click operation instruction if said time span is no more than time threshold; Otherwise judge that said operational order is long by operational order.
In the present embodiment; Single-click operation is instructed as the maloperation instruction type, and length is pressed operational order as the normal running instruction type, does not think the maloperation instruction type; This be because; The long operation duration by operation is longer, and the user generally can not produce long by being operating as the such situation of maloperation when carrying out touch control operation.Through the enforcement of above method, ensured that terminal device can not handle as maloperation growing by operation, improved the accuracy of terminal device identification maloperation.
Alternatively, said method also comprises: preestablish time threshold.Time threshold is the time that has been provided with in the terminal device; Like 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; Then judge the said single-click operation that is operating as, promptly being detected by terminal device is maloperation; If the duration of operation, is then judged the said length that is operating as greater than time threshold and by operation, is not thought maloperation.
When the said operational order of clicking type is detected as length by operational order, handle according to normal operating process according to said operational order; When said operation is detected as single-click operation, then ignore said operational order, or show the processing prompt message of said operational order, handle according to the said processing prompt message corresponding processing instruction that receives.
Particularly, non-click generic operation instruction such as except that single-click operation instruction, said operational order also comprises translation, rotation, amplify, dwindle, and longly hit operational order by operational order, double click operation instruction, three.If other operational orders except that the single-click operation instruction are non-maloperation instruction; When then touch-screen is in the lock state; Receive drag, during non-click generic operation instruction such as rotation, two point drag, operation such as terminal device can carry out translation, rotation, amplify, dwindle; Receiving longly during, can carry out opening operation or carry out length under the concrete application program by the pairing operation of operational order by operational order; Receiving double click operation when instruction, also can carry out opening operation or carry out double click operation under the concrete application program and instruct pairing operation; Receiving three when hitting operational order, can carry out three under the concrete application program and hit the pairing operation of operational order.
Alternatively, the user also can be directed against corresponding application further, through the corresponding setting item, and when touch-screen being set being in the lock state, the operation that the user can carry out said application program.For example; For the novel reader application; The user can be provided with can only amplify this application program, dwindle, operation such as translation, for click, operational order such as double-click, then do not do response or be the position that high bright demonstration is clicked; Perhaps display reminding information points out the user can carry out which operation.
If said operational order is the maloperation instruction, then ignores said maloperation instruction, or show the processing prompt message of said operational order.The information that the processing prompt message of said operational order is for further processing to this operational order for the prompting user; With the single-click operation instruction is example; Said processing prompt message specifically comprises: carry out the information that release is handled; Or carry out the information that the page switches, or the information of operating switching.
Alternatively, behind the processing prompt message of demonstration single-click operation, the user can operate according to processing prompt message on the touch-screen.Said processing prompt message comprises the information that release is handled, and when showing the information of release processing, the user can select touch-screen is carried out release.The lock-out state of touch-screen and the switching between the released state are by sensing apparatus, shortcut, menu or unsteady button control.Said sensing apparatus comprises photoinduction equipment, temperature sense equipment, infrared induction equipment etc.
Need to prove that said sensing apparatus can be a separate equipment, also can be present in the form of a module in other equipment of terminal device.
Alternatively, when said processing prompt message was page switch prompting information, the user can select to leave current page, got into a new page.For example, open a new link page, get into the contact details page.
Alternatively, when said processing prompt message was operation switch prompting information, the user can select to carry out a new operation.For example, deletion action, interpolation operation etc.
Alternatively, all right high bright demonstration of said processing prompt message also can normally show.
Alternatively; Said processing prompt message carries out the information that release is handled except comprising; 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 produced; The latching operation state of the application program that the senses touch screen is shown; If said latching operation state is a lock-out state; Whether the type of then judging said operational order is the maloperation instruction type; If said operational order is the maloperation instruction type; Then ignore said operational order, or show the processing prompt message of said operational order, processor is handled according to the said processing prompt message corresponding processing instruction that receives; If said operational order is not the maloperation instruction type, then handle according to said operational order.Realized thus the maloperation instruction of the application program of showing on the touch-screen is handled, avoided maloperation, improved terminal device when running application, the ease for use of terminal device.
A kind of terminal device synoptic diagram that Fig. 2 provides for the embodiment of the invention.Present embodiment comprises with lower component:
Touch-screen 201 is used to carry out touch operation and shows application program and the processing prompt message of display operation instruction.
Touch-screen detection part 202 is used for the contact information of the touch operation on the senses touch screen 201.
Processor 203 comprises: receiving element 204 is used to receive the said contact information that said touch-screen detection part sends, and converts said contact information into operational order or processing instruction; Detecting unit 205 is used to detect the latching operation state of the said application program that said touch-screen shows, said latching operation state comprises lock-out state and released state; First processing unit 206, be used for when said detection when said latching operation state is said released state, handle according to said operational order; Second processing unit 207; Be used for when said detection when said latching operation state is said lock-out state; Whether the type of judging said operational order is the maloperation instruction type, if said operational order is the maloperation instruction type, then ignores said operational order; Or generate the processing prompt message of said operational order and pass to said touch-screen, handle according to the said processing prompt message corresponding processing instruction that said receiving element receives.
Preferably, second processing unit 207 can also be used for: if said operational order is not the maloperation instruction, then handle according to said operational order.
Said maloperation instruction type is the single-click operation instruction.Second processing unit 207 specifically is used for: when said latching operation state is said lock-out state; Judge whether said operational order is the operational order of clicking type; If; Then detect the time span that operation continues in the said operational order of clicking type,, judge that then said operational order is the single-click operation instruction if said time span is no more than time threshold; Otherwise judge that said operational order is long by operational order.
The embodiment of the 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 the released state are by inductor, shortcut, menu or unsteady button control.Said inductor comprises optical inductor, temperature inductor, infrared inductor etc.Need to prove that said inductor can be a separate equipment, also can be present in the form of a module in other equipment of terminal device.
Optional; With reference to Fig. 3; When using the latching operation state of shortcut, menu, unsteady button or inductor control touch-screen, the processor in the device that the embodiment of the invention provided also comprises: unit 208 is set, is connected with said detecting unit; The instruction of the application program that is used for being shown according to the said touch-screen of locking that button or menu or shortcut or said inductor trigger is provided with lock-out state with said application program.Detecting unit 205 specifically is used for: according to the said latching operation state that the said application program that the unit is provided with is set, detect the latching operation state of the said application program that said touch-screen shows.
Optional, with reference to Fig. 4, when using the latching operation state of inductor control touch-screen, the device that the embodiment of the invention provided also comprises: inductor 209 is used to trigger the instruction of the locking application program that said touch-screen showed.Said inductor can be optical inductor, temperature inductor, infrared inductor etc.The instruction of the application program that the said touch-screen of triggering that inductor 209 will receive is shown sends to unit 208 is set; Unit 208 is set to be connected with said detecting unit; The instruction of the application program that is used for being shown according to the said touch-screen of locking that button or menu or shortcut or said inductor trigger is provided with lock-out state with said application program.
Said maloperation instruction specifically can be the single-click operation instruction, can also be other operational orders that cause faulty operation easily.Need to prove that the embodiment of the invention is that example describes with the single-click operation instruction as the maloperation instruction, but this does not constitute the restriction to protection domain of the present invention.
Alternatively, behind the processing prompt message of demonstration single-click operation, the user can operate according to processing prompt message on the touch-screen 201.Said processing prompt message comprises the information that release is handled, and when showing the information of release processing, the user can select touch-screen 201 is carried out release.
Need to prove; Receiving element 204 in the embodiment of the invention, detecting unit 205, first processing unit 206, second processing unit 207, unit 208 is set adopts independent hardware module to realize; Also can be a microprocessor that integrates, can also be the functional module that is integrated in the master chip.
In the present embodiment, terminal device receives the operational order that touch operation produced; The latching operation state of the application program that the senses touch screen is shown, said latching operation state comprises lock-out state and released state; If said latching operation state is said released state, then handle according to said operational order; If said latching operation state is said lock-out state; Whether the type of then judging said operational order is the maloperation instruction type; If said operational order is the maloperation instruction type; The processing prompt message that then shows said operational order on the touch-screen, processor is handled according to the said processing prompt message corresponding processing instruction that receives.Realized thus the maloperation instruction of application program on the touch-screen is handled, 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, do not have the part that details among certain embodiment, can be referring to the associated description of other embodiment.
The professional should further recognize; The 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 clearly is described, the composition and the step of each example described prevailingly according to function in above-mentioned explanation.These functions still are that software mode is carried out with hardware actually, depend on the application-specific and the design constraint of technical scheme.The professional and technical personnel can use distinct methods to realize described function to each certain applications, 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, perhaps the combination of the two is implemented.Software module can place 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 the technical field.
Above-described embodiment; The object of the invention, technical scheme and beneficial effect have been carried out further explain, and institute it should be understood that the above is merely embodiment of the present invention; And be not used in qualification protection scope of the present invention; All within spirit of the present invention and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.