CN107562262B - Method for responding touch operation, terminal and computer readable storage medium - Google Patents

Method for responding touch operation, terminal and computer readable storage medium Download PDF

Info

Publication number
CN107562262B
CN107562262B CN201710693379.2A CN201710693379A CN107562262B CN 107562262 B CN107562262 B CN 107562262B CN 201710693379 A CN201710693379 A CN 201710693379A CN 107562262 B CN107562262 B CN 107562262B
Authority
CN
China
Prior art keywords
touch
priority
touch operation
response
message corresponding
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
CN201710693379.2A
Other languages
Chinese (zh)
Other versions
CN107562262A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710693379.2A priority Critical patent/CN107562262B/en
Publication of CN107562262A publication Critical patent/CN107562262A/en
Application granted granted Critical
Publication of CN107562262B publication Critical patent/CN107562262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a method for responding to touch operation, a terminal and a computer readable storage medium, and relates to the technical field of terminals. In the embodiment of the present invention, when a first touch operation and a second touch operation on the touch screen are detected at the same time, a response priority of a touch message corresponding to the first touch operation is compared with a response priority of a touch message corresponding to the second touch operation, and when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation, the first touch operation is responded. By comparing the response priority of the touch message corresponding to the touch operation, the influence of the false touch operation on the normal operation of the user is prevented, and the applicability and the flexibility of preventing the false touch are improved.

Description

