CN104978378B - A kind of Web access method and device - Google Patents

A kind of Web access method and device Download PDF

Info

Publication number
CN104978378B
CN104978378B CN201410529233.0A CN201410529233A CN104978378B CN 104978378 B CN104978378 B CN 104978378B CN 201410529233 A CN201410529233 A CN 201410529233A CN 104978378 B CN104978378 B CN 104978378B
Authority
CN
China
Prior art keywords
file
kernel
browser kernel
application program
app
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.)
Active
Application number
CN201410529233.0A
Other languages
Chinese (zh)
Other versions
CN104978378A (en
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.)
Shenzhen Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410529233.0A priority Critical patent/CN104978378B/en
Publication of CN104978378A publication Critical patent/CN104978378A/en
Application granted granted Critical
Publication of CN104978378B publication Critical patent/CN104978378B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of Web access method and devices, this method can include: obtain the browser kernel run in the pre-set share directory of the first application program in same terminal, wherein, the browser kernel includes the first formatted file for handling first language and the second formatted file for handling second language;First formatted file in the share directory is converted to the kernel file of the executable third format of virtual machine, and the kernel file is stored into the file directory of the second application program pre-set core catalogue;It controls second application program and loads second formatted file in the share directory, and establish the browser kernel using the file of the kernel file and second formatted file, and webpage is accessed using the browser kernel.There is mistake when can access webpage to avoid APP in the embodiment of the present invention.

Description

