title: UnknownHostException (webservice http-get)
body: <p>I have this simple code, that makes a get to a webservice.
  For some reason it cant connect and gives the error in the log unknownHostException</p>
  
  <p>This is the code:</p>
  
  <pre><code>String URL = "http://services.sapo.pt/EPG/GetChannelList";
  String result = "";
  final String tag = "Data received: ";
  
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      final Button btnSearch = (Button)findViewById(R.id.btnSearch);
      btnSearch.setOnClickListener(new Button.OnClickListener(){
          public void onClick(View v) {
              callWebService();
          }
      });
  
  } // end onCreate()
  
  public void callWebService(){
      HttpClient httpclient = new DefaultHttpClient();
      HttpGet request = new HttpGet(URL);
      ResponseHandler&lt;String&gt; handler = new BasicResponseHandler();
  
      try {
          result = httpclient.execute(request, handler);
      } catch (ClientProtocolException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
  
      httpclient.getConnectionManager().shutdown();
      Log.i(tag, result);
  }
  </code></pre>
  
  <p>This is part of my manifest</p>
  
  <pre><code>&lt;permission android:name="android.permission.INTERNET"/&gt;
  
  &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
      &lt;activity android:name=".AndroidApp"
                android:label="@string/app_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>