用URLConnection类
URL url=new URL("www.....");
URLConnection connection=url.openConnection();
InputStream in=connection.getInputStream()
........
剩下的自己写吧~~
URL url=new URL("www.....");
URLConnection connection=url.openConnection();
InputStream in=connection.getInputStream()
........
剩下的自己写吧~~
while ((str = bi.readLine()) != null) {
//do some thing for you...
}