A kind of Web access method and device
Technical field
The present invention relates to Internet technical field more particularly to a kind of Web access methods and device.
Background technique
With the development of internet technology, load and run on tablet computer, mobile phone, electronic reader, mobile unit, net Application program (Application, APP) in each class of electronic devices such as network TV is more and more, and many APP can be realized Access the function of webpage (or page), but when accessing webpage be usually all by a certain browser kernel (such as: Webview) webpage is loaded, to access the webpage.But for a terminal, many APP can be installed in terminal, Such as: browser, communication APP, game APP, reader etc., wherein most APP does not include browser kernel, when this A little APP are normally based on the browser kernel that includes in terminal operating system when accessing webpage to access webpage.But In In practical application, since the browser kernel for including in the terminal operating system is not easy to update, the browser kernel in this way Version possibly can not effectively adapt to the webpage of APP current accessed, i.e. the browser kernel may have version problem, so that this Often there is mistake when accessing webpage based on the browser kernel of terminal operating system in a little APP.
Summary of the invention
In view of this, accessing net with to avoid APP it is necessary to provide a kind of Web access method of application program and device There is mistake when page.
The embodiment of the present invention provides a kind of Web access method, comprising:
Obtain the browser kernel run in the pre-set share directory of the first APP in same terminal, wherein The browser kernel includes the first formatted file for handling first language and the second format for handling second language File;
First formatted file in the share directory is converted to the kernel of the executable third format of virtual machine File, and the kernel file is stored into the pre-set core catalogue into the file directory of the 2nd APP;
It controls the 2nd APP and loads second formatted file in the share directory, and use the kernel text The file of part and second formatted file establishes the browser kernel, and accesses webpage using the browser kernel.
The embodiment of the present invention, which mentions, also provides a kind of web page access device, comprising: acquiring unit, converting unit and access are single Member, in which:
The acquiring unit, in the pre-set share directory for obtaining the first APP run in same terminal Browser kernel, wherein the browser kernel includes the first formatted file for handling first language and for handling Second formatted file of second language;
Converting unit, for first formatted file in the share directory to be converted to executable the of virtual machine The kernel file of three formats, and the kernel file is stored into the pre-set core catalogue into the file directory of the 2nd APP;
Access unit loads second formatted file in the share directory for controlling the 2nd APP, and makes The browser kernel is established with the file of the kernel file and second formatted file, and is visited using the browser kernel Ask webpage.
In above-mentioned technical proposal, acquisition is run in the pre-set share directory of the first APP in same terminal Browser kernel, wherein the browser kernel includes the first formatted file for handling first language and for handling the Second formatted file of two language;First formatted file in the share directory is converted into executable the of virtual machine The kernel file of three formats, and the kernel file is stored into the pre-set core catalogue into the file directory of the 2nd APP; Control the 2nd APP and load second formatted file in the share directory, and using the kernel file and this The file of two formatted files establishes the browser kernel, and accesses webpage using the browser kernel.It may be implemented in this way 2nd APP accesses webpage based on the browser kernel of the first APP, and the browser kernel of the first APP is convenient for updating, so as to APP is avoided mistake occur when accessing webpage.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of Web access method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another Web access method provided in an embodiment of the present invention;
Fig. 3 is a kind of optional APP architecture diagram provided in an embodiment of the present invention;
Fig. 4 is that the embodiment of the present invention provides a kind of structural schematic diagram of web page access device;
Fig. 5 is that the embodiment of the present invention provides the structural schematic diagram of another web page access device;
Fig. 6 is that the embodiment of the present invention provides the structural schematic diagram of another web page access device;
Fig. 7 is that the embodiment of the present invention provides the structural schematic diagram of another web page access device.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of Web access method provided in an embodiment of the present invention, such as Fig. 1 institute Show, comprising the following steps:
S101, acquisition run on the browser kernel in the pre-set share directory of the first APP in same terminal, Wherein, the browser kernel includes the first formatted file for handling first language and second for handling second language Formatted file.
Optionally, above-mentioned browser kernel can be webpage view (webview), such as: x5 webview.To use x5 For webview browser kernel, the browser kernel include for handling the of first language (such as Java language) One formatted file and the second formatted file for handling second language (such as C Plus Plus).Such as: the first formatted file can be with It is the file for the jar format that browser kernel includes.Alternatively, the first lattice for being used to handle first language that browser kernel includes Formula file can be for handling the kernel jar of first language in the browser kernel, in addition, the file of jar format can be managed Solution is jar packet.Such as: the second formatted file can be the file for so format that browser kernel includes.Alternatively, browser kernel Including the second formatted file for handling second language can be in the browser kernel for handling in second language Core so, in addition, the file of so format can be understood as so packet.In addition, it is necessary to explanation, jar format and so format are all mutual Well known file format, does not elaborate herein in networking technology field.Above-mentioned first language can be including at least Java Language, and the second language can be including at least C Plus Plus or C language.
Optionally, above-mentioned first APP can be the APP installed on user equipment arbitrarily comprising browser kernel, such as: trip Play the APP such as APP, communication APP, video playing APP.In addition, these APP can be non-browser, i.e., above-mentioned APP is not browsing Device.
In addition, above-mentioned share directory can be the pre-set share directory under the catalogue of the first APP, and such as: with x5 Webview illustrates, then share directory record can be app_x5_share catalogue.In addition, catalogue in the present embodiment It can be understood as file or data packet.
Optionally, above-mentioned browser kernel can be third party's browser kernel, i.e., above-mentioned browser kernel is not operation Browser kernel in system.
S102, first formatted file in the share directory is converted to the executable third format of virtual machine Kernel file, and the kernel file is stored into the pre-set core catalogue into the file directory of the 2nd APP.
Optionally, the kernel file of the executable third format of above-mentioned virtual machine is it is to be understood that the kernel file can be with Virtually now to execute, such as: it is executed by Android virtual machine.In addition, the kernel file for the third format that above-mentioned virtual machine can be performed It can be the kernel file of dex format.
In addition, above-mentioned core catalogue can be app_core catalogue, and such as: it is illustrated with x5 webview, above-mentioned core Mind record can be app_x5core.Wherein, in above-mentioned core catalogue path can be local/data/data/APP packet name/ App_x5core, wherein APP packet name can be above-mentioned 2nd APP.
In this way when above-mentioned kernel file is stored into the core catalogue under the catalogue of the 2nd APP, the 2nd APP can be direct The kernel file in the core catalogue is called, and since the kernel that the kernel file is the third format that virtual machine can be performed is literary Part, the affiliated virtual machine of such 2nd APP can execute the kernel file, to establish corresponding browser kernel.
S103, control the 2nd APP load second formatted file in the share directory, and using described interior The file of core file and second formatted file establishes the browser kernel, and accesses webpage using the browser kernel.
Step S103 can be establishes above-mentioned browser kernel or described in the file directory of the 2nd APP Two APP establish browser kernel.
Optionally, step S101 can be executes when the 2nd APP needs to access webpage, may be implemented only to work as in this way 2nd APP just executes above-mentioned steps when needing to access webpage.Or step S101 and step S102 can be it is pre- first carry out, when 2nd APP just executes step S103 when needing to access webpage, may be implemented to obtain in the file directory of the 2nd APP in advance in this way To above-mentioned kernel file, browser kernel is just established when the 2nd APP needs to access webpage, such 2nd APP can pass through The browser kernel of foundation accesses webpage.
In addition, above-mentioned 2nd APP can be installed on user equipment without the APP comprising browser kernel or clear There is abnormal APP in device kernel of looking at.Above-mentioned first APP and the 2nd APP can be operate in the APP in same terminal.
Optionally, the above method can be applied to any equipment for having communication and store function, such as: tablet computer, Mobile phone, electronic reader, remote controler, personal computer (Personal Computer, PC), laptop, mobile unit, Web TV, wearable device etc. have the smart machine of network function.In addition, step S101 can be executed by the first APP, or Person is executed by the another program of user equipment, and step S102 can also be executed by the first APP, or by another journey of user equipment Sequence executes.
In the present embodiment, the browsing run in the pre-set share directory of the first APP in same terminal is obtained Device kernel, wherein the browser kernel includes the first formatted file for handling first language and for handling the second language Second formatted file of speech;First formatted file in the share directory is converted into the executable third lattice of virtual machine The kernel file of formula, and the kernel file is stored into the pre-set core catalogue into the file directory of the 2nd APP;Control 2nd APP loads second formatted file in the share directory, and uses the kernel file and second lattice The file of formula file establishes the browser kernel, and accesses webpage using the browser kernel.Second may be implemented in this way APP accesses webpage based on the browser kernel of the first APP, and the browser kernel of the first APP is convenient for updating, so as to avoid There is mistake when accessing webpage in APP.
Referring to Fig. 2, Fig. 2 is the flow diagram of another Web access method provided in an embodiment of the present invention, such as Fig. 2 It is shown, comprising the following steps:
S201, acquisition run on the browser kernel in the pre-set share directory of the first APP in same terminal, Wherein, the browser kernel includes the first formatted file for handling first language and second for handling second language Formatted file.
Optionally, before executing step S201, the method can also include:
Receive the inquiry request that the 2nd APP is sent, the inquiry request for inquire the first APP whether include Browser kernel.
Such as: when the 2nd APP is needed using browser kernel, the 2nd APP can send above-mentioned inquiry request, example Such as: directly sending inquiry request to the first APP.When determining that the first APP includes browser kernel, so that it may execute step S201。
Certainly, the 2nd APP, which can also be, sends for asking whether that the inquiry in the presence of the APP comprising browser kernel is asked It asks, when user equipment finds the APP comprising browser kernel, such as: when finding an above-mentioned APP, so that it may execute step Rapid S201.
Optionally, the method can also include:
When confirming that the first APP includes the browser kernel according to the inquiry request, the first APP's The browser kernel is generated in pre-set share directory.
It specifically can be and copy the first APP browser kernel for including in above-mentioned share directory to.
Optionally, when step S201 is executed by the first APP, the inquiry request of above-mentioned reception the 2nd APP transmission Step may include:
The inquiry request that the 2nd APP is sent is received by the kernel service disposed in advance.
Wherein, above-mentioned kernel service can be the service for being inquired, such as: core service.In addition, above-mentioned Kernel service, which specifically can be, to be previously deployed in the file directory of the first APP.
Optionally, the step of receiving the inquiry request that the 2nd APP sends by the kernel service disposed in advance it Afterwards, before described the step of generating the browser kernel in the pre-set share directory of the first APP, the side Method can also include:
Inquire whether the first APP includes browser kernel by the kernel service, if so, executing described in institute State the step of generating the browser kernel in the pre-set share directory of the first APP.
It may be implemented to be directly realized by above-mentioned query actions by the first APP in this way.
Optionally, it is illustrated with jar format and so formatted file, the file directory framework of the first APP can be as Shown in Fig. 3 a, comprising: browser kernel target, kernel service (such as: core service), unprocessed form catalogue (such as: Assets catalogue), installation file catalogue (such as: libs armebai catalogue), share directory (such as: app_x5_share Catalogue) and core catalogue (such as: app_x5core), wherein browser kernel catalogue includes system browser kernel catalogue (example Such as: Sys WebView catalogue), third party's browser kernel catalogue (such as: X5 WebView catalogue), in unprocessed form catalogue File including the jar format that browser kernel includes, and in installation file catalogue include so format that browser kernel includes File, share directory will include the file for the jar format that browser kernel includes, core mesh after executing the step S201 Record will include the dex file after the file conversion for the jar format that browser kernel includes.
Optionally, step S201 can also be the first formatted file that the browser kernel for including by the first APPAPP includes It is copied in pre-set share directory.It may be implemented not copying the second formatted file in this way, to save equipment power dissipation and deposit Store up space.
S202, first formatted file in the share directory is converted to the executable third format of virtual machine Kernel file, and the kernel file is stored into the pre-set core catalogue into the file directory of the 2nd APP.
Optionally, it is illustrated with jar format, so format and dex formatted file, the file mesh of above-mentioned 2nd APP Recording framework can be as shown in Figure 3b, comprising: and browser kernel target and core catalogue (such as: app_x5core), wherein browsing Device kernel catalogue includes system browser kernel catalogue (such as: Sys WebView catalogue), third party's browser kernel catalogue (such as: X5 WebView catalogue), core catalogue will include the dex after the file conversion for the jar format that browser kernel includes File.In this way after step S203 establishes browser kernel, i.e., browser kernel is established in third party's browser kernel catalogue.
S203, control the 2nd APP load second formatted file in the share directory, and using described interior Core file and second formatted file establish the browser kernel by reflection mechanism, and are visited using the browser kernel Ask webpage.
Optionally, above-mentioned that the browsing is established by reflection mechanism using the kernel file and second formatted file Device kernel can be, and be carried out above-mentioned kernel file and the second formatted file by reflection mechanism (such as: JAVA reflection mechanism) In conjunction with to establish above-mentioned browser kernel.Furthermore it is possible to be to establish above-mentioned browser kernel in the file directory of the 2nd APP, Such 2nd APP can use the browser kernel to access webpage.
In the present embodiment, the embodiment of plurality of optional is described on the basis of embodiment shown in Fig. 1, and can keep away Exempt from APP access webpage error.In addition, the embodiment in the present embodiment also can be applied to embodiment shown in FIG. 1.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment is for executing embodiment of the present invention method one to two The method of realization, for ease of description, only parts related to embodiments of the present invention are shown, and particular technique details does not disclose , please refer to the embodiment of the present invention one and embodiment two.
Referring to Fig. 4, Fig. 4 is that the embodiment of the present invention provides a kind of structural schematic diagram of web page access device, such as Fig. 4 institute Show, comprising: acquiring unit 41, converting unit 42 and access unit 43, in which:
Acquiring unit 41, in the pre-set share directory for obtaining the first APP run in same terminal Browser kernel, wherein the browser kernel includes the first formatted file for handling first language and for handling the Second formatted file of two language.
Optionally, above-mentioned first APP can be the APP installed on user equipment arbitrarily comprising browser kernel, such as: trip Play the APP such as APP, communication APP, video playing APP.In addition, these APP can be non-browser, i.e., above-mentioned APP is not browsing Device.
In addition, above-mentioned share directory can be the pre-set share directory under the catalogue of the first APP, and such as: with x5 Webview illustrates, then share directory record can be app_x5_share catalogue.In addition, catalogue in the present embodiment It can be understood as file or data packet.
Optionally, above-mentioned browser kernel can be third party's browser kernel, i.e., above-mentioned browser kernel is not operation Browser kernel in system.
Converting unit 42, for first formatted file in the share directory to be converted to what virtual machine can be performed The kernel file of third format, and the kernel file is stored into the pre-set core mesh into the file directory of the 2nd APP Record.
In addition, above-mentioned core catalogue can be app_core catalogue, and such as: it is illustrated with x5 webview, above-mentioned core Mind record can be app_x5core.Wherein, in above-mentioned core catalogue path can be local/data/data/APP packet name/ App_x5core, wherein APP packet name can be above-mentioned 2nd APP.
In this way when above-mentioned kernel file is stored into the core catalogue under the catalogue of the 2nd APP, the 2nd APP can be direct The kernel file in the core catalogue is called, and since the kernel that the kernel file is the third format that virtual machine can be performed is literary Part, the affiliated virtual machine of such 2nd APP can execute the kernel file, to establish corresponding browser kernel.
Loading unit 43 loads second formatted file in the share directory for controlling the 2nd APP, and The browser kernel is established using the file of the kernel file and second formatted file, and uses the browser kernel Access webpage.
Above-mentioned 2nd APP can be installed on user equipment without in APP or browser comprising browser kernel There is abnormal APP in core.
Optionally, above-mentioned apparatus can be applied to any equipment for having communication and store function, such as: tablet computer, Mobile phone, electronic reader, remote controler, personal computer (Personal Computer, PC), laptop, mobile unit, Web TV, wearable device etc. have the smart machine of network function.
In the present embodiment, the browsing run in the pre-set share directory of the first APP in same terminal is obtained Device kernel, wherein the browser kernel includes the first formatted file for handling first language and for handling the second language Second formatted file of speech;First formatted file in the share directory is converted into the executable third lattice of virtual machine The kernel file of formula, and the kernel file is stored into the pre-set core catalogue into the file directory of the 2nd APP;Control 2nd APP loads second formatted file in the share directory, and uses the kernel file and second lattice The file of formula file establishes the browser kernel, and accesses webpage using the browser kernel.Second may be implemented in this way APP accesses webpage based on the browser kernel of the first APP, and the browser kernel of the first APP is convenient for updating, so as to avoid There is mistake when accessing webpage in APP.
Referring to Fig. 5, Fig. 5 is that the embodiment of the present invention provides the structural schematic diagram of another web page access device, such as Fig. 5 institute Show, comprising: acquiring unit 51, converting unit 52 and access unit 53, in which:
Acquiring unit 51, in the pre-set share directory for obtaining the first APP run in same terminal Browser kernel, wherein the browser kernel includes the first formatted file for handling first language and for handling the Second formatted file of two language.
Converting unit 52, for first formatted file in the share directory to be converted to what virtual machine can be performed The kernel file of third format, and the kernel file is stored into the pre-set core mesh into the file directory of the 2nd APP Record.
Access unit 53 loads second formatted file in the share directory for controlling the 2nd APP, and The browser kernel is established by reflection mechanism using the kernel file and second formatted file.
Optionally, described device can also include:
Receiving unit 54, the inquiry request sent for receiving the 2nd APP, the inquiry request are described for inquiring Whether the first APP includes browser kernel.
Such as: when the 2nd APP is needed using browser kernel, the 2nd APP can send above-mentioned inquiry request, example Such as: directly sending inquiry request to the first APP.
Optionally, described device can also include:
Generation unit 55, for when confirming that the first APP includes the browser kernel according to the inquiry request, The browser kernel is generated in the pre-set share directory of the first APP.
Optionally, receiving unit 54 can be used for receiving what the 2nd APP was sent in advance by the kernel service disposed Inquiry request.
Wherein, above-mentioned kernel service can be the service for being inquired, such as: core service.In addition, above-mentioned Kernel service, which specifically can be, to be previously deployed in the file directory of the first APP.
Optionally, as shown in fig. 6, described device can also include:
Query unit 57, for inquiring whether the 2nd APP includes browser kernel by the kernel service;
The generation unit 56 can be used for when the query unit 57 inquires the first APP including browser kernel When, the browser kernel is generated in the pre-set share directory of the first APP.
It may be implemented to be directly realized by above-mentioned query actions by the first APP in this way.
In the present embodiment, the embodiment of plurality of optional is described on the basis of embodiment shown in Fig. 4, and can keep away Exempt from APP access webpage error.In addition, the embodiment in the present embodiment also can be applied to embodiment shown in Fig. 4.
Referring to Fig. 7, Fig. 7 is the structural schematic diagram of another web page access device provided in an embodiment of the present invention, such as scheme 7, which includes: at least one processor 71, such as CPU, at least one network interface 74, user interface 73, Memory 75, at least one communication bus 72.Wherein, communication bus 72 is for realizing the connection communication between these components.Its In, user interface 73 may include display screen (Display), keyboard (Keyboard), and optional user interface 73 can also include Standard wireline interface and wireless interface.Network interface 74 optionally may include standard wireline interface and wireless interface (such as WI- FI interface).Memory 75 can be high speed RAM memory, be also possible to non-labile memory (non-volatile Memory), a for example, at least magnetic disk storage.Memory 75 optionally can also be that at least one is located remotely from aforementioned processing The storage device of device 701.As shown in fig. 7, as may include in a kind of memory 75 of computer storage medium operating system, Network communication module, Subscriber Interface Module SIM and data processing APP.
In data processing equipment shown in Fig. 7, when above-mentioned apparatus is user terminal, network interface 74 is mainly used for connecting Server is connect, carries out data communication with server;
And processor 71 can be used for calling the data processing APP stored in memory 75, and execute following operation:
Obtain the browser kernel run in the pre-set share directory of the first APP in same terminal, wherein The browser kernel includes the first formatted file for handling first language and the second format for handling second language File;
First formatted file in the share directory is converted to the kernel of the executable third format of virtual machine File, and the kernel file is stored into the pre-set core catalogue into the file directory of the 2nd APP;
It controls the 2nd APP and loads second formatted file in the share directory, and use the kernel text The file of part and second formatted file establishes the browser kernel, and accesses webpage using the browser kernel.
Optionally, processor 71 is in the pre-set shared mesh for executing the first APP that acquisition is run in same terminal Before browser kernel in record, following operation is can also be performed in processor 71:
Receive the inquiry request that the 2nd APP is sent, the inquiry request for inquire the first APP whether include Browser kernel.
Optionally, following operation can also be performed in processor 71:
When confirming that the first APP includes the browser kernel according to the inquiry request, the first APP's The browser kernel is generated in pre-set share directory.
Optionally, the file of kernel file described in the use that processor 71 executes and second formatted file is established described clear It lookes at the operation of device kernel, may include:
The browser kernel is established by reflection mechanism using the kernel file and second formatted file.
Optionally, what processor 71 executed receives the operation of the inquiry request of the 2nd APP transmission, may include:
The inquiry request that the 2nd APP is sent is received by the kernel service disposed in advance.
Optionally, processor 71 is executing the inquiry that the 2nd APP transmission is received by the kernel service disposed in advance After the operation of request, above-mentioned generated in the browser in the pre-set share directory of the first APP executing Before the operation of core, following operation is can also be performed in processor 71:
Inquire whether the first APP includes browser kernel by the kernel service, if so, executing described in institute State the operation that the browser kernel is generated in the pre-set share directory of the first APP.
Optionally, above-mentioned apparatus can be applied to any equipment for having communication and store function, such as: tablet computer, Mobile phone, electronic reader, remote controler, personal computer (Personal Computer, PC), laptop, mobile unit, Web TV, wearable device etc. have the smart machine of network function.
In the present embodiment, the browsing run in the pre-set share directory of the first APP in same terminal is obtained Device kernel, wherein the browser kernel includes the first formatted file for handling first language and for handling the second language Second formatted file of speech;First formatted file in the share directory is converted into the executable third lattice of virtual machine The kernel file of formula, and the kernel file is stored into the pre-set core catalogue into the file directory of the 2nd APP;Control 2nd APP loads second formatted file in the share directory, and uses the kernel file and second lattice The file of formula file establishes the browser kernel, and accesses webpage using the browser kernel.Second may be implemented in this way APP accesses webpage based on the browser kernel of the first APP, and the browser kernel of the first APP is convenient for updating, so as to avoid There is mistake when accessing webpage in APP.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, abbreviation RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (12)

