CN110837317B - Method, device and equipment for preventing user from mistakenly touching on display interface - Google Patents

Method, device and equipment for preventing user from mistakenly touching on display interface Download PDF

Info

Publication number
CN110837317B
CN110837317B CN201911033323.XA CN201911033323A CN110837317B CN 110837317 B CN110837317 B CN 110837317B CN 201911033323 A CN201911033323 A CN 201911033323A CN 110837317 B CN110837317 B CN 110837317B
Authority
CN
China
Prior art keywords
window
time interval
click event
false touch
touch operation
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
CN201911033323.XA
Other languages
Chinese (zh)
Other versions
CN110837317A (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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201911033323.XA priority Critical patent/CN110837317B/en
Publication of CN110837317A publication Critical patent/CN110837317A/en
Application granted granted Critical
Publication of CN110837317B publication Critical patent/CN110837317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment

Abstract

The invention discloses a method, a device and equipment for preventing a user from touching by mistake on a display interface, wherein the method comprises the following steps: when a clicking event on a stack top window is detected, acquiring a time interval between a triggering time of the stack top window and an operation of generating the clicking event on the stack top window; if the time interval is within a preset time interval, determining that the operation generating the click event is a false touch operation; and under the condition that the operation of the click event is determined to be the false touch operation, masking a window for executing the click event and a response operation. According to the method, the time interval of the clicking event generated by the user is acquired, so that the accurate judgment of the false touch operation is realized, and the corresponding shielding program is executed after the false touch operation is confirmed, so that the false touch operation caused by clicking the sudden pop-up window is effectively avoided.

Description

Method, device and equipment for preventing user from mistakenly touching on display interface
Technical Field
The present disclosure relates to the field of mobile terminals, and in particular, to a method, an apparatus, and a device for preventing a user from touching a display interface by mistake.
Background
At present, along with the rapid development of mobile terminal intellectualization, users are enabled to enjoy the convenience brought by terminal intellectualization more and more, when users perform man-machine interaction on the intelligent terminal, such as a touch screen of a mobile phone, the users slide on the screen of the intelligent terminal through gestures to realize the operation of terminal content, but the mobile terminal has the advantages of convenience, intuitiveness, humanization and the like, and meanwhile, false touch operation is easy to occur.
Generally, a user performs touch operation on a window displayed on a current interface of an intelligent terminal, after acquiring a click event of the user on the current window, a window manager (Window Manager Service) determines a region position clicked by the user first, then transmits a handle of the window corresponding to the region position to an input module, and the input module receives a signal and then distributes the signal to a corresponding application for processing. For example, as shown in fig. 1, a user plays a game in a Window1 (Window 1), where Window1 is a full-screen game screen, and when the user pops up another message Window suddenly during playing the game, for example, when Window2 is played, the user that is operating may click on a notification message in the Window2, thereby causing a false touch operation, resulting in entering an application interface corresponding to the notification message, and affecting user experience.
Disclosure of Invention
The embodiment provides a method for preventing false touch operation by a user, which is used for solving the problem that a certain window is popped up suddenly on a display interface to cause false touch operation by the user.
In order to solve the technical problem, the embodiment of the application provides the following technical scheme:
in a first aspect, the present application provides a method for preventing a user from touching a display interface by mistake, which can be applied to a terminal device, such as a mobile phone. Further, the method comprises: when a click event on a stack top window is detected, acquiring a first time interval, wherein the first time interval is a time difference between the triggering time of the stack top window and the operation of generating the click event on the stack top window; if the first time interval is within a preset time interval, determining that the operation generating the click event is a false touch operation; and under the condition that the operation of the click event is determined to be the false touch operation, masking a window for executing the click event and a response operation.
According to the method, the time interval of the clicking event generated by the user is obtained and compared with the preset time interval, so that the accurate judgment of whether the clicking event generated by the user is the false touch operation or not is realized, and the corresponding shielding program is executed after the false touch operation is confirmed, so that the false touch operation generated by clicking the sudden pop-up window is effectively avoided, and the user experience is improved.
Wherein the preset Time interval is also called Reaction Time (Reaction Time).
Optionally, the preset time interval is a human body reaction time, and further, the human body reaction time is not more than 1 second, for example, 0.1 to 0.5 seconds, or 0.5 to 1 second.
With reference to the first aspect, in a possible implementation manner of the first aspect, if the time interval is within a preset time interval, determining that the operation of generating the click event is a false touch operation includes: judging whether the window corresponding to the click event is a white list window or not under the condition that the time interval is within the preset time interval; if not, determining that the operation of the click event is a false touch operation.
The white list window comprises a series of windows such as a red-robbed package window, an installation guide, a starting guide, an operation course and the like, and also comprises other windows which may need to be clicked quickly after popup.
In this implementation manner, if the clicked window is smaller than the preset time interval, whether the clicked window is a white list window is judged, so that the click operation of shielding the white list window can be avoided, and a series of interaction operations under the white list window can be realized by a user.
With reference to the first aspect, in another possible implementation manner of the first aspect, determining whether the window corresponding to the click event is a white list window includes: and judging whether the window identifier corresponding to the click event is one of all window identifiers contained in the white list.
Optionally, the white list window includes at least one of the following application scenarios: a robbery package, a start-up, a install/uninstall wizard, a start-up/close wizard, an operational tutorial, etc.
With reference to the first aspect, in still another possible implementation manner of the first aspect, a flag bit of the stack top window is set to "true", and after the preset time interval passes, the flag bit of the stack top window is set to "false";
and if the time interval is within a preset time interval, determining that the operation generating the click event is a false touch operation, wherein the method comprises the following steps: judging whether the flag bit of the trestle top window is true, if true, determining that the operation for generating the click event is false touch operation; if false, it is determined that the click event is not a false touch operation.
With reference to the first aspect, in a further possible implementation manner of the first aspect, masking a window and responding operation that performs the click event includes: screening a window for executing the click event and issuing the window to an application; or executing a first window and response operation corresponding to the first window, wherein the first window is a window displayed to a user before the clicking event of the stack top window is detected.
In the implementation manner, the clicking event of the false touch operation is set to be invalid, or set to be corresponding operation executed on the original display window, so that the application of the current stack top window is not switched or executed, and the clicking interaction of the original display window can be continuously executed on the display interface of the terminal device.
In a second aspect, the present application provides a device for preventing a user from touching a display interface by mistake, where the device includes: the acquisition unit and the processing unit may further include other units or modules such as a transmission unit and a storage unit. Wherein the apparatus may be a terminal device or be integrated in the terminal device.
Further, an obtaining unit is configured to obtain, when a click event on a top window is detected, a time interval between a trigger time of the top window and an operation of generating the click event on the top window; the processing unit is used for judging that the operation generating the clicking event is the false touch operation when the time interval is within the preset time interval; and under the condition that the operation of the click event is determined to be the false touch operation, masking a window for executing the click event and a response operation.
With reference to the second aspect, in a possible implementation manner of the second aspect, the processing unit is specifically configured to determine whether a window corresponding to the click event is a white list window if the time interval is within the preset time interval; if not, determining that the operation of the click event is a false touch operation.
With reference to the second aspect, in another possible implementation manner of the second aspect, the processing unit is specifically configured to determine whether the window identifier corresponding to the click event is one of all window identifiers included in the white list.
With reference to the second aspect, in another possible implementation manner of the second aspect, a flag bit of the stack top window is set to "true", and after the preset time interval passes, the flag bit of the stack top window is set to "false"; the processing unit is specifically configured to determine whether the flag bit of the stack top window is true, and if true, determine that the operation that generates the click event is a false touch operation.
Wherein, the true is true, and the false is false.
With reference to the second aspect, in a further possible implementation manner of the second aspect, the processing unit is specifically configured to mask a window for executing the click event from being issued to an application; or executing a first window and response operation corresponding to the first window, wherein the first window is a window displayed to a user before the clicking event of the stack top window is detected.
In a third aspect, the present application also provides an apparatus comprising a processor and a memory, the processor coupled with the memory, the memory for storing instructions; the processor is configured to invoke the instructions to cause the device to perform the method of the foregoing first aspect and various implementations of the first aspect.
Optionally, the device further comprises a touch screen and a sensor, wherein the sensor is used for reporting clicking operation of a user on the touch screen to the processor; and feeding back the relevant operation responded by the processor to the touch screen so as to be displayed to a user.
Optionally, the device is an apparatus as described in the second aspect, and further, the device may be a terminal device or a user equipment UE.
In a fourth aspect, the present application also provides a computer readable storage medium comprising instructions which, when run on a computer, implement the method as described in the foregoing first aspect or various implementations of the first aspect.
In a fifth aspect, the present application also provides a computer program product which, when run on a computer, implements the method as described in the foregoing first aspect or various implementations of the first aspect.
According to the method, the time interval of the clicking event generated by the user is obtained and compared with the preset time interval, so that whether the clicking event generated by the user is the false touch operation or not is accurately judged, and the corresponding shielding program is executed after the clicking event is confirmed to be the false touch operation, and therefore the false touch operation generated by clicking the sudden pop-up window is effectively avoided.
In addition, the operation of clicking in the preset time interval is carried out by setting the white list, and the window of the white list is judged to be normal operation, so that the triggering event of rapidly clicking the screen by users such as a robbery package is prevented from being shielded, the white list setting of the method is more in accordance with the operation requirement of special scenes, and the user experience is improved.
Drawings
Fig. 1 is a schematic diagram of a user-initiated false touch operation provided in the present application;
FIG. 2 is a schematic diagram of a window stack according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart of generating a click event according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a method for preventing a user from touching by mistake according to an embodiment of the present application;
fig. 5 is a schematic diagram of a change of a stack top window according to an embodiment of the present application;
FIG. 6 is a flowchart of another method for preventing user from touching by mistake according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an anti-false touch device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
Before the technical scheme of the embodiment of the application is described, application scenes related to the embodiment of the application are first introduced and described.
The technical scheme of the application can be applied to a scene that a new window is popped out suddenly or a top window disappears suddenly on a display interface in the process that a user interacts with terminal equipment through a touch screen.
Further, the technical scenario may be applied to a terminal device or an electronic device. The terminal device or electronic device may be a portable device, such as a smart terminal, a mobile phone, a tablet computer, a foldable terminal, a wearable device (e.g. a smart watch or a bracelet) with wireless communication function, etc. The portable device is provided with a foldable touch screen and algorithm operation capability, and can run the interactive operation method provided by the embodiment of the application. In addition, exemplary embodiments of the portable device include, but are not limited to, piggyback IOS, android, microsoft or other operating systems.
The portable device may be another portable device as long as the portable device has a touch panel and an arithmetic operation capability. It should be appreciated that in other embodiments of the present application, the electronic devices described above include, but are not limited to, portable devices, but may also be mobile terminals, such as mobile telephones (or "cellular" telephones) and computers having mobile terminals, such as hand-held, computer-built-in, or vehicle-mounted mobile devices.
First, a window stack (window stack) and a top-of-stack window will be described. The windows are stored in a stack (stack) as shown in fig. 2, which includes three windows, window1 (window 1), window2 (window 2), and window 3 (window 3), respectively. The stack top window is a window displayed at the forefront of the screen, namely a window displayed to a user on a display interface. For example, window1 is a window currently displayed at the top of the screen; when the click event occurs, the event is distributed to the corresponding window, and the corresponding logic is executed.
The user clicks a window, such as window1, on the screen of the terminal device to generate a click event, and when the click event occurs, the event is distributed to the corresponding window, so as to execute the corresponding logic. Specifically, as shown in fig. 3, after the user clicks the top window to generate a click event, the window manager (Window Manager Service) 10 of the terminal device will transmit a target window (such as window 1) corresponding to the click event to the Input module (Input Dispatcher) 20, the Input module 20 distributes the click event to the corresponding Application (APP) 30, and the application 30 executes a corresponding response operation.
When the window manager 10 determines that the generated click event is a false touch operation, the subsequent execution process will be changed, and the false touch prevention method provided in the embodiment of the present application will be described in detail below.
Referring to fig. 4, a method for preventing a user from touching by mistake according to an embodiment of the present application includes:
step 101: and when the terminal equipment detects a clicking event in the stack top window, acquiring the time interval between the triggering time of the stack top window and the operation of generating the clicking event on the stack top window.
The window that the user is clicking before the pop-up of the top window is the first window, i.e. window1, and the window that pops up suddenly in the process of interacting with the first window is the top window, or called second window, window2, as shown in fig. 5. The window manager of the terminal equipment records the pop-up time of the stack top window as a trigger time, wherein the trigger time can be represented as t1, the time when the sensor of the terminal equipment acquires that the user clicks the stack top window on the display interface to generate the clicking event is recorded as a second time, and the second time can be represented as t2. The time interval is the time difference between the second time t2 and the trigger time t1, namely
Optionally, the stack top window may be a notification message, such as a short message. The communication message may be generated by any Application (APP), and pushed to the front end through the window manager, and the generation process of the notification message and the content of the specific notification are not limited in this embodiment.
Step 102: and judging whether the time interval is within a preset time interval or not.
Specifically, it is determined whether the time interval Δt is smaller than a preset time interval, i.e., Δt < Δt Presetting
The preset time interval is set by the system. Further, the range of the preset time interval may be determined according to the human body reaction time, and in this embodiment, the preset time interval may be set to 0.1-0.5 seconds, or 0.1-1 seconds.
Step 103: if yes, namely the time interval is within a preset time interval, determining that the operation generating the click event is a false touch operation; and under the condition that the operation of the click event is determined to be the false touch operation, masking a window for executing the click event and a response operation.
Specifically, masking the window and response operations that execute the click event includes: a shielding mode or a penetrating mode.
The implementation mode of the shielding mode comprises that the terminal equipment shields the window for executing the clicking event and issues the window to an application, namely the clicking event is set to be invalid operation, and a window manager of the terminal equipment does not execute the transfer operation of a target window.
The implementation mode of the penetration mode comprises that the terminal equipment executes a first window and response operation corresponding to the first window, wherein the first window is a window displayed to a user before a click event of the stack top window is detected. Further, in the implementation process of the "penetration mode", the window manager may obtain, according to the stack information, that the stack top window at the previous time of the click position is window1, for example, window1 is a game window, so that the window manager transmits the window1 as a target window to the input module, and in a preset time interval, the click event is not transmitted to the notification information window (window 2), but is still transmitted to the game interface, and is effective in the game interface.
According to the method, when a user interacts with the terminal equipment, clicking events in a preset time interval are filtered through the time interval when the window is changed, so that false touch operation caused by incapability of responding by the user is effectively prevented.
Furthermore, in the above step 102, if the time interval is equal to or greater than a preset time interval, i.e., Δt Σst or more Presetting I.e. the time interval is not within the preset time interval, it is determined that the click event is not a malfunction. The window manager executes the corresponding logic according to the normal clicking operation, and the specific execution process is shown in fig. 3, which is not described in detail in this embodiment.
In a special scenario, such as a robbery packet, the step 102 further includes: and further judging whether the clicking event is a false touch operation or not under the condition that the time interval is within a preset time interval. Specifically, the method comprises the following steps: judging whether the window corresponding to the click event is a white list window or not under the condition that the time interval is within a preset time interval; the whitelist contains a series of window Identifications (IDs), each window identification corresponds to one window, and one application can correspond to one or more window identifications. Thus, determining whether it is a white list window includes: and judging whether the window identifier corresponding to the click event is one of all window identifiers contained in the white list. If not, determining that the operation of the click event is a false touch operation, and then executing the step 103.
Besides the window identifier in the robbery scene, the white list may be other windows that need to respond quickly after pop-up, for example, a series of operations such as installing or uninstalling a guide, starting or closing a guide, and operating a course are needed for a user in starting up and installing an APP, or the IDs of the applications or windows may be set in the white list, so as to prevent the operations from being masked. In addition, the white list can be set according to user preference, and the window identification in the white list is not limited in this embodiment. The whitelist window may be pre-read into memory when the system is started.
In a specific embodiment, as shown in fig. 6, the method includes:
step 201: and detecting a click event on the window at the top of the stack.
When one window pops up, the window is the stack top window, and a flag bit is set for the window: isInReactionTime=true. For example, when window2 in the window stack is mobilized to the top of the stack, the tag bit of window2 is set to "true", i.e., islnreactiontime=true. After a preset time interval (i.e., a reaction time such as 0.1 seconds), the flag bit is set to "false", isiireactiontime=false.
The state of the flag bit comprises "true" and "false", and further "true" is true; "false" is "false".
Step 202: and judging whether the click event is within the reaction time.
Specifically, it is determined whether the window2 current flag bit isInReactionTime state is "true".
If the clicking operation is performed within the reaction time, that is, the state of the flag bit is "true", it is considered that the user may click on the newly popped window without reaction, and the preliminary judgment may be a false touch operation, and step 204 is performed. If the status is "false" and not within the reaction time, it is determined that the touch is not a false touch operation, and step 203 is performed.
Step 203: and executing the clicking event.
Step 204: if the window of the click event is within the reaction time, further judging whether the window of the click event is in a white list or not.
The process filters special scenes, such as robbed red packets, etc., using the whitelist. The user would quickly click on the top of stack window. And comparing whether the window ID corresponding to the stack top window is in a window ID list of the white list. The Window ID of the top Window may be set in a field, such as a Window State field.
If the window ID corresponding to the click event of the current top window is in the white list, step 203 is executed.
If not, a masking operation is performed, including steps 2051 and 2052.
For example: for the window of the WeChat robber package, the specific implementation code can be:
windowState.tostring (): includes window names:
com.luckymoney.ui.luckymoney: in the robbery scene,/-, in the robbery scene
If (WindowWhiteList.contains(WindowState.toString().getName()))
Judging whether the window is in the white list
{
i/This is not a touch by mistake is not a false touch operation
}
else {
The// This is a touch by mistake// is the false touch operation +.
}。
Step 2051: "mask mode", the click event is invalidated. Specifically, the window manager sets the focus window passed to the input module to null.
Step 2052: and (3) a penetrating mode, namely distributing the clicking event to a window at the front stack top, wherein the window at the front stack top is a first window, and window 1. Specifically, the window manager passes the top of stack window to the input module as the focus window, so that the click event performs a click operation under window 1.
In this embodiment, when the user interacts through the screen, when the top window of the stack changes, the click event within the reaction time of the human body is filtered, so as to effectively prevent the false click operation caused by the unreasonable reaction. In addition, through the judgment of the additionally arranged white list, all window IDs in the white list are not limited by a preset time interval under the special scene, so that the system is prevented from judging the clicking event in the special scene required by the user as the false touch operation.
In the subsequent processing process of the false touch operation, the operation corresponding to the clicking event is distributed to the original window through a penetration mode, so that the false touch is prevented, and the original intention of the clicking event is reserved.
Referring to fig. 7, a schematic structural diagram of an anti-false touch device provided in this embodiment is used to implement the method in the foregoing embodiment, where the device includes an obtaining unit 710 and a processing unit 720, and in addition, the device may further include more units, for example, a sending unit, a storage unit, and the like, which is not limited in this embodiment.
Further, the obtaining unit 710 is configured to obtain, when a click event on a top window is detected, a time interval between a trigger time of the top window and an operation of generating the click event on the top window; the processing unit 720 is configured to determine that the operation for generating the click event is a false touch operation when the time interval is within a preset time interval; and under the condition that the operation of the click event is determined to be the false touch operation, masking a window for executing the click event and a response operation.
Optionally, in a specific implementation manner of this embodiment, the processing unit 720 is specifically configured to determine whether the window corresponding to the click event is a white list window if the time interval is within the preset time interval; if not, determining that the operation of the click event is a false touch operation.
Optionally, in another specific implementation manner of this embodiment, the processing unit 720 is specifically configured to determine whether the window identifier corresponding to the click event is one of all window identifiers included in the white list.
The white list window comprises at least one of the following application scenes: a robbery package, a start-up, a install/uninstall wizard, a start-up/close wizard, an operational tutorial, etc.
Optionally, the preset time interval is a human body reaction time, and the human body reaction time is not more than 1 second.
Optionally, in another specific implementation manner of this embodiment, a flag bit of the stack top window is set to "true", and after the preset time interval passes, the flag bit of the stack top window is set to "false"; the processing unit 720 is specifically configured to determine whether the flag bit of the top window is true, and if true, determine that the operation for generating the click event is a false touch operation. If false, then there is no false touch operation.
Optionally, in another specific implementation manner of this embodiment, the processing unit 720 is specifically configured to mask a window for executing the click event from being issued to the application; or executing a first window and response operation corresponding to the first window, wherein the first window is a window displayed to a user before the clicking event of the stack top window is detected.
Further, on a specific hardware implementation level, the embodiment of the present application further provides a terminal device, which is configured to implement part or all of the steps of the user error touch prevention method described in the foregoing embodiment.
As shown in fig. 8, the terminal device includes: a processor 801, a communication module 802, and a memory 803. Furthermore, the method further comprises: an audio component 804, a touch screen/display 805, a camera 806, an input/output (I/O) interface 807, and a power management module 808. In addition, more or fewer components may be included in the terminal device, or certain components may be combined, or different component arrangements may be included, which is not limited in this application.
Specifically, the communication module 802 is configured to establish a communication channel, so that the terminal device can connect to a network, such as a WiFi network system or a cellular network, through the communication channel, so as to implement communication transmission between the terminal device and other network devices. Further, the communication module 802 may include a receiver, a transmitter, an antenna, etc., or may further include radio frequency components such as a receiver and a transmitter, etc., and further, the radio frequency components may include at least part of a wireless local area network (wireless local area network, WLAN) module, a bluetooth module, a baseband (baseband) module, etc., and Radio Frequency (RF) circuits corresponding to the communication modules for performing wireless local area network communication, bluetooth communication, infrared communication, and/or cellular communication system communication, such as wideband code division multiple access (wideband code division multiple access, WCDMA) and/or high speed downlink packet access (high speed downlink packet access, HSDPA). The communication module 802 is also used to control communication between components in the terminal device, and may support direct memory access (direct memory access).
The processor 801 is a control center of the terminal device, connects various parts of the entire hardware device using various interfaces and lines, and performs various functions of the terminal device by running or executing software programs and/or modules stored in the memory 803, and invoking data stored in the memory.
Further, the processor 801 may include one or more integrated circuits (integrated circuit, ICs) or chips, such as may include a single packaged IC or may include packaged ICs that connect to multiple identical or different functions. For example, the processor may include only a CPU, or may further include a combination of a GPU, a digital signal processor (digital signal processor, DSP), and a control chip in the transceiver module.
Optionally, the processor further comprises a window manager.
The memory 803 is used for storing computer program codes for executing the technical solutions of the present application, and is controlled to be executed by the processor 703. Further, the processor 803 is configured to execute computer program code stored in the memory 803 to implement the method in the above embodiment.
Further, the Memory 803 may be, but is not limited to, a read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a random access Memory (random access Memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a compact disc read-Only Memory (Compact Disc Read-Only Memory) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be separate or integrated with the processor.
An audio component 804 for inputting and/or outputting audio signals. For example, the audio component 804 includes a Microphone (MIC) for receiving external audio signals and a speaker for outputting audio signals.
The touch screen/display 805 may include a liquid crystal display and a touch panel for receiving input signals from a user. The touch panel includes at least one touch sensor. The touch sensor may sense a touch screen, a sliding motion, etc. of a user.
The cameras 806 include front cameras and/or rear cameras for receiving external multimedia data. Wherein each of the front or rear cameras may be a fixed optical lens system or have focal length and optical zoom capabilities.
The power management module 808 includes a battery for supplying power to various components of the terminal device, and the power management module 808 is for managing and distributing the battery, etc.
In addition, in the embodiment of fig. 7 described above in the present application, the function to be implemented by the acquiring unit 710 may be implemented by the communication module 802 of the terminal device; the functions to be implemented by the processing unit 720 may be implemented by the processor 801, and the memory 803 is used to implement the functions of various storage units.
Specifically, after detecting a click event of a top window, the processor 801 obtains a time interval between a trigger time of the top window and an operation of generating the click event on the top window; the processor 801 is further configured to determine that the operation for generating the click event is a false touch operation if the time interval is within a preset time interval; and under the condition that the operation of the click event is determined to be the false touch operation, masking a window for executing the click event and a response operation.
In the implementation, by acquiring the time interval of the click event generated by the user and comparing the time interval with the preset time interval, the accurate judgment of whether the click event generated by the user is the false touch operation or not is realized, and the corresponding shielding program is executed after the false touch operation is confirmed, so that the false touch operation generated by clicking the sudden pop-up window is effectively avoided.
In addition, the present application further provides a computer storage medium, where the computer storage medium may store a program, where the program may include some or all of the steps in each embodiment of the user anti-false touch method provided in the present application when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory ROM, or a random access memory RAM, etc.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When the computer program is loaded and executed by a computer, the processes or functions described in the various embodiments of the present application are all or partially produced. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus.
The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a network node, computer, server, or data center to another node, computer, or server by wire or wirelessly.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for an embodiment of an apparatus, a terminal device, the description is relatively simple, since it is substantially similar to the method embodiment, as far as reference is made to the description in the method embodiment.
Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more than two. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", and the like are used to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
The above-described embodiments of the present application are not intended to limit the scope of the present application.

Claims (14)

1. A method for preventing false touches by a user on a display interface, the method comprising:
when a click event on a stack top window of a window stack is detected, acquiring a time interval between a trigger time of the stack top window and an operation of generating the click event on the stack top window;
if the time interval is within a preset time interval, determining that the operation generating the click event is a false touch operation;
distributing the operation corresponding to the click event to a first window under the condition that the operation of the click event is determined to be the false touch operation; the first window is a window displayed to a user before a click event of the stack top window is detected, and is used for responding to the click event.
2. The method of claim 1, wherein determining that the operation that generated the click event is a false touch operation if the time interval is within a preset time interval comprises:
judging whether the window corresponding to the click event is a white list window or not under the condition that the time interval is within the preset time interval;
if not, determining that the operation of the click event is a false touch operation.
3. The method of claim 2, wherein determining whether the window corresponding to the click event is a whitelist window comprises:
and judging whether the window identifier corresponding to the click event is one of all window identifiers contained in the white list.
4. A method according to claim 3, wherein the whitelist window includes at least one of the following application scenarios:
the method comprises the steps of red-rush, starting, installing/uninstalling a guide, starting/closing a guide and operating a course.
5. The method of any one of claims 1-4, wherein the predetermined time interval is a human reaction time, the human reaction time not exceeding 1 second.
6. The method of any one of claims 1-4, wherein setting a flag bit of the top window to "true" when the top window pops up, and setting a flag bit of the top window to "false" after the preset time interval;
and if the time interval is within a preset time interval, determining that the operation generating the click event is a false touch operation, wherein the method comprises the following steps:
judging whether the flag bit of the stack top window is true, if true, determining that the operation generating the click event is false touch operation.
7. An apparatus for preventing false touches by a user on a display interface, the apparatus comprising:
the acquisition unit is used for acquiring the time interval between the triggering time of the stack top window and the operation of generating the click event on the stack top window when the click event on the stack top window of the window stack is detected;
the processing unit is used for judging that the operation generating the clicking event is the false touch operation when the time interval is within the preset time interval; and executing a first window and response operation corresponding to the first window under the condition that the clicking event operation is determined to be the false touch operation; the first window is a window displayed to a user before a click event of the stack top window is detected, and is used for responding to the click event.
8. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
the processing unit is specifically configured to determine whether the window corresponding to the click event is a white list window if the time interval is within the preset time interval; if not, determining that the operation of the click event is a false touch operation.
9. The apparatus of claim 8, wherein the device comprises a plurality of sensors,
the processing unit is specifically configured to determine whether the window identifier corresponding to the click event is one of all window identifiers included in the white list.
10. The apparatus of claim 8, wherein the whitelist window includes at least one of the following application scenarios: the method comprises the steps of red-rush, starting, installing/uninstalling a guide, starting/closing a guide and operating a course.
11. The device of any one of claims 7-10, wherein the predetermined time interval is a human reaction time, the human reaction time not exceeding 1 second.
12. The apparatus of any one of claims 7-10, wherein a flag bit of the top of stack window is set to "true" when the top of stack window pops up, and the flag bit of the top of stack window is set to "false" after the preset time interval;
the processing unit is specifically configured to determine whether the flag bit of the stack top window is true, and if true, determine that the operation that generates the click event is a false touch operation.
13. A terminal device comprising a processor and a memory, said processor being coupled to said memory, characterized in that,
the memory is used for storing instructions;
the processor for invoking the instructions and performing the method of any of claims 1 to 6.
14. A computer readable storage medium comprising program instructions for,
the program instructions, when run on a computer, cause the computer to perform the method of any one of claims 1 to 6.
CN201911033323.XA 2019-10-28 2019-10-28 Method, device and equipment for preventing user from mistakenly touching on display interface Active CN110837317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911033323.XA CN110837317B (en) 2019-10-28 2019-10-28 Method, device and equipment for preventing user from mistakenly touching on display interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911033323.XA CN110837317B (en) 2019-10-28 2019-10-28 Method, device and equipment for preventing user from mistakenly touching on display interface

Publications (2)

Publication Number Publication Date
CN110837317A CN110837317A (en) 2020-02-25
CN110837317B true CN110837317B (en) 2024-01-16

Family

ID=69575736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911033323.XA Active CN110837317B (en) 2019-10-28 2019-10-28 Method, device and equipment for preventing user from mistakenly touching on display interface

Country Status (1)

Country Link
CN (1) CN110837317B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867553B (en) * 2020-06-15 2023-09-26 武汉斗鱼鱼乐网络科技有限公司 Quick click processing method and device, storage medium and electronic equipment
CN113721809B (en) * 2021-09-08 2023-07-04 遨博(江苏)机器人有限公司 Window display method and system
CN113986091A (en) * 2021-10-29 2022-01-28 掌阅科技股份有限公司 Anti-repeat click method, electronic device and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106855782A (en) * 2016-12-16 2017-06-16 广东欧珀移动通信有限公司 A kind of method for preventing false touch, device and terminal
CN108459758A (en) * 2018-01-23 2018-08-28 深圳天珑无线科技有限公司 It prevents from notifying the overdue method, device and mobile terminal hit
CN109891379A (en) * 2017-08-03 2019-06-14 华为技术有限公司 A kind of false-touch prevention method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106855782A (en) * 2016-12-16 2017-06-16 广东欧珀移动通信有限公司 A kind of method for preventing false touch, device and terminal
CN109891379A (en) * 2017-08-03 2019-06-14 华为技术有限公司 A kind of false-touch prevention method and terminal
CN108459758A (en) * 2018-01-23 2018-08-28 深圳天珑无线科技有限公司 It prevents from notifying the overdue method, device and mobile terminal hit

Also Published As

Publication number Publication date
CN110837317A (en) 2020-02-25

Similar Documents

Publication Publication Date Title
US11861161B2 (en) Display method and apparatus
CN110837317B (en) Method, device and equipment for preventing user from mistakenly touching on display interface
US20230120442A1 (en) Sharing Method and Electronic Device
EP3342172B1 (en) Method of controlling the sharing of videos and electronic device adapted thereto
CN108153647B (en) Log processing method and device, terminal equipment and storage medium
CN110502163B (en) Terminal device control method and terminal device
EP3584710B1 (en) Method and apparatus for controlling display of mobile terminal, and storage medium
CN107797841B (en) Window control method and device, terminal equipment and storage medium
CN105320616B (en) External device control method and device
CN111247510B (en) Display method of application window and terminal
CN111602107B (en) Display method and terminal during application quitting
CN108769822B (en) Video display method and terminal equipment
CN111694490B (en) Setting method and device and electronic equipment
WO2022042767A1 (en) Information sharing method and apparatus, terminal device, and storage medium
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN113407423A (en) Signal intensity display method and signal intensity display device
CN113434226A (en) Communication method, communication device, electronic equipment and readable storage medium
CN109451795B (en) Configuration method and device of downlink control information
CN108920531B (en) Search content recommendation method and device, terminal device and storage medium
CN108170576B (en) Log processing method and device, terminal equipment and storage medium
CN108197013B (en) Log processing method and device, terminal equipment and storage medium
CN109902484B (en) Processing method of associated application and terminal
CN114115768A (en) Control method and device
CN117118819B (en) Method for positioning operation scene of third party application and electronic equipment
CN114553254A (en) Signal processing circuit, method and device and electronic equipment

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