Any alternatives to CachingHttpClient for Android?

2019-03-19 09:19发布

问题:

I want to enable HttpCaching for my Android app, so I'm looking for a library project to depend upon. CachingHttpClient looks nice, but uses Apache HttpClient 4.1 and Android only includes 4.0

So, are there any other good http-cache projects for java that are usable on Android?

回答1:

If you're accessing a RESTful api you will likely want to implement a cache using a ContentProvider. The process and why you would want to do it this way is explained in quite a bit of detail here: http://www.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html



回答2:

I recieved an answer in another thread

I also found the HttpCache4J wich seems promising.