Minus-one-screen loading method and device, terminal and computer readable storage medium
A terminal and loading module technology, applied in computing, program control devices, program control design, etc., can solve problems such as mixed code, high business logic coupling, unfavorable version change, etc., to achieve easy acquisition, reduce coupling, and reduce The effect of version maintenance costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] In order to solve the problem of mixing the code of the negative screen and the code of the desktop container in related technologies, the business logic of the negative screen is coupled with the business logic of the desktop container, and the negative screen cannot be upgraded separately, resulting in high maintenance costs for the version of the negative screen problem, this embodiment provides a negative one-screen loading method, please refer to figure 1 The flow chart of the negative one-screen loading method shown:
[0036] Step S102: Load negative one-screen codes and negative one-screen resources into the virtual machine respectively.
[0037] In this embodiment, the negative one-screen code and the desktop container code are independent, and the two are not mixed together: the desktop container has its own installation package, such as Apk (AndroidPackage, Android installation package), and similarly, the negative one-screen also has It's own independent ins...
no. 2 example
[0075] In order to make those skilled in the art more aware of the advantages and details of the negative one-screen loading solution provided by the present invention, this embodiment will continue to introduce the negative one-screen loading method on the basis of the first embodiment. Please refer to Image 6 :
[0076] Step S602: Using DexClassLoader to load the dex file in the negative screen Apk into the virtual machine.
[0077] DexClassLoader can use the following constructor to load the dex file corresponding to a negative screen:
[0078] DexClassLoader(String dexPath, String optimizedDirectory, String libraryPath, ClassLoader parent);
[0079] Among them, dexPath is the decompressed Apk path, usually cannot be empty; optimizedDirectory is the storage path of the decompressed dex file, usually cannot be empty, and it is recommended to use the private path of the application for this path; libraryPath is so(shared object, Shared object) library storage path; parent ...
Embodiment 3
[0109] This embodiment provides a negative one-screen loading device, please refer to Figure 7 Schematic diagram of the negative one-screen loading device shown:
[0110] The negative one-screen loading device 70 includes a code resource loading module 702, an operating environment creation module 704, and a negative one-screen loading module 706, wherein the code resource loading module 702 is used to load the negative one-screen code independent of the desktop container code into the virtual machine, and is also used to load negative one-screen resources into the virtual machine. The running environment creation module 704 is used to create a negative one-screen running context including a negative one-screen resource acquisition path, and use the negative one-screen running context to replace the running context of the desktop container. The negative one-screen loading module 706 is used for loading the negative one-screen according to the running context of the negative ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com