i'm trying to do a HTTP POST to a URL. the backend requires a text field and a file. i'm using Android 4.1 (minSdkVersion = 8, targetSdkVersion = 15). i've seen a lot of examples on how to do this operation on android (Concise example of file upload via Java lib Apache Commons). however, i noticed that the PostMethod does not exist with the version of apache httpclient that comes with Android 4.1. my questions are as follows.
- which version of apache httpclient comes with Android 4.1?
- if i download the latest version of httpclient (v4.2.1), do i simply just copy/paste the jars into my /libs directory?
- how does android do class loading? how does android know that i'm using the newer httpclient and not what's in android.jar?
- does anyone know if the apache httpclient jars simply work "out-of-the-box" with android apps?
any help is appreciated.