Method for responding touch operation, terminal and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a method for responding to touch operation, a terminal and a computer readable storage medium.
Background
With the wide popularization of terminals, the terminal becomes an indispensable tool in people's daily life, the screen size of the terminal is larger and larger, the width of the frames on two sides of the screen is smaller and smaller, and when a user uses the terminal to operate, the user is easy to operate by mistake, so that the normal operation of the user is affected.
At present, methods for preventing false touches mainly include two methods, one is to drop touch messages at the edge of a terminal to reduce false touches depending on a touch IC (Integrated Circuit) firmware; and secondly, the display interactive interface of the application is retracted, and a touch control is not displayed at the edge position of the terminal, so that the error touch of the edge position is prevented.
When the inventor applies the prior art, the inventor finds that the prior art prevents the false touch depending on the touch IC firmware, the touch IC firmware does not know the current application scene, the false touch scene of all applications is difficult to cover, only touch messages at edge positions can be selected to be discarded, and the flexibility is poor; for the method for preventing the false touch through the retraction of the application interface, the retraction of the application interface has certain limitation, and the appearance and the use of the layout of the application interface are influenced by the excessive retraction.
Disclosure of Invention
The embodiment of the invention provides a method, a terminal and a computer readable storage medium for responding touch operation, and aims to solve the problems that in the prior art, the false touch scenes of different applications cannot be flexibly prevented, and the attractiveness and the use of the layout of an application interface are influenced by the retraction of the application interface.
In a first aspect, a method for responding to a touch operation is provided, and is applied to a terminal with a touch screen, and the method includes:
when a first touch operation and a second touch operation on the touch screen are detected at the same time, comparing the response priority of the touch message corresponding to the first touch operation with the response priority of the touch message corresponding to the second touch operation;
and responding to the first touch operation when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation.
In a second aspect, there is also provided a terminal, including:
the response priority comparison module is used for comparing the response priority of the touch message corresponding to the first touch operation with the response priority of the touch message corresponding to the second touch operation when the first touch operation and the second touch operation on the touch screen are detected at the same time;
the first touch operation response module is configured to respond to the first touch operation when a response priority of the touch message corresponding to the first touch operation is higher than a response priority of the touch message corresponding to the second touch operation.
In a third aspect, a terminal is additionally provided, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the computer program implements the steps of the method for responding to a touch operation as provided in the first aspect.
In a fourth aspect, there is additionally provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of responding to touch operations as provided in the first aspect.
In this way, in the embodiment of the present invention, when a first touch operation and a second touch operation on the touch screen are detected simultaneously, the response priority of the touch message corresponding to the first touch operation is compared with the response priority of the touch message corresponding to the second touch operation, and when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation, the first touch operation is responded. By comparing the response priority of the touch message corresponding to the touch operation, the influence of the false touch operation on the normal operation of the user is prevented, and the applicability and the flexibility of preventing the false touch are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating a method for responding to a touch operation according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for responding to a touch operation according to a second embodiment of the present invention;
fig. 3 shows a block diagram of a terminal according to a third embodiment of the present invention;
fig. 4 shows a block diagram of a terminal according to a third embodiment of the present invention;
fig. 5 is a block diagram showing a terminal according to a fourth embodiment of the present invention;
fig. 6 shows a schematic structural diagram of a terminal according to a fifth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart of a method for responding to a touch operation according to a first embodiment of the present invention is shown, which may specifically include the following steps:
step 101, when a first touch operation and a second touch operation on the touch screen are detected at the same time, comparing a response priority of a touch message corresponding to the first touch operation with a response priority of a touch message corresponding to the second touch operation.
In the embodiment of the invention, a system framework of the terminal generally comprises a bottom layer, a framework layer and an application layer; when a user performs touch operation on a terminal, a bottom layer acquires a touch message corresponding to the touch operation and reports the touch message to a framework layer, the framework layer is mainly responsible for communicating with the bottom layer, receives the touch message reported by the bottom layer and distributes the touch message to an application layer working in a foreground, the application layer relates to a plurality of applications, and each independent application receives the touch message reported by the framework layer.
For a currently started application, the started application may receive a touch message reported by the framework layer, a user performs a touch operation on a touch screen of the terminal, and when the started application detects two touch messages at the same time, that is, detects a first touch operation and a second touch operation on the touch screen at the same time, a response priority of the touch message corresponding to the first touch operation and a response priority of the touch message corresponding to the second touch operation are compared.
For example, for the currently launched application a, when two touch messages a1, a2 are detected simultaneously, that is, a first touch operation and a second touch operation on the touch screen are detected simultaneously, the response priority of the touch message a1 corresponding to the first touch operation and the response priority of the touch message a2 corresponding to the second touch operation are compared, and the response priority of the touch message a1 is 0.9 and the response priority of the touch message a2 is 0.2.
And step 102, responding to the first touch operation when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation.
In the embodiment of the present invention, when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation, it may be determined that the first touch operation is a normal operation, and the corresponding operation is executed according to the touch message corresponding to the first touch operation in response to the first touch operation.
For example, if the response priority 0.9 of the touch message a1 corresponding to the first touch operation is higher than the response priority 0.2 of the touch message a2 corresponding to the second touch operation, it can be determined that the first touch operation is a normal operation, and a corresponding operation is performed according to the touch message a1 corresponding to the first touch operation in response to the first touch operation.
According to the embodiment of the invention, the response priority of the touch message corresponding to the touch operation is compared, so that the influence of the false touch operation on the normal operation of the user is prevented, and the applicability and the flexibility of preventing the false touch are improved.
Example two
Referring to fig. 2, a flowchart of a method for responding to a touch operation according to a second embodiment of the present invention is shown, which may specifically include the following steps:
step 201, a pre-generated priority configuration file is obtained, where the priority configuration file includes a touch message and a corresponding response priority, and the touch message includes a touch type and/or a touch position.
In the embodiment of the invention, for each application, the application interfaces are different, firstly, under different application interfaces, the response priorities of different touch messages are determined according to the experience values of application developers, and then, the response priorities of different touch messages can be further improved by recording the operation characteristics of users and simultaneously utilizing algorithms such as artificial intelligence or machine learning and the like according to the operation characteristics of the users.
For example, the user operation characteristic may be a holding manner of a user, when a certain user uses the application B in the terminal, the user usually holds the terminal to make the terminal in a horizontal screen state, and at this time, the corresponding holding manner is a horizontal screen holding manner; if another user uses the application B in the terminal, the terminal is usually held to enable the terminal to be in a vertical screen state, and the corresponding holding mode is a vertical screen holding mode at the moment; the method comprises the steps that touch operation is conducted on a terminal in a transverse screen holding mode and a vertical screen holding mode, touch positions detected by the terminal are different, touch positions which are prone to mistaken touch are different, and corresponding response priorities are different. Therefore, the response priorities of different touch messages need to be further adjusted according to the holding manner of the user.
In the embodiment of the invention, in a manufacturer server, response priorities of different touch messages are determined for each application according to an application interface and user operation characteristics of the application, the touch message corresponding to the touch operation which is easy to be touched by mistake is generally set as a low response priority, and a priority configuration file is generated according to the different touch messages and the corresponding response priorities; the response priorities corresponding to different touch messages can be dynamically adjusted in a manufacturer server, and the priority configuration file of each application is continuously optimized, so that the flexibility of the scheme for preventing the false touch is higher.
The priority configuration file comprises touch messages and corresponding response priorities, and the touch messages comprise touch types and/or touch positions. The touch type can comprise long press, short press and sliding, the long press indicates that the time of pressing a certain position on the terminal touch screen is greater than or equal to a set threshold, the short press indicates that the time of pressing the certain position on the terminal touch screen is less than the set threshold, and the sliding indicates that the pressing position on the terminal touch screen is not fixed and the pressing operation is continuous.
In the embodiment of the invention, the terminal is provided with a priority configuration module, and the priority configuration module accesses the manufacturer server to obtain a pre-generated priority configuration file in the manufacturer server.
Specifically, when the terminal is started, a priority configuration file corresponding to at least one application installed in the terminal is acquired from a server; or, acquiring a priority configuration file corresponding to at least one application installed in the terminal from a server at preset time intervals.
In the embodiment of the invention, when the terminal is started, the priority configuration module in the terminal accesses the manufacturer server and acquires the priority configuration file corresponding to at least one application installed in the terminal from the manufacturer server. Or, at preset intervals, the priority configuration module in the terminal accesses the manufacturer server and acquires a priority configuration file corresponding to at least one application installed in the terminal from the manufacturer server.
It should be noted that, in the embodiment of the present invention, the priority configuration module is used to obtain the priority configuration file corresponding to at least one application installed in the terminal from the vendor server, instead of the application in the terminal directly obtaining the priority configuration file of the application from the vendor server, so that the influence on the operation of the terminal due to the fact that multiple applications directly access the vendor server is avoided.
For example, for the priority profile of the album, the response priority of "middle position slide" is 0.8, and the response priority of "upper left corner short press" is 0.3.
Step 202, obtaining, from the priority configuration file, a response priority of the touch message corresponding to the first touch operation and a response priority of the touch message corresponding to the second touch operation.
In the embodiment of the present invention, when a certain application is started, a priority configuration file corresponding to the application is acquired from a priority configuration module, and a response priority of each touch message is set according to the priority configuration file, that is, a response priority of a touch message corresponding to a first touch operation and a response priority of a touch message corresponding to a second touch operation are acquired.
Applications may generally include input methods, photo albums, browsers, and other applications, among others.
For example, when the started application is an album, the priority configuration file corresponding to the album is obtained from the priority configuration module, and the response priority of "middle position sliding" is 0.8 and the response priority of "upper left corner short pressing" is 0.3 are obtained from the priority configuration file.
Step 203, when a first touch operation and a second touch operation on the touch screen are detected at the same time, comparing a response priority of the touch message corresponding to the first touch operation with a response priority of the touch message corresponding to the second touch operation.
In the embodiment of the invention, for the currently started application, a user performs touch operation on a touch screen of a terminal, and when a first touch operation and a second touch operation on the touch screen are detected simultaneously, the response priority of a touch message corresponding to the first touch operation is compared with the response priority of a touch message corresponding to the second touch operation.
For example, when the started application is an album, a user performs touch operation on a touch screen of the terminal, when a first touch operation and a second touch operation on the touch screen are detected simultaneously, a touch message corresponding to the first touch operation is "middle position sliding", a touch message corresponding to the second touch operation is "upper left corner short pressing", and a response priority of the "middle position sliding" and a response priority of the "upper left corner short pressing" are compared.
Step 204, when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation, responding to the first touch operation.
In the embodiment of the present invention, when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation, it may be determined that the first touch operation is a normal operation, and the first touch operation is responded.
For example, when a general user performs touch operation on an album, the user can scroll through photos by sliding at the middle position of a touch screen; if the response priority 0.8 of the "middle position slide" is higher than the response priority 0.3 of the "upper left corner short press", it can be determined that the first touch operation corresponding to the "middle position slide" is a normal operation, and the next photo is viewed in response to the first touch operation.
Step 205, when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation, ignoring the second touch operation.
In the embodiment of the present invention, when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation, it may be determined that the second touch operation is a false touch operation, the second touch operation is ignored, and the touch message corresponding to the second touch operation is discarded.
It should be noted that, the execution sequence of step 204 and step 205 is not sequential, step 204 is directed to responding to the first touch operation, and step 205 is directed to ignoring the second touch operation.
For example, if the response priority 0.8 of the "middle position slide" is higher than the response priority 0.3 of the "upper left short press", it may be determined that the second touch operation corresponding to the "upper left short press" is a wrong touch operation, the second touch operation is ignored, and the touch message of the "upper left short press" is discarded.
In the embodiment of the present invention, a pre-generated priority configuration file is obtained, a response priority of a touch message corresponding to the first touch operation and a response priority of a touch message corresponding to the second touch operation are obtained from the priority configuration file, when the first touch operation and the second touch operation on the touch screen are detected simultaneously, the response priority of the touch message corresponding to the first touch operation and the response priority of the touch message corresponding to the second touch operation are compared, when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation, the first touch operation is responded, and when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation, and ignoring the second touch operation. Different response priorities are set for touch messages corresponding to different touch operations, the touch message corresponding to the touch operation which is easy to be touched by mistake is set to be a low response priority, the influence of the touch operation which is easy to be touched by mistake on the normal operation of a user is prevented through the response priority, and the applicability and the flexibility of preventing the touch by mistake are improved.
EXAMPLE III
Referring to fig. 3, a block diagram of a terminal according to a third embodiment of the present invention is shown.
The terminal 300 includes: a response priority comparison module 301 and a first touch operation response module 302.
Referring to fig. 4, the functions of the modules and the interaction relationship between the modules are described in detail below.
A response priority comparing module 301, configured to compare a response priority of a touch message corresponding to a first touch operation with a response priority of a touch message corresponding to a second touch operation when the first touch operation and the second touch operation on the touch screen are detected at the same time.
A first touch operation response module 302, configured to respond to the first touch operation when a response priority of the touch message corresponding to the first touch operation is higher than a response priority of the touch message corresponding to the second touch operation.
Optionally, the terminal 300 may further include:
the second touch operation ignoring module 303 is configured to ignore the second touch operation when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation.
Optionally, the terminal 300 may further include:
a priority profile obtaining module 304, configured to obtain a pre-generated priority profile, where the priority profile includes a touch message and a corresponding response priority, and the touch message includes a touch type and/or a touch position.
Optionally, the priority profile obtaining module 304 may include:
a first obtaining submodule 3041, configured to obtain, from a server, a priority profile corresponding to at least one application installed in the terminal when the terminal is powered on;
or, the second obtaining sub-module 3042 is configured to obtain, from the server, a priority profile corresponding to at least one application installed in the terminal at preset time intervals.
A response priority obtaining module 305, configured to obtain, from the priority configuration file, a response priority of the touch message corresponding to the first touch operation and a response priority of the touch message corresponding to the second touch operation.
According to the embodiment of the invention, the response priority of the touch message corresponding to the touch operation is compared, so that the influence of the false touch operation on the normal operation of the user is prevented, and the applicability and the flexibility of preventing the false touch are improved.
Example four
Referring to fig. 5, a block diagram of a terminal according to a fourth embodiment of the present invention is shown.
The terminal 500 of the embodiment of the present invention includes: at least one processor 501, memory 502, at least one network interface 504, and other user interfaces 503. The various components in terminal 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 5.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touchpad, or touch screen, among others.
It is to be understood that the memory 502 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration, and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous SDRAM (ESDRAM), Sync Link DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 502 of the subject systems and methods described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 502 stores elements, executable modules or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 5022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, the processor 501 is configured to compare a response priority of a touch message corresponding to a first touch operation with a response priority of a touch message corresponding to a second touch operation when the first touch operation and the second touch operation on the touch screen are detected simultaneously; and responding to the first touch operation when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The Processor 501 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this disclosure may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this disclosure. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the processor 501 is further configured to: and when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation, ignoring the second touch operation.
Optionally, before the comparing the response priority of the touch message corresponding to the first touch operation with the response priority of the touch message corresponding to the second touch operation, the processor 501 is further configured to: acquiring a pre-generated priority configuration file, wherein the priority configuration file comprises a touch message and a corresponding response priority, and the touch message comprises a touch type and/or a touch position; and acquiring the response priority of the touch message corresponding to the first touch operation and the response priority of the touch message corresponding to the second touch operation from the priority configuration file.
Optionally, the processor 501, when acquiring the pre-generated priority profile, is further configured to: when the terminal is started, acquiring a priority configuration file corresponding to at least one application installed in the terminal from a server; or, acquiring a priority configuration file corresponding to at least one application installed in the terminal from a server at preset time intervals.
The terminal 500 can implement the processes implemented by the terminal in the foregoing embodiments, and in order to avoid repetition, the detailed description is omitted here.
According to the embodiment of the invention, the response priority of the touch message corresponding to the touch operation is compared, so that the influence of the false touch operation on the normal operation of the user is prevented, and the applicability and the flexibility of preventing the false touch are improved.
EXAMPLE five
Referring to fig. 6, a schematic structural diagram of a terminal according to a fifth embodiment of the present invention is shown.
The terminal of the embodiment of the invention can be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a vehicle-mounted computer, or the like.
The terminal in fig. 6 includes a Radio Frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a processor 660, an audio circuit 670, a wifi (wireless fidelity) module 680, and a power supply 690.
The input unit 630 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the terminal. Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631. The touch panel 631, also referred to as a touch screen, may collect touch operations performed by a user on or near the touch panel 631 (e.g., operations performed by the user on the touch panel 631 using any suitable object or accessory such as a finger or a stylus), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts, i.e., a touch detection device and a touch controller. The touch detection device detects a touch direction of a user, detects a signal brought by touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, and the other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among them, the display unit 640 may be used to display information input by a user or information provided to the user and various menu interfaces of the terminal. The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
It should be noted that the touch panel 631 may cover the display panel 641 to form a touch display screen, and when the touch display screen detects a touch operation thereon or nearby, the touch display screen is transmitted to the processor 660 to determine the type of the touch event, and then the processor 660 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 660 is a control center of the terminal, connects various parts of the entire mobile phone by using various interfaces and lines, and executes various functions and processes data of the terminal by operating or executing software programs and/or modules stored in the first memory 621 and calling data stored in the second memory 622, thereby integrally monitoring the terminal. Optionally, processor 660 may include one or more processing units.
In the embodiment of the present invention, by calling the software program and/or module stored in the first memory 621 and/or the data stored in the second memory 622, the processor 660 is configured to compare the response priority of the touch message corresponding to the first touch operation with the response priority of the touch message corresponding to the second touch operation when the first touch operation and the second touch operation on the touch screen are detected simultaneously; and responding to the first touch operation when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation.
Optionally, the processor 660 is further configured to: and when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation, ignoring the second touch operation.
Optionally, before the comparing the response priority of the touch message corresponding to the first touch operation with the response priority of the touch message corresponding to the second touch operation, the processor 660 is further configured to: acquiring a pre-generated priority configuration file, wherein the priority configuration file comprises a touch message and a corresponding response priority, and the touch message comprises a touch type and/or a touch position; and acquiring the response priority of the touch message corresponding to the first touch operation and the response priority of the touch message corresponding to the second touch operation from the priority configuration file.
Optionally, the processor 660, when obtaining the pre-generated priority profile, is further configured to: when the terminal is started, acquiring a priority configuration file corresponding to at least one application installed in the terminal from a server; or, acquiring a priority configuration file corresponding to at least one application installed in the terminal from a server at preset time intervals.
According to the embodiment of the invention, the response priority of the touch message corresponding to the touch operation is compared, so that the influence of the false touch operation on the normal operation of the user is prevented, and the applicability and the flexibility of preventing the false touch are improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
EXAMPLE six
The embodiment of the present invention further provides a terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when being executed by the processor, the computer program implements each process of the method embodiment for responding to a touch operation, and can achieve the same technical effect, and is not described herein again to avoid repetition.
EXAMPLE seven
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the method embodiment for responding to a touch operation, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer readable storage medium may be a read only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. A method for responding to touch operation is applied to a terminal with a touch screen, and is characterized by comprising the following steps:
when a first touch operation and a second touch operation on the touch screen are detected at the same time, comparing the response priority of the touch message corresponding to the first touch operation with the response priority of the touch message corresponding to the second touch operation;
responding to the first touch operation when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation;
further comprising:
when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation, ignoring the second touch operation;
the response priority is a numerical value which is determined by each application according to an application interface and user operation characteristics and corresponds to different touch messages;
wherein different touch messages correspond to different response priorities;
before the step of comparing the response priority of the touch message corresponding to the first touch operation with the response priority of the touch message corresponding to the second touch operation, the method further includes:
acquiring a pre-generated priority configuration file, wherein the priority configuration file comprises a touch message and a corresponding response priority, and the touch message comprises a touch type and/or a touch position;
acquiring a response priority of the touch message corresponding to the first touch operation and a response priority of the touch message corresponding to the second touch operation from the priority configuration file;
after the acquiring of the pre-generated priority profile, the method further includes:
recording user operation characteristics corresponding to each application;
and adjusting the response priorities of different touch messages according to the user operation characteristics, wherein the user operation characteristics comprise the holding mode of the user and/or the screen state of the terminal.
2. The method of claim 1, wherein the step of obtaining a pre-generated priority profile comprises:
when the terminal is started, acquiring a priority configuration file corresponding to at least one application installed in the terminal from a server;
alternatively, the first and second electrodes may be,
and acquiring a priority configuration file corresponding to at least one application installed in the terminal from a server at preset time intervals.
3. A terminal, comprising:
the response priority comparison module is used for comparing the response priority of the touch message corresponding to the first touch operation with the response priority of the touch message corresponding to the second touch operation when the first touch operation and the second touch operation on the touch screen are detected at the same time;
the first touch operation response module is used for responding to the first touch operation when the response priority of the touch message corresponding to the first touch operation is higher than the response priority of the touch message corresponding to the second touch operation;
further comprising:
a second touch operation ignoring module, configured to ignore the second touch operation when a response priority of the touch message corresponding to the first touch operation is higher than a response priority of the touch message corresponding to the second touch operation;
the response priority is a numerical value which is determined by each application according to an application interface and user operation characteristics and corresponds to different touch messages;
wherein different touch messages correspond to different response priorities;
further comprising:
the device comprises a priority configuration file acquisition module, a priority configuration file generation module and a priority configuration file generation module, wherein the priority configuration file acquisition module is used for acquiring a pre-generated priority configuration file, the priority configuration file comprises a touch message and a corresponding response priority, and the touch message comprises a touch type and/or a touch position;
a response priority obtaining module, configured to obtain, from the priority configuration file, a response priority of the touch message corresponding to the first touch operation and a response priority of the touch message corresponding to the second touch operation;
the priority configuration file acquisition module is further configured to record user operation characteristics corresponding to each application after acquiring the pre-generated priority configuration file; and adjusting the response priorities of different touch messages according to the user operation characteristics, wherein the user operation characteristics comprise the holding mode of the user and/or the screen state of the terminal.
4. The terminal of claim 3, wherein the priority profile obtaining module comprises:
the first obtaining submodule is used for obtaining a priority configuration file corresponding to at least one application installed in the terminal from a server when the terminal is started;
alternatively, the first and second electrodes may be,
and the second obtaining submodule is used for obtaining the priority configuration file corresponding to at least one application installed in the terminal from the server at preset time intervals.
5. A terminal comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of responding to touch operations according to any one of claims 1 to 2.
6. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of responding to touch operations according to any one of claims 1 to 2.
CN201710693379.2A 2017-08-14 2017-08-14 Method for responding touch operation, terminal and computer readable storage medium Active CN107562262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710693379.2A CN107562262B (en) 2017-08-14 2017-08-14 Method for responding touch operation, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710693379.2A CN107562262B (en) 2017-08-14 2017-08-14 Method for responding touch operation, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107562262A CN107562262A (en) 2018-01-09
CN107562262B true CN107562262B (en) 2020-06-19

