http get android
<p>Can anyone tell me why this code dont work? </p>

<pre><code>import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URI;

import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.ResponseHandler;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.BasicResponseHandler;
import org.apache.http.impl.client.DefaultHttpClient;

public class getJsonBre {

    public String getInternetData(String URL) throws Exception{
        String response_str = "";
        try{
            HttpClient client = new DefaultHttpClient();

        HttpGet request = new HttpGet(URL);
        ResponseHandler&lt;String&gt; responseHandler = new BasicResponseHandler();
        response_str = client.execute(request, responseHandler);
        }
        catch(Exception e){
            e.printStackTrace();

        }
        return response_str;

    }
}
</code></pre>

<p>It returns empty string...
I added permission for internet in manifest file.</p>

<p>Anyway, I want to get some information from my site in json...</p>
