Why not just use the built-in http clients? They are optimized for Android 
and you don't bloat your app with extra dependencies like junit.
 See here for more information:  
http://android-developers.blogspot.com/2011/09/androids-http-clients.html 

Uwe

On Wednesday, June 20, 2012 8:12:26 AM UTC+2, bibble_235 wrote:
>
> Hi,
>
> I want to start writing Android apps and seemed to have fallen over on my 
> first one. I have a java program which consists of an activity which calls 
> another activity. This works fine and all is good. Now I want to connect to 
> a server and I have choosen to use apache commons-httpclient-3.1.jar. 
>
> Reading the documentation from apache it says I need as dependencies 
>
> commons-codec-1.2.jar and 
> commons-logging-1.0.4.jar
> junit- 3.8.1.jar
>
> http://hc.apache.org/httpclient-3.x/dependencies.html
>
> I added these to the build path. I am using eclipse 3.7.2 and Android 4.0.3
>
> Each time I run the software I get ClassNotFoundException. I understand 
> what this means but have no idea why it is happen. 
>
> - Is it ok to use commons-httpclient-3.1.jar does the android VM support 
> it?
> - is there an alternative
> - Is there something in the packaging I should be doing. I assumed this is 
> all done for me
> - Is there a way to understand which jar/class is missing
>
> *Class being instaniated is
> *
> import org.apache.commons.httpclient.HttpClient;
>
> public class TestClient extends HttpClient {
>
> }
>
> Thanks,
> Iain
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to