CN110727372A - False touch prevention method, terminal and storage medium - Google Patents

False touch prevention method, terminal and storage medium Download PDF

Info

Publication number
CN110727372A
CN110727372A CN201910937538.8A CN201910937538A CN110727372A CN 110727372 A CN110727372 A CN 110727372A CN 201910937538 A CN201910937538 A CN 201910937538A CN 110727372 A CN110727372 A CN 110727372A
Authority
CN
China
Prior art keywords
touch
target
target application
terminal
instruction
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.)
Granted
Application number
CN201910937538.8A
Other languages
Chinese (zh)
Other versions
CN110727372B (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.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications 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 Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN201910937538.8A priority Critical patent/CN110727372B/en
Publication of CN110727372A publication Critical patent/CN110727372A/en
Application granted granted Critical
Publication of CN110727372B publication Critical patent/CN110727372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment

Abstract

The embodiment of the application discloses a false touch prevention method, a terminal and a storage medium, wherein the false touch prevention method comprises the following steps: after the target application is started, receiving a touch instruction of the target application; the touch instruction carries a touch coordinate and a touch category; counting according to the touch category to obtain a first accumulated parameter corresponding to the touch instruction; counting according to the touch coordinates to obtain a second accumulated parameter corresponding to the touch instruction; when the first accumulative parameter is greater than or equal to a first preset threshold, generating a target inhibition mode corresponding to the target application according to the second accumulative parameter and a second preset threshold; and carrying out false touch prevention processing on the target application according to the target suppression mode.

Description

False touch prevention method, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a false touch prevention method, a terminal and a storage medium.
Background
With the gradual development of science and technology, terminals with multiple functions have gradually become indispensable important devices in life and work, and meanwhile, based on the continuous progress of terminal technology, the screen occupation ratio and the resolution of a terminal touch screen are also greatly improved, wherein the touch screen is continuously developed towards a narrow frame or a frame-free frame.
In order to prevent the problem of touch screen false touch caused by user misoperation, the terminal often sets a partial area of the touch screen as a fixed false touch prevention area and sets a suppression mode for the false touch prevention area, that is, even if the terminal receives a touch instruction in the false touch prevention area, the terminal does not respond to the touch instruction according to the corresponding suppression mode. However, the setting of the false touch prevention area and the suppression mode is too single, the false touch prevention requirements of the terminal in different use scenes cannot be met, individuation is lacked, and the intelligence of the terminal is reduced.
Disclosure of Invention
The embodiment of the application provides a false touch prevention method, a terminal and a storage medium, which can meet the false touch prevention requirements of the terminal in different use scenes, and improve individuation, so that the intelligence of the terminal is improved.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a false touch prevention method, which comprises the following steps:
after a target application is started, receiving a touch instruction of the target application; the touch instruction carries a touch coordinate and a touch category;
counting according to the touch category to obtain a first accumulated parameter corresponding to the touch instruction; counting according to the touch coordinate to obtain a second accumulated parameter corresponding to the touch instruction;
when the first accumulative parameter is larger than or equal to a first preset threshold, generating a target inhibition mode corresponding to the target application according to the second accumulative parameter and a second preset threshold;
and carrying out false touch prevention processing on the target application according to the target suppression mode.
The embodiment of the application provides a terminal, the terminal includes: a receiving unit, an obtaining unit, a generating unit and a processing unit,
the receiving unit is used for receiving a touch instruction of a target application after the target application is started; the touch instruction carries a touch coordinate and a touch category;
the obtaining unit is used for performing counting processing according to the touch category to obtain a first accumulated parameter corresponding to the touch instruction; counting according to the touch coordinate to obtain a second accumulated parameter corresponding to the touch instruction;
the generating unit is used for generating a target suppression mode corresponding to the target application according to the second accumulated parameter and a second preset threshold when the first accumulated parameter is greater than or equal to the first preset threshold;
and the processing unit is used for performing false touch prevention processing on the target application according to the target suppression mode.
The embodiment of the application provides a terminal, which comprises a processor and a memory, wherein the memory is used for storing executable instructions of the processor, and when the instructions are executed by the processor, the mistaken touch preventing method is realized.
The embodiment of the application provides a computer-readable storage medium, wherein a program is stored on the computer-readable storage medium and is applied to a terminal, and when the program is executed by a processor, the method for preventing false touch is realized.
The embodiment of the application provides a method, a terminal and a storage medium for preventing false touch, wherein the terminal receives a touch instruction of a target application after the target application is started; the touch instruction carries a touch coordinate and a touch category; counting according to the touch category to obtain a first accumulated parameter corresponding to the touch instruction; counting according to the touch coordinates to obtain a second accumulated parameter corresponding to the touch instruction; when the first accumulative parameter is greater than or equal to a first preset threshold, generating a target inhibition mode corresponding to the target application according to the second accumulative parameter and a second preset threshold; and carrying out false touch prevention processing on the target application according to the target suppression mode. That is to say, in the embodiment of the application, when the target application runs, the terminal may analyze and count the touch instruction corresponding to the target application, specifically, count the touch category and the touch coordinate of the touch instruction, and then generate the target suppression mode corresponding to the target application in combination with the preset threshold, so that the target suppression mode may be used to prevent a false touch. Therefore, the method for preventing the false touch can generate the processing mode of preventing the false touch corresponding to the target application by using the touch instruction corresponding to the target application, so that different applications can be subjected to different processing of preventing the false touch according to the target inhibition mode corresponding to the application, the requirements of the terminal on preventing the false touch in different use scenes can be met, the individuation is improved, and the intelligence of the terminal is improved.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a false touch prevention method according to an embodiment of the present disclosure;
FIG. 2 is a first schematic diagram illustrating receiving a touch command;
FIG. 3 is a second schematic diagram illustrating receiving a touch command;
FIG. 4 is a third schematic diagram illustrating receiving a touch command;
FIG. 5 is a first schematic diagram of the anti-false touch region;
FIG. 6 is a second schematic diagram of the anti-false touch region;
fig. 7 is a first schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant application and are not limiting of the application. It should be noted that, for the convenience of description, only the parts related to the related applications are shown in the drawings.
With the continuous progress of terminal technology, the terminal has become an electronic device integrating communication and entertainment, and the screen occupation ratio of the terminal touch screen is greatly improved. Specifically, as the touch screen is continuously developed towards a narrow frame or a frameless frame, the ultra-large screen is easy to generate a false touch phenomenon. In the prior art, in order to prevent the problem of touch screen false touch caused by user misoperation, a terminal often sets a partial area of the touch screen as a fixed false touch prevention area, that is, even if the terminal receives a touch instruction in the false touch prevention area, the terminal cannot respond to the touch instruction.
Specifically, in order to prevent the false touch operation from occurring in the edge area of the screen, the existing processing method is to set an area at the edge of the touch screen as a false touch prevention area, and a fixed suppression mode can be set in the false touch prevention area, and the following two main suppression modes are adopted in the current suppression mode:
1. when the touch control instruction is received by the false touch prevention area of the touch screen, the touch point coordinate corresponding to the touch control instruction in the false touch prevention area is not reported.
2. If the touch instruction is received in the false touch prevention area of the touch screen and the touch instruction is not received in other areas, reporting the touch coordinates corresponding to the touch instruction in the false touch prevention area; if the touch instruction is received in the false touch prevention area of the touch screen and the touch instruction is received in other areas, the touch coordinates corresponding to the touch instruction in the false touch prevention area are not reported, but the touch coordinates corresponding to the touch instruction in other areas are reported.
However, the setting of the false touch prevention area and the suppression mode in the prior art is too single, the false touch prevention requirements of the terminal in different use scenes cannot be met, individuation is lacked, and the intelligence of the terminal is reduced.
In order to solve the problems in the prior art, embodiments of the present application provide a method, a terminal, and a storage medium for preventing a false touch, where the terminal may analyze and count a touch instruction corresponding to a target application when the target application runs, specifically, may count a touch category and a touch coordinate of the touch instruction, and further may generate a target suppression mode corresponding to the target application in combination with a preset threshold, so that the false touch can be prevented by using the target suppression mode, thereby meeting a false touch prevention requirement of the terminal in different usage scenarios, improving personalization, and improving intelligence of the terminal.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
An embodiment of the present application provides a false touch prevention method, and fig. 1 is a schematic flow chart illustrating an implementation process of the false touch prevention method provided in the embodiment of the present application, as shown in fig. 1, in the embodiment of the present application, a method for a terminal to perform false touch prevention processing may include the following steps:
step 101, after a target application is started, receiving a touch instruction of the target application; the touch instruction carries touch coordinates and touch categories.
In the embodiment of the application, after the terminal starts the target application, the terminal may receive a touch instruction for the target application. Specifically, the touch instruction may carry corresponding touch coordinates and touch categories.
It should be noted that, in the embodiment of the present application, the terminal may be configured with a touch screen, and further, the terminal may receive a touch instruction on the touch screen. Fig. 2 is a first schematic diagram illustrating receiving a touch instruction, as shown in fig. 2, a user performs a touch operation on a touch screen, and a terminal can receive the touch instruction through the touch operation.
Further, in the embodiment of the application, the touch coordinate corresponding to the touch instruction is a coordinate parameter corresponding to the touch point where the terminal receives the touch instruction, that is, the touch coordinate may represent a specific position where the touch instruction is received. For example, fig. 3 is a second schematic diagram illustrating the receiving of a touch command, and as shown in fig. 3, the touch coordinate of the touch command received by the terminal is (x, y).
Further, in the embodiment of the present application, the touch category corresponding to the touch instruction is a specific control category of the touch instruction for the target application, that is, the touch type may represent a specific role of receiving the touch instruction. For example, fig. 4 is a third schematic diagram illustrating receiving a touch instruction, and as shown in fig. 4, the touch instruction received by the terminal on the touch screen is used to perform setting processing on the target application, that is, the touch category is set.
It should be noted that, in the embodiment of the present application, before the terminal receives the touch instruction, the terminal may start the target application first, so that the touch instruction received by the terminal corresponds to the target application, and therefore, the touch category of the touch instruction is determined based on the target application. That is, for different applications, the touch coordinates of the touch commands are the same in time, and the corresponding touch categories are not necessarily the same.
Further, in the embodiment of the application, when the terminal receives the touch instruction in the target application, the terminal may specifically receive the touch instruction to the target application in the preset anti-touch-miss area.
It should be noted that, in the embodiment of the present application, the terminal may set an area for preventing the generation of the error processing in the touch screen in advance, that is, set an area for preventing the error touch. The false touch prevention area may be a partial area in the touch screen, for example, the false touch prevention area may be four edge areas of the touch screen.
Further, in the embodiment of the present application, the false touch prevention areas that may be set by the terminal may be the same for different applications, for example, fig. 5 is a schematic diagram of a false touch prevention area one, and fig. 6 is a schematic diagram of a false touch prevention area two, as shown in fig. 5 and 6, for an application a, the false touch prevention area is an area a in the touch screen, and for an area B, the false touch prevention area is an area B in the touch screen.
In the embodiments of the present application, the terminal may be any device that has communication and storage functions and is provided with a touch screen. For example: tablet computers, mobile phones, electronic readers, remote controllers, Personal Computers (PCs), notebook computers, vehicle-mounted devices, network televisions, wearable devices, and the like.
102, counting according to touch categories to obtain a first accumulated parameter corresponding to a touch instruction; and counting according to the touch coordinate to obtain a second accumulative parameter corresponding to the touch instruction.
In the embodiment of the application, after receiving the touch instruction for the target application, the terminal may perform counting according to the touch category to obtain a first accumulated parameter corresponding to the touch instruction, and may also perform counting according to the touch coordinate to obtain a second accumulated parameter corresponding to the touch instruction.
It should be noted that, in the embodiment of the present application, after receiving the touch instruction, the terminal may count the touch position and the application type in the target application by using the touch category and the touch coordinate, respectively.
Further, in the embodiment of the application, after the terminal starts the target application, a counter for counting may be preset, so that after receiving a touch instruction for the target application, the terminal may perform counting processing according to the touch instruction.
It should be noted that, in the embodiment of the present application, the terminal may be respectively provided with a first counter for counting a specific action type of the touch and a second counter for counting a specific position of the touch. Specifically, the terminal receives the touch instruction and counts according to the touch category after determining the touch category and the touch coordinate corresponding to the touch instruction, so as to obtain a first accumulated parameter; then, the terminal may count according to the touch coordinates to obtain a second accumulated parameter.
Further, in the embodiment of the present application, the first cumulative parameter corresponds to a touch category, and specifically, for different touch categories, the terminal may count with different first counters to obtain different first cumulative parameters corresponding to different touch categories. For example, after the target application is opened, the terminal receives a multi-touch instruction in the anti-touch-miss area, where the number of times of the category 1 is 5 times, and the number of times of the category 2 is 3 times, and after the terminal counts, the first accumulation parameter corresponding to the category 1 is 5, and the first accumulation parameter corresponding to the category 2 is 3.
It should be noted that, in the embodiment of the present application, the second cumulative parameter corresponds to the touch category and the touch coordinate, and specifically, for different touch categories and different touch coordinates, the terminal may count by using different second counters to obtain different second cumulative parameters corresponding to different touch categories and different touch coordinates. For example, after the target application is opened, the terminal receives a multi-touch instruction in the anti-touch-miss area, where the number of times of the category 1 under the coordinate 1 is 2, and the number of times of the category 1 under the coordinate 2 is 2, then after the terminal counts, the second accumulation parameter corresponding to the category 1 and the coordinate 1 is 2, and the second accumulation parameter corresponding to the category 1 and the coordinate 2 is 3.
In the embodiment of the application, further, the touch instruction may further carry touch parameters, where the touch parameters may be used to perform statistical screening on the touch coordinates. Specifically, before performing the counting processing according to the touch coordinates, the terminal may determine whether the corresponding touch coordinates are counted according to the touch parameters and the preset screening requirement.
In the embodiment of the present application, the touch parameter may include at least one of a plurality of specific pressing or sliding parameters, such as a touch area, a touch pressure, a touch time, and a touch direction.
Further, in the embodiment of the application, when the terminal performs the false touch prevention processing, if the touch parameter meets the preset screening requirement, the terminal may determine to perform the counting processing on the touch coordinate, so that the counting processing may be performed according to the touch coordinate.
Further, in the embodiment of the application, when the terminal performs the false touch prevention processing, if the touch parameter does not meet the preset screening requirement, the terminal may ignore the touch coordinate corresponding to the touch instruction, that is, the touch coordinate is not counted.
And 103, when the first accumulative parameter is greater than or equal to a first preset threshold, generating a target inhibition mode corresponding to the target application according to the second accumulative parameter and a second preset threshold.
In the embodiment of the application, the terminal performs counting processing according to the touch category to obtain a first accumulated parameter corresponding to the touch instruction; and meanwhile, counting according to the touch coordinates, after a second accumulated parameter corresponding to the touch instruction is obtained, if the first accumulated parameter is greater than or equal to a first preset threshold, the terminal can generate a target inhibition mode corresponding to the target application according to the second accumulated parameter and the second preset threshold. The target suppression mode is used for carrying out false touch prevention processing on the target application.
It should be noted that, in the embodiment of the present application, after the terminal counts the touch categories carried in the touch instruction and obtains the first accumulated parameter, the terminal may compare the first accumulated parameter with the first preset threshold, so as to further determine whether to generate the target suppression mode according to the comparison result.
Further, in the embodiment of the present application, the terminal may preset a first preset threshold and a second preset threshold, where the first preset threshold is used to determine whether a certain category of operation in the target application is repeated for a sufficient number of times. That is, in the present application, after a touch instruction of one touch category is received multiple times enough, that is, after a user repeats one touch operation multiple times in a false touch prevention area in the touch screen, the terminal may further determine whether to generate the target suppression mode for the touch instruction.
It should be noted that, in the embodiment of the present application, the second preset threshold is used to determine whether a certain location corresponding to a certain category in the target application is a false touch, so that after determining that the first cumulative parameter is greater than or equal to the first preset threshold, the terminal may generate the target suppression mode according to the second cumulative parameter and the second preset threshold.
In the embodiment of the present application, the target suppression mode generated by the terminal according to the second accumulation parameter and the second preset threshold is a false touch prevention mode corresponding to the target application. That is to say, after the terminal starts the target application, the terminal continuously analyzes and counts the acquired touch instruction under the target application, so as to generate and obtain a false touch prevention mode which is only suitable for the target application and meets the requirement of the target application, namely, obtain a target inhibition mode.
And 104, carrying out false touch prevention processing on the target application according to the target suppression mode.
In the embodiment of the application, when the first accumulated parameter is greater than or equal to the first preset threshold, after the terminal generates the target suppression mode corresponding to the target application according to the second accumulated parameter and the second preset threshold, the terminal may perform false touch prevention processing on the target application according to the target suppression mode.
It should be noted that, in the embodiment of the present application, before the terminal performs the false touch prevention processing on the target application according to the target suppression mode, the terminal may first acquire an initial suppression mode corresponding to the target application. The initial suppression mode is preset by the terminal and can be suitable for any one application in a false touch prevention mode.
Further, in the embodiment of the present application, the initial suppression mode may be a fixed suppression mode set for the terminal, for example, the initial suppression mode may be: when the mistaken touch prevention area receives the touch instruction, the terminal does not report the contact coordinates corresponding to the touch instruction, or if the mistaken touch prevention area receives the touch instruction and simultaneously receives the touch instruction in other areas, the terminal does not report the contact coordinates corresponding to the touch instruction in the mistaken touch prevention area, and only reports the contact coordinates corresponding to the touch instruction in other areas.
It should be noted that, in the embodiment of the present application, after the terminal acquires the initial suppression mode, the terminal may directly update the initial suppression mode according to the target suppression mode, so that the anti-false-touch processing of the target application may be implemented.
Further, in the embodiment of the present application, when the terminal updates the initial suppression mode according to the target suppression mode, the terminal may completely replace the initial suppression mode through the target suppression mode, or compare the target suppression mode with the initial suppression mode, and partially update the initial suppression mode through the target suppression mode.
In the embodiment of the present application, although the initial suppression modes corresponding to different applications may be the same or different, the initial suppression mode is only a fixed false touch prevention mode compared to the target suppression mode corresponding to the target application generated by the terminal, and is not generated according to the touch instruction corresponding to the target application, so that when the terminal performs the false touch prevention processing, the initial suppression mode is updated by using the target suppression mode, and the false touch prevention requirement of the terminal in different usage scenarios can be effectively satisfied.
The embodiment of the application provides a method for preventing mistaken touch, wherein a terminal receives a touch instruction of a target application after the target application is started; the touch instruction carries a touch coordinate and a touch category; counting according to the touch category to obtain a first accumulated parameter corresponding to the touch instruction; counting according to the touch coordinates to obtain a second accumulated parameter corresponding to the touch instruction; when the first accumulative parameter is greater than or equal to a first preset threshold, generating a target inhibition mode corresponding to the target application according to the second accumulative parameter and a second preset threshold; and carrying out false touch prevention processing on the target application according to the target suppression mode. That is to say, in the embodiment of the application, when the target application runs, the terminal may analyze and count the touch instruction corresponding to the target application, specifically, count the touch category and the touch coordinate of the touch instruction, and then generate the target suppression mode corresponding to the target application in combination with the preset threshold, so that the target suppression mode may be used to prevent a false touch. Therefore, the method for preventing the false touch can generate the processing mode of preventing the false touch corresponding to the target application by using the touch instruction corresponding to the target application, so that different applications can be subjected to different processing of preventing the false touch according to the target inhibition mode corresponding to the application, the requirements of the terminal on preventing the false touch in different use scenes can be met, the individuation is improved, and the intelligence of the terminal is improved.
Based on the foregoing embodiment, in another embodiment of the present application, a method for generating, by a terminal, a target suppression mode corresponding to a target application according to a second accumulated parameter and a second preset threshold may include the following steps:
step 201, determining a suppression result corresponding to the touch coordinate according to the second accumulated parameter and a second preset threshold.
In the embodiment of the application, the terminal obtains a first accumulated parameter corresponding to the touch instruction; after the second accumulated parameter corresponding to the touch instruction is obtained, if the first accumulated parameter is greater than or equal to the first preset threshold, the terminal may determine the suppression result corresponding to the touch coordinate according to the second accumulated parameter and the second preset threshold.
It should be noted that, in the embodiment of the present application, the suppression result may be used to determine whether to suppress the touch coordinate, where the suppression result may include coordinate suppression and coordinate release.
Further, in the embodiment of the application, the coordinate suppression representation needs suppression processing on the touch coordinate, that is, a touch instruction corresponding to the touch coordinate is not responded; the coordinate release representation does not need to suppress the touch coordinate, and can respond to the touch instruction corresponding to the touch coordinate.
And step 202, generating a target inhibition mode according to the inhibition result.
In the embodiment of the application, after the terminal determines the suppression result corresponding to the touch coordinate according to the second accumulated parameter and the second preset threshold, the terminal may generate the target suppression mode corresponding to the target application according to the suppression result.
It should be noted that, since the suppression result is used to determine whether to perform the false touch prevention processing on the touch coordinates, after the terminal determines the suppression results corresponding to all the touch coordinates corresponding to all the touch commands of the target application, the touch coordinates that need to be coordinate-suppressed and the touch coordinates that need to be coordinate-released can be determined according to the suppression results, so that the target suppression mode can be generated.
In an embodiment of the application, further, the method for determining the suppression result corresponding to the touch coordinate by the terminal according to the second accumulated parameter and the second preset threshold may include the following steps:
and step 201a, when the second accumulated parameter is larger than a second preset threshold, determining the suppression result as coordinate suppression.
And step 201b, when the second accumulated parameter is less than or equal to a second preset threshold, determining the inhibition result as coordinate release.
In the embodiment of the application, after a first accumulated parameter corresponding to the touch instruction is obtained and a second accumulated parameter corresponding to the touch instruction is obtained at the same time, if the first accumulated parameter is greater than or equal to a first preset threshold, the terminal may continue to compare the first accumulated parameter with the second preset threshold, so that a suppression result corresponding to the touch coordinate may be determined according to the comparison result.
It should be noted that, in the embodiment of the application, after the terminal compares the first cumulative parameter with the second preset threshold, if the second cumulative parameter is greater than the second preset threshold, it may be considered that the touch coordinate is likely to generate a false touch corresponding to the target application, and therefore the touch coordinate needs to be suppressed, and the terminal may determine the suppression result as coordinate suppression.
Further, in the embodiment of the application, after the terminal compares the first cumulative parameter with the second preset threshold, if the second cumulative parameter is less than or equal to the second preset threshold, it may be considered that the touch coordinate corresponds to the target application and is not easy to generate a false touch, and therefore, the terminal may determine the suppression result as coordinate release without suppressing the touch coordinate.
The embodiment of the application provides a method for preventing mistaken touch, wherein a terminal receives a touch instruction of a target application after the target application is started; the touch instruction carries a touch coordinate and a touch category; counting according to the touch category to obtain a first accumulated parameter corresponding to the touch instruction; counting according to the touch coordinates to obtain a second accumulated parameter corresponding to the touch instruction; when the first accumulative parameter is greater than or equal to a first preset threshold, generating a target inhibition mode corresponding to the target application according to the second accumulative parameter and a second preset threshold; and carrying out false touch prevention processing on the target application according to the target suppression mode. That is to say, in the embodiment of the application, when the target application runs, the terminal may analyze and count the touch instruction corresponding to the target application, specifically, count the touch category and the touch coordinate of the touch instruction, and then generate the target suppression mode corresponding to the target application in combination with the preset threshold, so that the target suppression mode may be used to prevent a false touch. Therefore, the method for preventing the false touch can generate the processing mode of preventing the false touch corresponding to the target application by using the touch instruction corresponding to the target application, so that different applications can be subjected to different processing of preventing the false touch according to the target inhibition mode corresponding to the application, the requirements of the terminal on preventing the false touch in different use scenes can be met, the individuation is improved, and the intelligence of the terminal is improved.
Based on the foregoing embodiment, in yet another embodiment of the present application, a method for a terminal to obtain an initial suppression mode corresponding to a target application may include the following steps:
301, acquiring identification information; wherein the identification information is used to determine the identity of the user of the target application.
In the embodiment of the application, when the terminal acquires the initial suppression mode, the terminal may first acquire identification information representing the identity of the user.
It should be noted that, in the embodiment of the present application, the identification information may be used to determine the identity of the user of the target application.
Step 302, an initial suppression mode corresponding to the identification information and the target application is obtained.
In the embodiment of the application, after determining the identification information, the terminal may acquire an initial suppression mode corresponding to the identification information and the target application.
It should be noted that, in the embodiment of the present application, the initial suppression mode preset by the terminal may be different for different users, that is, for different identification information, and therefore, the initial suppression mode obtained by the terminal in acquiring the identification information may be different based on different users.
Further, in the embodiment of the application, when the terminal performs the false touch prevention processing on the target application, the terminal is performed in combination with the target suppression mode on the basis of the initial suppression mode, so that different initial suppression modes are set for different identification information, so that when the terminal performs the false touch prevention processing, scenes of different applications and use habits of different users can be simultaneously combined, and thus personalization of the false touch prevention processing can be further improved.
In the embodiment of the present application, further, after the terminal performs the false touch prevention processing on the target application according to the target suppression mode, that is, after step 105, the method for performing the false touch prevention processing by the terminal may further include the following steps:
and 105, after the target application is started again, re-receiving the touch instruction.
And 106, generating a new target suppression mode according to the touch instruction received again, and performing false touch prevention processing on the target application according to the new target suppression mode.
In the embodiment of the application, after the terminal performs the false touch prevention processing on the target application according to the target suppression mode, if the target application is started again, the terminal may receive the touch instruction in the target application again, and then may generate a new target suppression mode according to the touch instruction received again, so that the false touch prevention processing may be performed on the target application according to the new target suppression mode.
It should be noted that, in the embodiment of the present application, the target suppression mode of the target application generated by the terminal is not fixed and inconvenient, but may be continuously updated. Specifically, after the target application is restarted, the terminal may analyze and count the touch instruction corresponding to the target application again, so as to update the target suppression mode.
Further, in the embodiment of the present application, when the terminal restarts the target application, the initial suppression mode corresponding to the target application may be a target suppression mode generated when the target application was last started, or may be a suppression mode preset by the terminal.
In the embodiment of the present application, the terminal may further update the target suppression mode of the target application after the terminal performs the false touch prevention processing for a certain time according to the target suppression mode. Specifically, after the terminal generates the target suppression mode and performs the false touch prevention processing according to the target suppression mode, the terminal may record the use time corresponding to the target suppression mode, and when the use time is greater than or equal to the preset time threshold, the terminal may receive the touch instruction in the target application again, and then may continue to generate a new target suppression mode according to the touch instruction, so that the false touch prevention processing may be performed on the target application according to the new target suppression mode.
The embodiment of the application provides a method for preventing mistaken touch, wherein a terminal receives a touch instruction of a target application after the target application is started; the touch instruction carries a touch coordinate and a touch category; counting according to the touch category to obtain a first accumulated parameter corresponding to the touch instruction; counting according to the touch coordinates to obtain a second accumulated parameter corresponding to the touch instruction; when the first accumulative parameter is greater than or equal to a first preset threshold, generating a target inhibition mode corresponding to the target application according to the second accumulative parameter and a second preset threshold; and carrying out false touch prevention processing on the target application according to the target suppression mode. That is to say, in the embodiment of the application, when the target application runs, the terminal may analyze and count the touch instruction corresponding to the target application, specifically, count the touch category and the touch coordinate of the touch instruction, and then generate the target suppression mode corresponding to the target application in combination with the preset threshold, so that the target suppression mode may be used to prevent a false touch. Therefore, the method for preventing the false touch can generate the processing mode of preventing the false touch corresponding to the target application by using the touch instruction corresponding to the target application, so that different applications can be subjected to different processing of preventing the false touch according to the target inhibition mode corresponding to the application, the requirements of the terminal on preventing the false touch in different use scenes can be met, the individuation is improved, and the intelligence of the terminal is improved.
Based on the foregoing embodiments, in another embodiment of the present application, fig. 7 is a schematic diagram of a composition structure of a terminal provided in the embodiments of the present application, and as shown in fig. 7, the terminal 1 provided in the embodiments of the present application may include a receiving unit 11, an obtaining unit 12, a generating unit 13, and a processing unit 14.
The receiving unit 11 is configured to receive a touch instruction for a target application after the target application is started; the touch instruction carries a touch coordinate and a touch category;
the obtaining unit 12 is configured to perform counting processing according to the touch category to obtain a first cumulative parameter corresponding to the touch instruction; counting according to the touch coordinate to obtain a second accumulated parameter corresponding to the touch instruction;
the generating unit 13 is configured to generate a target suppression mode corresponding to the target application according to the second accumulated parameter and a second preset threshold when the first accumulated parameter is greater than or equal to the first preset threshold;
and the processing unit 14 is configured to perform false touch prevention processing on the target application according to the target suppression mode.
Further, in an embodiment of the present application, the generating unit 13 is specifically configured to determine a suppression result corresponding to the touch coordinate according to the second accumulated parameter and the second preset threshold; and generating the target inhibition mode according to the inhibition result;
the generating unit 13 is further specifically configured to determine the suppression result as coordinate suppression when the second accumulated parameter is greater than the second preset threshold; and when the second accumulated parameter is less than or equal to the second preset threshold, determining the inhibition result as coordinate release.
Further, in this embodiment of the application, the obtaining unit 12 is further configured to obtain an initial suppression mode corresponding to the target application before performing false touch prevention processing on the target application according to the target suppression mode.
Further, in an embodiment of the present application, the processing unit 14 is specifically configured to update the initial suppression mode according to the target suppression mode, so as to implement a false touch prevention process for the target application.
Further, in an embodiment of the present application, the obtaining unit 12 is specifically configured to obtain identification information; wherein the identification information is used for determining the identity of the user of the target application; and obtaining the initial suppression mode corresponding to the identification information and the target application.
Further, in the embodiment of the present application, the touch instruction further carries a touch parameter; the obtaining unit 12 is specifically configured to perform counting processing according to the touch coordinate when the touch parameter meets a preset screening requirement.
Further, in an embodiment of the present application, the receiving unit 11 is specifically configured to receive the touch instruction of the target application in a preset false touch prevention area.
Further, in an embodiment of the present application, the receiving unit 11 is further configured to, after performing false touch prevention processing on the target application according to the target suppression mode, restart the target application, and then re-receive the touch instruction;
the generating unit 13 is further configured to generate a new target suppression mode according to the newly received touch instruction, so as to perform false touch prevention processing on the target application according to the new target suppression mode.
In an embodiment of the present application, further, fig. 8 is a schematic diagram of a composition structure of a terminal provided in the embodiment of the present application, as shown in fig. 8, a terminal 1 provided in the embodiment of the present application may further include a processor 15 and a memory 16 storing executable instructions of the processor 15, and further, the terminal 1 may further include a communication interface 17, and a bus 18 for connecting the processor 15, the memory 16, and the communication interface 17.
In an embodiment of the present invention, the Processor 15 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a ProgRAMmable Logic Device (PLD), a Field ProgRAMmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understood that the electronic devices for implementing the above processor functions may be other devices, and the embodiments of the present application are not limited in particular. The terminal 1 may further comprise a memory 16, which memory 16 may be connected to the processor 15, wherein the memory 16 is adapted to store executable program code comprising computer operating instructions, and wherein the memory 16 may comprise a high speed RAM memory and may further comprise a non-volatile memory, such as at least two disk memories.
In the embodiment of the present application, the bus 18 is used to connect the communication interface 17, the processor 15, and the memory 16 and the intercommunication among these devices.
In an embodiment of the present application, the memory 16 is used for storing instructions and data.
Further, in an embodiment of the present application, the processor 15 is configured to receive a touch instruction for a target application after the target application is started; the touch instruction carries a touch coordinate and a touch category; counting according to the touch category to obtain a first accumulated parameter corresponding to the touch instruction; counting according to the touch coordinate to obtain a second accumulated parameter corresponding to the touch instruction; when the first accumulative parameter is larger than or equal to a first preset threshold, generating a target inhibition mode corresponding to the target application according to the second accumulative parameter and a second preset threshold; and carrying out false touch prevention processing on the target application according to the target suppression mode.
In practical applications, the Memory 16 may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard disk (Hard disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 15.
In addition, each functional module in this embodiment 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 integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
According to the terminal provided by the embodiment of the application, after the target application is started, the terminal receives a touch instruction of the target application; the touch instruction carries a touch coordinate and a touch category; counting according to the touch category to obtain a first accumulated parameter corresponding to the touch instruction; counting according to the touch coordinates to obtain a second accumulated parameter corresponding to the touch instruction; when the first accumulative parameter is greater than or equal to a first preset threshold, generating a target inhibition mode corresponding to the target application according to the second accumulative parameter and a second preset threshold; and carrying out false touch prevention processing on the target application according to the target suppression mode. That is to say, in the embodiment of the application, when the target application runs, the terminal may analyze and count the touch instruction corresponding to the target application, specifically, count the touch category and the touch coordinate of the touch instruction, and then generate the target suppression mode corresponding to the target application in combination with the preset threshold, so that the target suppression mode may be used to prevent a false touch. Therefore, the method for preventing the false touch can generate the processing mode of preventing the false touch corresponding to the target application by using the touch instruction corresponding to the target application, so that different applications can be subjected to different processing of preventing the false touch according to the target inhibition mode corresponding to the application, the requirements of the terminal on preventing the false touch in different use scenes can be met, the individuation is improved, and the intelligence of the terminal is improved.
An embodiment of the present application provides a computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, the program implements the false touch prevention method as described above.
Specifically, the program instructions corresponding to a false touch prevention method in the embodiment may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the program instructions corresponding to a false touch prevention method in the storage medium are read or executed by an electronic device, the method includes the following steps:
after a target application is started, receiving a touch instruction of the target application; the touch instruction carries a touch coordinate and a touch category;
counting according to the touch category to obtain a first accumulated parameter corresponding to the touch instruction; counting according to the touch coordinate to obtain a second accumulated parameter corresponding to the touch instruction;
when the first accumulative parameter is larger than or equal to a first preset threshold, generating a target inhibition mode corresponding to the target application according to the second accumulative parameter and a second preset threshold;
and carrying out false touch prevention processing on the target application according to the target suppression mode.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of implementations of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart block or blocks and/or flowchart block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks in the flowchart and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (12)

1. A method of preventing false touches, the method comprising:
after a target application is started, receiving a touch instruction of the target application; the touch instruction carries a touch coordinate and a touch category;
counting according to the touch category to obtain a first accumulated parameter corresponding to the touch instruction; counting according to the touch coordinate to obtain a second accumulated parameter corresponding to the touch instruction;
when the first accumulative parameter is larger than or equal to a first preset threshold, generating a target inhibition mode corresponding to the target application according to the second accumulative parameter and a second preset threshold;
and carrying out false touch prevention processing on the target application according to the target suppression mode.
2. The method according to claim 1, wherein the generating a target suppression pattern corresponding to the target application according to the second accumulated parameter and a second preset threshold comprises:
determining a suppression result corresponding to the touch coordinate according to the second accumulated parameter and the second preset threshold;
and generating the target inhibition mode according to the inhibition result.
3. The method according to claim 2, wherein the determining the suppression result corresponding to the touch coordinate according to the second accumulated parameter and the second preset threshold includes:
when the second accumulated parameter is larger than the second preset threshold, determining the inhibition result as coordinate inhibition;
and when the second accumulated parameter is less than or equal to the second preset threshold, determining the inhibition result as coordinate release.
4. The method of claim 1, wherein prior to performing anti-false touch processing on the target application according to the target suppression mode, the method further comprises:
and acquiring an initial suppression mode corresponding to the target application.
5. The method according to claim 4, wherein the performing anti-false touch processing on the target application according to the target suppression mode comprises:
and updating the initial suppression mode according to the target suppression mode to realize false touch prevention processing of the target application.
6. The method of claim 4, wherein the obtaining the initial suppression mode corresponding to the target application comprises:
acquiring identification information; wherein the identification information is used for determining the identity of the user of the target application;
and acquiring the initial suppression mode corresponding to the identification information and the target application.
7. The method of claim 1, wherein the touch instruction further carries touch parameters; the counting according to the touch coordinate includes:
and when the touch parameters meet the preset screening requirements, counting according to the touch coordinates.
8. The method of claim 1, wherein the receiving the touch instruction for the target application comprises:
and receiving the touch instruction of the target application in a preset false touch prevention area.
9. The method of claim 1, wherein after the anti-false touch processing of the target application according to the target suppression mode, the method further comprises:
after the target application is started again, the touch instruction is received again;
and generating a new target suppression mode according to the re-received touch instruction, and performing false touch prevention processing on the target application according to the new target suppression mode.
10. A terminal, characterized in that the terminal comprises: a receiving unit, an obtaining unit, a generating unit and a processing unit,
the receiving unit is used for receiving a touch instruction of a target application after the target application is started; the touch instruction carries a touch coordinate and a touch category;
the obtaining unit is used for performing counting processing according to the touch category to obtain a first accumulated parameter corresponding to the touch instruction; counting according to the touch coordinate to obtain a second accumulated parameter corresponding to the touch instruction;
the generating unit is used for generating a target suppression mode corresponding to the target application according to the second accumulated parameter and a second preset threshold when the first accumulated parameter is greater than or equal to the first preset threshold;
and the processing unit is used for performing false touch prevention processing on the target application according to the target suppression mode.
11. A terminal, characterized in that the terminal comprises a processor, a memory storing instructions executable by the processor, which instructions, when executed by the processor, implement the method according to any of claims 1-9.
12. A computer-readable storage medium, on which a program is stored, for use in a terminal, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-9.
CN201910937538.8A 2019-09-29 2019-09-29 False touch prevention method, terminal and storage medium Active CN110727372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910937538.8A CN110727372B (en) 2019-09-29 2019-09-29 False touch prevention method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910937538.8A CN110727372B (en) 2019-09-29 2019-09-29 False touch prevention method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110727372A true CN110727372A (en) 2020-01-24
CN110727372B CN110727372B (en) 2023-04-07

Family

ID=69218577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910937538.8A Active CN110727372B (en) 2019-09-29 2019-09-29 False touch prevention method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110727372B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650628A (en) * 2008-08-14 2010-02-17 鸿富锦精密工业(深圳)有限公司 Electric device with touch screen and control method thereof
CN102799376A (en) * 2012-07-11 2012-11-28 广东欧珀移动通信有限公司 Shortcut function setup method for touch equipment
CN106249996A (en) * 2016-07-28 2016-12-21 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal method for controlling application starting and system
CN106775084A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of false-touch prevention method of touch-screen, device and mobile terminal
CN106775085A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of method of screen edge false-touch prevention, device and mobile terminal
CN107329619A (en) * 2017-07-03 2017-11-07 青岛海信电器股份有限公司 A kind of method and apparatus that click event is triggered on touch control terminal
US20170336916A1 (en) * 2016-05-18 2017-11-23 Samsung Electronics Co., Ltd. Electronic device and input processing method thereof
CN107463329A (en) * 2017-07-28 2017-12-12 广东欧珀移动通信有限公司 Detection method, device, storage medium and the mobile terminal of blank screen gesture
CN108700961A (en) * 2016-03-22 2018-10-23 三菱电机株式会社 Coordinates correction device, method for correcting coordinate and coordinates correction program
CN109407957A (en) * 2018-10-29 2019-03-01 努比亚技术有限公司 Screen touch control method, terminal and computer readable storage medium
CN110168487A (en) * 2017-11-07 2019-08-23 华为技术有限公司 A kind of method of toch control and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650628A (en) * 2008-08-14 2010-02-17 鸿富锦精密工业(深圳)有限公司 Electric device with touch screen and control method thereof
CN102799376A (en) * 2012-07-11 2012-11-28 广东欧珀移动通信有限公司 Shortcut function setup method for touch equipment
CN108700961A (en) * 2016-03-22 2018-10-23 三菱电机株式会社 Coordinates correction device, method for correcting coordinate and coordinates correction program
US20170336916A1 (en) * 2016-05-18 2017-11-23 Samsung Electronics Co., Ltd. Electronic device and input processing method thereof
CN106249996A (en) * 2016-07-28 2016-12-21 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal method for controlling application starting and system
CN106775084A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of false-touch prevention method of touch-screen, device and mobile terminal
CN106775085A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of method of screen edge false-touch prevention, device and mobile terminal
CN107329619A (en) * 2017-07-03 2017-11-07 青岛海信电器股份有限公司 A kind of method and apparatus that click event is triggered on touch control terminal
CN107463329A (en) * 2017-07-28 2017-12-12 广东欧珀移动通信有限公司 Detection method, device, storage medium and the mobile terminal of blank screen gesture
CN110168487A (en) * 2017-11-07 2019-08-23 华为技术有限公司 A kind of method of toch control and device
CN109407957A (en) * 2018-10-29 2019-03-01 努比亚技术有限公司 Screen touch control method, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN110727372B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN110764906B (en) Memory recovery processing method and device, electronic equipment and storage medium
EP3373138B1 (en) Method, device, terminal and storage medium for adjusting broadcast message queue
CN110704283A (en) Method, device and medium for uniformly generating alarm information
CN110221781B (en) Manufacturing method and device of disk fragments, storage medium and intelligent terminal
CN106776259B (en) Mobile terminal frame rate detection method and device and mobile terminal
WO2016183918A1 (en) Method and device for processing storage space
CN105512033A (en) Automated testing method and device of mobile terminal and mobile terminal
CN107665147A (en) The cleaned system method and mobile device of a kind of mobile device
CN110597393A (en) Motor vibration control method and device and computer readable storage medium
CN105893471B (en) Data processing method and electronic equipment
CN115088235A (en) Main node selection method and device, electronic equipment and storage medium
CN108153454B (en) Multi-touch switching method and device, storage medium and terminal equipment
CN108228339B (en) Memory recovery method and device, terminal equipment and computer readable storage medium
CN110928449B (en) Point reporting method and device of touch screen, electronic equipment and storage medium
CN104216819A (en) Method for managing terminal application
CN114996173A (en) Method and device for managing write operation of storage equipment
WO2015085874A1 (en) Method and device for identifying gesture
US11054947B2 (en) Key reference updating method and module, and terminal device
CN110727372B (en) False touch prevention method, terminal and storage medium
CN110737606A (en) Memory recovery processing method and device, electronic equipment and storage medium
CN107005609B (en) Method for operating mobile terminal based on blowing action and mobile terminal
EP3592005A1 (en) Method and device for controlling broadcast recipient, and mobile terminal
CN107766057B (en) Unloading control method, device, terminal and readable storage medium
CN111371536A (en) Control instruction sending method and device
CN112083843B (en) Control method and device of application icons

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