Android SDK 4.0.3 is currently packaging Apache's HttpClient 4.1.1 library. I need to use some functionality which is there in the latest HttpClient 4.1.3 only.
- Is there a way I can update my SDK?
- Where can I know if there are any plans in the future SDKs to package the newer HttpClient?
- Is there any elegant work around? (I have already tried the httpclientandroidlib http://code.google.com/p/httpclientandroidlib - but I want to explore other options)
Any pointers appreciated. Thanks.

- 2,231
- 3
- 28
- 44
-
Unfortunately what Google ships with Android is a fork of an extremely old (pre BETA) version of Apache HttpClient. – ok2c Apr 24 '12 at 19:26
3 Answers
Is there a way I can update my SDK?
Only by building your own firmware and distributing that firmware to your own phones.
With Android, HttpClient is on the device, and for backwards compatibility, the core Android team has not updated HttpClient past the version it had back with Android 1.0.
Where can I know if there are any plans in the future SDKs to package the newer HttpClient?
You can get a job at Google, go work for the core Android team, and ask. Otherwise, Google makes very few announcements about Android changes.
That being said, since they have not updated it since Android 1.0, and since they do not recommend using HttpClient, the odds seem low to me that they will upgrade HttpClient at all.
Is there any elegant work around?
You linked to one, which does the only thing really possible -- refactor HttpClient into its own package, so it can work side-by-side with the version baked into Android. I have not tried this library, but if it works as advertised, it seems to do a very thorough job.

- 986,068
- 189
- 2,389
- 2,491
-
2Check out this link [Using newer version of HttpClient on Android (like 4.1.x)](http://ogrelab.ikratko.com/using-newer-version-of-httpclient-like-4-1-x/). – yorkw Apr 24 '12 at 23:17
httpclientandroid is good lib for android and is up to 4.l.3 as you requested. The logging implementing is a little funky. I found that i had to recompile the lib each time i wanted to cycle WIRE and HEADER loggers in and out of debug mode.

- 6,230
- 2
- 24
- 43