CN111124519B - Method and system for optimizing starting speed of android application program based on input response - Google Patents

Method and system for optimizing starting speed of android application program based on input response Download PDF

Info

Publication number
CN111124519B
CN111124519B CN201911372634.9A CN201911372634A CN111124519B CN 111124519 B CN111124519 B CN 111124519B CN 201911372634 A CN201911372634 A CN 201911372634A CN 111124519 B CN111124519 B CN 111124519B
Authority
CN
China
Prior art keywords
action
event message
application program
captured
starting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911372634.9A
Other languages
Chinese (zh)
Other versions
CN111124519A (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.)
Allwinner Technology Co Ltd
Original Assignee
Allwinner Technology 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 Allwinner Technology Co Ltd filed Critical Allwinner Technology Co Ltd
Priority to CN201911372634.9A priority Critical patent/CN111124519B/en
Publication of CN111124519A publication Critical patent/CN111124519A/en
Application granted granted Critical
Publication of CN111124519B publication Critical patent/CN111124519B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4403Processor initialisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/545Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Stored Programmes (AREA)

Abstract

A method for optimizing starting speed of an android application program based on input response comprises the following steps: capturing an ACTION _ DOWN event message reported by an operating system kernel TouchScreen under the environment of displaying a main interface, and recording a current first time point; according to the ACTION _ DOWN event message, starting a click event processing function onClick to process a corresponding application program; monitoring an ACTION _ UP event message reported by an operating system kernel TouchScreen; and detecting whether the ACTION _ UP event message is captured or not within a first preset time interval after the first time point, and continuing to start the corresponding application program after the ACTION _ UP event message is captured, otherwise, interrupting the corresponding application program. Corresponding computer systems and storage media are also disclosed. The beneficial effects of the application are: by optimizing the time point at the source of the application program starting process, the starting method of the application program can be compatible with various android platforms, and has stable optimization effect on the platforms.

Description

