CN114115863A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114115863A
CN114115863A CN202111427880.7A CN202111427880A CN114115863A CN 114115863 A CN114115863 A CN 114115863A CN 202111427880 A CN202111427880 A CN 202111427880A CN 114115863 A CN114115863 A CN 114115863A
Authority
CN
China
Prior art keywords
class
initialized
contentprovider
classes
initialization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111427880.7A
Other languages
Chinese (zh)
Inventor
凌日新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN202111427880.7A priority Critical patent/CN114115863A/en
Publication of CN114115863A publication Critical patent/CN114115863A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a data processing method, a data processing device, electronic equipment and a storage medium. In the process of starting the executable file of the application program, if a plurality of classes to be initialized need to be respectively initialized in the executable file, only a tag set in a ContentProvider class in the executable file can be obtained, class names of the plurality of classes to be initialized are obtained in the tag set in the ContentProvider class, each class to be initialized is respectively obtained in the executable file according to the class name of each class to be initialized in the tag set, and each class to be initialized obtained in the executable file based on the ContentProvider class is initialized. Therefore, the initialization of the plurality of classes to be initialized in the executable file can be completed by using a small number of (for example, only one) ContentProvider classes, so that the number of creating the ContentProvider classes can be reduced, the time for creating the ContentProvider classes is saved, the system resources are saved, and the efficiency for starting the executable file of the application program is improved.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
In the process that a user uses an application program on a mobile phone, the application program may sometimes be switched to the background operation of an operating system of the mobile phone, so that the operating system may recycle threads of the application program, that is, the threads of the application program are closed to save system resources of the mobile phone, and then when the user switches the application program to the foreground operation of the operating system again, the operating system starts the threads for the application program to start the application program, and when the application program is started, the class to be initialized in each Library component in the application program is initialized, and a page displayed before the last background operation is displayed.
In order to initialize the class to be initialized in each Library component in the application program when the application program is started, when the source code of the application program is developed, in one mode, the code of the class to be initialized in each Library component may be written into an onCreate method in a respective ContentProvider class.
In this way, after the computer program code is compiled into the application program, in the process of starting the application program, in order to initialize the class to be initialized in each Library component in the application program, an independent ContentProvider class corresponding to each Library component may be obtained (a separate independent ContentProvider class has been created for each Library component in the process of developing the application program in advance), and the class to be initialized in the corresponding Library component is processed by using each ContentProvider class, so that the class to be initialized in each Library component is initialized respectively.
However, the inventor has found that, in the above manner, it takes much time to obtain an independent ContentProvider class for each Library component, which reduces the efficiency of starting the application program, and secondly, it takes much system resources to obtain an independent ContentProvider class for each Library component.
Disclosure of Invention
The application discloses a data processing method, a data processing device, electronic equipment and a storage medium.
In a first aspect, the present application shows a data processing method, comprising:
creating a content provider ContentProvider class in a development environment of an application program;
respectively setting initialization attributes and merging attributes for merging to the ContentProvider class for a plurality of classes to be initialized in the application program in the development environment; the plurality of classes to be initialized comprise classes to be initialized in at least two components;
searching the class name of each class to be initialized with the initialization attribute in the source code of the application program in the development environment;
generating a tag set in the ContentProvider class in the development environment;
and adding the class name of each class to be initialized in the tag set according to the merging attribute.
In an optional implementation manner, the setting, in the development environment, an initialization attribute and a merge attribute for merging to the ContentProvider class for a plurality of classes to be initialized in the application program respectively includes:
generating a sub-manifest file of the class to be initialized in the development environment for any one of the classes to be initialized;
generating a first code segment of the merging attribute of the class to be initialized in the sub-manifest file, wherein the first code segment at least comprises a class name of the ContentProvider class and a preset merging tag used for indicating merging to the ContentProvider class according to the class name;
and the number of the first and second groups,
and generating a second code segment of the initialization attribute of the class to be initialized in the sub-manifest file, wherein the second code segment at least comprises the class name of the class to be initialized and a preset initialization tag used for indicating that the class corresponding to the class name of the class to be initialized needs to be initialized.
In an optional implementation manner, the searching, in the source code, a class name of each class to be initialized having the initialization attribute includes:
respectively searching whether the preset initialization tag exists in a sub-list file in each class in the source code;
and acquiring the class name recorded in the second code segment in the sub-list file with the preset initialization tag, and using the class name as the class name of the class to be initialized.
In an optional implementation manner, the adding, according to the merge attribute, the class name of each class to be initialized in the tag set includes:
for any one class to be initialized in the classes to be initialized, acquiring the class name of the ContentProvider class and the preset merging tag recorded in the first code segment in the sub-list file of the class to be initialized;
and adding the class name of the class to be initialized in the tag set of the ContentProvider class according to the class name of the ContentProvider class and the preset merging tag.
In an optional implementation, the method further includes:
and respectively setting initialization sequence parameters for a plurality of classes to be initialized in the application program in the development environment.
In an optional implementation manner, the setting, in the development environment, initialization sequence parameters for a plurality of classes to be initialized in the application program respectively includes:
setting an initialization sequence parameter bound by the class to be initialized in the development environment for any one of the classes to be initialized.
In an optional implementation, the method further includes:
and searching the initialization sequence parameter of each class to be initialized with the initialization attribute in the source code of the application program in the development environment.
In an optional implementation manner, the searching, in the source code of the application program in the development environment, for the initialization sequence parameter of each class to be initialized having the initialization attribute includes:
respectively searching whether the preset initialization tag exists in a sub-list file in each class in the source code;
and searching an initialization sequence parameter of the class binding to be initialized corresponding to the target class name in the source code, wherein the target class name comprises the class name recorded in the second code segment in the sub-list file with the preset initialization tag.
In an optional implementation, the method further includes:
and adding initialization sequence parameters of various classes to be initialized in the tag set according to the merging attributes.
In an optional implementation manner, the adding, according to the merge attribute, an initialization sequence parameter of each class to be initialized in the tag set includes:
and according to the class name of the ContentProvider class and the preset merging tag, adding the corresponding relation between the class name of the class to be initialized and the initialization sequence parameter bound with the class to be initialized in the tag set.
In a second aspect, the present application shows a data processing method, comprising:
in the process of starting an executable file of an application program, acquiring a tag set in a content provider ContentProvider class in the executable file;
wherein the labelset comprises class names of a plurality of classes to be initialized in the executable file; the class name in the tab set comprises the class name of the class with the initialization attribute searched in the source code of the application program in the development environment of the application program, the class name in the tab set is added in the tab set according to the combination attribute of a plurality of classes to be initialized set in the development environment, and the initialization attribute of each class to be initialized and the combination attribute for combining to the ContentProvider class are respectively set for the plurality of classes to be initialized in the application program in the development environment;
respectively acquiring each class to be initialized in the executable file according to the class name of each class to be initialized in the tag set;
and respectively initializing the obtained multiple classes to be initialized in the executable file based on the ContentProvider class.
In an optional implementation manner, the tag set further includes an initialization sequence parameter of each class to be initialized in the executable file; the initialization sequence parameters in the tab set are added in the tab set according to the merge attributes of the multiple classes to be initialized set in the development environment, and the initialization sequence parameters of the classes to be initialized are respectively set for the multiple classes to be initialized in the application program in the development environment.
In an optional implementation manner, the initializing, in the executable file, a plurality of classes to be initialized that are obtained based on the ContentProvider class respectively includes:
and respectively initializing each acquired class to be initialized in the executable file based on the ContentProvider class according to the initialization sequence parameters of each class to be initialized in the tag set.
In a third aspect, the present application shows a data processing apparatus comprising:
the creating module is used for creating a content provider ContentProvider class in the development environment of the application program;
a first setting module, configured to set an initialization attribute and a merge attribute for merging to the ContentProvider class for each of multiple classes to be initialized in the application program in the development environment; the plurality of classes to be initialized comprise classes to be initialized in at least two components;
the first searching module is used for searching the class name of each class to be initialized with the initialization attribute in the source code of the application program in the development environment;
the generation module is used for generating a tag set in the ContentProvider class in the development environment;
and the first adding module is used for adding the class name of each class to be initialized in the tag set according to the merging attribute.
In an optional implementation manner, the first setting module includes:
a first generating unit, configured to generate, in the development environment, a sub-manifest file of the class to be initialized for any one of the classes to be initialized;
a second generating unit, configured to generate a first code segment of the merge attribute of the class to be initialized in the sub-manifest file, where the first code segment at least includes a class name of the ContentProvider class and a preset merge tag used for indicating that the ContentProvider class is merged according to the class name;
a third generating unit, configured to generate a second code segment of the initialization attribute of the class to be initialized in the sub-manifest file, where the second code segment at least includes a class name of the class to be initialized and a preset initialization tag used to indicate that a class corresponding to the class name of the class to be initialized needs to be initialized.
In an optional implementation manner, the first lookup module includes:
the first searching unit is used for respectively searching whether the preset initialization tag exists in the sub-list files in each class in the source code;
and the first acquisition unit is used for acquiring the class name recorded in the second code segment in the sub-list file of the preset initialization tag and taking the class name as the class name of the class to be initialized.
In an optional implementation manner, the first adding module includes:
a second obtaining unit, configured to obtain, for any one to-be-initialized class in the to-be-initialized classes, a class name of the ContentProvider class and the preset merge tag, which are recorded in the first code segment in a sub-manifest file of the to-be-initialized class;
and the adding unit is used for adding the class name of the class to be initialized in the tag set of the ContentProvider class according to the class name of the ContentProvider class and the preset merging tag.
In an optional implementation, the apparatus further comprises:
and the second setting module is used for respectively setting initialization sequence parameters for a plurality of classes to be initialized in the application program in the development environment.
In an optional implementation manner, the second setting module is specifically configured to: setting an initialization sequence parameter bound by the class to be initialized in the development environment for any one of the classes to be initialized.
In an optional implementation, the apparatus further comprises:
and the second searching module is used for searching the initialization sequence parameters of each class to be initialized with the initialization attribute in the source code of the application program in the development environment.
In an optional implementation manner, the second lookup module includes:
the second searching unit is used for respectively searching whether the preset initialization tag exists in the sub-list files in each class in the source code;
and a third searching unit, configured to search, in the source code, an initialization sequence parameter of the class binding to be initialized corresponding to a target class name, where the target class name includes a class name recorded in the second code segment in the sub-list file having the preset initialization tag.
In an optional implementation, the apparatus further comprises:
and the second adding module is used for adding the initialization sequence parameters of each class to be initialized in the tag set according to the merging attributes.
In an optional implementation manner, the second adding module is specifically configured to: and according to the class name of the ContentProvider class and the preset merging tag, adding the corresponding relation between the class name of the class to be initialized and the initialization sequence parameter bound with the class to be initialized in the tag set.
In a fourth aspect, the present application shows a data processing apparatus comprising:
the system comprises a first acquisition module, a first storage module and a second acquisition module, wherein the first acquisition module is used for acquiring a tag set in a content provider ContentProvider class in an executable file of an application program in the process of starting the executable file;
wherein the labelset comprises class names of a plurality of classes to be initialized in the executable file; the class name in the tab set comprises the class name of the class with the initialization attribute searched in the source code of the application program in the development environment of the application program, the class name in the tab set is added in the tab set according to the combination attribute of a plurality of classes to be initialized set in the development environment, and the initialization attribute of each class to be initialized and the combination attribute for combining to the ContentProvider class are respectively set for the plurality of classes to be initialized in the application program in the development environment;
a second obtaining module, configured to obtain, in the executable file, each class to be initialized according to the class name of each class to be initialized in the tag set;
and the initialization module is used for respectively initializing the obtained multiple classes to be initialized in the executable file based on the ContentProvider class.
In an optional implementation manner, the tag set further includes an initialization sequence parameter of each class to be initialized in the executable file; the initialization sequence parameters in the tab set are added in the tab set according to the merge attributes of the multiple classes to be initialized set in the development environment, and the initialization sequence parameters of the classes to be initialized are respectively set for the multiple classes to be initialized in the application program in the development environment.
In an optional implementation manner, the initialization module is specifically configured to: and respectively initializing each acquired class to be initialized in the executable file based on the ContentProvider class according to the initialization sequence parameters of each class to be initialized in the tag set.
In a fifth aspect, the present application illustrates an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the data processing method according to the first aspect or the second aspect.
In a sixth aspect, the present application shows a non-transitory computer readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method of the first or second aspect.
In a seventh aspect, the present application shows a computer program product, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method according to the first or second aspect.
The technical scheme provided by the application can comprise the following beneficial effects:
in the application, at least one ContentProvider class is created in the development environment of an application program; respectively setting initialization attributes and merging attributes for merging to a ContentProvider class for a plurality of classes to be initialized in an application program in a development environment; the plurality of classes to be initialized comprise classes to be initialized in at least two components; searching a class name of each class to be initialized with initialization attributes in a source code of an application program in a development environment; generating a tag set in a ContentProvider class in a development environment; and adding the class name of each class to be initialized in the tag set according to the merging attribute.
According to the method and the device, in the source code developed in the development environment of the application program, the initialization attributes are respectively set for the multiple classes to be initialized in the application program, so that the electronic equipment can know which classes in the application program are the classes to be initialized according to the initialization attributes, and the combination attributes used for combining the multiple classes to be initialized to the contentProvider class are respectively set for the multiple classes to be initialized, so that the multiple classes to be initialized are respectively bound with the contentProvider class.
In this way, in the process of starting the executable file of the application program, if a plurality of classes to be initialized need to be initialized in the executable file, a ContentProvider class may not be created for each class to be initialized, or the plurality of ContentProvider classes may not be used to process each class to be initialized one by one, but only a tag set in at least one ContentProvider class in the executable file may be obtained, class names of the plurality of classes to be initialized are obtained in the tag set in the ContentProvider class, each class to be initialized is obtained in the executable file according to the class name of each class to be initialized in the tag set, and each class to be initialized obtained is initialized in the executable file based on the ContentProvider class.
Therefore, the initialization of the plurality of classes to be initialized in the executable file can be completed by using a small number of (for example, only one) ContentProvider classes, so that the number of creating the ContentProvider classes can be reduced, the time for creating the ContentProvider classes is saved, the system resources are saved, and the efficiency for starting the executable file of the application program is improved.
Drawings
FIG. 1 is a flow chart of the steps of a data processing method of the present application.
FIG. 2 is a flow chart of the steps of a data processing method of the present application.
FIG. 3 is a flow chart of the steps of a data processing method of the present application.
FIG. 4 is a flow chart of steps of a data processing method of the present application.
Fig. 5 is a block diagram of a data processing apparatus according to the present application.
Fig. 6 is a block diagram of a data processing apparatus according to the present application.
Fig. 7 is a block diagram of an electronic device shown in the present application.
Fig. 8 is a block diagram of an electronic device shown in the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, a flowchart illustrating steps of a data processing method according to the present application is shown, and the method is applied to an electronic device, and specifically may include the following steps:
in step S101, a ContentProvider class is created in the development environment of the application.
In the present application, a developer may start a development environment in an electronic device and develop source code of an application in the development environment.
In one embodiment, a developer has developed a portion of source code for an application in a development environment, the developed source code including at least a plurality of classes, which may include classes in different Library components, and so on.
In the application, different classes developed for an application have different functions, some classes need to be initialized in an executable file during the starting process of the executable file of the application, some classes do not need to be initialized in the executable file during the starting process of the executable file of the application, and the classes are enabled or called only under specific requirements, services or scenes.
Thus, what classes need to be initialized during startup of the executable file and the manner of initialization needs to be set in the development environment. For the initialization manner, the class may be initialized by using a ContentProvider class, and the like, and in one example, the class may be initialized by using one ContentProvider class, or may be initialized by using more than two ContentProvider classes (in this case, the number of the more than two ContentProvider classes is less than the number of Library components where the class to be initialized is located, and the like).
In one example, during a development phase, a developer may enter a create request in a development environment of an application to create at least one ContentProvider class in the development environment of the application. The electronic device may receive the creation request and then create at least one ContentProvider class in a development environment of the application based on the creation request.
In step S102, an initialization attribute and a merge attribute for merging to the ContentProvider class are respectively set for a plurality of classes to be initialized in the application program in the development environment of the application program, where the plurality of classes to be initialized include classes to be initialized in at least two components.
In one embodiment of the present application, part of classes in an application program need to be initialized in an executable file during the starting process of the executable file of the application program, and therefore, it needs to be set in a development environment of the application program which classes need to be initialized during the starting process of the executable file of the application program.
Classes to be initialized may include classes in the Library component in the application, and so on.
Specifically, the developer may input, in the development environment of the application program, a first setting request for setting initialization attributes for a plurality of classes to be initialized in the application program in the development environment, respectively, and the electronic device may receive the first setting request and then set the initialization attributes for the plurality of classes to be initialized in the application program in the development environment according to the first setting request, respectively.
In another embodiment of the present application, because the ContentProvider class needs to be used to complete initialization for multiple classes to be initialized in the executable file of the application, and the ContentProvider class and the multiple classes to be initialized in the executable file of the application are independent from each other, class names of the multiple classes to be initialized need to be merged into the ContentProvider class, so that the ContentProvider class can initialize the multiple classes to be initialized in the executable file of the application according to the class names of the multiple classes to be initialized.
Specifically, the developer may input, in the development environment of the application program, a second setting request for setting, in the development environment, merge attributes for merging into the ContentProvider class for the multiple classes to be initialized in the application program, respectively, and the electronic device may receive the second setting request, and then set, in the development environment, merge attributes for merging into the ContentProvider class for the multiple classes to be initialized in the application program, respectively, according to the second setting request.
In an embodiment, when the initialization attribute is set for each of the multiple classes to be initialized in the application program in the development environment and the merge attribute for merging to the ContentProvider class is set for each of the multiple classes to be initialized in the application program in the development environment, for any one of the multiple classes to be initialized in the application program, a sub-manifest file of the class to be initialized may be generated in the development environment, and then the first code segment of the merge attribute of the class to be initialized may be generated in the sub-manifest file of the class to be initialized. The first code segment at least comprises a class name of a ContentProvider class and a preset merging label for indicating merging to the ContentProvider class according to the class name of the ContentProvider class.
The class name of the ContentProvider class and the preset merge tag may embody a merge attribute for merging into the ContentProvider class.
And generating a second code segment of the initialization attribute of the class to be initialized in the sub-manifest file of the class to be initialized, where the second code segment at least includes the class name of the class to be initialized and a preset initialization tag used for indicating that the class to be initialized corresponding to the class name of the class to be initialized needs to be initialized.
The class name and the preset initialization tag of the class to be initialized may represent an initialization attribute that the class to be initialized needs to be initialized in the process of starting the executable file of the application program.
In step S103, the source code of the application in the development environment is searched for the class name of each class to be initialized having the initialization attribute.
The source code of the application program developed in the development environment at least includes a ContentProvider class, multiple classes to be initialized, an initialization attribute of each class to be initialized, and a merge attribute of each class to be initialized for merging into the ContentProvider class, and of course, may also include code of other functions of the application program, for example, other classes that do not need to be initialized during the starting process of the executable file of the application program, and the like, which are not described in detail herein.
In the application, after a developer writes source codes of an application program in a development environment, the developer may input a compilation request for compiling the source codes of the application program developed in the development environment into an electronic device, and the electronic device may receive the compilation request and compile the source codes of the application program developed in the development environment according to the compilation request to obtain an executable file of the application program.
The child manifest file of the class to be initialized in the development environment has an initialization attribute, a merge attribute for merging to the ContentProvider class, and the like.
In this way, in the process of compiling the source code of the application program developed in the development environment by the electronic device, the class to be initialized can be searched in the source code, for example, the class to be initialized can be searched in the source code according to the initialization attribute.
For example, for any class in an application, if a preset initialization tag exists in a sub-list file of the class, the class is often a class to be initialized, and if the preset initialization tag does not exist in the sub-list file of the class, the class is often not the class to be initialized. The same is true for every other class in the application.
Therefore, in this step, the electronic device may respectively search whether the preset initialization tag exists in the sub-manifest files in the classes in the source code of the application program developed in the development environment. And then, acquiring the class name recorded in the second code segment in the sub-list file with the preset initialization tag as the class name of the class to be initialized. Then step S104 is performed.
In step S104, a tag set is generated in the ContentProvider class in the development environment, and the class name of each class to be initialized is added to the tag set according to the merge attribute of each class to be initialized.
In the application, for any one to-be-initialized class in a plurality of to-be-initialized classes in an application program, the class name and the preset merge tag of the ContentProvider class recorded in the first code segment in the sub-manifest file of the to-be-initialized class may be obtained.
According to the class name of the ContentProvider class and the preset merging tag recorded in the first code segment, the fact that the class name of the class to be initialized needs to be merged into the ContentProvider class corresponding to the class name of the ContentProvider class can be known.
Therefore, the class name of the class to be initialized can be added in the tag set of the ContentProvider class according to the class name of the ContentProvider class and the preset merging tag.
For example, the tag set in the ContentProvider class may be searched according to the class name of the ContentProvider class, and the preset merge tag may be used to indicate a merge function, for example, the merge function may merge the class name into the ContentProvider class, and the preset merge tag includes "merge" or the like. Therefore, it can be known that the class name of the class to be initialized can be added in the tag set of the ContentProvider class according to the preset merging tag, and thus, the class name of the class to be initialized can be added in the tag set.
The above operation is also performed for each of the other classes to be initialized in the plurality of classes to be initialized in the application program.
Therefore, after the executable file of the application program is obtained by compiling, the executable file has a ContentProvider class, the ContentProvider class has a tag set, the tag set of the ContentProvider class has class names of various classes to be initialized in the application program, so that when the executable file of the application program is started, the tag set of the ContentProvider class in the executable file can be obtained when the classes to be initialized in the executable file need to be initialized, class names of a plurality of classes to be initialized in the tag set in the ContentProvider class are obtained, the classes to be initialized are obtained in the executable file according to the class names of the various classes to be initialized in the tag set, and the classes to be initialized are obtained in the executable file based on the ContentProvider class initialization. Therefore, the tasks of initializing a plurality of classes to be initialized in the executable file based on the ContentProvider class are realized.
The specific initialization method can be seen in the embodiment shown in fig. 2, and is not described in detail here.
Wherein, for each ContentProvider class, step S102 to step S104 are executed.
In the application, at least one ContentProvider class is created in the development environment of an application program; respectively setting initialization attributes and merging attributes for merging to a ContentProvider class for a plurality of classes to be initialized in an application program in a development environment; the plurality of classes to be initialized comprise classes to be initialized in at least two components; searching a class name of each class to be initialized with initialization attributes in a source code of an application program in a development environment; generating a tag set in a ContentProvider class in a development environment; and adding the class name of each class to be initialized in the tag set according to the merging attribute.
According to the method and the device, in the source code developed in the development environment of the application program, the initialization attributes are respectively set for the multiple classes to be initialized in the application program, so that the electronic equipment can know which classes in the application program are the classes to be initialized according to the initialization attributes, and the combination attributes used for combining the multiple classes to be initialized to the contentProvider class are respectively set for the multiple classes to be initialized, so that the multiple classes to be initialized are respectively bound with the contentProvider class.
In this way, in the process of starting the executable file of the application program, if a plurality of classes to be initialized need to be initialized in the executable file, a ContentProvider class may not be created for each class to be initialized, or the plurality of ContentProvider classes may not be used to process each class to be initialized one by one, but only a tag set in at least one ContentProvider class in the executable file may be obtained, class names of the plurality of classes to be initialized are obtained in the tag set in the ContentProvider class, each class to be initialized is obtained in the executable file according to the class name of each class to be initialized in the tag set, and each class to be initialized obtained is initialized in the executable file based on the ContentProvider class.
Therefore, the initialization of the plurality of classes to be initialized in the executable file can be completed by using a small number of (for example, only one) ContentProvider classes, so that the number of creating the ContentProvider classes can be reduced, the time for creating the ContentProvider classes is saved, the system resources are saved, and the efficiency for starting the executable file of the application program is improved.
Referring to fig. 2, a flowchart illustrating steps of a data processing method according to the present application is shown, and the method is applied to an electronic device, and specifically may include the following steps:
in step S201, in the process of starting the executable file of the application program, a tag set in a ContentProvider class in the executable file is obtained.
The method comprises the steps that a tag set comprises class names of a plurality of classes to be initialized in an executable file; the class name in the labelset comprises the class name of the class with the initialization attribute searched in the source code of the application program in the development environment of the application program, the class name in the labelset is added in the labelset according to the combination attribute of a plurality of classes to be initialized set in the development environment, and the initialization attribute of each class to be initialized and the combination attribute for combining to the ContentProvider class are respectively set for the plurality of classes to be initialized in the application program in the development environment.
In the application, in the process of running the executable file of the application program in the electronic device, the electronic device may initialize a plurality of classes to be initialized of the executable file of the application program, and may obtain a tag set in at least one ContentProvider class in the executable file of the application program during initialization.
The set of tags in the ContentProvider class may be located in a manifest file of the ContentProvider class.
In this application, when the executable file is started in the electronic device, the electronic device loads the executable file in a memory of the electronic device, and the electronic device may allocate a memory address to the executable file. For example, the memory address of the executable file may be a memory address from one address to another address in the memory, and the like.
In the application, the memory address of the ContentProvider class in the executable file can be obtained by using a class. Of course, the memory address of the ContentProvider class in the executable file may also be obtained in other manners, and the specific obtaining manner is not limited in the present application.
After obtaining the memory address of the ContentProvider class, the electronic device may obtain the tag set in the ContentProvider class according to the memory address of the ContentProvider class, and then may execute step S202.
The method for acquiring the tag set in the ContentProvider class according to the memory address of the ContentProvider class includes:
2011. and acquiring the offset of the tag set in the ContentProvider class in the memory address of the ContentProvider class.
This step can be realized by the following process, including:
11) and determining the memory structure of the ContentProvider class.
In the present application, the ContentProvider class often has a plurality of contents, and the positions of different contents in the ContentProvider class are often fixed, so that the memory structure of the ContentProvider class is fixed.
12) And determining the offset of the tag set in the memory address of the ContentProvider class according to the memory structure of the ContentProvider class.
In this application, the ContentProvider class has a memory address in the memory, the memory address is allocated to the ContentProvider class when the electronic device allocates the memory address to the executable file, and the offset of the tag set in the memory address of the ContentProvider class can be understood as: the distance of the starting memory address of the tag set in the ContentProvider class from the first address in the memory addresses of the ContentProvider class.
After the memory structure of the ContentProvider class is determined, which contents are included in the ContentProvider class according to the sequence is determined, and the size of the space occupied by each content in the ContentProvider class is also determined.
Therefore, the position sequence of the tag set in the ContentProvider class can be determined, and further, which contents are positioned before the tag set in the ContentProvider class and the space size occupied by the contents can be determined, so that the offset of the tag set in the memory address of the ContentProvider class can be determined in the ContentProvider class according to which contents are positioned before the tag set in the ContentProvider class and the space size occupied by the contents.
2012. And acquiring the label set in the ContentProvider class according to the offset.
In step S202, each class to be initialized is acquired in the executable file according to the class name of each class to be initialized in the tag set.
In the present application, each class to be initialized may be obtained in the executable file according to the class name of each class to be initialized in the tag set through a reflection technique, and of course, each class to be initialized may also be obtained in the executable file according to other ways according to the class name of each class to be initialized in the tag set, and the specific obtaining manner is not limited in the present application.
In step S203, the obtained classes to be initialized are respectively initialized in the executable file based on the ContentProvider class.
According to the method and the device, in the source code developed in the development environment of the application program, the initialization attributes are respectively set for the multiple classes to be initialized in the application program, so that the electronic equipment can know which classes in the application program are the classes to be initialized according to the initialization attributes, and the combination attributes used for combining the multiple classes to be initialized to the contentProvider class are respectively set for the multiple classes to be initialized, so that the multiple classes to be initialized are respectively bound with the contentProvider class.
In this way, in the process of starting the executable file of the application program, if a plurality of classes to be initialized need to be initialized in the executable file, a ContentProvider class may not be created for each class to be initialized, or the plurality of ContentProvider classes may not be used to process each class to be initialized one by one, but only a tag set in at least one ContentProvider class in the executable file may be obtained, class names of the plurality of classes to be initialized are obtained in the tag set in the ContentProvider class, each class to be initialized is obtained in the executable file according to the class name of each class to be initialized in the tag set, and each class to be initialized obtained is initialized in the executable file based on the ContentProvider class.
Therefore, the initialization of the plurality of classes to be initialized in the executable file can be completed by using a small number of (for example, only one) ContentProvider classes, so that the number of creating the ContentProvider classes can be reduced, the time for creating the ContentProvider classes is saved, the system resources are saved, and the efficiency for starting the executable file of the application program is improved.
Referring to fig. 3, a flowchart illustrating steps of a data processing method according to the present application is shown, and the method is applied to an electronic device, and specifically may include the following steps:
in step S301, a ContentProvider class is created in the development environment of the application.
In the present application, a developer may start a development environment in an electronic device and develop source code of an application in the development environment.
In one embodiment, a developer has developed a portion of source code for an application in a development environment, the developed source code including at least a plurality of classes, which may include classes in different Library components, and so on.
In the application, different classes developed for an application have different functions, some classes need to be initialized in an executable file during the starting process of the executable file of the application, some classes do not need to be initialized in the executable file during the starting process of the executable file of the application, and the classes are enabled or called only under specific requirements, services or scenes.
Thus, what classes need to be initialized during startup of the executable file and the manner of initialization needs to be set in the development environment. For the initialization manner, the class may be initialized by using a ContentProvider class, and the like, and in one example, the class may be initialized by using one ContentProvider class, or may be initialized by using more than two ContentProvider classes (in this case, the number of the more than two ContentProvider classes is less than the number of Library components where the class to be initialized is located, and the like).
In one example, during a development phase, a developer may enter a create request in a development environment of an application to create at least one ContentProvider class in the development environment of the application. The electronic device may receive the creation request and then create at least one ContentProvider class in a development environment of the application based on the creation request.
In step S302, an initialization attribute, an initialization order parameter, and a merge attribute for merging to the ContentProvider class are respectively set for a plurality of classes to be initialized in the application program in the development environment of the application program. The plurality of classes to be initialized include classes to be initialized in the at least two components.
In one embodiment of the present application, part of classes in an application program need to be initialized in an executable file during the starting process of the executable file of the application program, and therefore, it needs to be set in a development environment of the application program which classes need to be initialized during the starting process of the executable file of the application program.
Classes to be initialized may include classes in the Library component in the application, and so on.
Specifically, the developer may input, in the development environment of the application program, a first setting request for setting initialization attributes for a plurality of classes to be initialized in the application program in the development environment, respectively, and the electronic device may receive the first setting request and then set the initialization attributes for the plurality of classes to be initialized in the application program in the development environment according to the first setting request, respectively.
In another embodiment of the present application, because the ContentProvider class needs to be used to complete initialization for multiple classes to be initialized in the executable file of the application, and the ContentProvider class and the multiple classes to be initialized in the executable file of the application are independent from each other, class names of the multiple classes to be initialized need to be merged into the ContentProvider class, so that the ContentProvider class can initialize the multiple classes to be initialized in the executable file of the application according to the class names of the multiple classes to be initialized.
Specifically, the developer may input, in the development environment of the application program, a second setting request for setting, in the development environment, merge attributes for merging into the ContentProvider class for the multiple classes to be initialized in the application program, respectively, and the electronic device may receive the second setting request, and then set, in the development environment, merge attributes for merging into the ContentProvider class for the multiple classes to be initialized in the application program, respectively, according to the second setting request.
In another embodiment of the present application, since the initialization sequence of the multiple classes to be initialized is different, it is necessary to set an initialization sequence parameter for each of the multiple classes to be initialized in the application program in the development environment, where the initialization sequence parameter may represent a priority of the initialization sequence, and the like.
For example, a class to be initialized with a higher priority in the initialization order is initialized earlier, and a class to be initialized with a lower priority in the initialization order is initialized later.
The initialization sequence parameter includes 0 to 255 in order of priority from high to low, the initialization sequence parameter 0 has the highest priority, and the initialization sequence parameter 255 has the lowest priority.
Specifically, the developer may input, in the development environment of the application program, a third setting request for setting the initialization order parameters for the multiple classes to be initialized in the application program in the development environment, respectively, and the electronic device may receive the third setting request and then set the initialization order parameters for the multiple classes to be initialized in the application program in the development environment according to the third setting request.
In an embodiment, when an initialization attribute is set for each of a plurality of classes to be initialized in an application program in a development environment, an initialization sequence parameter is set for each of the plurality of classes to be initialized in the application program in the development environment, and a merge attribute for merging to a ContentProvider class is set for each of the plurality of classes to be initialized in the application program in the development environment, for any one of the plurality of classes to be initialized in the application program, an initialization sequence parameter to which a class to be initialized is bound may be set in the development environment, for example, an initialization sequence parameter of a class to be initialized is set at a position where a source code of the class to be initialized in the development environment is located, and the class to be initialized and the set initialization sequence parameter may be bound by a specific character string.
And generating a sub-manifest file of the class to be initialized in the development environment, and then generating a first code segment of the merged attribute of the class to be initialized in the sub-manifest file of the class to be initialized. The first code segment at least comprises a class name of a ContentProvider class and a preset merging label for indicating merging to the ContentProvider class according to the class name of the ContentProvider class.
The class name of the ContentProvider class and the preset merge tag may embody a merge attribute for merging into the ContentProvider class.
And generating a second code segment of the initialization attribute of the class to be initialized in the sub-manifest file of the class to be initialized, where the second code segment at least includes the class name of the class to be initialized and a preset initialization tag used for indicating that the class to be initialized corresponding to the class name of the class to be initialized needs to be initialized.
The class name and the preset initialization tag of the class to be initialized may represent an initialization attribute that the class to be initialized needs to be initialized in the process of starting the executable file of the application program.
In step S303, the class name of each class to be initialized having the initialization attribute and the initialization sequence parameter of each class to be initialized are searched for in the source code of the application program in the development environment.
The source code of the application program developed in the development environment at least includes a ContentProvider class, multiple classes to be initialized, an initialization attribute of each class to be initialized, an initialization sequence parameter of each class to be initialized, and a merge attribute of each class to be initialized for merging into the ContentProvider class, and of course, may also include codes of other functions of the application program, for example, other classes that do not need to be initialized during the starting process of the executable file of the application program, and the like, which are not described in detail herein.
In the application, after a developer writes source codes of an application program in a development environment, the developer may input a compilation request for compiling the source codes of the application program developed in the development environment into an electronic device, and the electronic device may receive the compilation request and compile the source codes of the application program developed in the development environment according to the compilation request to obtain an executable file of the application program.
Wherein, in the development environment, there are initialization sequence parameters of classes to be initialized.
The child manifest file of the class to be initialized in the development environment has an initialization attribute, a merge attribute for merging to the ContentProvider class, and the like.
As such, in a case where the electronic device compiles source code of an application that has been developed in the development environment, a class to be initialized may be found in the source code, for example, according to the initialization attribute.
For example, for any class in an application, if a preset initialization tag exists in a sub-list file of the class, the class is often a class to be initialized, and if the preset initialization tag does not exist in the sub-list file of the class, the class is often not the class to be initialized. The same is true for every other class in the application.
Therefore, in this step, the electronic device may respectively search whether the preset initialization tag exists in the sub-manifest files in the classes in the source code of the application program developed in the development environment. And then, acquiring the class name recorded in the second code segment in the sub-list file with the preset initialization tag as the class name of the class to be initialized. And searching the initialization sequence parameter of the class binding to be initialized corresponding to the class name in the source code. Then, step S304 is performed.
The initialization sequence parameter of the class to be initialized can be searched for at the position where the source code of the class to be initialized in the development environment is located, for example, the initialization sequence parameter bound to the class to be initialized can be searched for through a specific character string at the position where the source code of the class to be initialized in the development environment is located.
In step S304, a tag set is generated in the ContentProvider class in the development environment, and the class name of each class to be initialized and the initialization sequence parameter of each class to be initialized are added to the tag set according to the merge attribute of each class to be initialized.
In the application, for any one to-be-initialized class in a plurality of to-be-initialized classes in an application program, the class name and the preset merge tag of the ContentProvider class recorded in the first code segment in the sub-manifest file of the to-be-initialized class may be obtained.
According to the class name of the ContentProvider class and the preset merging tag recorded in the first code segment, the fact that the class name of the class to be initialized and the initialization sequence parameter of the class to be initialized need to be merged into the ContentProvider class corresponding to the class name of the ContentProvider class can be known, and therefore a tag set in the ContentProvider class can be searched according to the class name of the ContentProvider class. And adding the class name of the class to be initialized and the initialization sequence parameter of the class to be initialized in the tag set of the contentProvider class.
For example, the tag set in the ContentProvider class may be searched according to the class name of the ContentProvider class, and the preset merge tag may be used to indicate a merge function, for example, the merge function may merge the class name into the ContentProvider class, and the preset merge tag includes "merge" or the like. Therefore, it can be known that the class name of the class to be initialized can be added in the tag set of the ContentProvider class according to the preset merging tag, and thus, the corresponding relationship between the class name of the class to be initialized and the initialization sequence parameter bound to the class to be initialized can be added in the tag set.
The above operation is also performed for each of the other classes to be initialized in the plurality of classes to be initialized in the application program.
Thus, after the executable file of the application program is obtained by compiling, the executable file has at least one ContentProvider class, the ContentProvider class has a tag set, the tag set of the ContentProvider class has the class name of each class to be initialized in the application program and the initialization sequence parameter of each class to be initialized, so that when the executable file of the application program is started, and when a plurality of classes to be initialized in the executable file need to be initialized, the tag set of at least one ContentProvider class in the executable file can be obtained, the class name of each class to be initialized and the initialization sequence parameter of each class to be initialized are obtained in the tag set of the ContentProvider class, each class to be initialized is obtained in the executable file according to the class name of each class to be initialized in the tag set, each class to be initialized is obtained in the executable file based on the ContentProvider class, and the initialization sequence parameter of each class to be initialized in the tag set is obtained, and respectively initializing each acquired class to be initialized. Therefore, the tasks of initializing a plurality of classes to be initialized in the executable file according to the actual sequence requirements based on the ContentProvider class are realized.
Wherein, for each ContentProvider class, step S302 to step S304 are executed.
The specific initialization method can be seen in the embodiment shown in fig. 2, and is not described in detail here.
In the present application, at least one ContentProvider class is created in the development environment of an application. And respectively setting an initialization attribute, an initialization sequence parameter and a merging attribute for merging to a ContentProvider class for a plurality of classes to be initialized in the application program in the development environment of the application program. The plurality of classes to be initialized include classes to be initialized in the at least two components. And searching the class name of each class to be initialized with the initialization attribute and the initialization sequence parameter of each class to be initialized in the source code of the application program in the development environment. And generating a tag set in a ContentProvider class in the development environment, and adding the class name of each class to be initialized and the initialization sequence parameter of each class to be initialized in the tag set according to the merging attribute of each class to be initialized.
According to the method and the device, in the source code developed in the development environment of the application program, the initialization attribute is respectively set for the multiple classes to be initialized in the application program, so that the electronic equipment can know which classes in the application program are the classes to be initialized according to the initialization attribute, the initialization sequence of the classes to be initialized can be known by the electronic equipment according to the initialization sequence parameter of the classes to be initialized, and the merging attribute used for merging to the contentProvider class is respectively set for the multiple classes to be initialized, so that the multiple classes to be initialized are respectively bound with the contentProvider class.
In this way, in the process of starting the executable file of the application program, if a plurality of classes to be initialized need to be respectively initialized in the executable file, a ContentProvider class may not be respectively created for each class to be initialized, or a plurality of ContentProvider classes may not be used to respectively process each class to be initialized in a one-to-one correspondence manner, but only a tag set in at least one ContentProvider class in the executable file may be obtained, a class name of each class to be initialized and an initialization sequence parameter of each class to be initialized are obtained in the tag set in the ContentProvider class, each class to be initialized obtained is respectively obtained in the executable file according to the class name of each class to be initialized in the tag set, and each obtained class to be initialized is respectively initialized according to the initialization sequence parameter of each class to be initialized in the tag set based on the ContentProvider class in the executable file.
Therefore, the initialization of the plurality of classes to be initialized in the executable file can be completed by using a small number of (for example, only one) ContentProvider classes, so that the number of creating the ContentProvider classes can be reduced, the time for creating the ContentProvider classes is saved, the system resources are saved, and the efficiency for starting the executable file of the application program is improved.
Secondly, initializing each acquired class to be initialized according to the initialization sequence parameter of each class to be initialized, so that the classes to be initialized can be initialized in sequence according to actual sequence requirements. And the method does not need to record the class name of another class to be initialized in one class to be initialized in the source code of the application program so as to indicate that the any one class to be initialized is initialized after the initialization of the other class to be initialized corresponding to the class name is finished, and the initialization sequence parameter of each class to be initialized in the source code only indicates the initialization sequence of the method and is irrelevant to the initialization sequence of other classes to be initialized, so that the coupling between the classes to be initialized in the source code of the application program can be reduced, the dependency relationship between the classes to be initialized in the source code of the application program is simplified, and the maintenance cost of the source code of the application program in the later period is reduced.
Referring to fig. 4, a flowchart illustrating steps of a data processing method according to the present application is shown, and the method is applied to an electronic device, and specifically may include the following steps:
in step S401, in the process of starting the executable file of the application program, a tag set in a ContentProvider class in the executable file is obtained. The tag set comprises class names of a plurality of classes to be initialized in the executable file and initialization sequence parameters of the classes to be initialized.
The class names in the tag set comprise class names of classes which are searched in source codes of application programs in development environments of the application programs and have initialization attributes, the class names and the initialization sequence parameters in the tag set are added in the tag set according to the combination attributes of a plurality of classes to be initialized, and the initialization attributes, the initialization sequence parameters and the combination attributes used for combining the classes to be initialized into the ContentProvider classes are respectively set for the classes to be initialized in the application programs in the development environments.
In the application, in the process of running the executable file of the application program in the electronic device, the electronic device may initialize a plurality of classes to be initialized of the executable file of the application program, and may obtain a tag set in at least one ContentProvider class in the executable file of the application program during initialization.
The set of tags in the ContentProvider class may be located in a manifest file of the ContentProvider class.
In this application, when the executable file is started in the electronic device, the electronic device loads the executable file in a memory of the electronic device, and the electronic device may allocate a memory address to the executable file. For example, the memory address of the executable file may be a memory address from one address to another address in the memory, and the like.
In the application, the memory address of the ContentProvider class in the executable file can be obtained by using a class. Of course, the memory address of the ContentProvider class in the executable file may also be obtained in other manners, and the specific obtaining manner is not limited in the present application.
After obtaining the memory address of the ContentProvider class, the electronic device may obtain the tag set in the ContentProvider class according to the memory address of the ContentProvider class, and then may execute step S402.
The method for acquiring the tag set in the ContentProvider class according to the memory address of the ContentProvider class includes:
4011. and acquiring the offset of the tag set in the ContentProvider class in the memory address of the ContentProvider class.
This step can be realized by the following process, including:
11) and determining the memory structure of the ContentProvider class.
In the present application, the ContentProvider class often has a plurality of contents, and the positions of different contents in the ContentProvider class are often fixed, so that the memory structure of the ContentProvider class is fixed.
12) And determining the offset of the tag set in the memory address of the ContentProvider class according to the memory structure of the ContentProvider class.
In this application, the ContentProvider class has a memory address in the memory, the memory address is allocated to the ContentProvider class when the electronic device allocates the memory address to the executable file, and the offset of the tag set in the memory address of the ContentProvider class can be understood as: the distance of the starting memory address of the tag set in the ContentProvider class from the first address in the memory addresses of the ContentProvider class.
After the memory structure of the ContentProvider class is determined, which contents are included in the ContentProvider class according to the sequence is determined, and the size of the space occupied by each content in the ContentProvider class is also determined.
Therefore, the position sequence of the tag set in the ContentProvider class can be determined, and further, which contents are positioned before the tag set in the ContentProvider class and the space size occupied by the contents can be determined, so that the offset of the tag set in the memory address of the ContentProvider class can be determined in the ContentProvider class according to which contents are positioned before the tag set in the ContentProvider class and the space size occupied by the contents.
4012. And acquiring the label set in the ContentProvider class according to the offset.
In step S402, each class to be initialized is acquired from the executable file according to the class name of each class to be initialized in the tag set.
In the present application, each class to be initialized may be obtained in the executable file according to the class name of each class to be initialized in the tag set through a reflection technique, and of course, each class to be initialized may also be obtained in the executable file according to other ways according to the class name of each class to be initialized in the tag set, and the specific obtaining manner is not limited in the present application.
In step S403, initializing each obtained class to be initialized in the executable file based on the ContentProvider class according to the initialization sequence parameter of each class to be initialized in the tag set.
In the present application, classes to be initialized with the same initialization sequence parameter are merged into a class set.
For any class set, under the condition that the number of classes to be initialized in the class set is at least two, allocating at least two threads for the class set; for example, in a case that the executable file has a main thread, at least one sub-thread may be regenerated, and the main thread and the at least one sub-thread may be respectively used to initialize the class to be initialized included in the class set, so that the classes to be initialized included in the class set may be respectively initialized using the at least two threads.
In addition, after the class to be initialized included in the class set is initialized, at least two threads allocated to the class set can be recovered, so that the threads are saved, system resources are saved, and thread confusion can be avoided.
The same is true for every other class set.
Therefore, the time length required for initializing a plurality of classes to be initialized can be prolonged, and the initialization efficiency can be improved.
According to the method and the device, in the source code developed in the development environment of the application program, the initialization attribute is respectively set for the multiple classes to be initialized in the application program, so that the electronic equipment can know which classes in the application program are the classes to be initialized according to the initialization attribute, the initialization sequence of the classes to be initialized can be known by the electronic equipment according to the initialization sequence parameter of the classes to be initialized, and the merging attribute used for merging to the contentProvider class is respectively set for the multiple classes to be initialized, so that the multiple classes to be initialized are respectively bound with the contentProvider class.
In this way, in the process of starting the executable file of the application program, if a plurality of classes to be initialized need to be respectively initialized in the executable file, a ContentProvider class may not be respectively created for each class to be initialized, or a plurality of ContentProvider classes may not be used to respectively process each class to be initialized in a one-to-one correspondence manner, only a tag set in at least one ContentProvider class in the executable file may be obtained, a class name of each class to be initialized and an initialization sequence parameter of each class to be initialized are obtained in the tag set in the ContentProvider class, each class to be initialized obtained is respectively obtained in the executable file according to the class name of each class to be initialized in the tag set, and each obtained class to be initialized is respectively initialized in the executable file according to the initialization sequence parameter of each class to be initialized in the tag set based on the ContentProvider class.
Therefore, the initialization of the plurality of classes to be initialized in the executable file can be completed by using a small number of (for example, only one) ContentProvider classes, so that the number of creating the ContentProvider classes can be reduced, the time for creating the ContentProvider classes is saved, the system resources are saved, and the efficiency for starting the executable file of the application program is improved.
Secondly, initializing each acquired class to be initialized according to the initialization sequence parameter of each class to be initialized, so that the classes to be initialized can be initialized in sequence according to actual sequence requirements. And the method does not need to record the class name of another class to be initialized in one class to be initialized in the source code of the application program so as to indicate that the any one class to be initialized is initialized after the initialization of the other class to be initialized corresponding to the class name is finished, and the initialization sequence parameter of each class to be initialized in the source code only indicates the initialization sequence of the method and is irrelevant to the initialization sequence of other classes to be initialized, so that the coupling between the classes to be initialized in the source code of the application program can be reduced, the dependency relationship between the classes to be initialized in the source code of the application program is simplified, and the maintenance cost of the source code of the application program in the later period is reduced.
It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are exemplary and that no action is necessarily required in this application.
Referring to fig. 5, a block diagram of a data processing apparatus according to the present application is shown, and the apparatus may specifically include the following modules:
a creating module 11, configured to create a content provider ContentProvider class in a development environment of an application;
a first setting module 12, configured to set an initialization attribute and a merge attribute for merging to the ContentProvider class for each of multiple classes to be initialized in the application program in the development environment; the plurality of classes to be initialized comprise classes to be initialized in at least two components;
the first searching module 13 is configured to search, in the source code of the application program in the development environment, a class name of each class to be initialized having the initialization attribute;
a generating module 14, configured to generate a tag set in the ContentProvider class in the development environment;
a first adding module 15, configured to add, according to the merge attribute, the class name of each class to be initialized in the tag set.
In an optional implementation manner, the first setting module includes:
a first generating unit, configured to generate, in the development environment, a sub-manifest file of the class to be initialized for any one of the classes to be initialized;
a second generating unit, configured to generate a first code segment of the merge attribute of the class to be initialized in the sub-manifest file, where the first code segment at least includes a class name of the ContentProvider class and a preset merge tag used for indicating that the ContentProvider class is merged according to the class name;
a third generating unit, configured to generate a second code segment of the initialization attribute of the class to be initialized in the sub-manifest file, where the second code segment at least includes a class name of the class to be initialized and a preset initialization tag used to indicate that a class corresponding to the class name of the class to be initialized needs to be initialized.
In an optional implementation manner, the first lookup module includes:
the first searching unit is used for respectively searching whether the preset initialization tag exists in the sub-list files in each class in the source code;
and the first acquisition unit is used for acquiring the class name recorded in the second code segment in the sub-list file of the preset initialization tag and taking the class name as the class name of the class to be initialized.
In an optional implementation manner, the first adding module includes:
a second obtaining unit, configured to obtain, for any one to-be-initialized class in the to-be-initialized classes, a class name of the ContentProvider class and the preset merge tag, which are recorded in the first code segment in a sub-manifest file of the to-be-initialized class;
and the adding unit is used for adding the class name of the class to be initialized in the tag set of the ContentProvider class according to the class name of the ContentProvider class and the preset merging tag.
In an optional implementation, the apparatus further comprises:
and the second setting module is used for respectively setting initialization sequence parameters for a plurality of classes to be initialized in the application program in the development environment.
In an optional implementation manner, the second setting module is specifically configured to: setting an initialization sequence parameter bound by the class to be initialized in the development environment for any one of the classes to be initialized.
In an optional implementation, the apparatus further comprises:
and the second searching module is used for searching the initialization sequence parameters of each class to be initialized with the initialization attribute in the source code of the application program in the development environment.
In an optional implementation manner, the second lookup module includes:
the second searching unit is used for respectively searching whether the preset initialization tag exists in the sub-list files in each class in the source code;
and a third searching unit, configured to search, in the source code, an initialization sequence parameter of the class binding to be initialized corresponding to a target class name, where the target class name includes a class name recorded in the second code segment in the sub-list file having the preset initialization tag.
In an optional implementation, the apparatus further comprises:
and the second adding module is used for adding the initialization sequence parameters of each class to be initialized in the tag set according to the merging attributes.
In an optional implementation manner, the second adding module is specifically configured to: and according to the class name of the ContentProvider class and the preset merging tag, adding the corresponding relation between the class name of the class to be initialized and the initialization sequence parameter bound with the class to be initialized in the tag set.
In the application, a content provider ContentProvider class is created in the development environment of an application program; respectively setting initialization attributes and merging attributes for merging to a ContentProvider class for a plurality of classes to be initialized in an application program in a development environment; the plurality of classes to be initialized comprise classes to be initialized in at least two components; searching a class name of each class to be initialized with initialization attributes in a source code of an application program in a development environment; generating a tag set in a ContentProvider class in a development environment; and adding the class name of each class to be initialized in the tag set according to the merging attribute.
According to the method and the device, in the source code developed in the development environment of the application program, the initialization attributes are respectively set for the multiple classes to be initialized in the application program, so that the electronic equipment can know which classes in the application program are the classes to be initialized according to the initialization attributes, and the combination attributes used for combining the multiple classes to be initialized to the contentProvider class are respectively set for the multiple classes to be initialized, so that the multiple classes to be initialized are respectively bound with the contentProvider class.
In this way, in the process of starting the executable file of the application program, if a plurality of classes to be initialized need to be initialized in the executable file, a ContentProvider class may not be created for each class to be initialized, or the plurality of ContentProvider classes may not be used to process each class to be initialized one by one, but only a tag set in at least one ContentProvider class in the executable file may be obtained, class names of the plurality of classes to be initialized are obtained in the tag set in the ContentProvider class, each class to be initialized is obtained in the executable file according to the class name of each class to be initialized in the tag set, and each class to be initialized obtained is initialized in the executable file based on the ContentProvider class.
Therefore, the initialization of the plurality of classes to be initialized in the executable file can be completed by using a small number of (for example, only one) ContentProvider classes, so that the number of creating the ContentProvider classes can be reduced, the time for creating the ContentProvider classes is saved, the system resources are saved, and the efficiency for starting the executable file of the application program is improved.
Referring to fig. 6, a block diagram of a data processing apparatus according to the present application is shown, and the apparatus may specifically include the following modules:
a first obtaining module 21, configured to obtain, in a process of starting an executable file of an application program, a tag set in a content provider ContentProvider class in the executable file;
wherein the labelset comprises class names of a plurality of classes to be initialized in the executable file; the class name in the tab set comprises the class name of the class with the initialization attribute searched in the source code of the application program in the development environment of the application program, the class name in the tab set is added in the tab set according to the combination attribute of a plurality of classes to be initialized set in the development environment, and the initialization attribute of each class to be initialized and the combination attribute for combining to the ContentProvider class are respectively set for the plurality of classes to be initialized in the application program in the development environment;
a second obtaining module 22, configured to obtain each class to be initialized in the executable file according to the class name of each class to be initialized in the tag set;
the initialization module 23 is configured to initialize the obtained multiple classes to be initialized in the executable file based on the ContentProvider class.
In an optional implementation manner, the tag set further includes an initialization sequence parameter of each class to be initialized in the executable file; the initialization sequence parameters in the tab set are added in the tab set according to the merge attributes of the multiple classes to be initialized set in the development environment, and the initialization sequence parameters of the classes to be initialized are respectively set for the multiple classes to be initialized in the application program in the development environment.
In an optional implementation manner, the initialization module is specifically configured to: and respectively initializing each acquired class to be initialized in the executable file based on the ContentProvider class according to the initialization sequence parameters of each class to be initialized in the tag set.
According to the method and the device, in the source code developed in the development environment of the application program, the initialization attributes are respectively set for the multiple classes to be initialized in the application program, so that the electronic equipment can know which classes in the application program are the classes to be initialized according to the initialization attributes, and the combination attributes used for combining the multiple classes to be initialized to the contentProvider class are respectively set for the multiple classes to be initialized, so that the multiple classes to be initialized are respectively bound with the contentProvider class.
In this way, in the process of starting the executable file of the application program, if a plurality of classes to be initialized need to be initialized in the executable file, a ContentProvider class may not be created for each class to be initialized, or the plurality of ContentProvider classes may not be used to process each class to be initialized one by one, but only a tag set in at least one ContentProvider class in the executable file may be obtained, class names of the plurality of classes to be initialized are obtained in the tag set in the ContentProvider class, each class to be initialized is obtained in the executable file according to the class name of each class to be initialized in the tag set, and each class to be initialized obtained is initialized in the executable file based on the ContentProvider class.
Therefore, the initialization of the plurality of classes to be initialized in the executable file can be completed by using a small number of (for example, only one) ContentProvider classes, so that the number of creating the ContentProvider classes can be reduced, the time for creating the ContentProvider classes is saved, the system resources are saved, and the efficiency for starting the executable file of the application program is improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 7 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, images, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 8 is a block diagram of an electronic device 1900 shown in the present application. For example, the electronic device 1900 may be provided as a server.
Referring to fig. 8, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The foregoing detailed description is directed to a data processing method, an apparatus, an electronic device, and a storage medium provided by the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing examples are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (17)

