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

Cache-based list processing method on android platform

A processing method and caching technology, applied in the field of computer networks, can solve problems such as time-consuming list display, save resources, improve user experience, and improve efficiency.

Inactive Publication Date: 2015-06-17
AEROSPACE INFORMATION
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

List is a common control used by android to display collection data. When there is data in the collection that needs to be read from the network or database, the display of the list will be very time-consuming

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
  • Cache-based list processing method on android platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] In order to make the objectives, technical solutions, and advantages of the present invention clearer and more thorough, the following describes the cache-based list processing method under the android platform of the present invention in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0016] The cache-based list processing method under the android platform of the present invention, such as figure 1 As shown, including the following steps:

[0017] Step S100, set up two levels of cache: the first level cache LinkedHashMap ; Secondary cache ConcurrentHashMap > ;

[0018] Step S200, LinkedHashMap for the first level cache Keep the strong reference of Bitmap and control the size of the cache MAX_CAPACITY=10;

[0019] Step S300, when continuing to store data in the cache, put the least recent...

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 cache-based list processing method on an android platform. The cache-based list processing method on the android platform comprises the following steps that S100, two levels of cache are set, wherein the first level of cache is LinkedHashMap<String, Bitmap>, and the second level of cache is ConcurrentHashMap<String, SoftReference<Bitmap>>; S200, the first level of cache reserves the strong reference of Bitmap through the LinkedHashMap<String, Bitmap>, and the size of cache is controlled to be MAX_CAPACITY=10; S300, when data continue to be stored in the cache, the least and recently used elements in the first level of cache are put into the second level of cache ConcurrentHashMap<String, SoftReference<Bitmap>>, and SoftReference of Bitmap is reserved in the second level of cache. The user experience is improved, and resources are saved.

Description

Technical field [0001] The present invention relates to the technical field of computer networks, in particular to a cache-based list processing method under the android platform. Background technique [0002] Under the Android platform, cpu resources, memory resources, and network resources are all very tight resources. List is a common control used by android to display collection data. When there is data in the collection that needs to be read from the network or database, the display of the list will be very time-consuming. Summary of the invention [0003] The purpose of the present invention is to provide a cache-based list processing method under the android platform, which improves user experience and saves resources. [0004] A cache-based list processing method under the android platform provided for the purpose of the present invention includes the following steps: [0005] Step S100, set up two levels of cache: the first level cache LinkedHashMap <String,Bitmap> ; ...

Claims

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F12/08G06F9/44G06F12/0897
Inventor 王洪波周强杨奇陈皓张伟刘冬娜金钊
Owner AEROSPACE INFORMATION
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