Timeline for Need an example of HttpResponseCache in Android
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 21, 2012 at 11:57 | comment | added | Marcus Forsell Stahre | With arbitrary data I meant arbitrary objects (you can't use HttpResponseCache as a general cache where you put in anything) - any data you receive using HttpUrlConnection will however be cached. So yes, your images will be cached. | |
Jul 21, 2012 at 6:55 | comment | added | Rasmus | The images I am talking of are the ones which are obtained from the HttpUrlConnection, I mean they are being downloaded from the net. It is not arbitrary data | |
Jul 20, 2012 at 19:06 | vote | accept | Rasmus | ||
Jul 21, 2012 at 6:53 | |||||
Jul 20, 2012 at 18:56 | comment | added | Marcus Forsell Stahre | If you install the HttpResponseCache, it will cache all responses that you get using HttpUrlConnection. That means that when you make the same request again, you can get a cached response immediately, without even sending anything over the network. | |
Jul 20, 2012 at 18:49 | comment | added | Rasmus | Could you please elaborate a little more on -->"When you enable HttpResponseCache, all HttpUrlConnection queries will be cached".. | |
Jul 20, 2012 at 18:45 | history | edited | Marcus Forsell Stahre | CC BY-SA 3.0 |
added 7 characters in body
|
Jul 20, 2012 at 18:44 | comment | added | Marcus Forsell Stahre |
Yes, I'm sorry - I shouldn't have typed it just from memory. What I meant is that actual Bitmap objects aren't stored in the cache. However, HTTP requests for images should be cached, if that's what you mean. Corrected my answer.
|
|
Jul 20, 2012 at 18:24 | comment | added | Rasmus | HttpResponseCache does not work with HttpClient.It works with HttpUrlConnection. Yes It automatically caches all my json etc.. But Does the HttpResponseCache implementation not use the DiskLruCache internally. If so cant it be used to cache Bitmaps too | |
Jul 20, 2012 at 18:21 | history | answered | Marcus Forsell Stahre | CC BY-SA 3.0 |