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

A method and device for realizing an advertising general interface in an android system

A general interface and implementation method technology, applied in the field of interface development of the Android system, can solve the problems of poor maintainability of Android applications, complex logic interfaces, and low development efficiency, and achieve convenient unified processing, clear code logic, and high development efficiency Effect

Active Publication Date: 2019-04-23
WUHAN DOUYU NETWORK TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In general, developers need to implement a corresponding set of logic codes for each advertising platform, and if the current advertising platform needs to be replaced, the advertising loading logic needs to be rewritten, which results in a large amount of code and low development efficiency.
Moreover, with the increase of advertising business, the logical interface is becoming more and more complex, which leads to the worsening maintainability of Android applications

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
  • A method and device for realizing an advertising general interface in an android system
  • A method and device for realizing an advertising general interface in an android system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0026] see figure 1 As shown, the embodiment of the present invention provides a method for realizing the general interface of advertisement in the Android system, comprising the following steps:

[0027] Step S1. Create a general callback interface for advertisement loading, and set the realization function of the general callback interface for advertisement loading, so that the realization function of the general callback interface for advertisement loading is: a callback for completing the advertisement loading result.

[0028] Specifically, step S1 includes the following operations:

[0029] Step S101, define a common interface for advertisement loading callback, for example, it can be named as NativeAdListener.

[0030] Step S102 , create two callback functions in the defined general interface of advertisement loading callback:...

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 present invention discloses an implementation method and apparatus for advertisement common interfaces in an Android system, and relates to the technical field of interface development of the Android system. The method comprises: creating an advertisement loading callback common interface, and setting the implementation function of the interface as: completing the callback of an advertisement loading result; creating an abstract enumeration class common interface, and setting the implementation functions of the interface as: creating an advertisement loader of the advertisement platform and loading the advertisement corresponding to the advertisement platform; and creating an advertisement common loader, and setting the implementation functions of the loader as: creating an instance of the corresponding abstract enumeration class common interface, and by calling the implementation function of the abstract enumeration class common interface inherited by the instance, completing the advertisement loading of the advertisement platform. According to the technical scheme of the present invention, the developer is enabled to deal with the advertisement loading problems of different advertisement platforms simply, and not only the code amount is small and the development efficiency is high, but also the maintainability of the Android application is strong.

Description

technical field [0001] The invention relates to the technical field of interface development of the Android system, and specifically relates to a method and a device for realizing an advertising general interface in the Android system. Background technique [0002] At present, during the use of an Android application, the application more or less needs to add advertisements to enhance the income of the application. However, there are many advertising platforms in the market, and an Android application may join multiple advertising platforms at the same time for the fill rate of advertisements, but the implementation of SDK (Software Development Kit, software development kit) of each advertising platform is quite different. . In general, developers need to implement a corresponding set of logic codes for each advertising platform, and if the current advertising platform needs to be replaced, the advertising loading logic needs to be rewritten, which results in a large amount...

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): G06F9/445G06F9/448G06Q30/02
CPCG06F9/44521G06Q30/0277
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