Method and system for optimizing starting speed of android application program based on input response
Technical Field
The invention relates to the technical field of computer systems, in particular to a method, a system and a storage medium for optimizing starting speed of an android application program based on input response.
Background
In the android system, the user starts the application program on the main interface by one complete click behavior. Specifically, the determination of the clicking ACTION starts with a reported press event (ACTION _ DOWN event message) triggered by the user touching the touch screen, and a reported lift event (ACTION _ UP event message) triggered by the user no longer touching the touch screen within a certain time interval (e.g., 500 ms). The two successive events (press-down event and lift-up event) are processed and determined to be a one-click behavior. In the daily operation of the user, the time required for the touch screen operation is generally between 100 and 200ms, which is calculated from the time when the finger touches (presses) the screen to the time when the finger leaves (lifts) the screen. This time interval may be understood as the user's click delay.
At present, the thinking of various application programs in the aspect of optimizing application starting of an installation system is concentrated on the technical scheme of optimizing in the application starting process after clicking an event. For example, an application may be load optimized during startup, speeding up the startup process through multithreading. For another example, the operating system may prepare in advance the most basic resources needed for display after application startup; when the application program is found to be ready to be started, the drawing display is carried out by the basic display resource prepared in advance in the starting process of the application program, so that the user visually feels that the time point of the application program starting completion is advanced.
However, since the above solutions all focus on the optimization of the boot process itself, they depend on the version of the operating system on which the application is running. Due to fragmentation of the android system on each intelligent mobile terminal, compatibility and optimization effect cannot be guaranteed along with version change of the android system.
Disclosure of Invention
The invention aims to alleviate the defects of the technical scheme and provides a method, a system and a storage medium for optimizing the starting speed of an android application program based on input response, so that the effect of accelerating the starting speed of the application program on various android platforms can be obtained.
In order to achieve the above object, the present application adopts the following technical solutions.
In a first aspect, the present application provides a method for optimizing application launch speed based on input response, which may include the steps of: capturing an ACTION _ DOWN event message reported by an operating system kernel touch Screen under a main interface display environment, and recording a current first time point; according to the ACTION _ DOWN event message, starting and clicking an event processing function onClick to process a corresponding application program; monitoring an ACTION _ UP event message reported by an operating system kernel TouchScreen; and detecting whether the ACTION _ UP event message is captured or not within a first preset time interval after the first time point, and continuing to start the corresponding application program after capturing the ACTION _ UP event message, otherwise, interrupting the corresponding application program.
In the method of the present application, the click event processing function onClick calls an application management service AMS-Starter to initiate the application program.
In one or more of the methods of the present application, the first preset time interval is between 100 ms and 200 ms.
In one or more of the above methods of the present application, reporting the ACTION _ DOWN event message and the ACTION _ UP event message by the operating system kernel TouchScreen includes the following substeps: initializing a pressedstate state parameter in an InputManagerService service; listening for the ACTION _ DOWN event message and the ACTION _ UP event message to maintain the pressedstate parameter; and returning the current value of the pressedstate parameter.
In one or more of the methods described above, the ACTION _ DOWN event message and the ACTION _ UP event are collected and distributed by the InputManagerService service by creating an inputreader object.
In one or more of the above methods of the present application, when the corresponding application program is started, an additional checker is added to the activitymanager service of the standard startup application process to detect whether the ACTION _ UP event message is captured after the preset time interval.
In one or more methods of the present application, when the ACTION _ UP event message is not captured after the preset time interval, the checker determines that the activation is a false touch operation or a long press operation.
In one or more methods of the present application, when the ACTION _ UP event message is captured after a second preset time interval of the first time point, the checker determines that the activation is a long press operation.
In a second aspect, the present application is directed to a computer system. The computer system includes a memory, a processor, and a computer program stored on the memory and executable on the processor. The processor when executing the program may implement the steps of: capturing an ACTION _ DOWN event message reported by an operating system kernel TouchScreen under the environment of displaying a main interface, and recording a current first time point; according to the ACTION _ DOWN event message, starting a click event processing function onClick to process a corresponding application program; monitoring an ACTION _ UP event message reported by an operating system kernel TouchScreen; and detecting whether the ACTION _ UP event message is captured or not in a preset time interval after the first time point, and continuing to start the corresponding application program after the ACTION _ UP event message is captured, otherwise, interrupting the corresponding application program.
In the computer system of the present application, the click event processing function onClick calls an application management service AMS-Starter to initiate the start of the application program.
In the one or more computer systems of the present application, the first predetermined time interval is between 100 ms and 200 ms.
In one or more of the computer systems described above, reporting the ACTION _ DOWN event message and the ACTION _ UP event message by the operating system kernel TouchScreen includes the sub-steps of: initializing a pressedstate state parameter in an InputManagerService service; listening for the ACTION _ DOWN event message and the ACTION _ UP event message to maintain the pressedstate state parameter; returning the current value of the pressedstate parameter.
In the one or more computer systems of the present application, the ACTION _ DOWN event message and the ACTION _ UP event are collected and distributed by the InputManagerService service by creating an inputreader object.
In one or more of the computer systems of the present application, when the corresponding application program is started, an additional checker is added to an ActivityManagerService service of a standard startup application process to detect whether the ACTION _ UP event message is captured after the preset time interval.
In one or more of the computer systems of the present application, when the ACTION _ UP event message is not captured after the preset time interval, the checker determines that the activation is a false touch operation or a long press operation.
In one or more of the computer systems of the present application, when the ACTION _ UP event message is captured after a second preset time interval of the first time point, the checker determines that the activation is a long press operation.
In a third aspect, the present application is directed to a storage medium. Wherein the storage medium has stored therein a computer program. The computer program is arranged such that when run the following steps are performed: capturing an ACTION _ DOWN event message reported by an operating system kernel TouchScreen under the environment of displaying a main interface, and recording a current first time point; according to the ACTION _ DOWN event message, starting a click event processing function onClick to process a corresponding application program; monitoring an ACTION _ UP event message reported by an operating system kernel TouchScreen; and detecting whether the ACTION _ UP event message is captured or not in a preset time interval after the first time point, and continuing to start the corresponding application program after the ACTION _ UP event message is captured, otherwise, interrupting the corresponding application program.
In the storage medium of the present application, the click event processing function onClick calls an application management service AMS-Starter to initiate the start of the application program.
In the one or more storage media of the present application, the first preset time interval is between 100 ms and 200 ms.
In the above one or more storage media of the present application, reporting the ACTION _ DOWN event message and the ACTION _ UP event message by the operating system kernel TouchScreen includes the following sub-steps: initializing a pressedstate state parameter in an InputManagerService service; listening for the ACTION _ DOWN event message and the ACTION _ UP event message to maintain the pressedstate parameter; returning the current value of the pressedstate parameter.
In the one or more storage media of the present application, the ACTION _ DOWN event message and the ACTION _ UP event are collected and distributed by the InputManagerService service by creating an inputreader object.
In the one or more storage media of the present application, when the corresponding application program is started, an additional checker is added to the activitymanager service of the standard startup application process to detect whether the ACTION _ UP event message is captured after the preset time interval.
In the one or more storage media of the present application, when the ACTION _ UP event message is not captured after the preset time interval, the checker determines that the start is a false touch operation or a long press operation.
In one or more of the storage media of the present application, when the ACTION _ UP event message is captured after a second preset time interval of the first time point, the checker determines that the start is a long press operation.
The beneficial effect of this application does: by optimizing the time point at the source of the application program starting process, the starting method of the application program can be compatible with various android platforms, and has stable optimization effect on the platforms.
Drawings
FIG. 1 is a flowchart illustrating a prior art scheme for starting an application on an android platform;
FIG. 2 is a flowchart illustrating a method for optimizing the starting speed of an android application in response to an input according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a sub-method for reporting an ACTION _ DOWN event message and an ACTION _ UP event message according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating a sub-method of detecting an ACTION _ UP event message according to an embodiment of the present application;
FIG. 5 is a flowchart of a sub-method of detecting an ACTION _ UP event message according to another embodiment of the present application;
FIG. 6 is a diagram illustrating a system architecture for optimizing the launch speed of an android application in response to inputs according to an embodiment of the application.
Detailed Description
The conception, the specific structure and the technical effects of the present invention will be clearly and completely described in conjunction with the embodiments and the accompanying drawings to fully understand the objects, the schemes and the effects of the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The same reference numbers will be used throughout the drawings to refer to the same or like parts.
Referring to the method flowchart shown in fig. 1, under the main interface of the android system, when a user touches an application icon on a touch screen to start a corresponding application, the operating system throws an ACTION _ DOWN event message. Then, when the user's finger leaves the touch screen, the operating system will throw an ACTION _ UP event message again accordingly. At this point, the user's click action is considered complete. Only when the clicking ACTION is completely executed (i.e., the system throws the ACTION _ DOWN event message and the ACTION _ UP event message in sequence), the operating system starts the corresponding application program according to the touch position of the user. Thus, the operating system will not respond during the wait period for the user to lift the finger off the touch screen (i.e., the wait time between the finger touching the touch screen and the finger leaving the touch screen, shown in dashed lines in FIG. 1). Generally, since it takes 100 to 200ms from the time when the user touches (presses) the screen to the time when the user leaves (lifts) the screen in the daily operation, and the user's operation is accompanied in the process, the time interval does not affect the smooth use of the user. On the contrary, after the user starts the application program, since the application management service AMS-Starter in the ActivityManagerService service of the operating system starts to perform the corresponding preparation work to start the application program, when the application program is large, it takes a long time for the ActivityManagerService service to initialize the application program (for example, allocating memory, creating threads, importing external resources, etc.), the fluency of the application program will be significantly affected.
Therefore, in order to fully utilize the idle time of the system in the previous stage (i.e. the stage of waiting for the system to throw the ACTION _ UP event message), referring to fig. 1, in an embodiment of the present application, the method for optimizing the starting speed of the android application based on the input response may include the following steps:
capturing an ACTION _ DOWN event message reported by an operating system kernel touch Screen under a main interface display environment, and recording a current first time point;
according to the ACTION _ DOWN event message, starting a click event processing function onClick to process a corresponding application program;
monitoring an ACTION _ UP event message reported by an operating system kernel TouchScreen;
and detecting whether the ACTION _ UP event message is captured or not within a first preset time interval after the first time point, and continuing to start the corresponding application program after capturing the ACTION _ UP event message, otherwise, interrupting the corresponding application program.
At the moment that the user touches the touch screen, the ACTION _ DOWN event message reported by the operating system kernel TouchScreen is captured, so as to start to click the event processing function onClick to process the corresponding application program, and therefore the waiting time is fully utilized (see the waiting time shown in fig. 2, and compare with the corresponding waiting time part shown in fig. 1), so that the starting time of the application program is advanced. Generally, the click event processing function onClick may call the application management service AMS-Starter to initiate the start of the application program according to the standard start application flow StartActivity. Through the test of the inventor on A50 Android-P, the starting time is improved by about 7% in comparison verification. In addition, because the optimization of the starting process is at the source opportunity of starting the application program, the optimization is effective to common branch version android systems and native android systems, and has better compatibility.
Referring to the flowchart of the sub-method shown in fig. 3, in one or more embodiments of the present application, capturing the ACTION _ DOWN event message and the ACTION _ UP event message reported by the operating system kernel TouchScreen may be implemented by:
initializing a pressedstate state parameter in an InputManagerService service;
listening for the ACTION _ DOWN event message and the ACTION _ UP event message to maintain the pressedstate state parameter;
and returning the current value of the pressedstate parameter.
The function of returning the pressedstate parameter may be packaged as one service detection interface and provided to each application program, so that all application programs can capture the ACTION _ DOWN event message and the ACTION _ UP event message through the service detection interface in a uniform and canonical manner. The kernel TouchScreen driver of the operating system is responsible for reporting the ACTION _ DOWN event message and the ACTION _ UP event message, and the InputManagerService (IMS) is responsible for receiving and distributing the event messages, and the event messages correspond to the application programs corresponding to the specific icons of the current active main interface. Similarly, the operating system may recognize an application corresponding to an icon on the main interface when distributing the consumption click event, so that when the ACTION _ DOWN event message initiates an application, a check Mark is set into the activtymanagervice service, the clicked application consumes the ACTION _ UP event message, and the check Mark is maintained together with the activtymanagervice service. One or more embodiments of the present application may ensure the security of the start by determining that the application button icon on the main interface consumes the ACTION _ UP event message and actively acquires the pressedstate parameter to be compatible with the long press operation and the error touch. For example, in one or more of the above examples of the present application, when the corresponding application program is started, an additional checker is added to the activitymanageservice service of the standard startup application process to detect whether the ACTION _ UP event message is captured after the preset time interval.
Specifically, since it takes time from the finger touching (pressing) the screen to leaving (lifting) the screen in the user's daily operation to be generally between 100 and 200ms, in the above one or more embodiments of the present application, the first preset time interval is set between 100 and 200ms accordingly to distinguish the user's normal click operation, erroneous operation, and long press operation. Referring to the method flowchart shown in fig. 4, in one or more embodiments of the present application, when the ACTION _ UP event message is not captured after the preset time interval, the checker determines that the activation is a false touch operation or a long press operation. Further, referring to the method flowchart shown in fig. 5, in one or more embodiments of the present application, when the ACTION _ UP event message is captured after a second preset time interval of the first time point, the checker determines that the activation is a long press operation. The second preset time interval may be 500ms, which corresponds to that in current daily operations, when a user presses an icon of an application program for more than 500ms under a main interface, the operation of the user is determined as a resident execution long-press function for the application. It should be noted that the flowcharts shown in fig. 5 and 4 are executed at the beginning to monitor that the ACTION _ UP event message is after the first preset time interval of the first time point.
FIG. 6 is a schematic diagram of a system for optimizing the starting speed of an android application based on input response according to an embodiment of the present invention. As shown in fig. 6, the system for optimizing the starting speed of the android application based on the input response of the embodiment includes: a processor, a memory, and a computer program, such as a boot program, stored in the memory and executable on the processor. The processor, when executing the computer program, implements the steps in the above-mentioned embodiments of the video stream playing method, such as the steps shown in fig. 2.
Illustratively, the computer program may be partitioned into one or more modules/units, stored in the memory and executed by the processor, to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the system for optimizing the starting speed of the android application program based on the input response.
The system for optimizing the starting speed of the android application program based on the input response can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing devices. The video stream playing device may include, but is not limited to, a processor, a memory. Those skilled in the art will appreciate that fig. 6 is merely an example of a device for optimizing the starting speed of an android application based on input responses, and does not constitute a limitation on a device for optimizing the starting speed of an android application based on input responses, and may include more or less components than those shown, or combine some components, or different components, for example, the system for optimizing the starting speed of an android application based on input responses may further include an input output device, a network access device, a bus, and the like.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, and software distribution medium, etc. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (9)

