Problem using HTTPClient

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Problem using HTTPClient

Postby kameltreiber84 » Fri Feb 26, 2010 3:52 pm

Hi there.
I am a little bit confused about the apache HttpClient.

If I do this in a non android Java project everything works fine.

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. HttpClient client = new HttpClient();
  2.                 GetMethod get = new GetMethod("");
  3.                 try {
  4.                         client.executeMethod(get);
  5.                 } catch (Exception e) {
  6.                         e.printStackTrace();
  7.                 }
Parsed in 0.012 seconds, using GeSHi

If i do this in an android project i get Exceptions:
Code: Select all

Whats going wrong here?

Thanks and regards.
Junior Developer
Junior Developer
Posts: 18
Joined: Tue Jan 26, 2010 10:24 pm


Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 2 guests