Unlock instant, AI-driven research and patent intelligence for your innovation.

Event transmission method, device and system and electronic equipment

An event and device technology, applied in the field of data communication, can solve problems such as easy programming errors, component memory leaks, and time-consuming cost, and achieve the effects of improving automation, avoiding leakage, and saving time and cost

Active Publication Date: 2020-08-18
NETEASE (HANGZHOU) NETWORK CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this method, the broadcast receiver registers or cancels object registration in the AMS (Activity Manager Service, system management service) corresponding to the BroadcastReceiver component; the broadcast sender sends broadcast events to AMS through the Binder mechanism; Find the appropriate broadcast receiver in the registration list, and send the broadcast event to the message loop queue of the appropriate broadcast receiver, so that the broadcast receiver can get the broadcast event from the message loop queue, and call back the onReceive function in BroadcastReceiver, However, in this method, the broadcast receiver needs to use the onReceive function to perform the operation corresponding to the broadcast event, and the automation effect of event processing is poor.
[0004] At the same time, when developers use the BroadcastReceiver component for event delivery, they need to write a lot of cumbersome configuration code, which not only consumes a lot of time and cost, but is also prone to writing errors, which will adversely affect the component. For example, if the developer writes the registration code When forgetting to write the unregister code, it will cause component memory leaks and waste storage resources

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
  • Event transmission method, device and system and electronic equipment
  • Event transmission method, device and system and electronic equipment
  • Event transmission method, device and system and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.

[0035] Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art wi...

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 event transmission method, device and system and electronic equipment. The method comprises the steps of firstly enabling an event transmission assembly to monitor the operation state of an event receiver, and deleting an observed object registered by the event receiver and stored in the event transmission assembly if the event receiver is monitored to stop operation, andwhen the event receiver operates normally and receives the state updating event of the observed object sent by the event publisher, sending the state updating event to the event receiver, so that theevent receiver updates the own state according to the event. The event transmission assembly in the mode can judge whether to cancel registration of the event receiver to the observed object or not according to the monitored operation state of the event receiver, registration cancel codes do not need to be written in the mode, the code writing cost is saved, and leakage of an assembly memory is avoided; and meanwhile, the event receiver in the mode automatically updates the state of the event receiver according to the state updating time of the observed object, so that the automation degree of event processing is improved.

Description

technical field [0001] The present invention relates to the technical field of data communication, in particular to an event transmission method, device, system and electronic equipment. Background technique [0002] The event bus is a channel for messages or events to flow. In Android software, the event bus plays an indispensable role in the communication between different pages and components. [0003] In the related art, the event bus usually adopts the BroadcastReceiver component provided by the software development kit of the Android system (Android SDK for short) to realize the transmission of events. In this method, the broadcast receiver registers or cancels object registration in the AMS (Activity Manager Service, system management service) corresponding to the BroadcastReceiver component; the broadcast sender sends broadcast events to AMS through the Binder mechanism; Find the appropriate broadcast receiver in the registration list, and send the broadcast event t...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54
CPCG06F9/542G06F9/544
Inventor 陈继军
Owner NETEASE (HANGZHOU) NETWORK CO LTD