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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


