Equivalent Class in Android
Is there and equivalent NSURLRequest
(iOS) in android? So i can extend my class and gets the 开发者_JAVA技巧utility methods? Thanks.
Apache HTTPClient
has fewer bugs on Eclair and Froyo. It is the best choice for these releases.
And according to the android team you should be using HttpURLConnection
on Gingerbread and better.
It has a pretty useful API that is just useful to develop a networking client application. It has improved response caching and improved compression technique on Android 2.3 and above. That reduces network use, improves speed and saves battery.
You may be looking for AndroidHttpClient.
I've not developed for iOS but looking at the summary of NSURLRequest I think you'll probably get by with the URL class: http://developer.android.com/reference/java/net/URL.html
精彩评论