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

Activity component loading method and device

A technology for loading devices and components, applied in the field of Android system, can solve the problem of inability to dynamically load Activity components and so on

Active Publication Date: 2021-06-01
TCL CORPORATION
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the above method has certain limitations, because the Activity component of the program development needs to be the same as the class name specified in the AndroidManifest.xml file of the program, and because the AndroidManifest.xml file is an inherent attribute, it cannot be changed when the program is running , the Activity component of the program cannot be dynamically loaded when the program is running through the above method

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
  • Activity component loading method and device
  • Activity component loading method and device
  • Activity component loading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. The embodiments described above are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0023] An embodiment of the present invention provides a method for loading an Activity component, please refer to figure 1 As shown, the Activity component loading method in the embodiment of the present invention may include the following steps:

[0024] Step 101, obtaining the BundleContext of the open service gateway protoco...

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 provides an Activity component loading method and device. Wherein, the method for loading the Activity component includes: obtaining the BundleContext pre-embedded in the Open Service Gateway Protocol framework of the Android system; determining the Activity component to be started; obtaining the bundle identifier associated with the Activity component to be started; Identifier, call the BundleContext.start method of the BundleContext to start the corresponding bundle file so as to load the corresponding Activity component, wherein the bundle file is converted from a jar file, and the jar file is converted from the source code of the Activity component compiled. The technical solution provided by the invention can make it possible to dynamically load the Activity component.

Description

technical field [0001] The invention relates to the field of Android systems, in particular to a method and device for loading an Activity component. Background technique [0002] The Android system is a free and open source operating system based on Linux, and is currently widely used in smart terminals (such as smart phones, tablet computers, smart TVs, etc.). [0003] The Activity component is one of the four components of the Android system, and the Activity component of the program needs to be registered in the AndroidManifest.xml file of the program, and the name of the Activity component developed by the program needs to be specified in the AndroidManifest.xml file of the program. have the same class name. [0004] At present, the code logic of the program can be changed by loading the .dex file based on dalvik.system.DexClassLoader, so that the program can be upgraded without installing a new program installation package. However, the above method has certain limit...

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/445
CPCG06F9/44526
Inventor 孙向作
Owner TCL CORPORATION