1. a kind of Web access method characterized by comprising
The browser kernel run in the pre-set share directory of the first application program in same terminal is obtained, In, the browser kernel includes the first formatted file for handling first language and the second lattice for handling second language Formula file;
First formatted file in the share directory is converted to the kernel file of the executable third format of virtual machine, And the kernel file is stored into the file directory of the second application program pre-set core catalogue;
It controls second application program and loads second formatted file in the share directory, and use the kernel text The file of part and second formatted file establishes the browser kernel, and accesses webpage using the browser kernel.
2. the method as described in claim 1, which is characterized in that the acquisition runs on the first application program in same terminal Pre-set share directory in browser kernel before, the method also includes:
The inquiry request that second application program is sent is received, the inquiry request is for inquiring that first application program is No includes browser kernel.
3. method according to claim 2, which is characterized in that the method also includes:
When confirming that first application program includes the browser kernel according to the inquiry request, in first application The browser kernel is generated in the pre-set share directory of program.
4. method as claimed in any one of claims 1-3, which is characterized in that it is described using the kernel file and this second The file of formatted file establishes the browser kernel, comprising:
The browser kernel is established by reflection mechanism using the kernel file and second formatted file.
5. method as claimed in claim 2 or claim 3, which is characterized in that the inquiry for receiving second application program and sending Request, comprising:
The inquiry request that second application program is sent is received by the kernel service disposed in advance.
6. method as claimed in claim 5, which is characterized in that the kernel service by disposing in advance receives described second After the inquiry request that application program is sent, generated in the pre-set share directory of first application program described clear It lookes at before device kernel, the method also includes:
Inquire whether first application program includes browser kernel by the kernel service, if so, execute it is described The step of generating the browser kernel in the pre-set share directory of first application program.
7. a kind of web page access device characterized by comprising acquiring unit, converting unit and access unit, in which:
The acquiring unit, in the pre-set share directory for obtaining the first application program run in same terminal Browser kernel, wherein the browser kernel includes the first formatted file for handling first language and for handling Second formatted file of second language;
Converting unit, for first formatted file in the share directory to be converted to the executable third lattice of virtual machine The kernel file of formula, and the kernel file is stored into the file directory of the second application program pre-set core mesh Record;
Access unit loads second formatted file in the share directory for controlling second application program, and The browser kernel is established using the file of the kernel file and second formatted file, and uses the browser kernel Access webpage.
8. device as claimed in claim 7, which is characterized in that described device further include:
Receiving unit, the inquiry request sent for receiving second application program, the inquiry request are described for inquiring Whether the first application program includes browser kernel.
9. device as claimed in claim 8, which is characterized in that described device further include:
Generation unit, for when confirming that first application program includes the browser kernel according to the inquiry request, The browser kernel is generated in the pre-set share directory of first application program.
10. such as any one of claim 7-9 described device, which is characterized in that the access unit is used to use the kernel File and second formatted file establish the browser kernel by reflection mechanism.
11. device as claimed in claim 8 or 9, which is characterized in that the receiving unit is used for the core by disposing in advance Service receives the inquiry request that second application program is sent.
12. device as claimed in claim 11, which is characterized in that described device further include:
Query unit, for inquiring whether second application program includes browser kernel by the kernel service;
Generation unit is used for when it includes browser kernel that the query unit, which inquires first application program, described the The browser kernel is generated in the pre-set share directory of one application program.
CN201410529233.0A 2014-10-08 2014-10-08 A kind of Web access method and device Active CN104978378B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410529233.0A CN104978378B (en) 2014-10-08 2014-10-08 A kind of Web access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410529233.0A CN104978378B (en) 2014-10-08 2014-10-08 A kind of Web access method and device

Publications (2)

Publication Number Publication Date
CN104978378A CN104978378A (en) 2015-10-14
CN104978378B true CN104978378B (en) 2019-11-22

Family

ID=54274890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410529233.0A Active CN104978378B (en) 2014-10-08 2014-10-08 A kind of Web access method and device

Country Status (1)

Country Link
CN (1) CN104978378B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020586B (en) * 2016-04-22 2019-06-04 青河 A kind of Mongolian edit methods and editing machine
CN106919634B (en) * 2016-06-12 2020-09-25 阿里巴巴集团控股有限公司 Method for sharing data across applications and web browser
CN106775900B (en) * 2017-01-20 2020-10-09 陈刚 Calling method and system of application browser
CN109684278A (en) * 2018-12-21 2019-04-26 广州酷狗计算机科技有限公司 File acquisition method, device, terminal and storage medium
CN114528263A (en) * 2022-02-11 2022-05-24 上海森亿医疗科技有限公司 Data processing method, system, medium and device based on different computer languages

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981853A (en) * 2012-11-15 2013-03-20 北京奇虎科技有限公司 Method of long text submission through web page text input box and device thereof
CN103618699A (en) * 2013-11-12 2014-03-05 吴晓军 Method and device for calling component
CN103942277A (en) * 2014-03-31 2014-07-23 北京奇虎科技有限公司 Method and device for downloading file in browsers and browsers

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8572612B2 (en) * 2010-04-14 2013-10-29 International Business Machines Corporation Autonomic scaling of virtual machines in a cloud computing environment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981853A (en) * 2012-11-15 2013-03-20 北京奇虎科技有限公司 Method of long text submission through web page text input box and device thereof
CN103618699A (en) * 2013-11-12 2014-03-05 吴晓军 Method and device for calling component
CN103942277A (en) * 2014-03-31 2014-07-23 北京奇虎科技有限公司 Method and device for downloading file in browsers and browsers

