How to get the data from the internet more efficiently (Android)?
===

In my app, I  make a request from a public URL, and then open the source code of the web page, finally, I  extract the information that I want from the source code. I got no problem with this entire process. However, it takes so long to load up the information I want. Is there any other efficient way I can do??  thanks for all.

public class GetMethodEx {

	public String getInternetData(String currentUrl) throws Exception{
		BufferedReader in = null;
		String data = null;
		try{
			HttpClient client = new DefaultHttpClient();
			URI website = new URI(currentUrl);
			HttpGet request = new HttpGet();
			request.setURI(website);
			HttpResponse response = client.execute(request);
			in = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
			StringBuffer sb = new StringBuffer("");
			String l = "";
			String nl = System.getProperty("line.separator");
			while((l = in.readLine()) !=null){
				sb.append(l + nl);
			}
			in.close();
			data = sb.toString();
			return data;
		}finally{
			if (in != null){
				try{
					in.close();
					return data;
				}catch (Exception e){
					e.printStackTrace();
				}
			}
		}
	}
	
}

