ArchibaldX / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Use HttpURLConnection instead of HttpClient #273

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Google has indicated that developers should use HttpURLConnection instead of 
HttpClient, and that HttpClient will not receive further attention from them 
(in fact, HttpClient in Android is a pre-release of HttpClient 4.0, and is 
already woefully out of date). See 
http://android-developers.blogspot.com/2011/09/androids-http-clients.html

This seems to go opposite issue 212

Original issue reported on code.google.com by candrews...@gmail.com on 7 Nov 2011 at 3:32

GoogleCodeExporter commented 8 years ago
If you read the end of that blog article you'll see that which one is best 
depends on the SDK level, so perhaps we should use one or the other depending 
on that.

Original comment by neilboyd on 7 Nov 2011 at 5:49

GoogleCodeExporter commented 8 years ago
If you use HttpUrlConnection, and never use HttpClient, you can recommend that 
users use ICS's HttpResponseCache and/or the backport of ICS's 
HttpResponseCache which you can get from 
https://github.com/candrews/HttpResponseCache (which is in Maven, btw).

This seems like a more future-proof, more maintainable solution than the one 
currently employed.

Original comment by candrews...@gmail.com on 13 Feb 2012 at 12:56