1. A method for optimizing starting speed of an android application program based on input response is characterized by comprising the following steps:
capturing an ACTION _ DOWN event message reported by an operating system kernel TouchScreen under the environment of displaying a main interface, and recording a current first time point;
according to the ACTION _ DOWN event message, starting a click event processing function onClick to process a corresponding application program; the click event processing function onClick starts an application process StartActivity according to a standard, and calls an application management service AMS-Starter to initialize the application program so as to lead the starting time of the application program to be advanced;
monitoring an ACTION _ UP event message reported by an operating system kernel TouchScreen;
the touchScreen reports an ACTION _ DOWN event message and an ACTION _ UP event message, including initializing a pressedstate state parameter in an InputManagerservice;
the function of returning the pressedstate parameter can be packaged as a service detection interface and provided for each application program, so that all application programs can capture the ACTION _ DOWN event message and the ACTION _ UP event message in a uniform and normative manner through the service detection interface;
and detecting whether the ACTION _ UP event message is captured or not within a first preset time interval after the first time point, and continuing to start the corresponding application program after the ACTION _ UP event message is captured, otherwise, interrupting the corresponding application program.
2. The method of claim 1, wherein the first predetermined time interval is between 100 ms and 200 ms.
3. The method of claim 1 wherein reporting the ACTION _ DOWN event message and the ACTION _ UP event message by the operating system kernel TouchScreen comprises the substeps of:
listening for the ACTION _ DOWN event message and the ACTION _ UP event message to maintain the pressedstate state parameter;
returning the current value of the pressedstate parameter.
4. The method of claim 3 wherein the ACTION _ DOWN event message and the ACTION _ UP event are collected and distributed by an InputManagerService service by creating an inputtreader object.
5. The method according to claim 1, wherein an additional checker is added to an activitymanageservice service of a standard startup application process to detect whether the ACTION _ UP event message is captured after the preset time interval when the corresponding application program is started.
6. The method of claim 5 wherein the checker determines that the activation is a false touch or a long press when the ACTION _ UP event message is not captured after the predetermined time interval.
7. The method of claim 6 wherein the checker determines that the activation is a long press when the ACTION UP event message is captured after a second predetermined time interval following the first time point.
8. A computer system comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of:
capturing an ACTION _ DOWN event message reported by an operating system kernel TouchScreen under the environment of displaying a main interface, and recording a current first time point;
according to the ACTION _ DOWN event message, starting a click event processing function onClick to process a corresponding application program; the click event processing function onClick starts application flow StartActivity according to the standard, and calls an application management service AMS-Starter to initialize the starting of the application program, so that the starting time of the application program is advanced;
monitoring an ACTION _ UP event message reported by an operating system kernel TouchScreen;
the touchScreen reports an ACTION _ DOWN event message and an ACTION _ UP event message, including initializing a pressedstate state parameter in an InputManagerservice;
the function of returning the pressedstate parameter can be packaged as a service detection interface and provided for each application program, so that all application programs can capture the ACTION _ DOWN event message and the ACTION _ UP event message in a uniform and normative manner through the service detection interface;
and detecting whether the ACTION _ UP event message is captured or not in a preset time interval after the first time point, and continuing to start the corresponding application program after the ACTION _ UP event message is captured, otherwise, interrupting the corresponding application program.
9. A storage medium, wherein a computer program is stored in the storage medium, which computer program is arranged to, when executed, perform the method of any of claims 1-7.
CN201911372634.9A 2019-12-27 2019-12-27 Method and system for optimizing starting speed of android application program based on input response Active CN111124519B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911372634.9A CN111124519B (en) 2019-12-27 2019-12-27 Method and system for optimizing starting speed of android application program based on input response

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911372634.9A CN111124519B (en) 2019-12-27 2019-12-27 Method and system for optimizing starting speed of android application program based on input response