1. A method of data processing, the method comprising:
creating a content provider ContentProvider class in a development environment of an application program;
respectively setting initialization attributes and merging attributes for merging to the ContentProvider class for a plurality of classes to be initialized in the application program in the development environment; the plurality of classes to be initialized comprise classes to be initialized in at least two components;
searching the class name of each class to be initialized with the initialization attribute in the source code of the application program in the development environment;
generating a tag set in the ContentProvider class in the development environment;
and adding the class name of each class to be initialized in the tag set according to the merging attribute.
2. The method according to claim 1, wherein the setting of an initialization attribute and a merge attribute for merging to the ContentProvider class for a plurality of classes to be initialized in the application program in the development environment respectively comprises:
generating a sub-manifest file of the class to be initialized in the development environment for any one of the classes to be initialized;
generating a first code segment of the merging attribute of the class to be initialized in the sub-manifest file, wherein the first code segment at least comprises a class name of the ContentProvider class and a preset merging tag used for indicating merging to the ContentProvider class according to the class name;
and the number of the first and second groups,
and generating a second code segment of the initialization attribute of the class to be initialized in the sub-manifest file, wherein the second code segment at least comprises the class name of the class to be initialized and a preset initialization tag used for indicating that the class corresponding to the class name of the class to be initialized needs to be initialized.
3. The method according to claim 2, wherein the searching the source code for the class name of each class to be initialized having the initialization attribute comprises:
respectively searching whether the preset initialization tag exists in a sub-list file in each class in the source code;
and acquiring the class name recorded in the second code segment in the sub-list file with the preset initialization tag, and using the class name as the class name of the class to be initialized.
4. The method according to claim 2, wherein the adding the class name of each class to be initialized in the tag set according to the merge attribute comprises:
for any one class to be initialized in the classes to be initialized, acquiring the class name of the ContentProvider class and the preset merging tag recorded in the first code segment in the sub-list file of the class to be initialized;
and adding the class name of the class to be initialized in the tag set of the ContentProvider class according to the class name of the ContentProvider class and the preset merging tag.
5. The method of claim 2, further comprising:
and respectively setting initialization sequence parameters for a plurality of classes to be initialized in the application program in the development environment.
6. The method according to claim 5, wherein the setting of initialization sequence parameters for a plurality of classes to be initialized in the application program in the development environment respectively comprises:
setting an initialization sequence parameter bound by the class to be initialized in the development environment for any one of the classes to be initialized.
7. The method of claim 5, further comprising:
and searching the initialization sequence parameter of each class to be initialized with the initialization attribute in the source code of the application program in the development environment.
8. The method of claim 7, wherein the searching the source code of the application program in the development environment for the initialization sequence parameter of each class to be initialized having the initialization attribute comprises:
respectively searching whether the preset initialization tag exists in a sub-list file in each class in the source code;
and searching an initialization sequence parameter of the class binding to be initialized corresponding to the target class name in the source code, wherein the target class name comprises the class name recorded in the second code segment in the sub-list file with the preset initialization tag.
9. The method of claim 5, further comprising:
and adding initialization sequence parameters of various classes to be initialized in the tag set according to the merging attributes.
10. The method according to claim 9, wherein the adding the initialization order parameter of each class to be initialized in the tag set according to the merge attribute comprises:
and according to the class name of the ContentProvider class and the preset merging tag, adding the corresponding relation between the class name of the class to be initialized and the initialization sequence parameter bound with the class to be initialized in the tag set.
11. A method of data processing, the method comprising:
in the process of starting an executable file of an application program, acquiring a tag set in a content provider ContentProvider class in the executable file;
wherein the labelset comprises class names of a plurality of classes to be initialized in the executable file; the class name in the tab set comprises the class name of the class with the initialization attribute searched in the source code of the application program in the development environment of the application program, the class name in the tab set is added in the tab set according to the combination attribute of a plurality of classes to be initialized set in the development environment, and the initialization attribute of each class to be initialized and the combination attribute for combining to the ContentProvider class are respectively set for the plurality of classes to be initialized in the application program in the development environment;
respectively acquiring each class to be initialized in the executable file according to the class name of each class to be initialized in the tag set;
and respectively initializing the obtained multiple classes to be initialized in the executable file based on the ContentProvider class.
12. The method of claim 11, wherein the labelset further comprises an initialization sequence parameter for each class to be initialized in the executable file; the initialization sequence parameters in the tab set are added in the tab set according to the merge attributes of the multiple classes to be initialized set in the development environment, and the initialization sequence parameters of the classes to be initialized are respectively set for the multiple classes to be initialized in the application program in the development environment.
13. The method according to claim 12, wherein initializing the obtained plurality of classes to be initialized in the executable file based on the ContentProvider class respectively comprises:
and respectively initializing each acquired class to be initialized in the executable file based on the ContentProvider class according to the initialization sequence parameters of each class to be initialized in the tag set.
14. A data processing apparatus, characterized in that the apparatus comprises:
the creating module is used for creating a content provider ContentProvider class in the development environment of the application program;
a first setting module, configured to set an initialization attribute and a merge attribute for merging to the ContentProvider class for each of multiple classes to be initialized in the application program in the development environment; the plurality of classes to be initialized comprise classes to be initialized in at least two components;
the first searching module is used for searching the class name of each class to be initialized with the initialization attribute in the source code of the application program in the development environment;
the generation module is used for generating a tag set in the ContentProvider class in the development environment;
and the first adding module is used for adding the class name of each class to be initialized in the tag set according to the merging attribute.
15. A data processing apparatus, characterized in that the apparatus comprises:
the system comprises a first acquisition module, a first storage module and a second acquisition module, wherein the first acquisition module is used for acquiring a tag set in a content provider ContentProvider class in an executable file of an application program in the process of starting the executable file;
wherein the labelset comprises class names of a plurality of classes to be initialized in the executable file; the class name in the tab set comprises the class name of the class with the initialization attribute searched in the source code of the application program in the development environment of the application program, the class name in the tab set is added in the tab set according to the combination attribute of a plurality of classes to be initialized set in the development environment, and the initialization attribute of each class to be initialized and the combination attribute for combining to the ContentProvider class are respectively set for the plurality of classes to be initialized in the application program in the development environment;
a second obtaining module, configured to obtain, in the executable file, each class to be initialized according to the class name of each class to be initialized in the tag set;
and the initialization module is used for respectively initializing the obtained multiple classes to be initialized in the executable file based on the ContentProvider class.
16. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the data processing method of any one of claims 1-13.
17. A non-transitory computer readable storage medium, instructions in which, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method of any one of claims 1-13.
CN202111427880.7A 2021-11-26 2021-11-26 Data processing method and device, electronic equipment and storage medium Pending CN114115863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111427880.7A CN114115863A (en) 2021-11-26 2021-11-26 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111427880.7A CN114115863A (en) 2021-11-26 2021-11-26 Data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114115863A true CN114115863A (en) 2022-03-01

