Project hierarchical method for Android application

A project and project analysis technology, which is applied in the project layering field of Android applications, can solve problems such as high project maintenance costs, high code coupling between modules, and low development efficiency, so as to facilitate unit testing, promote decoupling, and reduce maintenance cost effect

Inactive Publication Date: 2016-05-11
G CLOUD TECH
View PDF2 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem solved by the present invention is to provide a project layering method for Android applications, which solves a series of problems such as l...

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
  • Project hierarchical method for Android application
  • Project hierarchical method for Android application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] See attached figure 1 , 2 As shown, the present invention takes a development computer installed with a Linux system as an example; The present invention separates the view logic, business logic and data request logic in the Activity by analyzing the functions of each module page of the project; at the same time, the event and data transfer between the business logic layer and the data layer are processed through the event bus mechanism of the event distribution layer , so as to realize the layering of the project.

[0020] Specifically include the following steps:

[0021] Step 1. Organize the view logic of the page according to the functional requirements of the module page;

[0022] Step 2: Create a view layer, create corresponding activity classes, and encapsulate the view logic of the page into specific view methods;

[0023] Step 3. Organize the business logic of the page according to the functional requirements of the module page;

[0024] Step 4: Establish ...

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 relates to the technical field of software development, and specifically relates to a project hierarchical method for an Android application. The method comprises the following steps: analyzing functions of various module pages of a project, separating a view logic, a business logic and a data request logic in Activity; and processing event and data transfer between a business logic layer and a data layer through an event bus mechanism of an event distribution layer, so as to realize project hierarchy. The project hierarchical method for the Android application provided by the invention effectively improves the division of project developers, reduces the maintenance cost of the project, promotes decoupling between function modules and facilitates unit testing; and the project hierarchical method can be used for project hierarchy of the Android application.

Description

technical field [0001] The invention relates to the technical field of software development, in particular to a project layering method for Android applications. Background technique [0002] In the development process of an Android application project, the layering of the project is very important. The customary layering method is based on the division of Android components. This layered approach makes the Activity class, one of the four major components, shoulder multiple services such as view processing, business logic processing, and data requests. With the increase of functions, the Activity class becomes more and more bloated, and the coupling degree of code between modules is too high, which violates the high cohesion and low coupling standard in software development; not only is it not conducive to unit testing of the project, but also the maintenance cost of the project high. At the same time, the component-based project layering is difficult to effectively divid...

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): G06F11/36
CPCG06F11/3684
Inventor 秦峰秀徐震宇季统凯
Owner G CLOUD TECH
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