Monday 18 June 2012

Read Webpage in android


URL url = new URL("http://192.168.1.12:80/select.php?table="+Table+"&count="+Count+"&row="+Rows+"&con="+Condition);
System.out.println("http://192.168.1.12:80/select.php?table="+Table+"&count="+Count+"&row="+Rows+"&con="+Condition);
HttpClient client = new DefaultHttpClient();
                HttpGet request = new HttpGet("http://192.168.1.12:80/select.php?table="+Table+"&count="+Count+"&row="+Rows+"&con="+Condition);
                // Get the response
                ResponseHandler<String> responseHandler = new BasicResponseHandler();
                String st = client.execute(request, responseHandler);

No comments:

Post a Comment