Family

ID=80370718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111427880.7A Pending CN114115863A (en) 2021-11-26 2021-11-26 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114115863A (en)

Similar Documents

Publication Publication Date Title
JP6254751B2 (en) Communication module firmware, plug-in generation method, apparatus, program, and recording medium
EP2945058A1 (en) Processing method and device for application program
CN107291626B (en) Data storage method and device
CN107463372B (en) Data-driven page updating method and device
CN111865630B (en) Topological information acquisition method, device, terminal and storage medium
CN105468606B (en) Webpage saving method and device
CN111221613B (en) Program calling method and device and storage medium
CN107368562B (en) Page display method and device and terminal
CN110457084B (en) Loading method and device
CN110874259A (en) Program execution method, device, equipment and storage medium
CN113590091A (en) Data processing method and device, electronic equipment and storage medium
CN112087544B (en) Prompting method and device
CN114115863A (en) Data processing method and device, electronic equipment and storage medium
CN114528037A (en) Application starting method and device, electronic equipment and storage medium
CN107423060B (en) Animation effect presenting method and device and terminal
CN108427568B (en) User interface updating method and device
CN112631695A (en) Data verification method and device, electronic equipment and storage medium
CN112083981A (en) Method and device for creating page view component
CN111221593A (en) Dynamic loading method and device
CN114115862A (en) Data processing method and device, electronic equipment and storage medium
CN111596949B (en) Method and device for developing application program
CN112306702A (en) Data sharing method and device, electronic equipment and storage medium
CN112181406A (en) Rendering engine sharing method and device
CN114020504B (en) Data processing method and device, electronic equipment and storage medium
CN113946346B (en) Data processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination