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

Modular development method for Android

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, unavailable modules, and ADT cannot recognize them, so as to improve stability and scalability, improve reusability, The effect of reducing duplication of work

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

AI Technical Summary

Problems solved by technology

[0008] At present, the Eclipse plug-in ADT (Android Develop Toolkit) developed by Android does not include dependency management, it can only rely on other third-party pure Java Jar packages, but Android applications The program must contain resource files and Activity definition files. Without resource and Activity definitions, this Android module is unavailable.
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
  • Modular development method for Android
  • Modular development method for Android
  • Modular development method for Android

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 public static final type. References to R files (for example: R.layout.main) will be compiled into constant values ​​(for example: 0x7f020000), but once As a module, when 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, an error will 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 Activity to And...

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 the Plug-in Development Environment (PDE), a component primarily aimed at software developers who wish to extend Eclipse because it allows them to build tools that integrate seamlessly with the Eclipse envir...

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 Applications(China)
IPC IPC(8): G06F9/44
Inventor 付进军
Owner 南京华设科技股份有限公司
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