Family

ID=60975491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710693379.2A Active CN107562262B (en) 2017-08-14 2017-08-14 Method for responding touch operation, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107562262B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109409066A (en) * 2018-10-17 2019-03-01 北京壹人壹本信息科技有限公司 Signature unlocking method, mobile terminal and storage medium
CN110221767A (en) * 2019-06-13 2019-09-10 广州视源电子科技股份有限公司 The control method and device of intelligent interaction device
CN116726475A (en) * 2022-03-01 2023-09-12 腾讯科技(深圳)有限公司 Execution method and device of control operation, storage medium and electronic equipment
CN117270726B (en) * 2023-11-20 2024-04-19 荣耀终端有限公司 Information interaction method, host and terminal equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455266A (en) * 2012-06-04 2013-12-18 华为终端有限公司 Method for processing mistaken touch operations of touch screen and terminal equipment
CN104267902A (en) * 2014-09-22 2015-01-07 深圳市中兴移动通信有限公司 Application interactive control method, device and terminal
CN105630229A (en) * 2015-10-30 2016-06-01 东莞酷派软件技术有限公司 Touch terminal based control method, touch terminal and touch screen controller
CN105867789A (en) * 2016-03-28 2016-08-17 努比亚技术有限公司 Method and method for preventing misoperation
JP2016149036A (en) * 2015-02-13 2016-08-18 三菱電機株式会社 Touch operation input device
CN106125984A (en) * 2016-06-28 2016-11-16 维沃移动通信有限公司 The touch-control processing method of a kind of mobile terminal and mobile terminal
CN106201292A (en) * 2015-04-29 2016-12-07 小米科技有限责任公司 Terminal false-touch prevention method and apparatus
CN106569709A (en) * 2016-10-31 2017-04-19 努比亚技术有限公司 Device and method for controlling mobile terminal
CN106569707A (en) * 2016-10-21 2017-04-19 深圳众思科技有限公司 Touch control screen-based touch control shielding method and terminal
CN106681636A (en) * 2016-12-16 2017-05-17 广东欧珀移动通信有限公司 Method and device capable of preventing wrong touch, and mobile terminal
CN106897017A (en) * 2017-02-17 2017-06-27 北京小米移动软件有限公司 The method and device of control terminal screen

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102241764B1 (en) * 2013-11-01 2021-04-19 삼성전자 주식회사 Method and apparatus for processing a input of electronic device
CN105426048A (en) * 2015-11-19 2016-03-23 广东欧珀移动通信有限公司 Method and device for preventing misoperation of application programs

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455266A (en) * 2012-06-04 2013-12-18 华为终端有限公司 Method for processing mistaken touch operations of touch screen and terminal equipment
CN104267902A (en) * 2014-09-22 2015-01-07 深圳市中兴移动通信有限公司 Application interactive control method, device and terminal
JP2016149036A (en) * 2015-02-13 2016-08-18 三菱電機株式会社 Touch operation input device
CN106201292A (en) * 2015-04-29 2016-12-07 小米科技有限责任公司 Terminal false-touch prevention method and apparatus
CN105630229A (en) * 2015-10-30 2016-06-01 东莞酷派软件技术有限公司 Touch terminal based control method, touch terminal and touch screen controller
CN105867789A (en) * 2016-03-28 2016-08-17 努比亚技术有限公司 Method and method for preventing misoperation
CN106125984A (en) * 2016-06-28 2016-11-16 维沃移动通信有限公司 The touch-control processing method of a kind of mobile terminal and mobile terminal
CN106569707A (en) * 2016-10-21 2017-04-19 深圳众思科技有限公司 Touch control screen-based touch control shielding method and terminal
CN106569709A (en) * 2016-10-31 2017-04-19 努比亚技术有限公司 Device and method for controlling mobile terminal
CN106681636A (en) * 2016-12-16 2017-05-17 广东欧珀移动通信有限公司 Method and device capable of preventing wrong touch, and mobile terminal
CN106897017A (en) * 2017-02-17 2017-06-27 北京小米移动软件有限公司 The method and device of control terminal screen