Publications (2)

Publication Number Publication Date
CN111124519A CN111124519A (en) 2020-05-08
CN111124519B true CN111124519B (en) 2022-12-13

Family

ID=70503631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911372634.9A Active CN111124519B (en) 2019-12-27 2019-12-27 Method and system for optimizing starting speed of android application program based on input response

Country Status (1)

Country Link
CN (1) CN111124519B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672407A (en) * 2021-08-24 2021-11-19 深圳技德终端技术有限公司 Linux-compatible Android keyboard input control method and device
CN114327652B (en) * 2021-12-24 2023-11-10 杭州荣旗科技有限公司 Quick starting method based on Android industrial application

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929532A (en) * 2012-09-29 2013-02-13 东莞宇龙通信科技有限公司 Application program starting method and communication terminal
CN106020678A (en) * 2016-04-29 2016-10-12 青岛海信移动通信技术股份有限公司 Method and device for implementing touch operation in mobile equipment
CN107272987A (en) * 2017-06-06 2017-10-20 努比亚技术有限公司 Using startup method, terminal and computer-readable recording medium
CN109032685A (en) * 2017-06-09 2018-12-18 Tcl集团股份有限公司 A kind of method and terminal accelerating Android system starting

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10579446B2 (en) * 2018-04-13 2020-03-03 Microsoft Technology Licensing, Llc Per-request event detection to improve request-response latency
CN109308241B (en) * 2018-09-05 2020-11-24 腾讯科技(深圳)有限公司 Method and device for monitoring starting process of application program, terminal equipment and storage medium
CN110569080B (en) * 2019-07-30 2021-02-23 华为技术有限公司 Application control method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929532A (en) * 2012-09-29 2013-02-13 东莞宇龙通信科技有限公司 Application program starting method and communication terminal
CN106020678A (en) * 2016-04-29 2016-10-12 青岛海信移动通信技术股份有限公司 Method and device for implementing touch operation in mobile equipment
CN107272987A (en) * 2017-06-06 2017-10-20 努比亚技术有限公司 Using startup method, terminal and computer-readable recording medium
CN109032685A (en) * 2017-06-09 2018-12-18 Tcl集团股份有限公司 A kind of method and terminal accelerating Android system starting

