我在看mars老师的android视频,网络下载这一节
照着他的代码写的,出现了一下问题
在把url转换为输入流的时候,抛出了IOException这是为什么呢,
原因: if an I/O error occurs while creating the input stream. 
我网络方面不太懂,会不会是因为地址变量urlStr用错了? 我是网上随便找个mp3的下载点
(找txt文件下载地址,输入进去也报错)
然后右键另存,可以下载,但是当作url输入程序里就抛异常urlStr 的值是 "http://163.30.119.1/~pses006/spring.mp3"
public InputStream getInputStreamFromUrl(String urlStr) 
throws MalformedURLException, IOException{

url = new URL(urlStr);

HttpURLConnection urlConn = (HttpURLConnection)url.openConnection();
System.out.println("111");
/*InputStream input =*/ urlConn.getInputStream();//抛IOException异常
System.out.println("222");
InputStream input = null;
return input;
}