A Touchscreen Optimization Method and System

CN117215427BActive Publication Date: 2026-09-01福建天晴在线互动科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311100790.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-30
Publication Date
2026-09-01
Estimated Expiration
2043-08-30

AI Technical Summary

Technical Problem

[0002]触摸屏经常会因为静电或者其他原因,在用户没有进行操作的情况下,而出现触摸屏的部分屏幕经常性自行进行屏幕乱点击的情况

Benefits of technology

[0020] The beneficial effects of this invention are as follows: when a part of the touch screen cannot receive touch signals, this solution can control the triggering of touch time in the damaged area; when a part of the touch screen automatically generates touch signals by randomly clicking when there is no touch, this solution can also achieve normal touch, so that even if a small area of ​​the touch screen is damaged, it can still continue to be used close to normal, avoiding the waste of resources caused by replacing the screen.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117215427B_ABST
    Figure CN117215427B_ABST
Patent Text Reader

Abstract

This invention relates to a touchscreen optimization method and system, including determining whether a faulty screen compatibility mode needs to be enabled, and determining whether the faulty screen is caused by a partial area being untouchable or a partial area not being clicked, in which case automatic clicking is performed. When the cause is a partial area being untouchable, the finger touches a transparent floating window. Since the untouchable screen does not receive touch signals, a single finger touch is split into multiple points, and the center position of these multiple points is used as the touch point, thus achieving touch on the damaged area. When the cause is a partial area not being clicked, touch events received in the damaged area are directly discarded. When touching, a single finger touch is split into multiple points, and the center position of these multiple points is used as the touch point, thus achieving touch on the damaged area. This invention enables control over the triggering of touch events in the damaged area, allowing the touchscreen to continue to function normally and avoiding the resource waste of replacing the screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer communication technology, and in particular to a touchscreen optimization method and system. Background Technology

[0002] Touchscreens often experience issues due to static electricity or other reasons, causing parts of the screen to randomly tap on their own even when the user is not actively interacting with it. There are also instances where parts of the touchscreen become unresponsive. When these problems occur, the touchscreen becomes unusable, or even completely unusable, necessitating screen replacement. Summary of the Invention

[0003] To overcome the above problems, the purpose of this invention is to provide a touchscreen optimization method and system that can control the triggering of events in the damaged touch area, so that a touchscreen with a damaged screen can continue to be used.

[0004] This invention is implemented using the following scheme: a touchscreen optimization method, the method comprising the following steps:

[0005] Step S1: Determine whether to enable the broken screen compatibility mode. If the broken screen compatibility mode is not enabled, use the normal touch mode and the touch events are transmitted normally.

[0006] Step S2: When the broken screen compatibility mode is enabled, the broken screen mode detection is performed. Touch events will be received by the floating window. If the broken screen is caused by some areas being untouchable or some areas not being clicked, it will be clicked automatically.

[0007] Step S3: When the screen failure is caused by the inability to touch certain areas, a transparent floating window is used to float over the damaged area and then expand outwards to a set range. When a finger touches the transparent floating window, since the untouchable screen cannot receive the touch signal, the finger touches one point and it will be split into multiple points. The center position of the multiple points is obtained as the touch point, so that the location of the damaged area can be touched.

[0008] Step S4: When the screen malfunction is caused by a partial area not being clicked, and the screen will automatically click, a transparent floating window will be used to float over the damaged area and then expand outwards to a set range. The transparent floating window will be divided into a damaged area and an expanded area. Touch events received in the damaged area will be discarded directly. When touching, the finger will touch multiple points. The center position of the multiple points will be obtained as the touch point, thus enabling the touch to be made in the damaged area.

[0009] Furthermore, the "floating on the damaged touch area with a transparent floating window and then expanding outward to a set range" in steps S3 and S4 is further described as follows: requesting application floating permission, specifying the coordinates of the damaged touch area as the coordinate range to be drawn, and calling the Android API to draw a floating window that floats on the top layer of the specified damaged area, with the edge of the damaged touch area as the starting position, and adding an area of ​​1cm to 2cm as the expansion area.

[0010] Furthermore, the step S3 and step S4, "obtaining the center position of multiple points as the touch point, can realize the location of the damaged area", is further described as follows: obtaining the coordinates of multiple points, obtaining the minimum coordinate point and the maximum coordinate point among the multiple points, and using the center position of the minimum coordinate point and the maximum coordinate point as the touch point, can realize the location of the damaged area.

[0011] Furthermore, the "obtaining the coordinates of multiple points" in steps S3 and S4 is further defined as: obtaining the current touch point and the coordinate position of the touch point through the Android API.

[0012] A touchscreen optimization system, the system comprising a screen malfunction determination module, a screen malfunction cause determination module, a first screen malfunction processing module, and a second screen malfunction processing module;

[0013] The module for determining whether the screen is faulty determines whether the faulty screen compatibility mode needs to be enabled. When the faulty screen compatibility mode is not enabled, the normal touch mode is used and touch events are transmitted normally.

[0014] When the screen failure cause determination module is enabled in screen failure compatibility mode, it performs screen failure mode detection. Touch events are received by the floating window. If the screen failure is caused by some areas being untouchable or some areas not being clickable, it will automatically click.

[0015] The first screen failure processing module, when the screen failure is caused by the inability to touch certain areas, floats a transparent floating window over the damaged area and then expands outward to a set range. When a finger touches the transparent floating window, since the untouchable screen cannot receive the touch signal, the finger touches one point and it is split into multiple points. The center position of the multiple points is obtained as the touch point, so that the position of the damaged area can be touched.

[0016] The second screen failure processing module automatically clicks when the screen failure is caused by a part of the area not being clicked. It floats on the damaged area with a transparent floating window and then expands outward to a set range. The transparent floating window is divided into a damaged area and an expanded area. Touch events received in the damaged area are directly discarded. When touching, the finger will touch multiple points. The center position of multiple points is obtained as the touch point, which can realize the position of the damaged area.

[0017] Furthermore, the "floating on the damaged touch area with a transparent floating window and then expanding outward within a set range" in the first and second damaged screen processing modules is further defined as follows: requesting application floating permission, specifying the coordinates of the damaged touch area as the coordinate range to be drawn, and calling the Android API to draw a floating window that floats on the top layer of the specified damaged area, with the edge of the damaged touch area as the starting position, and adding an area of ​​1cm to 2cm as the expansion area.

[0018] Furthermore, the "obtaining the center position of multiple points as a touch point to realize the location of the damaged area" in the first and second damaged screen processing modules is further defined as follows: obtaining the coordinates of multiple points, obtaining the minimum and maximum coordinate points among the multiple points, and using the center position of the minimum and maximum coordinate points as the touch point to realize the location of the damaged area.

[0019] Furthermore, the "obtaining coordinates of multiple points" in the first and second bad screen processing modules is further defined as: obtaining the current touch point and the coordinate position of the touch point through the Android API.

[0020] The beneficial effects of this invention are as follows: when a part of the touch screen cannot receive touch signals, this solution can control the triggering of touch time in the damaged area; when a part of the touch screen automatically generates touch signals by randomly clicking when there is no touch, this solution can also achieve normal touch, so that even if a small area of ​​the touch screen is damaged, it can still continue to be used close to normal, avoiding the waste of resources caused by replacing the screen. Attached Figure Description

[0021] Figure 1 This is a schematic diagram of the method flow of the present invention.

[0022] Figure 2 This is a system principle block diagram of the present invention. Detailed Implementation

[0023] The present invention will be further described below with reference to the accompanying drawings.

[0024] Please see Figure 1 As shown, a touchscreen optimization method of the present invention includes the following steps:

[0025] Step S1: Determine whether to enable the broken screen compatibility mode. If the broken screen compatibility mode is not enabled, use the normal touch mode and the touch events are transmitted normally.

[0026] Step S2: When the broken screen compatibility mode is enabled, a broken screen mode detection is performed. Touch events will be received by the floating window. If the cause of the broken screen is that some areas cannot be touched or some areas are not clicked, it will be clicked automatically.

[0027] Step S3: When the screen failure is caused by a partial area being untouchable, a transparent floating window is used to float over the damaged area and then expand outwards to a set range. When a finger touches the transparent floating window, since the untouchable screen cannot receive the touch signal, the finger touches one point and it will be split into multiple points. The center position of the multiple points is obtained as the touch point, so that the location of the damaged area can be touched.

[0028] Step S4: When the screen failure is caused by a partial area not being clicked and will be automatically clicked, a transparent floating window is used to float over the damaged area and then expand outwards to a set range. The transparent floating window is divided into a damaged area and an expanded area. Touch events received in the damaged area are directly discarded. When touching, the finger will touch multiple points. The center position of multiple points is obtained as the touch point, which can realize the location of the damaged area.

[0029] The present invention will be further described below with reference to a specific embodiment:

[0030] A touchscreen optimization method,

[0031] 1. Determine whether to enable the broken screen compatibility mode. If the broken screen compatibility mode is not enabled, use the normal touch mode and touch events are transmitted normally. The normal touch mode is to disable the floating window and transmit touch events normally in all areas of the touch screen.

[0032] 2. When the broken screen compatibility mode is enabled, a broken screen mode detection is performed. Touch events will be received by the floating window. If the cause of the broken screen is that some areas are not touchable or some areas are not clickable, it will automatically click.

[0033] 3. When the screen malfunction is caused by a partial area being untouchable, a transparent floating window can be used to hover over the damaged area and then expand outwards to a set range. When a finger touches the transparent floating window, since the untouchable screen cannot receive a touch signal, the finger touches one point, which will be split into multiple points. The center position of these multiple points can be used as the touch point, thus enabling the finger to touch the location of the damaged area.

[0034] 3.1. "Floating a transparent floating window over the damaged touch area and then expanding outwards to a specified range" is further defined as follows: request application floating permission, specify the coordinates of the damaged touch area as the coordinate range for drawing, and call the Android API to draw a floating window that floats on top of the specified damaged area, with the edge of the damaged touch area as the starting position, and adding an area of ​​1cm to 2cm as the expansion area.

[0035] For example: 3. If the area from coordinates (90, 90) to (100, 100) is not touchable, then draw a floating rectangular window from (90, 90) to (100, 100), plus an extended pixel area from (70, 70) to (130, 130). Because the touch area from (90, 90) to (100, 100) is damaged, two touch points will be received at (95, 85) and (95, 105) when touched. By calculating the average x-axis value of 95 and the average y-axis value of 95, the actual touch position coordinates (95, 90) can be obtained.

[0036] 4. When the screen malfunction is caused by a partially unclicked area that will automatically be clicked, a transparent floating window is used to hover over the damaged touch area and then expand outwards to a predetermined range. This floating window is divided into a damaged area and an expanded area. Touch events received in the damaged area are directly discarded. When a finger touches multiple points, the center position of these points is used as the touch point to determine the location of the damaged area. Discarding touch events received in the damaged area means that the floating window does not pass the event to lower layers after receiving it. Triggered events are passed to the topmost window; if the floating window does not pass the event to lower layers, it achieves the function of directly discarding the event. The damaged area is the area on the touchscreen that is damaged by touch, and the expanded area is the area extending outwards from the damaged area. When it is necessary to touch other locations in different areas of the damaged area, the expanded area can be expanded by different ranges, or it can be expanded to the entire screen. Based on the center position calculated from the touch point, other points in the damaged area can be touched.

[0037] 4.1 "Obtaining the center position of multiple points as the touch point can realize the location of the damaged area" is further defined as: obtaining the coordinates of multiple points, obtaining the minimum coordinate point and the maximum coordinate point among the multiple points, and using the center position of the minimum coordinate point and the maximum coordinate point as the touch point to realize the location of the damaged area.

[0038] 4.1.1. "Get the coordinates of multiple points" is further defined as: obtaining the current touch point and the coordinate position of the touch point through the Android API.

[0039] For example: 4. If the phone keeps automatically triggering the (95, 95) touch event, the screen will be randomly tapped. By drawing a floating rectangular window from (90, 90) to (100, 100), plus an extended pixel area from (70, 70) to (130, 130), the triggering events from (90, 90) to (100, 100) are blocked. Then, the (95, 95) touch event will no longer have an impact. During a touch, there will be two touch points: (95, 85) and (95, 105). By calculating the average x-axis value of 95 and the average y-axis value of 90, the actual touch position coordinates (95, 90) can be obtained.

[0040] Please see Figure 2 As shown, the present invention also provides a touch screen optimization system, the system including a module for determining whether the screen is faulty, a module for determining the cause of the faulty screen, a first faulty screen processing module, and a second faulty screen processing module;

[0041] The module for determining whether the screen is faulty determines whether the faulty screen compatibility mode needs to be enabled. When the faulty screen compatibility mode is not enabled, the normal touch mode is used and touch events are transmitted normally.

[0042] When the screen failure cause determination module is enabled in screen failure compatibility mode, it performs screen failure mode detection. Touch events are received by the floating window. If the screen failure is caused by some areas being untouchable or some areas not being clickable, it will automatically click.

[0043] The first screen failure processing module, when the screen failure is caused by a partial area being untouchable, uses a transparent floating window to hover over the damaged touch area and then expands outwards to a predetermined range. When a finger touches the transparent floating window, because the untouchable screen cannot receive a touch signal, the finger touches one point and it is split into multiple points. The center position of these multiple points is obtained as the touch point, thus enabling the finger to touch the damaged area. The reason why a finger touches one point is split into multiple points is that if the Android system receives a discontinuous touch signal, it will cause a finger touch area to be split into two or more discontinuous areas, thus causing one touch point to become two or more.

[0044] 3.1 "Float a transparent floating window over the damaged touch area and then expand the set range outward" is further defined as follows: request application floating permission, specify the coordinates of the damaged touch area as the coordinate range for drawing, and call the Android API to draw a floating window that floats on top of the specified damaged area, with the edge of the damaged touch area as the starting position, and add an area of ​​1cm to 2cm as the expansion area.

[0045] For example: 3. If the area from coordinates (90, 90) to (100, 100) is not touchable, then draw a floating rectangular window from (90, 90) to (100, 100), plus an extended pixel area from (70, 70) to (130, 130). Because the touch area from (90, 90) to (100, 100) is damaged, two touch points will be received at (95, 85) and (95, 105) when touched. By calculating the average x-axis value of 95 and the average y-axis value of 95, the actual touch position coordinates (95, 90) can be obtained.

[0046] The second screen failure processing module, when the screen failure is caused by a portion of the area not being clicked, will automatically click it. It uses a transparent floating window to hover over the damaged touch area and then expands outwards by a set range. The transparent floating window is divided into a damaged area and an expanded area. Touch events received in the damaged area are directly discarded. When touching, the finger will touch multiple points; the center position of these multiple points is used as the touch point, thus determining the location of the damaged area. Discarding touch events received in the damaged area means that after the floating window receives the event, it does not pass it down to the lower layers. Triggered events are passed to the topmost window; if the floating window does not pass the event down, it achieves the function of directly discarding the event. The damaged area is the area on the touchscreen that is damaged by touch, and the expanded area is the area extending outwards from the damaged area. When it is necessary to touch other different locations in different areas of the damaged area, the expanded area can be expanded by different ranges, or it can be expanded to the entire screen. Based on the center position calculated from the touch point, other points in the damaged area can be touched.

[0047] 4.1 "Obtaining the center position of multiple points as the touch point can realize the location of the damaged area" is further defined as: obtaining the coordinates of multiple points, obtaining the minimum coordinate point and the maximum coordinate point among the multiple points, and using the center position of the minimum coordinate point and the maximum coordinate point as the touch point to realize the location of the damaged area.

[0048] 4.1.1 "Get the coordinates of multiple points" is further defined as: obtaining the current touch point and the coordinates of the touch point through the Android API.

[0049] For example: 4. If the phone continuously triggers the (95, 95) touch event automatically, the screen will become erratic. By drawing a floating rectangular window from (90, 90) to (100, 100), and adding an extended pixel area from (70, 70) to (130, 130), the trigger events from (90, 90) to (100, 100) are blocked. In this case, the (95, 95) touch event will no longer have an impact. During a touch, two touch points will be reached: (95, 85) and (95, 105). By calculating the average x-axis value of 95 and the average y-axis value of 90, the actual touch position coordinates (95, 90) can be obtained.

[0050] In summary, when a portion of the touchscreen cannot receive touch signals, this solution can control the triggering of touch time in the damaged area. When a portion of the touchscreen automatically generates touch signals by randomly clicking without being touched, this solution can also enable normal touch, allowing the touchscreen to continue to function close to normal even with minor damage, thus avoiding the waste of resources caused by replacing the screen.

[0051] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention should be included in the scope of the present invention.

Claims

