Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Picture loading method of Android system

A picture loading and picture technology, applied in the field of communication, can solve problems such as slow loading speed, achieve the effect of reducing download traffic, reducing server pressure, and improving picture loading efficiency

Pending Publication Date: 2020-11-13
重庆帮企科技集团有限公司
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Local storage can cache a large number of pictures, but the loading speed is slower than memory cache

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
  • Picture loading method of Android system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention will be further described in detail below in conjunction with the accompanying drawings. In the description of the present invention, it should be understood that the orientations or positional relationships indicated by orientation words such as "up, down" and "top, bottom" are usually based on the orientations or positional relationships shown in the accompanying drawings, and are only for To facilitate the description of the present invention and to simplify the description, these orientation words do not indicate or imply that the device or element referred to must have a specific orientation or be constructed and operated in a specific orientation unless stated otherwise, and therefore cannot be construed as a reference to this invention Limitation of the protection scope of the invention; the orientation words "inside and outside" refer to the inside and outside relative to the outline of each component itself.

[0036] Such as figure 1 As s...

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 picture loading method of an Android system, which is used for loading a picture in a three-level caching mode, and comprises the following steps of: S1, judging whether thepicture is cached or not, and if so, directly reading and loading the picture from a cache; s2, creating a thread pool; s3, storing the data to a memory and a local; s4, searching whether the currentpicture is cached or not in a memory, and directly loading and displaying the picture if the current picture is cached; if the current picture is not cached exists, executing the next step; s5, locally searching whether the current picture is cached or not, if so, storing the picture into a memory for caching, and loading and displaying the picture; if not, executing the next step; and S6, downloading the picture from the network, then storing the picture locally, storing the picture in a memory cache, and then loading and displaying the picture. Through a three-level caching mode, the pictureloading efficiency is improved, the server pressure is reduced, and the downloading flow is reduced.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a picture loading method of an Android system. Background technique [0002] In current mobile devices, such as smartphones based on the Android system, an APP has a very high usage rate for image loading. Sometimes dozens of images need to be loaded on a page, and the reuse rate for images is also very high. High, for example: user's avatar, product picture, etc. In a list page, the reuse rate of pictures is also very high. When we slide the screen, the number of pictures will continue to increase, and the pictures that are removed from the screen are usually processed. At this time, the garbage collector will also think that you no longer hold references to these pictures, and thus perform GC (garbage collection) operations on these pictures. If in order to make the program run quickly and load pictures on the interface quickly, we need to consider that after some pict...

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): G06F16/957
CPCG06F16/9574
Inventor 李广黄杰
Owner 重庆帮企科技集团有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products