sample code here:
URL url = new URL("http://www.google.com/ig/api?hl=zh-CN&weather=Beijing"); // or "Beijing,China",zip code like "94043" and so on
URLConnection uc = url.openConnection();
uc.connect();
InputStream is = uc.getInputStream();
above line , it throws a NullPointerException .
i tried other parameters in the URL's construction ,sometimes it returns an InputStream object without any data (finally transfered to an empty string ) .



