CN105550245A - Optimization system and method for network picture loading and caching based on Android platform - Google Patents
Optimization system and method for network picture loading and caching based on Android platform Download PDFInfo
- Publication number
- CN105550245A CN105550245A CN201510898111.3A CN201510898111A CN105550245A CN 105550245 A CN105550245 A CN 105550245A CN 201510898111 A CN201510898111 A CN 201510898111A CN 105550245 A CN105550245 A CN 105550245A
- Authority
- CN
- China
- Prior art keywords
- network picture
- module
- network
- local cache
- picture
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Abstract
The invention discloses an optimization system and method for network picture loading and caching based on an Android platform. The optimization system comprises a network picture resource URL (Uniform Resource Locator), a network picture asynchronous loading module, a local cache module, a getview method operation module and a display module, wherein the network picture asynchronous loading module, the local cache module, the getview method operation module and the display module are orderly electrically connected with each other; the network picture asynchronous loading module is used for loading network picture information from the network picture resource URL, and transmitting the network picture information to the local cache module; the local cache module stores the network picture information; the getview method operation module is used for obtaining a manner of acquiring network pictures through a getview method operation; and the display module is used for displaying network pictures loaded by the network picture asynchronous loading module or network pictures in the local cache module. The optimization system and method for network picture loading and caching based on the Android platform provided by the invention improve the speed and fluency of picture loading and displaying of Android equipment, reduce the use of traffic, and finally quickly and completely present the pictures.
Description
Technical field
The present invention relates to Android platform network field, particularly relate to a kind of loading based on Android platform network picture and the optimization system of buffer memory and method.
Background technology
Along with Android technology is ripe all the more, the equipment of many installation Android platform enters daily life.In the process of routine use Android device, the equipment such as mobile phone application, wrist-watch, panel computer, pass to user by word, picture by information.Because picture self is directly perceived, three-dimensional, details characteristic clearly, and the popularity that camera mobile phone is universal at present, picture also becomes the most common means that people use Android device transmission, obtaining information.Therefore, the performance index such as fluency of load time of network picture, traffic consumes and display, all govern the development of a product, is also the basic demand of user for this series products.How can load networks picture rapidly in Android platform, smooth presents to user and uses relatively less flow, is exactly prior art problem in urgent need to solve.
Summary of the invention
For the weak point that prior art exists, the object of the present invention is to provide a kind of loading based on Android platform network picture and the optimization system of buffer memory and method, improve the loading of Android device picture, the speed shown and fluency, reduce the use of flow, and finally picture is quick, completely in the form of a list to present.
Object of the present invention is achieved through the following technical solutions:
A kind ofly to load and the optimization system of buffer memory based on Android platform network picture, comprise network picture resource URL, it is characterized in that: also comprise network picture Asynchronous loading module, local cache module, getview method computing module and display module, described network picture Asynchronous loading module, local cache module, getview method computing module and display module are electrically connected successively; Described network picture Asynchronous loading module for loading the network pictorial information come from network picture resource URL, and by this network picture information transmission in local cache module; Described local cache module is for storing the network pictorial information coming from network picture Asynchronous loading module transfer and come; Described getview method computing module is used for drawing by the computing of getview method the mode obtaining network picture: be by the new network picture of network picture Asynchronous loading module loading, or directly transferred the network picture stored by local cache module; Described display module is for showing the network picture in the network picture of network picture Asynchronous loading module loading or local cache module.
This optimization system also comprises weight mark queue module, and described weight mark queue module is electrically connected with local cache module, getview method computing module respectively; Described weight mark queue module is used for being about to be shown according to network picture once correspondingly increasing weight, or sets its weight size according to user; When the data of local cache module stores are greater than the upper limit threshold that setting stores, described weight mark queue module can the weight size corresponding to network picture carry out arranging and the network picture filtering out weighted value low is cleared up.
Load and the optimization method of buffer memory based on Android platform network picture, its method step is as follows:
A, the application of startup Android platform, Android platform application comes from word, the network picture of network picture resource URL by network picture Asynchronous loading module loading;
The network picture of record is transferred in local cache module by B, described network picture Asynchronous loading module, and network picture and corresponding network picture resource URL information one_to_one corresponding store by local cache module in time;
C, described getview method computing module are by the computing of getview method and obtain network picture according to the following two kinds mode: first kind of way is when network picture and corresponding network picture resource URL information are not stored in local cache module, then by the network picture that network picture Asynchronous loading module loading is new, and according to step B, network picture and corresponding network picture resource URL information one_to_one corresponding are stored in local cache module; The second way is when network picture and corresponding network picture resource URL information corresponding stored are in local cache module, will directly be transferred the network picture stored by local cache module;
Network picture in the network picture of D, described display module display network picture Asynchronous loading module loading or local cache module.
In order to realize this optimization method better, this optimization method also comprises step e between step C and step D:
E, described weight mark queue module are about to according to network picture be shown the weight once correspondingly increasing network picture, or set its weight size according to user, all weight sizes being stored in network picture in local cache module of weight mark queue module record; By the upper limit threshold that weight mark queue module or ground cache module setting store, when the data of local cache module stores are greater than the upper limit threshold that setting stores, described weight mark queue module can the weight size corresponding to network picture carry out arranging and the network picture filtering out weighted value low is cleared up.
The present invention comparatively prior art compares, and has the following advantages and beneficial effect:
Invention increases the loading of Android device picture, the speed shown and fluency, reduce the use of flow, and quick, complete the presenting of picture the most at last.
Accompanying drawing explanation
Fig. 1 is structural representation of the present invention.
Embodiment
Below in conjunction with embodiment, the present invention is described in further detail:
Embodiment
As shown in Figure 1, a kind ofly to load and the optimization system of buffer memory based on Android platform network picture, comprise network picture resource URL, network picture Asynchronous loading module, local cache module, getview method computing module and display module, described network picture Asynchronous loading module, local cache module, getview method computing module and display module are electrically connected successively; Described network picture Asynchronous loading module for loading the network pictorial information come from network picture resource URL, and by this network picture information transmission in local cache module; Described local cache module is for storing the network pictorial information coming from network picture Asynchronous loading module transfer and come; Described getview method computing module is used for drawing by the computing of getview method the mode obtaining network picture: be by the new network picture of network picture Asynchronous loading module loading, or directly transferred the network picture stored by local cache module; Described display module is for showing the network picture in the network picture of network picture Asynchronous loading module loading or local cache module.
According to the preferred a kind of embodiment of the present invention, this optimization system also comprises weight mark queue module, and described weight mark queue module is electrically connected with local cache module, getview method computing module respectively; Described weight mark queue module is used for being about to be shown according to network picture once correspondingly increasing weight, or sets its weight size according to user; When the data of local cache module stores are greater than the upper limit threshold that setting stores, described weight mark queue module can the weight size corresponding to network picture carry out arranging and the network picture filtering out weighted value low is cleared up.
Load and the optimization method of buffer memory based on Android platform network picture, its method step is as follows:
A, the application of startup Android platform, Android platform application comes from word, the network picture of network picture resource URL by network picture Asynchronous loading module loading;
The network picture of record is transferred in local cache module by B, described network picture Asynchronous loading module, and network picture and corresponding network picture resource URL information one_to_one corresponding store by local cache module in time;
C, described getview method computing module are by the computing of getview method and obtain network picture according to the following two kinds mode: first kind of way is when network picture and corresponding network picture resource URL information are not stored in local cache module, then by the network picture that network picture Asynchronous loading module loading is new, and according to step B, network picture and corresponding network picture resource URL information one_to_one corresponding are stored in local cache module; The second way is when network picture and corresponding network picture resource URL information corresponding stored are in local cache module, will directly be transferred the network picture stored by local cache module;
Network picture in the network picture of D, described display module display network picture Asynchronous loading module loading or local cache module.
According to the preferred a kind of embodiment of the present invention, this optimization method also comprises step e between step C and step D:
E, described weight mark queue module are about to according to network picture be shown the weight once correspondingly increasing network picture, or set its weight size according to user, all weight sizes being stored in network picture in local cache module of weight mark queue module record; By the upper limit threshold that weight mark queue module or ground cache module setting store, when the data of local cache module stores are greater than the upper limit threshold that setting stores, described weight mark queue module can the weight size corresponding to network picture carry out arranging and the network picture filtering out weighted value low is cleared up.
The present invention is applied in Android platform, usually load networks picture in Android platform, needs to set up network and connects, then transmit image data, after equipment receives data, after also needing to do the process such as recovery, just can be presented on user at the moment.Especially for the picture in list, when it slips in screen from screen edge, need re invocation system getView method, cause the second load of picture, the words that this process is dealt with improperly, load time long, the problem such as traffic consumes is large can be caused, affect the experience of user and promote unnecessary traffic overhead.The present invention loads to improve Android device picture further, the speed of display and fluency, reduces the use of flow, and finally picture is quick, completely in the form of a list to present.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.
Claims (4)
1. one kind loads and the optimization system of buffer memory based on Android platform network picture, comprise network picture resource URL, it is characterized in that: also comprise network picture Asynchronous loading module, local cache module, getview method computing module and display module, described network picture Asynchronous loading module, local cache module, getview method computing module and display module are electrically connected successively; Described network picture Asynchronous loading module for loading the network pictorial information come from network picture resource URL, and by this network picture information transmission in local cache module; Described local cache module is for storing the network pictorial information coming from network picture Asynchronous loading module transfer and come; Described getview method computing module is used for drawing by the computing of getview method the mode obtaining network picture: be by the new network picture of network picture Asynchronous loading module loading, or directly transferred the network picture stored by local cache module; Described display module is for showing the network picture in the network picture of network picture Asynchronous loading module loading or local cache module.
2. load and the optimization system of buffer memory based on Android platform network picture according to according to claim 1, it is characterized in that: also comprise weight mark queue module, described weight mark queue module is electrically connected with local cache module, getview method computing module respectively; Described weight mark queue module is used for being about to be shown according to network picture once correspondingly increasing weight, or sets its weight size according to user; When the data of local cache module stores are greater than the upper limit threshold that setting stores, described weight mark queue module can the weight size corresponding to network picture carry out arranging and the network picture filtering out weighted value low is cleared up.
3. load and the optimization method of buffer memory based on Android platform network picture, its method step is as follows:
A, the application of startup Android platform, Android platform application comes from word, the network picture of network picture resource URL by network picture Asynchronous loading module loading;
The network picture of record is transferred in local cache module by B, described network picture Asynchronous loading module, and network picture and corresponding network picture resource URL information one_to_one corresponding store by local cache module in time;
C, described getview method computing module are by the computing of getview method and obtain network picture according to the following two kinds mode: first kind of way is when network picture and corresponding network picture resource URL information are not stored in local cache module, then by the network picture that network picture Asynchronous loading module loading is new, and according to step B, network picture and corresponding network picture resource URL information one_to_one corresponding are stored in local cache module; The second way is when network picture and corresponding network picture resource URL information corresponding stored are in local cache module, will directly be transferred the network picture stored by local cache module;
Network picture in the network picture of D, described display module display network picture Asynchronous loading module loading or local cache module.
4. load and the optimization method of buffer memory based on Android platform network picture according to according to claim 3, it is characterized in that: between step C and step D, also comprise step e:
E, described weight mark queue module are about to according to network picture be shown the weight once correspondingly increasing network picture, or set its weight size according to user, all weight sizes being stored in network picture in local cache module of weight mark queue module record; By the upper limit threshold that weight mark queue module or ground cache module setting store, when the data of local cache module stores are greater than the upper limit threshold that setting stores, described weight mark queue module can the weight size corresponding to network picture carry out arranging and the network picture filtering out weighted value low is cleared up.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510898111.3A CN105550245A (en) | 2015-12-08 | 2015-12-08 | Optimization system and method for network picture loading and caching based on Android platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510898111.3A CN105550245A (en) | 2015-12-08 | 2015-12-08 | Optimization system and method for network picture loading and caching based on Android platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105550245A true CN105550245A (en) | 2016-05-04 |
Family
ID=55829434
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510898111.3A Pending CN105550245A (en) | 2015-12-08 | 2015-12-08 | Optimization system and method for network picture loading and caching based on Android platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105550245A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105872103A (en) * | 2016-06-12 | 2016-08-17 | 武汉斗鱼网络科技有限公司 | Traffic saving showing and interacting method and system for network pictures in IOS |
CN106155591A (en) * | 2016-07-25 | 2016-11-23 | 广东亿迅科技有限公司 | A kind of method of image cache |
CN108595698A (en) * | 2018-05-09 | 2018-09-28 | 平安普惠企业管理有限公司 | picture loading method, terminal device and medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102682026A (en) * | 2011-03-16 | 2012-09-19 | 腾讯科技(深圳)有限公司 | Photo browsing method and client side |
CN103246612A (en) * | 2012-02-13 | 2013-08-14 | 阿里巴巴集团控股有限公司 | Method and device for data caching |
CN103617165A (en) * | 2013-10-22 | 2014-03-05 | 小米科技有限责任公司 | Picture loading method, device and terminal |
CN103678293A (en) * | 2012-08-29 | 2014-03-26 | 百度在线网络技术(北京)有限公司 | Data storage method and device |
CN103760966A (en) * | 2013-05-02 | 2014-04-30 | 乐视网信息技术(北京)股份有限公司 | Picture buffering implementation method |
WO2014126898A1 (en) * | 2013-02-12 | 2014-08-21 | BackPeddle, LLC | Sharing content in social networks |
CN104252379A (en) * | 2013-06-25 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Picture thumbnail display method and device |
US20150128121A1 (en) * | 2013-11-06 | 2015-05-07 | Improvement Interactive, LLC | Dynamic application version selection |
-
2015
- 2015-12-08 CN CN201510898111.3A patent/CN105550245A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102682026A (en) * | 2011-03-16 | 2012-09-19 | 腾讯科技(深圳)有限公司 | Photo browsing method and client side |
CN103246612A (en) * | 2012-02-13 | 2013-08-14 | 阿里巴巴集团控股有限公司 | Method and device for data caching |
CN103678293A (en) * | 2012-08-29 | 2014-03-26 | 百度在线网络技术(北京)有限公司 | Data storage method and device |
WO2014126898A1 (en) * | 2013-02-12 | 2014-08-21 | BackPeddle, LLC | Sharing content in social networks |
CN103760966A (en) * | 2013-05-02 | 2014-04-30 | 乐视网信息技术(北京)股份有限公司 | Picture buffering implementation method |
CN104252379A (en) * | 2013-06-25 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Picture thumbnail display method and device |
CN103617165A (en) * | 2013-10-22 | 2014-03-05 | 小米科技有限责任公司 | Picture loading method, device and terminal |
US20150128121A1 (en) * | 2013-11-06 | 2015-05-07 | Improvement Interactive, LLC | Dynamic application version selection |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105872103A (en) * | 2016-06-12 | 2016-08-17 | 武汉斗鱼网络科技有限公司 | Traffic saving showing and interacting method and system for network pictures in IOS |
CN105872103B (en) * | 2016-06-12 | 2019-05-17 | 武汉斗鱼网络科技有限公司 | The displaying exchange method and system of capaciated flow network picture are saved in IOS |
CN106155591A (en) * | 2016-07-25 | 2016-11-23 | 广东亿迅科技有限公司 | A kind of method of image cache |
CN108595698A (en) * | 2018-05-09 | 2018-09-28 | 平安普惠企业管理有限公司 | picture loading method, terminal device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8087053B2 (en) | System and method for transmitting an animated figure | |
CN103345493B (en) | Method that content of text on mobile terminal shows, Apparatus and system | |
CN102938792B (en) | Method and the server of image data are provided to computing terminal | |
US20150154149A1 (en) | Typesetting method, device and system | |
CN103391442A (en) | Rapid video image transmission compression algorithm based on regional division and difference comparison | |
CN104423804A (en) | Method and electronic device for displaying content | |
CN105550246A (en) | System and method for loading network picture under Android platform | |
CN101470729B (en) | Web page picture displaying method and device | |
CN103902318A (en) | Android platform based image loading method | |
CN106445129A (en) | Method, device and system for displaying panoramic picture information | |
CN105487640A (en) | Image pre-loading and caching method of Android watch | |
CN105550245A (en) | Optimization system and method for network picture loading and caching based on Android platform | |
CN105808307B (en) | Page display method and device | |
CN105761656A (en) | Opportunistic Compression For Display Self Refresh | |
CN107861878A (en) | The method, apparatus and equipment of java application performance issue positioning | |
CN112688991B (en) | Method for performing point cloud scanning operation, related apparatus and storage medium | |
CN104133869B (en) | A kind of Webpage method for refreshing | |
CN106933702A (en) | A kind of method of intelligent terminal storage space management, device and intelligent terminal | |
CN103002026B (en) | Method and the server of image data are provided to computing terminal | |
CN104079368B (en) | A kind of the test data transmission method and server of application software | |
WO2014117581A1 (en) | Method, system and mobile terminal for information displaying | |
CN108664486B (en) | Webpage texture memory management method and device | |
US10250515B2 (en) | Method and device for forwarding data messages | |
US20190097875A1 (en) | Information transmission, sending, and acquisition method and device | |
KR20150112247A (en) | Method for generating a thumbnail and electronic device thereof |
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: 20160504 |
|
RJ01 | Rejection of invention patent application after publication |