Unlock instant, AI-driven research and patent intelligence for your innovation.

Android system activity plug-in creation, calling method and system

An Android system and plug-in technology, which is applied in the creation field of Android system Activity plug-ins, can solve problems such as the inability to dynamically add Activity plug-ins

Active Publication Date: 2017-07-18
E-SURFING DIGITAL LIFE TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Based on this, it is necessary to provide a method and system for creating an Android system Activity plug-in for the problem of not being able to dynamically increase the Activity plug-in

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 system activity plug-in creation, calling method and system
  • Android system activity plug-in creation, calling method and system
  • Android system activity plug-in creation, calling method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] Such as figure 1 As shown, a method for creating an Android system Activity plug-in includes steps:

[0030] Step S110, according to the selected dex format file, create a Context subclass covering the class method of obtaining resources, and instantiate the Context subclass to generate a Context instance.

[0031] In this embodiment, a custom Context can be implemented. The Context is the context, that is, the global information interface representing the application environment on Android, and the class method used to obtain resources is overridden by the Context to return the resources of the dex format file. The Context subclass is a subclass of ContextThemeWrapper, that is, implements a subclass of ContextThemeWrapper, covers methods such as getAssets, getResources, getTheme, and getClassLoader, and extracts resources from the plug-in APK through the AssetManager. The AssetManager is a resource management class. Used to find resources by filename. In this embodim...

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

A method and system for creating an Activity plug-in in an Android system. By establishing an information interface of a Context subclass and covering it with a class method for obtaining resources, the resource of a dex format file is returned through the Context subclass, so that the Activity plug-in can be dynamically added. function, and can use the Android resource class to find resources. The invention also discloses a calling method and system based on the above-mentioned Android system Activity plug-in, which uses a dynamic proxy interception method to modify the started Activity into an Activity plug-in container, so that the Activity plug-ins can call each other, and unregistered Activity plug-ins can be called.

Description

technical field [0001] The invention relates to the field of Android system development, in particular to a method and system for creating an Android system Activity plug-in. Background technique [0002] Now Android system has been widely used in life, and Android system is more and more accepted by people because of its simple operation, convenience and quickness. [0003] The method and system for creating a general Android system Activity plug-in replaces the global class loading with the custom dalvik.system.DexClassLoader through the Java reflection mechanism, thereby changing the specific implementation of the Activity during the running of the program. [0004] But this method also has limitations. First, the Activity developed in the project must have the same class name as specified in the project's Manifest.xml, and because Manifest.xml is an inherent property of the installation package, it cannot be changed at runtime, so it cannot be dynamically Add the Activi...

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 E-SURFING DIGITAL LIFE TECH CO LTD