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

A method and device for calling associated modules

A technology of corresponding relationship and parameters, applied in program control design, instrument, electrical digital data processing, etc., can solve the problems of android system not being able to compile correctly, associated module errors, unable to generate framework.jar package, etc.

Active Publication Date: 2017-01-25
LE SHI ZHI ZIN ELECTRONIC TECHNOLOGY (TIANJIN) LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, since a module with more methods is generally associated with other modules, the module with more methods is called an associated module. Once the associated module is removed, the associated module will be called when the framework.jar package is compiled and generated An error occurred, the framework.jar package could not be generated, and the correct compilation process could not be realized, resulting in the final android system not being able to compile correctly

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
  • A method and device for calling associated modules
  • A method and device for calling associated modules
  • A method and device for calling associated modules

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] see figure 1 , showing a flow chart of Embodiment 1 of a method for invoking an association module provided by the present application, including:

[0045] Step S101: According to the preset package name of the associated module, obtain the package of the associated module, and search for the first method from the package of the associated module;

[0046] The associated module in this embodiment is an associated module with a preset package name removed from the framework.jar package in advance, and is a module associated with other modules in the framework.jar package.

[0047] When a method in the associated module needs to be called, it is first necessary to obtain the package of the associated module according to the preset package name for the removed associated module, which is a new jar package.

[0048] After obtaining the package of the associated module, the first method is searched from this package.

[0049] Step S102: When the first method is found, search...

Embodiment 2

[0058] see figure 2 , showing a flow chart of Embodiment 2 of a method for invoking an associated module provided by the present application, figure 1 In the flow chart shown, before step S101, it also includes:

[0059] Step S105: When it is judged that the number of methods in the framework.jar package reaches the preset upper limit, remove the associated module;

[0060] The upper limit may be the upper limit of the jar package, 65536, or a preset integer value smaller than the 65536, so that methods can still be added to the framework.jar package during the removal process.

[0061] When the number of methods added to the framework.jar package reaches the preset upper limit, in order to ensure that the framework.jar package can be compiled correctly, it is necessary to remove the associated module, which has a large number of methods , remove the associated module, and provide space for adding more methods to the framework.jar package.

[0062] Step S106: adding a firs...

Embodiment 3

[0071] see Figure 4 , showing a flow chart of Embodiment 3 of a method for invoking an associated module provided by the present application, figure 1 In the flowchart shown, it also includes:

[0072] Step S108: Judging whether the first method is found in the package of the associated module, if found, execute step S102, otherwise execute step S110;

[0073] When the first method is not found in the package of the associated module, it indicates that there is a fault, and an alarm message is generated to alert the programmer that a fault occurs, and the program in the package of the associated module is checked and adjusted.

[0074] Step S109: judging whether the first parameter is found from the first method, if found, execute step S103, otherwise execute step S110;

[0075] Step S110: Generate an alarm information alarm.

[0076] When the first parameter is not found in the first method, it means that there is a fault, an alarm message is generated to alert the progra...

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 a method and device for calling a correlation module. The correlation module is a correlation module which is moved out of a framework.jar packet in advance and has a preset packet name. By utilizing the correspondence relationship between a first parameter and a second parameter preset by a base class Object, in a packet of the correlation module, a target method, namely a second method comprising the second parameter, can be obtained through a first method to which the first parameter belongs, and the second method is sent to the framework.jar packet. When the second method is not moved out, a compilation process calls the target method, therefore, the method and the parameters called by the compilation process of the framework.jar packet are the same as the calling result before the correlation module is moved out, and the compilation of the framework.jar packet is carried out correctly and is not affected by the moved correlation module.

Description

technical field [0001] The present application belongs to the field of smart TVs, and in particular relates to a method and device for invoking an associated module. Background technique [0002] TVs are the most common household appliances in modern society. With the development of science and technology, smart TVs with fully open platforms and operating systems have emerged as the times require. While enjoying ordinary TV content based on the smart TV, users can install and uninstall various application software by themselves, continuously expand and upgrade the functions of the smart TV, and bring rich personalized experience to users. [0003] Smart TVs currently use the Android system. In the framework development process of the android system, specifically the development process of the framework layer, the number of methods added in the jar package of java has an upper limit of 65536, while the framework.jar package under android adds a large number of methods during...

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/45
Inventor 许端梁帆
Owner LE SHI ZHI ZIN ELECTRONIC TECHNOLOGY (TIANJIN) LTD