Supercharge Your Innovation With Domain-Expert AI Agents!

Android modular development method

A technology of modularization and importing modules, which is applied in the direction of program control devices, etc., can solve the problems of no resource and activity definition, ADT cannot be recognized, modules are unavailable, etc., to improve stability and scalability, improve reusability, The effect of reducing duplication of work

Active Publication Date: 2016-05-25
南京华设科技股份有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] At present, the Eclipse plug-in ADT (AndroidDevelopToolkit) developed by Android does not include dependency management, it can only rely on other third-party pure JavaJar packages, but Android applications must include resource files and Activity definition files, without resource and Activity definitions , this android module is not available
This brings a big problem to the modular development of Android, because even if you package these resource files and configuration files in a Jar package, ADT will not recognize it, let alone compile and package it.

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
  • Android modular development method
  • Android modular development method
  • Android modular development method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0045] [Example 1] Export the module. Such as figure 1 , figure 2 , image 3 shown.

[0046] 1. The fields in the R.class file generated by the Android compiler by default are of publicstaticfinal type. References to R files (for example: R.layout.main) will be compiled into constant values ​​(for example: 0x7f020000), but once they are used as modules , added to other projects, the index value of the resource (that is, the R file) will change (for example, it becomes: 0x7f060018), which means that the original reference to the resource (0x7f020000) will not find this resource file, As a result, errors occur.

[0047] 2. The Android compiler does not package resource files by default.

[0048] 3. The export module needs to inform other projects how many activities it has available, so that other projects can register the Activi...

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 a modular development method for Android, comprising a module export step, a module import step, and a module removal step, wherein the import operation and the removal operation are realized by a modules folder used for monitoring items; if a new file is added in the folder and ended by.jar, the new file is defaulted to be a module file, and an import process is started; if a file is removed from the folder and ended by the.jar, a removal process is started; and if a file needs to be replaced, the removal process and the import process are sequentially started respectively. According to the method, a mode that an Android program module is independently compiled to be a jar package based on plug-in features of Eclipse and ADT plug-in characteristics of the Android, other Android programs can be used for analyzing the jar package, and the function of the module is added in a new Android program. And moreover, the function of a certain assembly can be removed by removing the jar package.

Description

technical field [0001] The present invention relates to the realization of a modular development method for developing Android applications under the Eclipse platform, which belongs to the field of mobile application development, specifically, in the field of mobile application development, the plug-in technology of the basic Eclipse platform is developed for Android applications. Modular design scheme. Background technique [0002] Android is a Linux-based open source operating system, mainly used in portable devices. According to the data in February 2012, Android occupies 52.5% of the global smartphone operating system market, and the Chinese market share is 68.4%. [0003] Eclipse is an open source, Java-based extensible development platform. Eclipse also includes a plug-in development environment (Plug-inDevelopmentEnvironment, PDE), this component is mainly aimed at software developers who want to extend Eclipse because it allows them to build tools that integrate se...

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/44
Inventor 付进军
Owner 南京华设科技股份有限公司
Features
  • R&D
  • 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