Any alternatives to CachingHttpClient for Android?

2019-03-19 09:17发布

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?

2条回答
Viruses.
2楼-- · 2019-03-19 09:48

I recieved an answer in another thread

I also found the HttpCache4J wich seems promising.

查看更多
迷人小祖宗
3楼-- · 2019-03-19 09:56

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

查看更多
登录 后发表回答