Event handling method and device
An event processing and event technology, applied in the field of communication, can solve problems such as code reusability, maintainability and poor stability, and achieve the effect of facilitating reuse management and maintenance and improving stability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] An embodiment of the present invention provides an event processing method, which can be applied to terminals such as mobile phones and tablet computers using an Android system. The event processing method can be realized by a program, and the program can be installed on terminals such as mobile phones and tablet computers. In this document, a terminal adopting an Android system is referred to as an Android terminal.
[0047] figure 1 It is an example diagram of the first process flow of the event processing method provided by the embodiment of the present invention. Such as figure 1 As shown, in this embodiment, the event processing method is applied to an Android terminal, and the method includes the following steps:
[0048] S101, create a JNI (Java Native Interface, Java local interface) listening thread in the System_Server (system service) process, wherein the JNI listening thread is used to listen to the device driver event corresponding to the specified servi...
Embodiment 2
[0084] An embodiment of the present invention provides an event processing device, which can implement the steps of the event processing method in the first embodiment above.
[0085] image 3 The functional block diagram of the event processing device provided by the embodiment of the present invention. Such as image 3 As shown, in this embodiment, the event processing device can be set on an Android terminal, and the device includes:
[0086] Create a module 310, which is used to create a Java local interface JNI listening thread in the system service System_Server process, and the JNI listening thread is used to listen to device driver events corresponding to the specified service;
[0087] The running module 320 is used to run the JNI listening thread at the local layer;
[0088] The reporting module 330 is configured to report the device driver event corresponding to the specified service to the Java layer by invoking the corresponding JNI in response to the JNI liste...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap