CN106407458A - Method and device for acquiring content of browser application program - Google Patents

Method and device for acquiring content of browser application program Download PDF

Info

Publication number
CN106407458A
CN106407458A CN201610877271.4A CN201610877271A CN106407458A CN 106407458 A CN106407458 A CN 106407458A CN 201610877271 A CN201610877271 A CN 201610877271A CN 106407458 A CN106407458 A CN 106407458A
Authority
CN
China
Prior art keywords
content
uri
local cache
assembly
browser application
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
CN201610877271.4A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610877271.4A priority Critical patent/CN106407458A/en
Publication of CN106407458A publication Critical patent/CN106407458A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for acquiring the content of a browser application program. The method for acquiring the content of the browser application program comprises the following steps: determining the URI of content to be loaded in the browser application program; calling a content provider corresponding to the URI; and when the content corresponding to the URI exists in a local cache is informed by the content provider, acquiring the content corresponding to the URI from the local cache. According to the method, the content of the browser application program can be acquired from the cache conveniently and flexibly.

Description

The method and apparatus obtaining the content of browser application
Technical field
It relates to Internet technical field, more particularly, to a kind of method of content obtaining browser application and Device.
Background technology
Application program (APP) is main to be included:Native applications program (native APP) and browser application (H5APP), native applications program includes the application program based on ARIXTRA (android) platform and the application journey based on ios platform Sequence.H5 refers to HTML the 5th edition (HyperText Markup Language, Html5).
In order to improve access speed, can will be local in mobile terminal for the content caching of application program.In correlation technique, main To solve it for native applications program and to cache relevant issues, without solving the caching relevant issues of browser application.
Content of the invention
For overcoming problem present in correlation technique, the disclosure provides a kind of side of the content obtaining browser application Method, device and the device for obtaining the content of browser application.
According to the embodiment of the present disclosure in a first aspect, provide a kind of obtain browser application content method, bag Include:Determine the URI of content to be loaded in browser application;Content corresponding with described URI is called to provide assembly;By institute State content provide assembly know in local cache exist content corresponding with described URI when, from local cache acquisition with described The corresponding content of URI.
Optionally, also include:By described content provide assembly know do not exist in local cache corresponding with described URI During content, provide assembly to obtain content corresponding with described URI from server end by described content, and the content of acquisition is deposited Storage is in local cache.
Optionally, described by described content provide assembly from server end obtain content corresponding with described URI, and general The content obtaining is stored in local cache, including:There is provided assembly by described content, using Cache Framework, from server end Obtain content corresponding with described URI, and the content of acquisition is stored in local cache.
Optionally, described Cache Framework includes:ARIXTRA volley framework.
Optionally, described content to be loaded includes:Full page content, or, partial page content.
According to the second aspect of the embodiment of the present disclosure, provide a kind of device of the content obtaining browser application, institute State device to include:Determining module, for determining the URI of content to be loaded in browser application;Calling module, is used for calling Content corresponding with described URI provides assembly;Acquisition module, deposits for providing assembly to know in local cache by described content In content corresponding with described URI, obtain content corresponding with described URI from local cache.
Optionally, also include:Memory module, for by described content provide assembly know do not exist in local cache with During the corresponding content of described URI, assembly is provided to obtain content corresponding with described URI from server end by described content, and The content of acquisition is stored in local cache.
Optionally, described memory module is further used for:There is provided assembly by described content, using Cache Framework, from clothes Business device end obtains content corresponding with described URI, and the content of acquisition is stored in local cache.
Optionally, described Cache Framework includes:ARIXTRA volley framework.
Optionally, described content to be loaded includes:Full page content, or, partial page content.
According to the third aspect of the embodiment of the present disclosure, provide a kind of dress of the content for obtaining browser application Put, including:Processor;For storing the memorizer of processor executable;Wherein, described processor is configured to:Determine The URI of content to be loaded in browser application;Content corresponding with described URI is called to provide assembly;By described content When providing assembly to know presence content corresponding with described URI in local cache, obtain corresponding with described URI from local cache Content.
Optionally, also include:By described content provide assembly know do not exist in local cache corresponding with described URI During content, provide assembly to obtain content corresponding with described URI from server end by described content, and the content of acquisition is deposited Storage is in local cache.
Optionally, described by described content provide assembly from server end obtain content corresponding with described URI, and general The content obtaining is stored in local cache, including:There is provided assembly by described content, using Cache Framework, from server end Obtain content corresponding with described URI, and the content of acquisition is stored in local cache.
Optionally, described Cache Framework includes:ARIXTRA volley framework.
Optionally, described content to be loaded includes:Full page content, or, partial page content.
According to the fourth aspect of the embodiment of the present disclosure, provide a kind of non-transitorycomputer readable storage medium, when described Instruction in storage medium by mobile terminal computing device when so that mobile terminal be able to carry out a kind of browser that obtains should With the method for the content of program, methods described includes:Determine the URI of content to be loaded in browser application;Call and institute Stating the corresponding content of URI provides assembly;Assembly is provided to know that in local cache, presence is corresponding with described URI by described content During content, obtain content corresponding with described URI from local cache.
Optionally, also include:By described content provide assembly know do not exist in local cache corresponding with described URI During content, provide assembly to obtain content corresponding with described URI from server end by described content, and the content of acquisition is deposited Storage is in local cache.
Optionally, described by described content provide assembly from server end obtain content corresponding with described URI, and general The content obtaining is stored in local cache, including:There is provided assembly by described content, using Cache Framework, from server end Obtain content corresponding with described URI, and the content of acquisition is stored in local cache.
Optionally, described Cache Framework includes:ARIXTRA volley framework.
Optionally, described content to be loaded includes:Full page content, or, partial page content.
The technical scheme that embodiment of the disclosure provides can include following beneficial effect:
Content is called to provide the content obtaining browser application from local cache for the assembly, Ke Yifang by URI Just flexibly realize obtaining the content of browser application from local cache, and simplify the written in code of H5 layer.
Further, when calling content to provide assembly using URI, the process to full page, Ke Yishi can be not limited to Now the caching respectively to various pieces content in the page, it is not necessary to caching and refresh full page, thus more flexible and efficient, is used Family experience is also more preferable.
Further, assembly is provided to obtain and cache contents from server end by content, it is possible to use primary layer ARIXTRA Hold the Cache Framework increased income, function is more powerful, and controllable content is also more.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description
Accompanying drawing herein is merged in description and constitutes the part of this specification, shows the enforcement meeting the disclosure Example, and be used for explaining the principle of the disclosure together with description.
Fig. 1 is the flow process of a kind of method of content of acquisition browser application according to an exemplary embodiment Figure.
Fig. 2 is the layering schematic diagram of the browser application according to an exemplary embodiment.
Fig. 3 is the stream of another kind of method of content obtaining browser application according to an exemplary embodiment Cheng Tu.
Fig. 4 is a kind of device block diagram of the content of acquisition browser application according to an exemplary embodiment.
Fig. 5 is the device frame of another kind of content obtaining browser application according to an exemplary embodiment Figure.
Fig. 6 is a kind of device frame of the content for obtaining browser application according to an exemplary embodiment Figure.
Specific embodiment
Here will in detail exemplary embodiment be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, the disclosure.
Fig. 1 is the flow process of a kind of method of content of acquisition browser application according to an exemplary embodiment Figure, as shown in figure 1, the method can apply to mobile terminal.
The present embodiment is so that browser application (H5APP) is applied on ARIXTRA (android) platform as a example.
As shown in Fig. 2 the browser application of Android platform is generally divided into two-layer, including:H5 layer 21 and primary (native) layer 22.
H5 layer uses browser view (webview) to load, and is write using HTML5.Primary layer is write using java, supports The various application programming interfaces (Application Programming Interface, API) of primary android.
In order to ensure the H5 application program normal work on Android platform, need to carry out between H5 layer and native layer mutually Mutually call.
In the present embodiment, the content that Android platform provides is adopted to provide assembly between H5 layer and native layer (ContentProvider) called mutually.
Wherein, ContentProvider is used for providing unified interface for storing and obtaining data, to realize different The data sharing of application program.
Realized based on above-mentioned H5APP, the present embodiment provides following flow process.Comprise the following steps.
Step S11, determines the Uniform Resource Identifier (Uniform of content to be loaded in browser application Resource identifier, URI).
Wherein it is possible to by H5 layer according to content currently to be shown, determine the URI of content currently to be shown.
Further, content to be loaded can include:Full page content, or, partial page content.Therefore, this reality Apply example and be not limited to the loading to full page, can also only loading section content, partial content for example includes picture, document, regards Frequency etc., partial content can specifically occur the content updating, such that it is able to when the page occurs to update, only loading and updating Content, and keep do not occur update content constant.
Step S12, calls content corresponding with described URI to provide assembly.
Wherein, content provides assembly (ContentProvider) is a kind of assembly being provided by Android platform, and this assembly There is corresponding relation with URI, such as, URI1 corresponds to ContentProvider1.Therefore, after H5 layer determines URI, can basis Corresponding relation between URI and content offer assembly, calls corresponding content to provide assembly.
Step S13, when providing assembly to know presence content corresponding with described URI in local cache by described content, Content corresponding with described URI is obtained from local cache.
Wherein, URI, when calling ContentProvider, can be transferred to ContentProvider by H5 layer, After ContentProvider receives URI, can make a look up in local cache, judge whether corresponding with this URI Content.Further, when there is content corresponding with this URI, can also judge whether this content is expired.Specifically, permissible Judged according to the expired time of current time and record, if current time is less than expired time, shown the non-mistake of content Phase.
Specifically, ContentProvider receives the URI of H5 layer transmission, and finds in local cache and this URI After corresponding content, this content can be sent to H5 layer, thus H5 layer can receive ContentProvider transmission from The content obtaining in local cache.After H5 layer gets the above, it can be shown.Further, above-mentioned from this The corresponding content of this URI finding in ground caching can be the content corresponding and not out of date with this URI.
In the present embodiment, content is called to provide assembly obtaining browser application from local cache by URI Content, the content of realization acquisition browser application from local cache that can be convenient, flexible, and simplify the generation of H5 layer Code is write.Further, when the present embodiment calls content to provide assembly using URI, the process to full page can be not limited to, The caching respectively to various pieces content in the page can be realized it is not necessary to caching and refreshing full page, thus more flexible Efficiently, Consumer's Experience is also more preferable.
Fig. 3 is the stream of another kind of method of content obtaining browser application according to an exemplary embodiment Cheng Tu, as shown in figure 3, the method can apply to mobile terminal.Comprise the following steps.
Step S31, H5 layer determines the URI of content to be loaded in browser application.
For example, it may be determined that content to be loaded after H5 layer receives and opens or refresh (or referred to as reloading) instruction (as needed the partial content updating in full page or full page), and determine the URI of content to be loaded.
Step S32, H5 layer calls the content that Android platform corresponding with described URI provides to provide assembly.
Because URI and content provide and there is corresponding relation between assembly, therefore be can determine according to this corresponding relation and institute The corresponding content of URI determined provides assembly, and calls this corresponding content to provide assembly.
Step S33, content provides assembly to judge to whether there is effective content corresponding with described URI in local cache, If so, execution step S34, otherwise, executes S35.
Wherein, when calling content to provide assembly, URI can be sent to content provides assembly to H5 layer.Content offer group After part receives URI, the corresponding content of URI existing with receiving can be searched whether in local cache, if it does, entering one Step judges whether the content existing is expired, if not out of date, shows there is effectively content corresponding with above-mentioned URI.No Then, if there is no or exist and expired, then show there is not the corresponding content of effective with above-mentioned URI.
Step S34, content provides assembly to obtain content corresponding with this URI from local cache.
When there is effective content corresponding with above-mentioned URI in local cache, then content offer assembly can be from this The above is obtained in ground caching.
Step S35, content provides assembly to obtain content corresponding with described URI, and the content that will obtain from server end It is stored in local cache.
Wherein, content provides assembly when server end obtains the above and the above is entered row cache, can be with base Realize in the Cache Framework that Android platform is increased income.
Further, above-mentioned Cache Framework can be ARIXTRA volley framework.The translator of Chinese of Volley be " salvo, Concurrently ", it is a Android platform network service storehouse, there is process, the Asynchronous loading of little picture and caching of network request etc. Function, can help Android APP more easily to execute network operation, and more rapid efficient.
Step S36, content provides assembly that content corresponding with this URI is sent to H5 layer.
Wherein, when content provides assembly to be made a look up in local cache according to URI, if on existing in local cache During the content stated, directly can obtain the above from local cache and be sent to H5 layer.Or,
If there is no when, content provide assembly can obtain the above from server end and store local cache In, and the above is sent to H5 layer.It is understood that content provides assembly to obtain the above from server end Afterwards, the above is stored the step of local cache and the step that the above is sent to H5 does not have the restriction in sequential Relation.For example, content provides assembly can obtain above-mentioned interior from local cache after the above is stored local cache Hold and be sent to H5 layer, or, content provides assembly after server end gets the above, and can pass through paths will It stores in local cache, sends it to H5 layer by another paths.
Step S37, the content that the display of H5 layer obtains.
It is understood that not doing the part of specified otherwise in the present embodiment, may refer to the correlation in above-described embodiment Description, here no longer describes in detail.
In the present embodiment, content is called to provide assembly obtaining browser application from local cache by URI Content, the content of realization acquisition browser application from local cache that can be convenient, flexible, and simplify the generation of H5 layer Code is write.Further, when the present embodiment calls content to provide assembly using URI, the process to full page can be not limited to, The caching respectively to various pieces content in the page can be realized it is not necessary to caching and refreshing full page, thus more flexible Efficiently, Consumer's Experience is also more preferable.Further, provide assembly to obtain and cache contents from server end by content, can make The Cache Framework increased income in primary (native) layer ARIXTRA end, function is more powerful, and controllable content is also more.
Fig. 4 is a kind of device block diagram of the content of acquisition browser application according to an exemplary embodiment. With reference to Fig. 4, this device 40 includes:Determining module 41, calling module 42 and acquisition module 43.
Determining module 41, for determining the URI of content to be loaded in browser application;
Calling module 42, is used for calling content corresponding with described URI to provide assembly;
Acquisition module 43, for providing assembly to know that in local cache, presence is corresponding with described URI by described content During content, obtain content corresponding with described URI from local cache.
In some embodiments, referring to Fig. 5, this device 40 also includes:
Memory module 44, for by described content provide assembly know do not exist in local cache corresponding with described URI Content when, by described content provide assembly from server end obtain content corresponding with described URI, and will acquisition content It is stored in local cache.
In some embodiments, described memory module 44 is further used for:
There is provided assembly by described content, using Cache Framework, obtain content corresponding with described URI from server end, And the content of acquisition is stored in local cache.
In some embodiments, described Cache Framework includes:
ARIXTRA volley framework.
In some embodiments, described content to be loaded includes:
Full page content, or, partial page content.
With regard to the device in above-described embodiment, wherein the concrete mode of modules execution operation is in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
In the present embodiment, content is called to provide assembly obtaining browser application from local cache by URI Content, the content of realization acquisition browser application from local cache that can be convenient, flexible, and simplify the generation of H5 layer Code is write.Further, when calling content to provide assembly using URI, the process to full page can be not limited to, it is possible to achieve Caching respectively to various pieces content in the page is it is not necessary to caching and refreshing full page, thus more flexible and efficient, user Experience is also more preferable.Further, assembly is provided to obtain and cache contents from server end by content, it is possible to use primary layer is pacified The Cache Framework that Zhuo Duan increases income, function is more powerful, and controllable content is also more.
Fig. 6 is a kind of device frame of the content for obtaining browser application according to an exemplary embodiment Figure.This device can be mobile terminal 600.Mobile terminal 600 can be mobile phone, computer, digital broadcast terminal, message Transceiver, game console, tablet device, armarium, body-building equipment, personal digital assistant etc..
With reference to Fig. 6, mobile terminal 600 can include following one or more assemblies:Process assembly 602, memorizer 604, Power supply module 606, multimedia groupware 608, audio-frequency assembly 610, the interface 612 of input/output (I/O), sensor cluster 614, And communication component 616.
Process assembly 602 generally controls the integrated operation of mobile terminal 600, such as with display, call, and data is led to The associated operation of letter, camera operation and record operation.Process assembly 602 can include one or more processors 620 to hold Row instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 602 can include one or more moulds Block, is easy to the interaction between process assembly 602 and other assemblies.For example, process assembly 602 can include multi-media module, with Facilitate the interaction between multimedia groupware 608 and process assembly 602.
Memorizer 604 is configured to store various types of data to support the operation in mobile terminal 600.These data Example include on mobile terminal 600 operation any application program or method instruction, contact data, telephone directory Data, message, picture, video etc..Memorizer 604 can by any kind of volatibility or non-volatile memory device or it Combination realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable Except programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, soon Flash memory, disk or CD.
Power supply module 606 provides electric power for the various assemblies of mobile terminal 600.Power supply module 606 can include power supply pipe Reason system, one or more power supplys, and other generate, manage and distribute, with for mobile terminal 600, the assembly that electric power is associated.
Multimedia groupware 608 includes the screen of one output interface of offer between described mobile terminal 600 and user. In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touches Sensor is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sensing touch or slip The border of action, but also the detection persistent period related to described touch or slide and pressure.In certain embodiments, Multimedia groupware 608 includes a front-facing camera and/or post-positioned pick-up head.When mobile terminal 600 is in operator scheme, such as clap When taking the photograph pattern or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each is preposition Photographic head and post-positioned pick-up head can be the optical lens system of a fixation or have focusing and optical zoom capabilities.
Audio-frequency assembly 610 is configured to output and/or input audio signal.For example, audio-frequency assembly 610 includes a Mike Wind (MIC), when mobile terminal 600 is in operator scheme, during as call model, logging mode and speech recognition mode, mike It is configured to receive external audio signal.The audio signal being received can be further stored in memorizer 604 or via logical Letter assembly 616 sends.In certain embodiments, audio-frequency assembly 610 also includes a speaker, for exports audio signal.
, for providing interface between process assembly 602 and peripheral interface module, above-mentioned peripheral interface module can for I/O interface 612 To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 614 includes one or more sensors, for providing the state of various aspects for mobile terminal 600 Assessment.For example, sensor cluster 614 can detect/the closed mode of opening of mobile terminal 600, the relative localization of assembly, example If described assembly is the display of mobile terminal 600 and keypad, sensor cluster 614 can also detect mobile terminal 600 or The position change of 600 1 assemblies of mobile terminal, user is presence or absence of with what mobile terminal 600 contacted, mobile terminal 600 Orientation or the temperature change of acceleration/deceleration and mobile terminal 600.Sensor cluster 614 can include proximity transducer, is configured It is used for the presence of object near the detection when not having any physical contact.Sensor cluster 614 can also include optical sensor, As CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 614 also may be used To include acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between mobile terminal 600 and other equipment. Mobile terminal 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.Show at one In example property embodiment, communication component 616 receives broadcast singal or the broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, described communication component 616 also includes near-field communication (NFC) module, short to promote Cheng Tongxin.For example, RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, mobile terminal 600 can be by one or more application specific integrated circuits (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing said method:Determine browser The URI of content to be loaded in application program;Content corresponding with described URI is called to provide assembly;By described content offer group When part knows presence content corresponding with described URI in local cache, obtain corresponding with described URI interior from local cache Hold.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided As included the memorizer 604 instructing, above-mentioned instruction can be executed by the processor 620 of mobile terminal 600 to complete said method:Really Determine the URI of content to be loaded in browser application;The content offer group that Android platform corresponding with described URI provides is provided Part;When providing assembly to know presence content corresponding with described URI in local cache by described content, obtain from local cache Take content corresponding with described URI.For example, described non-transitorycomputer readable storage medium can be that ROM, random access memory are deposited Reservoir (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
In the present embodiment, content is called to provide assembly obtaining browser application from local cache by URI Content, the content of realization acquisition browser application from local cache that can be convenient, flexible, and simplify the generation of H5 layer Code is write.Further, when calling content to provide assembly using URI, the process to full page can be not limited to, it is possible to achieve Caching respectively to various pieces content in the page is it is not necessary to caching and refreshing full page, thus more flexible and efficient, user Experience is also more preferable.Further, assembly is provided to obtain and cache contents from server end by content, it is possible to use primary layer is pacified The Cache Framework that Zhuo Duan increases income, function is more powerful, and controllable content is also more.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the disclosure Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations are followed the general principle of the disclosure and are included the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments be considered only as exemplary, the true scope of the disclosure and spirit by following Claim is pointed out.
It should be appreciated that the disclosure is not limited to be described above and precision architecture illustrated in the accompanying drawings, and And various modifications and changes can carried out without departing from the scope.The scope of the present disclosure only to be limited by appended claim.

Claims (11)

1. a kind of method of the content obtaining browser application is it is characterised in that include:
Determine the Uniform Resource Identifier URI of content to be loaded in browser application;
Content corresponding with described URI is called to provide assembly;
When providing assembly to know presence content corresponding with described URI in local cache by described content, from local cache Obtain content corresponding with described URI.
2. method according to claim 1 is it is characterised in that also include:
By described content provide assembly know there is not content corresponding with described URI in local cache when, by described interior Hold and provide assembly to obtain content corresponding with described URI from server end, and the content of acquisition is stored in local cache.
3. method according to claim 2 is it is characterised in that described provide assembly to obtain from server end by described content Take content corresponding with described URI, and the content of acquisition is stored in local cache, including:
There is provided assembly by described content, using Cache Framework, obtain content corresponding with described URI from server end, and will The content obtaining is stored in local cache.
4. method according to claim 3 is it is characterised in that described Cache Framework includes:
ARIXTRA volley framework.
5. the method according to any one of claim 1-3 is it is characterised in that described content to be loaded includes:
Full page content, or, partial page content.
6. a kind of device of the content obtaining browser application is it is characterised in that include:
Determining module, for determining the Uniform Resource Identifier URI of content to be loaded in browser application;
Calling module, is used for calling content corresponding with described URI to provide assembly;
Acquisition module, during for providing assembly to know presence content corresponding with described URI in local cache by described content, Content corresponding with described URI is obtained from local cache.
7. device according to claim 6 is it is characterised in that also include:
Memory module, for providing assembly to know there is not content corresponding with described URI in local cache by described content When, provide assembly to obtain content corresponding with described URI from server end by described content, and the content of acquisition is stored in In local cache.
8. device according to claim 7 is it is characterised in that described memory module is further used for:
There is provided assembly by described content, using Cache Framework, obtain content corresponding with described URI from server end, and will The content obtaining is stored in local cache.
9. device according to claim 8 is it is characterised in that described Cache Framework includes:
ARIXTRA volley framework.
10. the device according to any one of claim 6-9 is it is characterised in that described content to be loaded includes:
Full page content, or, partial page content.
A kind of 11. devices of the content for obtaining browser application are it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Determine the Uniform Resource Identifier URI of content to be loaded in browser application;
Content corresponding with described URI is called to provide assembly;
When providing assembly to know presence content corresponding with described URI in local cache by described content, from local cache Obtain content corresponding with described URI.
CN201610877271.4A 2016-09-30 2016-09-30 Method and device for acquiring content of browser application program Pending CN106407458A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610877271.4A CN106407458A (en) 2016-09-30 2016-09-30 Method and device for acquiring content of browser application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610877271.4A CN106407458A (en) 2016-09-30 2016-09-30 Method and device for acquiring content of browser application program

Publications (1)

Publication Number Publication Date
CN106407458A true CN106407458A (en) 2017-02-15

Family

ID=59228556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610877271.4A Pending CN106407458A (en) 2016-09-30 2016-09-30 Method and device for acquiring content of browser application program

Country Status (1)

Country Link
CN (1) CN106407458A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911536A (en) * 2017-10-27 2018-04-13 努比亚技术有限公司 A kind of across application program access method, equipment and computer-readable recording medium
CN108804160A (en) * 2018-06-14 2018-11-13 广州华多网络科技有限公司 Interface call method and device
CN110427586A (en) * 2019-07-29 2019-11-08 苏州亿歌网络科技有限公司 A kind of page display method, device, equipment and storage medium
CN111898053A (en) * 2020-07-31 2020-11-06 平安普惠企业管理有限公司 Page browsing method, device, equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843437A (en) * 2012-09-17 2012-12-26 北京星网锐捷网络技术有限公司 Conversion method and device for webpage application and network device
CN104808971A (en) * 2014-01-24 2015-07-29 北京三星通信技术研究有限公司 Network application program manager, method, device and mobile terminal
US20160127440A1 (en) * 2014-10-29 2016-05-05 DLVR, Inc. Configuring manifest files referencing infrastructure service providers for adaptive streaming video

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843437A (en) * 2012-09-17 2012-12-26 北京星网锐捷网络技术有限公司 Conversion method and device for webpage application and network device
CN104808971A (en) * 2014-01-24 2015-07-29 北京三星通信技术研究有限公司 Network application program manager, method, device and mobile terminal
US20160127440A1 (en) * 2014-10-29 2016-05-05 DLVR, Inc. Configuring manifest files referencing infrastructure service providers for adaptive streaming video

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911536A (en) * 2017-10-27 2018-04-13 努比亚技术有限公司 A kind of across application program access method, equipment and computer-readable recording medium
CN107911536B (en) * 2017-10-27 2020-09-29 商机盒子(北京)科技有限公司 Cross-application access method, device and computer readable storage medium
CN108804160A (en) * 2018-06-14 2018-11-13 广州华多网络科技有限公司 Interface call method and device
CN110427586A (en) * 2019-07-29 2019-11-08 苏州亿歌网络科技有限公司 A kind of page display method, device, equipment and storage medium
CN111898053A (en) * 2020-07-31 2020-11-06 平安普惠企业管理有限公司 Page browsing method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN105847430B (en) Mix application page data access method and device
CN106126685B (en) Page loading method and device
CN108008955B (en) Method and device for displaying user-defined control information
CN103916468B (en) Method for upgrading system, terminal, server and upgrade-system
CN107315791A (en) Static resource caching method, device and computer-readable recording medium
CN106407458A (en) Method and device for acquiring content of browser application program
CN103927081A (en) Method and device for processing notification events
CN106454392A (en) Live broadcast processing method, device and terminal
CN107423394A (en) Page display method and device
CN108874496A (en) Application management method, device, terminal, server and storage medium
CN106598677A (en) Installation package downloading method and device
CN113076504B (en) Skeleton screen generation method, device, equipment and storage medium
CN106775248A (en) Push the methods of exhibiting and device of content
CN105808305A (en) Static resource loading method and device
CN106095455A (en) A kind of application update method and device
CN105930213A (en) Application running method and apparatus
CN106648730A (en) Processing method and device of abnormal application
CN107423218A (en) Application testing method, device and terminal
CN107395624B (en) Information processing method and device
CN104063424B (en) Web page picture shows method and demonstration device
CN106547597A (en) The control method and device of application program update
CN106708967A (en) Page display method and device
CN105808767A (en) Data updating method and apparatus
CN107632835A (en) Using installation method and device
CN106055720A (en) Webpage displaying method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170215

RJ01 Rejection of invention patent application after publication