Automatic registration method, device and system for bullet screen events in Android and storage medium

An automatic registration, Android system technology, applied in the field of Android development, can solve the problems of low development efficiency, redundant code program structure, unfavorable maintenance, etc., to achieve the effect of improving accuracy, ensuring effectiveness, and improving development efficiency

Active Publication Date: 2017-12-08
WUHAN DOUYU NETWORK TECH CO LTD
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the high similarity of the codes in the registration process, using a large number of the same code segments in the code will lead to redundant code program structure, which is not conducive to maintenance in the later stage, and the development efficiency is also low

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
  • Automatic registration method, device and system for bullet screen events in Android and storage medium
  • Automatic registration method, device and system for bullet screen events in Android and storage medium
  • Automatic registration method, device and system for bullet screen events in Android and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0030] see figure 1 As shown, the embodiment of the present invention provides a method for automatic registration of barrage events in Android, the method comprising the following steps:

[0031] Step S1, creation of the registration mark Mark: based on the existing Annotation function of the Android system, a custom registration mark Mark is created; the registration mark Mark is used to mark the method of the barrage event that needs to be automatically registered.

[0032] It is understandable that the so-called automatic registration is actually to allow the program to complete the registration process by itself, and the part of the manual code is automatically completed by the program.

[0033] At present, in the development process of Android, the Android system provides a set of pre-compiled functions——Annotation (annotation)...

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 discloses an automatic registration method, device and system for bullet screen events in the Android and a storage medium, and relates to the technical field of Android development. The method includes the steps that firstly, a self-defined registration mark is created based on an existing annotation function of the Android system; then, a mark analyzer is created, wherein the mark analyzer is used for searching for methods of all bullet screen events marked by the registration mark; finally, after the methods needing to be registered of the bullet screen events are marked with the registration mark, analysis is conducted in the compiling stage through the created mark analyzer, and the methods of all the bullet screen events marked by the registration mark are obtained; the obtained methods of all the bullet screen events are registered. By means of the method, code segments needing to be manually registered by developers in the prior art can be registered in an automatic generation mode, so that the program structure is simplified and easy to maintain, and the development efficiency is greatly improved.

Description

technical field [0001] The invention relates to the technical field of Android (Android) development, and specifically relates to a method, a storage medium, a device and a system for automatically registering barrage events in Android. Background technique [0002] In the Android system, there are often requirements to monitor various events, such as the most common button events or barrage message reception events. If the developer wants to know the bullet chat information when the bullet chat message arrives in the system, then it is necessary to initialize the corresponding content in the system initialization phase, and then register the listener to the event bus, so that when the event bus gets the bullet chat message Only when the message is distributed to the registrants. [0003] With the continuous development of barrage technology, barrage technology has also been widely used in the field of live broadcast. However, in an Android software system applied to the f...

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/44G06F9/45
CPCG06F8/37G06F8/427
Inventor 张磊陈少杰张文明
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products