Also Published As

Publication number Publication date
CN104978378A (en) 2015-10-14

Similar Documents

Publication Publication Date Title
CN108228818B (en) Webpage resource loading method and device, electronic equipment and storage medium
US9563613B1 (en) System and method for dynamic portable document file generation
CN104978378B (en) A kind of Web access method and device
US9798531B2 (en) Dependency-aware transformation of multi-function applications for on-demand execution
WO2017028779A1 (en) Configuration method and apparatus for internet of things protocol conversion function, nonvolatile computer storage medium and electronic device
US9952848B2 (en) Dependency-aware transformation of multi-function applications for on-demand execution
CN103729425B (en) Operate response method, client, browser and system
US9258357B2 (en) Method for accessing plural cloud storages, electronic apparatus and non-transitory computer readable medium
KR20140126328A (en) Using an application cache to update resources of installed applications
JP6482204B2 (en) Information processing terminal, control method thereof, and program
CN108090345B (en) Linux system external command execution method and device
CN109032693B (en) Method and device for loading display information, electronic equipment and readable storage medium
CN103354927A (en) Method and apparatus for managing content in a processing device
CN108536805A (en) web access method and device
CN109408057B (en) Method, device, medium and computing equipment for automatically generating codes
WO2018121652A1 (en) Method and device for connecting wireless access point through application in user equipment
US20130332568A1 (en) Method of data processing by a navigation module
CN109739653A (en) Previewing file method, document handling method and device
CN109558375B (en) Optimized file storage method, storage medium, equipment and system
KR20130055445A (en) Method for using an application, gateway using thereof, terminal using thereof, and terminal system using thereof
CN109840156B (en) Data caching method and equipment, storage medium and terminal thereof
JP5074434B2 (en) Distributed processing system, distributed processing method, development support apparatus and development support method for distributed processing system
KR102368826B1 (en) Cloud Server And Method of Thereof
KR101553539B1 (en) Dynamic link providing method and computer readable storage medium for program therefor
JP2015069547A (en) Server device, terminal device, communication method, and computer program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221114

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518133

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right