Network resource asynchronous loading method and device

A network resource, asynchronous loading technology, applied in electrical components, transmission systems, etc., can solve problems such as affecting user experience, difficult to predict time, and mobile phone users waiting for a long time, avoiding network resource access and saving Internet traffic. , avoid frequent effects

Inactive Publication Date: 2014-01-01
CHENGDU KINGSOFT DIGITAL ENTERTAINMENT +1
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] For the loading of other network resources such as audio resources or video resources, the above problems usually also exist, and the loading of network resources and the modification of the application interface are often carried out in the main thread of the program. In an environment with poor network conditions, This process is usually very slow, and it is difficult to predict the time required for completion. Mobile phone users usually wait for a long time because of the presentation of the interface effect, which seriously affects the user experience

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
  • Network resource asynchronous loading method and device
  • Network resource asynchronous loading method and device
  • Network resource asynchronous loading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] Embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

[0021] The flowchart of the method for asynchronously loading network resources provided by this embodiment is as follows: figure 1 As shown, it specifically includes the following steps:

[0022] Load network resources asynchronously;

[0023] Set the address of the network resource, and load the address through the loader;

[0024] Calculate the network resource address signature according to the address, verify the network resource signature, if there is the same signature, search for the cached network resource with the same signature in the local storage path; if there is no same signature, it means that there is no local cache For the same network resource, load the pre-set occupancy resource and open the network request to obtain the network address resource in the form of data stream. bit resource, and cache the network resource and the calcul...

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 network resource asynchronous loading method and device. According to the network resource asynchronous loading method and device, by verifying signatures of network resources, when that no same network resource in local caching exists is judged, firstly space occupying is carried out by the adoption of preset space-occupied resources, and after being loaded, the network resources are replaced, so that the situation that under an environment of poor network conditions, a mobile phone client waits for loading of the network resources for a long time, threads in a front end interface are blocked, and very unreasonable use experience is brought to a user is avoided. Meanwhile, the network resource asynchronous loading method provides the local caching of the network resources, frequent access for the network resources is avoided, and internet flow of a mobile phone is saved for the user.

Description

technical field [0001] The invention belongs to the technical field of smart phone application development, and in particular relates to an asynchronous loading method of network resources based on an android operating system. Background technique [0002] In the process of smartphone application development, developers often cannot prepare all the resources before the product is released. For example, for some game software, it is necessary to change the picture resources of the existing application in real time during the program release and running process. Or load a brand new image resource to use as the skin of the application or other front-end display effects. [0003] For the loading of other network resources such as audio resources or video resources, the above problems usually also exist, and the loading of network resources and the modification of the application interface are often carried out in the main thread of the program. In an environment with poor networ...

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
IPC IPC(8): H04L29/08
Inventor 蔡淼
Owner CHENGDU KINGSOFT DIGITAL ENTERTAINMENT
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