Android global variable in thread
===

I have a problem. Here's my code:

    public String getXmlFromUrl(String url) {
		String xml = null;

			new Thread(new Runnable() {

		        @Override
		        public void run() {
		        	try {
		            // defaultHttpClient
					DefaultHttpClient httpClient = new DefaultHttpClient();
					HttpGet httpGet = new HttpGet(url);

					HttpResponse httpResponse = httpClient.execute(httpGet);
					HttpEntity httpEntity = httpResponse.getEntity();
					xml = EntityUtils.toString(httpEntity);
		        	} catch (UnsupportedEncodingException e) {
		    			e.printStackTrace();
		    		} catch (ClientProtocolException e) {
		    			e.printStackTrace();
		    		} catch (IOException e) {
		    			e.printStackTrace();
		    		}
		        }
		    }).run();
		// return XML
		return xml;
	}
So, how can I use url in my Thread and how can I return xml?

Thank you for your help