CN106909250B - Touch operation processing method and device and mobile terminal - Google Patents

Touch operation processing method and device and mobile terminal Download PDF

Info

Publication number
CN106909250B
CN106909250B CN201710117878.7A CN201710117878A CN106909250B CN 106909250 B CN106909250 B CN 106909250B CN 201710117878 A CN201710117878 A CN 201710117878A CN 106909250 B CN106909250 B CN 106909250B
Authority
CN
China
Prior art keywords
touch
event
upper layer
touch operation
reporting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710117878.7A
Other languages
Chinese (zh)
Other versions
CN106909250A (en
Inventor
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710117878.7A priority Critical patent/CN106909250B/en
Publication of CN106909250A publication Critical patent/CN106909250A/en
Application granted granted Critical
Publication of CN106909250B publication Critical patent/CN106909250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the invention discloses a touch operation processing method and device and a mobile terminal. The method comprises the following steps: when the touch screen is detected to be touched by a first object, reporting a pressing event to an upper layer; reporting mis-touch information to an upper layer when judging that the current touch area of the first object and the touch screen is larger than a first preset threshold value; when a first object is detected to leave the touch screen, reporting a lifting event to an upper layer; and performing corresponding false touch prevention processing on the touch operation corresponding to the pressing event through the upper layer according to the false touch information and the lifting event. By adopting the technical scheme, the embodiment of the invention can effectively avoid the error touch operation of parts except fingers or other objects caused by large-area touch of the screen.

Description

Touch operation processing method and device and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of touch screens, in particular to a touch operation processing method and device and a mobile terminal.
Background
Currently, a touch screen is a standard configuration of most mobile terminals, and a mobile terminal user can easily and quickly implement various operations on the mobile terminal through the touch screen. Based on the factors of enabling the screen of the mobile terminal to display more contents, improving the viewing experience of the user and the like, the size of the touch screen is larger and larger, and under the trend, in order to take account of the portability and the attractiveness of the mobile terminal, the screen occupation ratio becomes a new index for measuring the performance of the mobile terminal. In order to pursue a higher screen occupation ratio and reduce the influence of the screen frame on the visual effect, narrow-frame or frameless designs have become means for optimizing mobile terminals that various mobile terminal manufacturers strive to adopt, and the narrow-frame and frameless mobile terminals are also favored by consumers more and more.
When a user uses the mobile terminal, a situation that the touch screen is touched by a palm or a tiger's mouth carelessly to cause false triggering often occurs, and the probability of the occurrence of the situation is higher for the mobile terminal which adopts a large-size screen, especially a narrow-frame or frameless design. Therefore, a solution for preventing accidental touch is needed to reduce the occurrence of the above situation.
Disclosure of Invention
The embodiment of the invention provides a touch operation processing method and device and a mobile terminal, which can prevent mistaken touch of a touch screen.
In a first aspect, an embodiment of the present invention provides a method for processing a touch operation, including:
when the touch screen is detected to be touched by a first object, reporting a pressing event to an upper layer;
reporting false touch information to the upper layer when judging that the current touch area of the first object and the touch screen is larger than a first preset threshold value;
when the first object is detected to leave the touch screen, reporting a lifting event to the upper layer;
and performing corresponding false touch prevention processing on the touch operation corresponding to the pressing event through the upper layer according to the false touch information and the lifting event.
In a second aspect, an embodiment of the present invention provides a touch operation processing apparatus, including:
a press event reporting module, configured to report a press event to an upper layer when it is detected that the touch screen is touched by the first object;
the false touch information reporting module is used for reporting false touch information to the upper layer when judging that the current touch area of the first object and the touch screen is larger than a first preset threshold value;
a lift-off event reporting module, configured to report a lift-off event to the upper layer when it is detected that the first object leaves the touch screen;
and the touch operation processing module is used for performing corresponding false touch prevention processing on the touch operation corresponding to the pressing event through the upper layer according to the false touch information and the lifting event.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the following steps:
when the touch screen is detected to be touched by a first object, reporting a pressing event to an upper layer;
reporting false touch information to the upper layer when judging that the current touch area of the first object and the touch screen is larger than a first preset threshold value;
when the first object is detected to leave the touch screen, reporting a lifting event to the upper layer;
and performing corresponding false touch prevention processing on the touch operation corresponding to the pressing event through the upper layer according to the false touch information and the lifting event.
According to the processing scheme of the touch operation provided by the embodiment of the invention, when the touch screen is detected to be touched by the first object, the pressing event is reported to the upper layer, when the current touch area between the first object and the touch screen is judged to be larger than the first preset threshold value, the false touch information is reported to the upper layer, when the first object is detected to leave the touch screen, the lifting event is reported to the upper layer, and finally, the corresponding false touch prevention processing is carried out on the touch operation corresponding to the pressing event through the upper layer according to the false touch information and the lifting event. By adopting the technical scheme, the error touch operation of parts except fingers or other objects caused by large-area touch of the screen can be effectively avoided.
Drawings
Fig. 1 is a schematic flowchart illustrating a touch operation processing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another touch operation processing method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a processing method of another touch operation according to an embodiment of the present invention;
fig. 4 is a block diagram of a touch operation processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart illustrating a method for processing a touch operation according to an embodiment of the present invention, where the method may be performed by a touch operation processing apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a mobile terminal. As shown in fig. 1, the method includes:
step 101, reporting a pressing event to an upper layer when detecting that the touch screen is touched by a first object.
For example, the mobile terminal in this embodiment may be specifically a device such as a smart phone and a tablet computer, which is integrated with a touch screen.
For example, the first object may include an object that can be recognized by the touch screen, such as a finger, a palm, and a web of a user, and may further include other objects such as a touch pen, a glove, and a cloth of a trousers pocket.
The touch screen adopted by the existing mobile terminal comprises a resistance type touch screen, a capacitance type touch screen, a piezoelectric type touch screen and the like, when a first object touches the touch screen, the touch screen can acquire touch information, and therefore the touch screen is detected to be touched by the first object. Taking a capacitive touch screen as an example, the touch screen can sense the change of capacitance, when a first object touches the touch screen, the touch screen senses the change of capacitance, and then obtains touch information, where the touch information includes x and y coordinates of a touch position, a size (including length and width) of a contact surface, a touch pressure value, and other touch data.
For example, in this step, it may be detected whether the touch screen is touched by the first object through the driving layer, and when the touch screen is detected to be touched, a DOWN event is reported to an upper layer. The upper layer described in the embodiments of the present invention may be a frame layer.
Optionally, when reporting the press event to the upper layer, the method further includes: and starting to report the touch data of the touch screen when the touch screen is touched to the upper layer. When the touch screen is touched by the first object, the driving layer can report the acquired touch data to the frame layer in time, so that the frame layer can quickly execute corresponding operation according to the touch data at a proper time. Before the first object leaves the touch screen, the touch screen can sense the touched object in real time, so the driving layer can also acquire touch data in real time and report the acquired touch data to the frame layer in time.
And 102, reporting false touch information to an upper layer when judging that the current touch area of the first object and the touch screen is larger than a first preset threshold value.
Generally, a user uses a finger to operate on the touch screen, and the contact area between the finger and the touch screen is limited and generally smaller than a certain value. However, when the palm or the skin of a tiger's mouth or other objects touch the touch screen carelessly, the contact area between the palm or the skin of the tiger's mouth or other objects and the touch screen is usually large, so that whether the false touch operation occurs or not can be judged according to the touch area.
For a touch operation, when the driving layer detects that the touch screen is touched, the driving layer reports a press-down event to the frame layer, when the driving layer detects that an object leaves, the driving layer reports a lift-UP (UP) event to the frame layer, and the frame layer responds to the touch operation according to the received press-down event and lift-UP event.
In the prior art, a scheme for preventing false touch exists, when it is detected that an object touches a touch screen, whether the current touch area of the object and the touch screen is larger than a certain threshold value is judged, if so, the false operation is judged, and a pressing event is not reported; if not, judging normal touch, and reporting a pressing event. The inventor finds that the false touch prevention scheme has the following defects: because the parts such as the palm usually have a gradual change process when contacting the touch screen, that is, the touch area is changed from small to large, and the touch area is smaller than the threshold value when the palm is initially contacted, a press-down event can be reported, and a lift-up event can still be reported when the palm leaves the touch screen, so that the frame layer responds to the misoperation.
In the embodiment of the invention, after the press-down event is reported, the driving layer can judge whether the current touch area of the first object and the touch screen is larger than a first preset threshold value in real time, if so, the driving layer can indicate that the mistaken touch occurs, and report the mistaken touch information to the frame layer. The contact area between the finger and the screen during normal touch can be determined by means of investigation or sampling and the like, and then a first preset threshold value is set; the first preset threshold may also be set according to a user's touch habits. The embodiment of the present invention does not limit the specific setting manner and the specific value of the first preset threshold. The false touch information may be embodied in the form of a flag bit, for example, when a false touch occurs, the set flag bit has a value of 1, and when a false touch does not occur, the set flag bit has a value of 0.
Preferably, when reporting the false touch information to the upper layer, the method further includes: and stopping reporting the touch data of the touch screen when the touch screen is touched to the upper layer. The method has the advantages that when the current touch area of the first object and the touch screen is judged to be larger than the first preset threshold value, the mistaken touch is determined to occur, the reporting of touch data is stopped, the frame layer can be prevented from responding to misoperation such as long press or sliding caused by the mistaken touch, and the more comprehensive mistaken touch preventing effect is achieved. In addition, the power consumption loss caused by data reporting can be reduced by stopping reporting the touch data.
And 103, when the first object is detected to leave the touch screen, reporting a lifting event to an upper layer.
For example, when the driving layer detects that the first object leaves the touch screen, it indicates that this false touch operation is finished, and may report a lift-up event to the frame layer, so that the frame layer performs corresponding false touch prevention processing on the false touch operation corresponding to this press-down event.
And step 104, performing corresponding false touch prevention processing on the touch operation corresponding to the pressing event through the upper layer according to the false touch information and the lifting event.
Illustratively, when the frame layer receives the false touch information, it is known that the touch event at the beginning of the touch and the subsequent lift event are events that may cause the false operation of the touch screen, and then the frame layer may adopt a corresponding strategy to perform the false touch prevention processing on the false operation, so as to avoid the false operation of objects such as a palm on the touch screen.
For example, since different touch positions correspond to different operation objects on the screen, the operation objects may be application icons, buttons, desktop and website links, and the like. Different operation pairs may have different response mechanisms to the touch operation, some operation objects may respond to the touch operation after the frame layer receives the lift-off event, and some operation objects may respond to the touch operation before the frame layer receives the lift-off event, so that targeted anti-false touch processing is required.
Optionally, the step may include: judging whether touch operation corresponding to the pressing event is executed or not through the upper layer; if yes, recovering to the state before the touch operation is executed; and if not, shielding the touch operation. For example, the restoration to the state before the touch operation is performed may be understood as eliminating the influence of the touch operation on the mobile terminal, for example, as a result of performing the touch operation, the first button is triggered, and an operation corresponding to the triggered event of the first button is performed, such as switching from the first interface to the second interface, the restoration to the state before the touch operation is performed is switching from the second interface back to the first interface, as if the first button is not triggered. For example, masking the touch operation may be understood as preventing the touch operation from being performed, i.e. the touch operation that is about to be triggered by the lift-off event is not performed although the lift-off event is received.
According to the touch operation processing method provided by the embodiment of the invention, when the bottom layer of the mobile terminal detects that the touch screen is touched by a first object, a pressing event is reported to the upper layer, when the current touch area between the first object and the touch screen is judged to be larger than a first preset threshold value, false touch information is reported to the upper layer, when the first object is detected to leave the touch screen, a lifting event is reported to the upper layer, and finally, corresponding false touch prevention processing is carried out on the touch operation corresponding to the pressing event through the upper layer according to the false touch information and the lifting event. By adopting the technical scheme, the error touch operation of parts except fingers or other objects caused by large-area touch of the screen can be effectively avoided.
Optionally, on the basis of the above technical solution, when it is detected that the touch screen is touched by the first object, reporting a press event to an upper layer includes: when the touch screen is detected to be touched by a first object, if the current touch area between the first object and the touch screen is judged to be smaller than a second preset threshold value, reporting a pressing event to an upper layer. The setting mode of the second preset threshold may be similar to that of the first preset threshold, and the specific numerical values may be the same or different. The advantage of this optimization is that if the touch area of the first object just contacting the touch screen is smaller than the second preset threshold, it indicates that normal touch is possible, so the press event is reported to the upper layer. If the current touch area of the first object and the touch screen is judged to be larger than or equal to the second preset threshold value, which can be indicated as false touch, the pressing event cannot be reported to the upper layer, the false touch prevention work is completed from the moment of the first false touch, and the system resources are saved.
Fig. 2 is a schematic flow chart of another touch operation processing method according to an embodiment of the present invention, where the method includes the following steps:
step 201, reporting a pressing event to a frame layer when it is detected that the touch screen is touched by a first object.
Step 202, judging whether the current touch area of the first object and the touch screen is larger than a first preset threshold value, if so, executing step 203; otherwise, step 202 is repeated.
And step 203, reporting the false touch information to the framework layer.
And step 204, reporting a lifting event to the frame layer when the first object is detected to leave the touch screen.
Step 205, judging whether the touch operation corresponding to the pressing event is an application program starting operation or not through the frame layer, if so, executing step 206; otherwise, step 209 is performed.
For example, many different applications may be loaded in the mobile terminal, the starting mechanisms of the applications may be different, some applications may be started when a press event is received, and some applications may be started when a lift event is received, so that the targeted anti-false-touch processing may be performed according to different starting mechanisms of different applications.
For example, whether the touch operation corresponding to the pressing event is an operation for starting the application program may be determined according to whether the coordinate or the area corresponding to the touch area includes the icon of the application program.
Step 206, determining the starting type of the application program to be started, and executing step 207 when the starting type is the starting by pressing an event; when the activation type is lift-off event activation, step 208 is performed.
Step 207, the started application is closed.
For example, the process corresponding to the started application program may be closed, that is, the process corresponding to the started application program is killed, specifically, the framework layer may first obtain the process name of the process corresponding to the application program to be started, and kill the corresponding process according to the process name. It can be understood that, when the time of reporting the false touch information is close enough to the time of reporting the press event, although the application program is started by receiving the press event, a certain time is required from the start to the display of the application interface (for example, the interface of the application program usually needs a certain drawing time, and is sent to the display screen for display after the drawing is completed), if the process of the application program is closed before the display of the application interface, the user does not perceive that the application program is already started, and the interference of the false touch on the user can be effectively eliminated. In addition, if the application interface of the application program is displayed, after the step is executed, the application program which the user does not want to start can be automatically closed, manual closing operation of the user is reduced, and a good false touch prevention effect is achieved.
And step 208, preventing the application program to be started from being started.
For example, although a lift-off event is received, the operation of starting the application program that is about to be triggered by the lift-off event is not performed.
And 209, performing corresponding false touch prevention processing on other types of touch operations corresponding to the press-down event through the frame layer according to the false touch information and the lift-up event.
By adopting the technical scheme, when the user wants to start a certain application program through the error touch operation, the embodiment of the invention can carry out targeted error touch prevention processing according to the starting type of the application program, thereby avoiding the error starting of the application program due to the error touch.
Fig. 3 is a schematic flowchart of a processing method of another touch operation according to an embodiment of the present invention, where the method includes the following steps:
step 301, detecting that the touch screen is touched by a current object.
Step 302, judging whether the current touch area between the current object and the touch screen is smaller than a second preset threshold value, if so, executing step 304; otherwise, step 303 is performed.
Step 303, the press event is not reported to the framework layer, and the process is ended.
For example, this step may further include setting the touch data upload state of the touch position to a suspend state, taking the current object as the current object when it is detected that the touch position is touched by an object after the current object is detected to leave the touch screen, and returning to perform step 302.
For example, the touch data uploading state of the touch position is in a suspended state, that is, the drive layer does not report the touch data of the touch position to the frame layer.
And step 304, reporting the pressing event to the frame layer, starting to report touch data of the touch screen when the touch screen is touched to the frame layer, and executing step 305.
Step 305, judging whether the current touch area between the current object and the touch screen is larger than a first preset threshold value, if so, executing step 306; otherwise, step 305 is repeated.
And step 306, reporting the false touch information to the frame layer, and stopping reporting the touch data when the touch screen is touched to the frame layer.
It should be noted that the touch data that is stopped reporting to the frame layer is touch data generated when the current object is in contact with the touch screen in step 305, and uploading of touch data when other positions of the touch screen are touched is not affected by this step.
And 307, reporting a lifting event to the frame layer when the current object is detected to leave the touch screen.
Step 308, judging whether the touch operation corresponding to the pressing event is an application program starting operation or not through the frame layer, and if so, executing step 309; otherwise, step 312 is performed.
Step 309, determining the starting type of the application program to be started, and executing step 310 when the starting type is the starting by pressing an event; when the activation type is lift-off event activation, step 311 is performed.
Step 310, the started application program is closed.
Step 311, preventing the application program to be started from being started.
And step 312, performing corresponding false touch prevention processing on other types of touch operations corresponding to the press-down event through the frame layer according to the false touch information and the lift-up event.
By adopting the technical scheme, the embodiment of the invention can comprehensively identify the false touch and timely perform false touch prevention treatment, and particularly can effectively prevent the application program from being started by mistake due to the false touch.
Fig. 4 is a block diagram of a touch operation processing apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and may process a touch operation by executing a touch operation processing method. As shown in fig. 4, the apparatus includes:
a pressed event reporting module 401, configured to report a pressed event to an upper layer when it is detected that the touch screen is touched by the first object;
a false touch information reporting module 402, configured to report false touch information to the upper layer when it is determined that the current touch area between the first object and the touch screen is greater than a first preset threshold;
a lift-off event reporting module 403, configured to report a lift-off event to the upper layer when it is detected that the first object leaves the touch screen;
and the touch operation processing module 404 is configured to perform corresponding false touch prevention processing on the touch operation corresponding to the press-down event through the upper layer according to the false touch information and the lift-up event.
According to the processing device for touch operation provided by the embodiment of the invention, when the touch screen is detected to be touched by the first object, the pressing event is reported to the upper layer, when the current touch area between the first object and the touch screen is judged to be larger than the first preset threshold value, the false touch information is reported to the upper layer, when the first object is detected to leave the touch screen, the lifting event is reported to the upper layer, and finally, the corresponding false touch prevention processing is carried out on the touch operation corresponding to the pressing event through the upper layer according to the false touch information and the lifting event. By adopting the technical scheme, the error touch operation of parts except fingers or other objects caused by large-area touch of the screen can be effectively avoided.
Optionally, the touch operation processing module is configured to:
judging whether the touch operation corresponding to the pressing event is executed or not through the upper layer;
if yes, recovering to the state before the touch operation is executed; and if not, shielding the touch operation.
Optionally, the determining, by the upper layer, whether the touch operation corresponding to the pressing event has been executed includes:
judging whether the touch operation corresponding to the pressing event is application program starting operation or not through the upper layer, and if the touch operation corresponding to the pressing event is application program starting operation, determining the starting type of the application program to be started;
when the starting type is starting of a pressing event, determining that the touch operation is executed; when the starting type is the lifting event starting, determining that the touch operation is not executed;
the restoring to the state before the touch operation is performed includes:
closing the started application program;
the shielding the touch operation comprises:
the start of the application to be started is prevented.
Optionally, the apparatus further includes a touch data reporting module, configured to report a pressing event to the upper layer and start reporting touch data when the touch screen is touched to the upper layer; and when the mistaken touch information is reported to the upper layer, the reporting of the touch data of the touch screen when the touch screen is touched to the upper layer is stopped.
Optionally, the pressed event reporting module is configured to:
when the touch screen is detected to be touched by a first object, if the current touch area between the first object and the touch screen is judged to be smaller than a second preset threshold value, reporting a pressing event to an upper layer.
The embodiment of the invention provides a mobile terminal, and an information acquisition device of the mobile terminal provided by the embodiment of the invention can be integrated in the mobile terminal. Fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in fig. 5, the mobile terminal may include: a housing (not shown), a memory 501, a Central Processing Unit (CPU) 502 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU502 and the memory 501 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory 501 is used for storing executable program codes; the CPU502 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 501 to implement the steps of:
when the touch screen is detected to be touched by a first object, reporting a pressing event to an upper layer;
reporting false touch information to the upper layer when judging that the current touch area of the first object and the touch screen is larger than a first preset threshold value;
when the first object is detected to leave the touch screen, reporting a lifting event to the upper layer;
and performing corresponding false touch prevention processing on the touch operation corresponding to the pressing event through the upper layer according to the false touch information and the lifting event.
The mobile terminal further includes: peripheral interface 503, RF (Radio Frequency) circuitry 505, audio circuitry 506, speakers 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/control devices 510, and external port 504, which communicate via one or more communication buses or signal lines 507.
It should be understood that the illustrated mobile terminal 500 is merely one example of a mobile terminal and that the mobile terminal 500 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the mobile terminal for touch operation processing provided in this embodiment, which is exemplified by a mobile phone.
A memory 501, the memory 501 being accessible by the CPU502, the peripheral interface 503, and the like, the memory 501 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 503, the peripheral interface 503 may connect input and output peripherals of the device to the CPU502 and the memory 501.
An I/O subsystem 509, which I/O subsystem 509 may connect input and output peripherals on the device, such as a touch screen 512 and other input/control devices 510, to the peripheral interface 503. The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Where one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, the other input/control devices 510 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 5092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 512, which is an input interface and an output interface between the user's mobile terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or transmits electrical signals to the touch screen 512. The touch screen 512 detects a contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 512, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 512 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 505 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 505 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 505 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. The RF circuitry 505 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electric signal, and transmit the electric signal to the speaker 511.
The speaker 511 is used for restoring the voice signal received by the handset from the wireless network through the RF circuit 505 to sound and playing the sound to the user.
And a power management chip 508 for supplying power and managing power to the hardware connected to the CPU502, the I/O subsystem, and the peripheral interfaces.
The mobile terminal provided by the embodiment of the invention can effectively avoid the false touch operation of parts except fingers or other objects caused by large-area touch of the screen.
The processing device and the mobile terminal for touch operation provided in the above embodiments can execute the processing method for touch operation provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments may be referred to a processing method of a touch operation provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (6)

1. A method for processing touch operation is characterized by comprising the following steps:
when the touch screen is detected to be touched by a first object, reporting a pressing event to an upper layer;
reporting false touch information to the upper layer when judging that the current touch area of the first object and the touch screen is larger than a first preset threshold value;
when the first object is detected to leave the touch screen, reporting a lifting event to the upper layer;
judging whether the touch operation corresponding to the pressing event is executed or not through the upper layer, wherein the judging step comprises the following steps: judging whether the touch operation corresponding to the pressing event is application program starting operation or not through the upper layer, and if the touch operation corresponding to the pressing event is application program starting operation, determining the starting type of the application program to be started;
when the starting type is starting of a pressing event, determining that the touch operation is executed; when the starting type is the lifting event starting, determining that the touch operation is not executed;
if yes, recovering to the state before the touch operation is executed; if not, shielding the touch operation; wherein the restoring to the state before the touch operation is performed includes:
closing the started application program;
the shielding the touch operation comprises:
the start of the application to be started is prevented.
2. The method of claim 1,
when reporting the press event to the upper layer, the method further comprises the following steps:
starting to report touch data when the touch screen is touched to the upper layer;
when reporting the false touch information to the upper layer, the method further comprises the following steps:
and stopping reporting the touch data of the touch screen when being touched to the upper layer.
3. The method of claim 1, wherein reporting a press event to an upper layer upon detecting that the touch screen is touched by a first object comprises:
when the touch screen is detected to be touched by a first object, if the current touch area between the first object and the touch screen is judged to be smaller than a second preset threshold value, reporting a pressing event to an upper layer.
4. A touch-operated processing apparatus, comprising:
a press event reporting module, configured to report a press event to an upper layer when it is detected that the touch screen is touched by the first object;
the false touch information reporting module is used for reporting false touch information to the upper layer when judging that the current touch area of the first object and the touch screen is larger than a first preset threshold value;
a lift-off event reporting module, configured to report a lift-off event to the upper layer when it is detected that the first object leaves the touch screen;
the touch operation processing module is configured to determine, by the upper layer, whether a touch operation corresponding to the press event has been executed, and includes: judging whether the touch operation corresponding to the pressing event is application program starting operation or not through the upper layer, and if the touch operation corresponding to the pressing event is application program starting operation, determining the starting type of the application program to be started;
when the starting type is starting of a pressing event, determining that the touch operation is executed; when the starting type is the lifting event starting, determining that the touch operation is not executed;
if yes, recovering to the state before the touch operation is executed; if not, shielding the touch operation, wherein the restoring to the state before the touch operation is executed includes:
closing the started application program;
the shielding the touch operation comprises:
the start of the application to be started is prevented.
5. The apparatus of claim 4, wherein the pressed event reporting module is configured to:
when the touch screen is detected to be touched by a first object, if the current touch area between the first object and the touch screen is judged to be smaller than a second preset threshold value, reporting a pressing event to an upper layer.
6. A mobile terminal comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program performs the steps of:
when the touch screen is detected to be touched by a first object, reporting a pressing event to an upper layer;
reporting false touch information to the upper layer when judging that the current touch area of the first object and the touch screen is larger than a first preset threshold value;
when the first object is detected to leave the touch screen, reporting a lifting event to the upper layer;
judging whether the touch operation corresponding to the pressing event is executed or not through the upper layer, wherein the judging step comprises the following steps: judging whether the touch operation corresponding to the pressing event is application program starting operation or not through the upper layer, and if the touch operation corresponding to the pressing event is application program starting operation, determining the starting type of the application program to be started;
when the starting type is starting of a pressing event, determining that the touch operation is executed; when the starting type is the lifting event starting, determining that the touch operation is not executed;
if yes, recovering to the state before the touch operation is executed; if not, shielding the touch operation; wherein the restoring to the state before the touch operation is performed includes:
closing the started application program;
the shielding the touch operation comprises:
the start of the application to be started is prevented.
CN201710117878.7A 2017-03-01 2017-03-01 Touch operation processing method and device and mobile terminal Active CN106909250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710117878.7A CN106909250B (en) 2017-03-01 2017-03-01 Touch operation processing method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710117878.7A CN106909250B (en) 2017-03-01 2017-03-01 Touch operation processing method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106909250A CN106909250A (en) 2017-06-30
CN106909250B true CN106909250B (en) 2020-01-14

Family

ID=59185997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710117878.7A Active CN106909250B (en) 2017-03-01 2017-03-01 Touch operation processing method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106909250B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562261A (en) * 2017-08-08 2018-01-09 Tcl海外电子(惠州)有限公司 Display device control method and device
CN109254684A (en) * 2018-08-22 2019-01-22 Oppo广东移动通信有限公司 Touchscreen events report method and its device, terminal device, storage medium
CN109992156A (en) * 2019-03-25 2019-07-09 努比亚技术有限公司 A kind of false-touch prevention method, mobile terminal and computer readable storage medium
CN111399691B (en) * 2020-04-26 2023-10-10 Oppo广东移动通信有限公司 Screen touch detection method, mobile terminal and computer storage medium
CN112162689B (en) * 2020-09-18 2022-03-04 维沃移动通信有限公司 Input method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693037A (en) * 2012-05-04 2012-09-26 深圳桑菲消费通信有限公司 Shortcut method for starting a plurality of application programs in touch screen mobile terminals
CN103365588A (en) * 2012-04-11 2013-10-23 华为终端有限公司 Touch screen operation processing method and touch equipment
CN105302369A (en) * 2015-10-27 2016-02-03 上海救要救信息科技有限公司 Method and system for preventing or reducing misoperations of touch screen
CN105739786A (en) * 2016-01-29 2016-07-06 宇龙计算机通信科技(深圳)有限公司 Method and device for starting application program in screen-off state
CN106354400A (en) * 2015-07-17 2017-01-25 华为终端(东莞)有限公司 Touching operation identification method and device thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293430A (en) * 2015-05-25 2017-01-04 富泰华工业(深圳)有限公司 Virtual slide-mouse control system and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365588A (en) * 2012-04-11 2013-10-23 华为终端有限公司 Touch screen operation processing method and touch equipment
CN102693037A (en) * 2012-05-04 2012-09-26 深圳桑菲消费通信有限公司 Shortcut method for starting a plurality of application programs in touch screen mobile terminals
CN106354400A (en) * 2015-07-17 2017-01-25 华为终端(东莞)有限公司 Touching operation identification method and device thereof
CN105302369A (en) * 2015-10-27 2016-02-03 上海救要救信息科技有限公司 Method and system for preventing or reducing misoperations of touch screen
CN105739786A (en) * 2016-01-29 2016-07-06 宇龙计算机通信科技(深圳)有限公司 Method and device for starting application program in screen-off state

Also Published As

Publication number Publication date
CN106909250A (en) 2017-06-30

Similar Documents

Publication Publication Date Title
US10747368B2 (en) Method and device for preventing false-touch on touch screen, mobile terminal and storage medium
CN106775087B (en) Touch screen control method and device of mobile terminal and mobile terminal
CN107294522B (en) Response method and device based on touch key, storage medium and electronic equipment
CN106909250B (en) Touch operation processing method and device and mobile terminal
WO2018107849A1 (en) Method for controlling touch operation on mobile terminal, and related product
CN106708407B (en) Prevent the method, device and mobile terminal of touch key-press false triggering
EP3336679B1 (en) Method and terminal for preventing unintentional triggering of a touch key and storage medium
CN107340910B (en) Touch key response method and device, storage medium and electronic equipment
WO2018107898A1 (en) Method and device for preventing false triggering of touch button, terminal and storage medium
WO2018107897A1 (en) Touch screen control method and device, mobile terminal, and storage medium
CN106681635B (en) Split screen false touch prevention method and device and mobile terminal
US10884550B2 (en) Method, mobile terminal and non-transitory computer-readable storage medium for response control of touch screen
US10884611B2 (en) Method and apparatus for controlling touch screen of terminal, and terminal
CN106681637B (en) A kind of touch screen display methods, device and mobile terminal
CN107357458B (en) Touch key response method and device, storage medium and mobile terminal
CN108463792A (en) A kind of false-touch prevention method and terminal
CN106681555A (en) Touch screen control method and device of mobile terminal and mobile terminal
CN103002148A (en) Music switching method based on mobile terminal in screen extinguishment mode and mobile terminal
CN106502470A (en) Prevent method, device and the terminal of touch key-press false triggering
CN107105090A (en) A kind of control method, device and the mobile terminal of suspension button
CN106502461B (en) Restore the method, device and mobile terminal of touch screen state before electrostatic resets
CN107179849A (en) Terminal and its input control method, computer-readable recording medium
CN106598461B (en) Touch response method and device of mobile terminal and mobile terminal
CN111596793A (en) Anti-misoperation method and system, storage medium and terminal equipment
CN113791725A (en) Touch pen operation identification method, intelligent terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant