Supercharge Your Innovation With Domain-Expert AI Agents!

Android application quick click prevention processing method based on ASM framework

A processing method and framework technology, applied in electrical digital data processing, program code conversion, program control design, etc., can solve the problems of omission and inability to add continuous and fast click judgment processing codes to third-party library files, and prevent continuous and fast clicks. Effect

Pending Publication Date: 2022-04-22
厦门市思芯微科技有限公司
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide an ASM framework-based anti-rapid click processing method for Android applications to solve the above-mentioned problem. Three-party library files add continuous rapid clicks to judge the problem of processing codes

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Android application quick click prevention processing method based on ASM framework
  • Android application quick click prevention processing method based on ASM framework
  • Android application quick click prevention processing method based on ASM framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] This embodiment provides an ASM framework-based anti-fast click processing method for Android applications, such as figure 2 shown, including the following steps:

[0029] 1. Write a custom Gradle plug-in in Android Studio to obtain the class file in the application packaging process

[0030] Create a new CustomPlugin module in the Android Studio project, and create a PreventQuickClicksPlugin.groovy file in the src\main\groovy\com\custom\plugin\ directory under the CustomPlugin module. Part of the file content is as follows:

[0031]

[0032] Register Transform to the project in the apply method, and the directory file of the entire project can be obtained in the transform method. Traverse the directory of the entire project and filter out the .class files in it.

[0033] 2. Use the ASM framework to search for the onClick method in the class file

[0034] The .class file is the compiled bytecode file of the java code and has a fixed format. Read the file accord...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an Android application quick click prevention processing method based on an ASM framework, and the method comprises the following steps: S1, writing a user-defined Gradle plug-in in Android Studio, and obtaining a class file in an application program packaging process; s2, searching an onClick method in the class file by utilizing an ASM (Analytical Scientific Model) framework; s3, a quick click prevention method is inserted into the onClick method; according to the method, an ASM framework is adopted, in the process that an Android application program source code is compiled into an executable file, judgment processing codes for continuous and rapid clicking are added into a byte code file, and finally continuous and rapid clicking is prevented; the problems that after the Android application is developed, omission is easily caused when the continuous quick click judgment processing code is added and updated again, and the continuous quick click judgment processing code cannot be added to the third-party library file are solved.

Description

technical field [0001] The invention relates to the technical field of Android application development, in particular to an ASM framework-based anti-rapid click processing method for Android applications. Background technique [0002] In Android applications, there are some clickable areas. When the user clicks, corresponding processing needs to be done, such as clicking a button to jump to the next page. When the user clicks a certain area continuously and quickly, it will trigger repeated processing multiple times, resulting in unexpected results. For example, if the user clicks the button to jump to the page multiple times in quick succession, it will jump to multiple repeated pages. It is necessary to press the return key multiple times to return to the original interface, but in fact the user's original intention is to enter the next-level page and press the return key once to return to the original interface. [0003] In order to prevent quick clicking from affecting ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/445G06F8/41
CPCG06F9/44526G06F8/41
Inventor 鲁霖鲁鹏飞王春海
Owner 厦门市思芯微科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More