Hi,
So I have a API issue. So i am creating a class that utilizes AndroidHttpClient to download Bitmap images from my server. Problem is, it's API Level is 8 "http://developer.android.com/reference/android/net/http/AndroidHttpClient.html" and I want this to be used FROM API 1 and above, now i know i can use DefaultHttpClient (the API is Level 1) but is there a way i can use both, being distinguished by Build.VERSION.SDK (btw thanx for the quick respose, Konstantin Burov and iandisme).
So for example, if my device is 2.2 i use AndroidHttpClient, anything else use DefaultHttpClient.
Of Course if I import the library it will give me an error on any device 1.5 to 2.1.
Any Suggestions would greatly be appreciated, because in the future I would want to set other preferences based on API.
Thanks again