Also Published As

Publication number Publication date
CN111124519A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN108763012B (en) Card pause information acquisition method and device and terminal
US11768694B2 (en) Content sharing method, device, terminal and storage medium
US10185611B2 (en) System for monitoring and tracking application crashes occurring on different mobile devices
CN109062479B (en) Split screen application switching method and device, storage medium and electronic equipment
CN110377141B (en) Application processing method and device, electronic equipment and storage medium
CN108132735B (en) Terminal and application control method
CN108008888B (en) Method and device for rapidly switching application program and interface thereof
CN105045454A (en) Method for preventing from wrongly touching terminal and terminal
CN112764872B (en) Computer device, virtualization acceleration device, remote control method, and storage medium
CN105955802B (en) Application running method of mobile terminal and mobile terminal
CN111124519B (en) Method and system for optimizing starting speed of android application program based on input response
CN103440092A (en) Return key processing method, system and mobile terminal
CN110008027B (en) Process running method and device, terminal and storage medium
CN110018765A (en) Page display method, device, terminal and storage medium
CN111124668B (en) Memory release method, memory release device, storage medium and terminal
US20130201107A1 (en) Simulating Input Types
CN108845924B (en) Control response area display control method, electronic device, and storage medium
CN113190427A (en) Caton monitoring method and device, electronic equipment and storage medium
CN112764862A (en) Application program control method and device and electronic equipment
CN110570830B (en) Equipment adjusting method and device, storage medium and electronic equipment
CN112380094A (en) RPA service flow processing method and device
EP4354293A1 (en) Detection method and apparatus, and electronic device
CN109246468B (en) Video list switching method, device and storage medium based on education system
US20130179598A1 (en) Supporting Different Event Models using a Single Input Source
US10203772B2 (en) Hotkey triggering system and method for an electronic device

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