Hallo zusammen,
ich habe folgendes Problem:
ich greife in meiner App auf das Netzwerk zur -> 
Code
		
					
			try {
  		// defaultHttpClient
      	DefaultHttpClient httpClient = new DefaultHttpClient();
      	HttpPost httpPost = new HttpPost(url); 
      	HttpResponse httpResponse = httpClient.execute(httpPost);
      	HttpEntity httpEntity = httpResponse.getEntity();
      	xml = EntityUtils.toString(httpEntity); 
  	} catch (UnsupportedEncodingException e) {
//  		Toast.makeText(MainActivity.this, "Encoding Error", Toast.LENGTH_LONG).show();
  	} catch (ClientProtocolException e) {
//  		Toast.makeText(MainActivity.this, "Client Protocol Error", Toast.LENGTH_LONG).show();
  	} catch (IOException e) {
//  		Toast.makeText(MainActivity.this, "Bitte stellen Sie sicher, dass Sie mit dem Internet verbunden sind!", Toast.LENGTH_LONG).show();
  	}
	
			Alles anzeigen
	funktioniert auch bestens, solange ich mit folgendem Code die Policy auf dem Android ausheble.
Code
		
			if (android.os.Build.VERSION.SDK_INT > 9) {
        	StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
        	StrictMode.setThreadPolicy(policy);
	}
	
	wie kann ich den Fehler beheben ohne dieses Aushebeln der Policy?
Jens