Method and device for picture loading based on Android system

A picture loading and picture technology, applied in the program control device, program loading/starting, etc., can solve problems such as insufficient memory, no response, slow program running, etc., to avoid repeated downloads, enhance user experience, and realize fast calling Effect

Active Publication Date: 2012-07-04
TCL CORPORATION
View PDF3 Cites 53 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The Android system limits the maximum memory of each process to 16M. In some applications with many pictures, such as: picture browsing and online display of posters, the problem of out of memory (out of memory) is often encountered. At this time, The process of loading images is slow and the user experience is poor
[0003] In the prior art, one method is to solve this problem by increasing the maximum memory limit of the Android system for each process, but this solution requires sufficient memory hardware of the Android system; and in actual products, the system usually needs to run simultaneously Multiple applications that take up a large amount of memory can easily lead to insufficient system memory and slow running of the program
[0004] In addition, there is another way to release memory by continuously manually calling the java garbage collection mechanism. Since the thread performing garbage collection is a low-priority thread, in the life cycle of a Java program, it can only be used when the memory is free. Only when it has a chance to run, it cannot be enforced, so when the application actively calls, if the system is busy or does not meet the garbage collection conditions, the java garbage collection mechanism will not get a response, and the system still waits for a long time for the garbage collection program to run. It will cause memory overflow, so this method cannot fundamentally solve the problem

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
  • Method and device for picture loading based on Android system
  • Method and device for picture loading based on Android system
  • Method and device for picture loading based on Android system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] In order to make the object, technical solution and advantages of the present invention more clear and definite, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0030] See figure 1 , figure 1 It is an overall flow chart of a preferred embodiment of the method for loading pictures based on the Android system in the present invention. The picture loading method based on the Android system provided by the present invention, such as figure 1 shown, including the following steps:

[0031] S100, issuing an instruction for the image loading task, and initializing the soft reference for storing the image;

[0032] Specifically, before step S100, a preset step may also be included, specifically including the steps of creating a data structure of pict...

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 method and a device for picture loading based on an Android system. The method includes: A, sending out an order of a picture loading task and initializing soft references of a stored picture; B, judging whether the picture to be displayed is stored in the soft references or not; C, if not, running a picture loading thread for loading, and if yes, directly performing the step F; D, if the memory is insufficient, automatically recovering the picture stored in the soft references until the memory is sufficient; E, storing the picture in the soft references when the picture to be displayed is loaded; and F, directly reading the picture to be displayed from the soft references and displaying the picture. Using the method and the device for picture loading based on the Android system can avoid repeated picture loading to realize rapid picture calling, dependence on the memory is reduced, the device can be operated smoothly in low-performance systems, and user experience can be enhanced.

Description

technical field [0001] The invention relates to the application field of the Android system, in particular to an Android system-based image loading method and image loading device. Background technique [0002] The Android system limits the maximum memory of each process to 16M. In some applications with many pictures, such as: picture browsing and online display of posters, the problem of out of memory (out of memory) is often encountered. At this time, The process of loading images is slow and the user experience is poor. [0003] In the prior art, one method is to solve this problem by increasing the maximum memory limit of the Android system for each process, but this solution requires sufficient memory hardware of the Android system; and in actual products, the system usually needs to run simultaneously Multiple applications that take up a large amount of memory can easily lead to insufficient system memory and slow running of the program. [0004] In addition, there ...

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): G06F9/445
Inventor 侯军红
Owner TCL CORPORATION
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