Also Published As

Publication number Publication date
CN107562262A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
WO2018157662A1 (en) Display control method for mobile terminal, and mobile terminal
CN107678644B (en) Image processing method and mobile terminal
US10884611B2 (en) Method and apparatus for controlling touch screen of terminal, and terminal
CN107562262B (en) Method for responding touch operation, terminal and computer readable storage medium
CN107741820B (en) Input method keyboard display method and mobile terminal
WO2018196699A1 (en) Method for displaying fingerprint recognition region, and mobile terminal
CN106354373B (en) Icon moving method and mobile terminal
CN108153466A (en) Operating method, mobile terminal and storage medium based on double screen
CN107219988B (en) Interface operation guiding method and mobile terminal
CN105159530A (en) Application display object switching method and apparatus
CN107562345B (en) Information storage method and mobile terminal
CN107506130B (en) Character deleting method and mobile terminal
CN107221347B (en) Audio playing method and terminal
US9189152B2 (en) Touch device and method for dynamically setting touch inactive area, and non-transitory recording medium
CN108366169B (en) Notification message processing method and mobile terminal
CN106874046B (en) Application program operation method and mobile terminal
CN106970752B (en) Screen capturing method and mobile terminal
CN106775378B (en) Method for determining candidate words of input method and mobile terminal
CN107103224B (en) Unlocking method and mobile terminal
CN105243345A (en) Accidental touch preventing method for electronic equipment and electronic equipment
CN105302458A (en) Message display method and apparatus
CN106354374A (en) Icon moving method and mobile terminal
CN107632761B (en) Display content viewing method, mobile terminal and computer readable storage medium
CN107678813B (en) Desktop icon theme switching method and mobile terminal
US20140223328A1 (en) Apparatus and method for automatically controlling display screen density

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
GR01 Patent grant
GR01 Patent grant