1. A touchscreen optimization method, characterized in that, The method includes the following steps: Step S1: Determine whether to enable the broken screen compatibility mode. If the broken screen compatibility mode is not enabled, use the normal touch mode and the touch events are transmitted normally. Step S2: When the broken screen compatibility mode is enabled, the broken screen mode detection is performed. Touch events will be received by the floating window. If the broken screen is caused by some areas being untouchable or some areas not being clicked, it will be clicked automatically. Step S3: When the screen failure is caused by the inability to touch certain areas, a transparent floating window is used to float over the damaged area and then expand outwards to a set range. When a finger touches the transparent floating window, since the untouchable screen cannot receive the touch signal, the finger touches one point and it will be split into multiple points. The center position of the multiple points is obtained as the touch point, so that the location of the damaged area can be touched. Step S4: When the screen failure is caused by some areas not being clicked and will be automatically clicked, a transparent floating window is used to float over the damaged area and then expand outward to a set range. The transparent floating window is divided into a damaged area and an expanded area. Touch events received in the damaged area are directly discarded. When touching, the finger will touch multiple points. The center position of multiple points is obtained as the touch point, which can realize the position of the damaged area. The steps S3 and S4, "suspending a transparent floating window over the damaged touch area and then expanding outwards to a set range", are further defined as follows: requesting application floating permission, specifying the coordinates of the damaged touch area as the coordinate range for drawing, and calling the Android API to draw a floating window that floats on top of the specified damaged area, with the edge of the damaged touch area as the starting position, and adding an area of ​​1cm to 2cm as the expansion area.

2. The touchscreen optimization method according to claim 1, characterized in that: The step S3 and step S4, "obtaining the center position of multiple points as the touch point, can realize the location of the damaged area", is further described as follows: obtaining the coordinates of multiple points, obtaining the minimum coordinate point and the maximum coordinate point among the multiple points, and using the center position of the minimum coordinate point and the maximum coordinate point as the touch point, can realize the location of the damaged area.

3. The touchscreen optimization method according to claim 1, characterized in that: The "obtaining the coordinates of multiple points" in steps S3 and S4 is further defined as: obtaining the current touch point and the coordinate position of the touch point through the Android API.

4. A touchscreen optimization system, characterized in that: The system includes a module for determining whether the screen is broken, a module for determining the cause of the broken screen, a first broken screen processing module, and a second broken screen processing module; The module for determining whether the screen is faulty determines whether the faulty screen compatibility mode needs to be enabled. When the faulty screen compatibility mode is not enabled, the normal touch mode is used and touch events are transmitted normally. When the screen failure cause determination module is enabled in screen failure compatibility mode, it performs screen failure mode detection. Touch events are received by the floating window. If the screen failure is caused by some areas being untouchable or some areas not being clickable, it will automatically click. The first screen failure processing module, when the screen failure is caused by the inability to touch certain areas, floats a transparent floating window over the damaged area and then expands outward to a set range. When a finger touches the transparent floating window, since the untouchable screen cannot receive the touch signal, the finger touches one point and it is split into multiple points. The center position of the multiple points is obtained as the touch point, so that the position of the damaged area can be touched. The second screen failure processing module automatically clicks when the screen failure is caused by a part of the area not being clicked. It floats on the damaged area of ​​the touch through a transparent floating window and then expands outward to a set range. The transparent floating window is divided into a damaged area and an expanded area. Touch events received in the damaged area are directly discarded. When touching, the finger will touch multiple points. The center position of multiple points is obtained as the touch point, so that the position of the damaged area can be touched. The "floating on the damaged touch area with a transparent floating window and then expanding outward within a set range" in the first and second damaged screen processing modules is further defined as follows: requesting application floating permission, specifying the coordinates of the damaged touch area as the coordinate range for drawing, and calling the Android API to draw a floating window that floats on top of the specified damaged area, with the edge of the damaged touch area as the starting position, and adding an area of ​​1cm to 2cm as the expansion area.

5. A touchscreen optimization system according to claim 4, characterized in that: The phrase "obtaining the center position of multiple points as a touch point to achieve the location of the damaged area" in the first and second damaged screen processing modules is further defined as follows: obtaining the coordinates of multiple points, obtaining the minimum and maximum coordinate points among the multiple points, and using the center position of the minimum and maximum coordinate points as the touch point to achieve the location of the damaged area.

6. The touchscreen optimization system according to claim 4, characterized in that: The "get coordinates of multiple points" function in the first and second bad screen processing modules is further defined as: obtaining the current touch point and the coordinate position of the touch point through the Android API.

Citation Information

Patent Citations

  • Touch control method, user equipment, input processing method and mobile terminal

    CN105335007A

  • Control method of transparent suspension window

    CN106445278A