Loading method, device, equipment and storage medium of Android H5 page

A page loading and page technology, applied in the field of communication, can solve problems such as error-prone, avoid omissions, quickly switch and repair, and reduce development workload

Pending Publication Date: 2018-11-09
PINGAN YIQIANBAO E COMMERCE CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to overcome the error-prone problem when using an open source kernel to replace the original kernel in order to adapt to the use of the Android system in the H5 page in the prior art, and proposes a loading method, device, and equipment for an Android H5 page And storage media, by setting two sets of loading kernels in the loading framework to realize the switching interaction between the H5 page and the two sets of kernels, by mapping the import path of all native kernel classes related to webview to the inherited kernel class The import package path is written into the loading framework to achieve the purpose of one-time code replacement and lifetime availability

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Loading method, device, equipment and storage medium of Android H5 page
  • Loading method, device, equipment and storage medium of Android H5 page
  • Loading method, device, equipment and storage medium of Android H5 page

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] Further illustrate the present invention below by the mode of embodiment, but do not therefore limit the present invention among the scope of described embodiment.

[0047] First, the present invention proposes a loading method of an Android H5 page.

[0048] In the first embodiment, if figure 1 As shown, the loading method of the Android H5 page comprises the following steps:

[0049] S1, the loading framework receives the H5 page loading request sent by the user, the request includes the model used by the user and the identification information of the H5 page, and the loading framework is provided with a leading package path of the native kernel class and a third party The import package path of the kernel class.

[0050] Some basic tools (such as protocol, password modification, display introduction, etc.) need to be used in the H5 page. These basic tool calls need to add a package import path in the code.

[0051] The original code of the H5 page is loaded using ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a loading method of Android H5 page, and belongs to the technical field of the communication. The loading method of the H5 page comprises the following steps: a loading frame receives a H5 page loading request sent by a user, wherein a packet guiding path of the primary kernel type and the packet guiding path of the third-party kernel type are arranged in the loading frame;the loading frame acquires configuration information of the H5 page to be loaded, and the configuration information comprises a kernel selector switch, and the loading kernel of the H5 page is selected through the kernel selector switch; a state of the kernel selector switch is identified, and the H5 page is loaded by adopting the kernel corresponding to the result according to the identificationresult, wherein the kernel comprises the primary kernel and the third-party kernel. By setting two sets of loading kernels in the loading frame, the switching interaction between the H5 page and twosets of kernels is realized, and the aim that the code is available lifelong after once replacement is realized.

Description

technical field [0001] The present invention relates to the field of communication technology, and relates to a method, device, equipment and storage medium for loading an Android H5 page. Background technique [0002] Since the system version above Android 6.0 supports the HTTP 2.0 network protocol, many apps will choose the open-source H5 loading kernel that supports the HTTP 2.0 network protocol to replace the original kernel, and the open-source kernel has certain restrictions on the loading time and traffic of H5. promote. [0003] However, open source kernel access needs to replace all classes involving WebView in the project. Although the open source kernel also provides scripts to scan the entire project, the amount of code changes and workload required for scanning and replacing the entire project is too large. In addition, it is very troublesome to do such a scan, check and replace every time a version is released. [0004] In addition, if after switching to the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F17/30
CPCG06F9/44521
Inventor 怀虎周一平
Owner PINGAN YIQIANBAO E COMMERCE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products