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

Method and device for processing network requests in Android application programs

A network request and application technology, applied in the computer field, can solve the problems of difficult maintenance of page update logic, UI update without a unified standard protocol, etc., to achieve the effect of convenient maintenance and ensure uniformity

Active Publication Date: 2017-11-21
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] This method of artificially updating the UI directly is a strong coupling relationship, which will lead to no unified specification protocol for UI updates, and different page update methods may be different, which makes it difficult to maintain the update logic of later pages

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 and device for processing network requests in Android application programs
  • Method and device for processing network requests in Android application programs
  • Method and device for processing network requests in Android application programs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] 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 described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are the Some, but not all, embodiments are invented. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0028] figure 1 The flowchart of the network request processing method in the Android application program provided by the embodiment of the present invention, such as figure 1 As shown, the method includes: S1, encapsulating the status and data returned by the network request into a message class, and sending the message class to the main thread through the message pro...

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 a method and device for processing network requests in Android application programs. The method comprises the following steps of: S1, packaging a network request return state and data in a message class and sending the message class to a main thread through a message processor; and S2, transferring information in the message class of the main thread to a user interface layer through updating an interface. According to the method and device, a coupling relationship between network request and page updating is reduced through interface coupling, and a same logic interface is provided for the updating of all the pages, so that the uniformity of user interface updating structures is ensured and the later program maintenance is facilitated.

Description

technical field [0001] The present invention relates to the field of computer technology, and more specifically, to a method and device for processing network requests in an Android application program. Background technique [0002] An application program refers to a computer program for completing one or more specific tasks. It runs in user mode, can interact with users, and has a visual user interface. The application program is usually divided into two parts: the graphical user interface (GUI) and the engine (Engien), which is different from the concept of application software. Application software refers to the classification of the purpose of use, which can be a single program or a collection of other subordinate components, such as Microsoft Office, OpenOffice, etc. Application refers to a single executable file or a single program, such as Word, Photoshop, etc. [0003] In the process of software development, the network is usually used to obtain data, and the data ...

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
IPC IPC(8): G06F9/54
CPCG06F9/545G06F9/546
Inventor 张磊陈少杰张文明
Owner WUHAN DOUYU NETWORK TECH CO LTD
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More