Class search method and apparatus

A technology for finding modules and class libraries, which is applied in the field of searching classes, and can solve problems such as the failure of the program to run normally, and achieve the effect of preventing the program from running normally and preventing the normal operation of the program
CN106201592AInactive Publication Date: 2016-12-07BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Patent Information

Authority / Receiving Office
CN Β· China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Publication Date
2016-12-07
Estimated Expiration
Not applicable Β· inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention relates to a class search method and apparatus, and belongs to the technical field of electronics. The method comprises the steps of searching for class data of a target class in a class library of a target program when a loading instruction of the target program for the target class is received; and if the class data of the target class is found in the class library of the target program, loading the target class based on the class data of the target class, and if the class data of the target class is not found in the class library of the target program, searching for the class data of the target class in a class library of a previous program of the target program and loading the target class based on the class data of the target class. With the adoption of the method and the apparatus, normal running of programs can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present disclosure relates to the field of electronic technology, in particular to a search method and device. Background technique

[0002] With the development of electronic technology, various terminals have been widely used, and there are more and more types of application programs on the corresponding terminals, and more and more functions.

[0003] At present, the application program includes a main program and a plug-in program. Among them, the class library of the main program and the class library of the plug-in program will contain some classes that need to be loaded. Among them, a class is a computer program that can perform certain operations. type of data. At present, programs written in java language (such as the Android system) search for the class data of the class to be loaded according to the class name, and then load the class to be loaded based on the class data. The loading process is: firstly, in the top program Find the cla...

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