Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method, storage medium, device and system for automatic registration of barrage events in Android

A technology of automatic registration and Android system, applied in the field of Android development, can solve problems such as unfavorable maintenance, redundant code program structure, and low development efficiency, and achieve the effects of improving development efficiency, ensuring effectiveness, and improving accuracy

Active Publication Date: 2020-01-03
WUHAN DOUYU NETWORK TECH CO LTD
View PDF3 Cites 0 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
  • Method, storage medium, device and system for automatic registration of barrage events in Android
  • Method, storage medium, device and system for automatic registration of barrage events in Android
  • Method, storage medium, device and system for automatic registration of barrage events in Android

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

Disclosed in the present invention are a method for automatically registering a bullet screen event in Android, a storage medium, a device and a system, relating to the field of Android development technology. The method comprises: firstly creating a self-defined registration mark on the basis of the existing annotation functions of an Android system; then creating a mark parser, the mark parser being used for searching for all bullet screen event methods which are marked by the registration mark; finally, after the bullet screen event methods which are required to be registered, are marked by the registration mark, parsing same by using the created mark parser in a compilation stage to obtain all the bullet screen event methods marked by the registration mark; and performing a registration operation on all the obtained bullet screen event methods. The present invention can improve the registration of a code segment, which requires manual operations of a developer in the prior art, by means of an automatic generation mode, not only simplifying the program structure for maintenance convenience, but also greatly improving development efficiency.

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 Patents(China)
IPC IPC(8): G06F8/30G06F8/41
CPCG06F8/37G06F8/427
Inventor 张磊陈少杰张文明
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products