To be able to upload files from an Android application and use the Multipart content type you need to add some additional jar files to your application. The files needed are apache-mime4j, httpclient, httpcore and httpmime. All are opensource projects built by the Apache foundation. Download the 4 files and add them to your project then you should be able to use the following code to post strings

